passing variables form server side to client side

Results 1 to 3 of 3

Thread: passing variables form server side to client side

  1. #1
    Chad Tanner Guest

    Default passing variables form server side to client side

    In my server side scripting I made a variable MyString = Blah, Blah, Blah. <BR><BR>If I take this variable and put it into the HTML like this:<BR>&#060;Script langauge = vbscript&#062;<BR>data = &#060;%= MyString %&#062;<BR>&#060;/Script&#062;<BR>Should this work?<BR>To see if it works, I am trying to get the variable that is passed to show up in a message box when a button is pushed.<BR>Does all this client side scripting go inside the header tags?

  2. #2
    sridharm Guest

    Default RE: passing variables form server side to client s

    It&#039s good if u write client side scripting in header tags, but u<BR>can write client side scripting anywhere before u call that script

  3. #3
    Sathiya Guest

    Default RE: passing variables form server side to client s

    If u want ur Server side variables to be accessed in client side.u can follow this example psuedocode.<BR><BR>1. Save the variable &#060;%=Something%&#062; in a Hidden variable ( input tag in HTML)<BR>2. Retrive the variable in the Client side script by acessing the Hidden variabale using the Name and value properties.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •