Javascript in Tailored Text/Html
Last Post 07-23-2008 08:01 AM by Timothy Carey. 2 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
Michael GrinnellUser is Offline
going with the flow
going with the flow
Posts:31
Avatar

--
04-10-2008 05:58 PM

    I need to assign the value of a querystring token to a Javascript variable  in order to manipulate the value and write it later in the document.  So far I have tried variations on the theme below without success.  Typically, the page just fails to load.

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    04-10-2008 06:19 PM

    Hi. Hmmm... Are you attempting to insert the javascript function directly into the text/html? Or is this javascript that already exists in a function or javascript file in the portal/skin etc...? I would imagine if it renders just as HTML for the token you could use the token in the javascript. Not sure though and sometimes the text/html will remove certain tags.


    The other option would be to use the querystring token in a SQL token (should use a stored procedure to minimize the risk of SQL injection) and perform any logic you wanted to perform in javascript in the stored procedure (if possible). Then the SQL token would return the right variable? You might want to explain a little more specifically in detail what the javascript function needs to do though for me to get my mind spinning in a few directions.


    -Chad

    Timothy CareyUser is Offline
    going with the flow
    going with the flow
    Posts:31
    Avatar

    --
    07-23-2008 08:01 AM
    In your explanation, Chad, are you saying put the javascript into an SQL database and then use. You aren't explaining very clearly.


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi