How do I use this JScript variable?

Results 1 to 2 of 2

Thread: How do I use this JScript variable?

  1. #1
    Join Date
    Dec 1969

    Default How do I use this JScript variable?

    I have a line where I want to put a variable declared in client side JScript. On the basis that I have executed a procedure and given a variable called CallString a value, how can I say that src= CallString in the following line of code. CallString is the name of an asp page that I want the src set to. I need to do this clientside so can&#039;t put it in &#060;%%&#062; tags I don&#039;t think. Call string passes different values depending on which button a user clicks elsewhere on my page. Am I right in thinking that because the server side code is executed first that I need to assign a value to this variable clientside?<BR>Hope someone can help, Thanks in advance.<BR><BR><BR>&#060;input type="image" border="0" name="imageField" src="" width="640" height="480"&#062;

  2. #2
    Join Date
    Dec 1969

    Default RE: How do I use this JScript variable?

    &#060;script language=javascript&#062;<BR>document.forms.imageF ield.src = CallString;<BR>&#060;/script&#062;<BR><BR>*note this must run after the input appears on the screen, so perhaps triggered by onLoad.

Posting Permissions

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