Cold Fusion & Javascript
As a newbie at Javascript and CF, this may seem elementary......
I am using a navigation menu building program with generates a js file, which the HTML code then calls to use to control the menu. The problem is that I can only enter static URLs, so anytime I need to pass a CF variable, like ?userid=#session.userid#session.autotoken# or just #session.autotoken#...if isn't executed, I presume due to the URL and variables being in .js file. However, I have the option of putting the #session.autotoken# into a javascript function...like a gotoURL. Question is, what would be the syntax to open the URL with the correct variables attached so they could be executed? Thanks all!
~M
I am using a navigation menu building program with generates a js file, which the HTML code then calls to use to control the menu. The problem is that I can only enter static URLs, so anytime I need to pass a CF variable, like ?userid=#session.userid#session.autotoken# or just #session.autotoken#...if isn't executed, I presume due to the URL and variables being in .js file. However, I have the option of putting the #session.autotoken# into a javascript function...like a gotoURL. Question is, what would be the syntax to open the URL with the correct variables attached so they could be executed? Thanks all!
~M
