Skip to main content
demkalkov
Participating Frequently
May 13, 2010
Question

Replace function

  • May 13, 2010
  • 1 reply
  • 469 views

How can i make this work?

     <cflocation url="index.cfm?#Replace(desiredutl, "add", "view")#" addToken="false">

    This topic has been closed for replies.

    1 reply

    Inspiring
    May 13, 2010

    In what way does it not work currently?

    You're not giving us much to go on here.

    --

    Adam

    demkalkov
    demkalkovAuthor
    Participating Frequently
    May 13, 2010

    it just doesn't replace anything

    Inspiring
    May 13, 2010

    Well the syntax is correct.

    What's an example of of the input variable for the replace() call?

    You are away replace() is case sensitive, yeah?

    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f42.html

    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-6e0e.html

    --

    Adam