Thanks for all your help.
But we need to store the url into a coldfusion variable as at the end of the 
code,we pass the url to other modules which use this url in other pages.

Also, i am not that familiar with how to use Ajax in Dreamweaver.

Any help would be highly appreciated. 









>ColdFusion doesn't work that way.  By the time the browser gets to the point
>of running any JavaScript, all of the ColdFusion processing for the page has
>been done.  There is some things you could use to accomplish what it looks
>like what you're trying to do.
>
>First, it looks like you don't even need it as a ColdFusion variable, since
>you're just writing the URL to the page.  In that case, since you already
>have that value in JavaScript, you could just write the value to the page
>using JavaScript.  (Also, note that the code you provide isn't going to work
>correctly anyway, because you have HTML mixed in between your opening and
>closing <script> tags).
>
>If you actually do need it as a CF variable for some reason, you could use
>Ajax to set the value (though it would have to be in a persistent scope,
>such as a session variable). Or, since you just have the value hard-coded in
>the example, you could just hard-code it again when setting the CF variable
>(if your intention is to hard-code it).
>
>Scott
>
>On Sat, Jun 11, 2011 at 8:41 PM, Gunjan Upadhayay <
>[email protected]> wrote:
>
>> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345241
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to