questions on passing parameter from server script to client script 
Author Message
 questions on passing parameter from server script to client script

The following is part of my code:
<script LANGUAGE="VBScript">
Sub showHead(str)
document.writeln(str)
End Sub
</script>
<%mesgString = "Message: " & recordAry(mesgPos,counter)%>
<p align="left"><script>call showHead("<%=mesgString%>")</script></p>
It shows nothing on html.

If i use <%Response.Write(mesgString)%>, it will show the whole mesgString.
This prove the string is not null or abnormal.
Or
If i use <%mesgString = "abcd" & "<BR>" & "efgh"%>, it will work normally
too. This prove the showHead subroutine works too.
Then what is the problem?
Thanx very much



Mon, 10 Feb 2003 00:31:06 GMT  
 questions on passing parameter from server script to client script


Fri, 19 Jun 1992 00:00:00 GMT  
 questions on passing parameter from server script to client script
one more piece of information,
I have tried other parameters which are extracted from the same record
array.
the other parameters are text type(max 255 char) and date type.
The mesgString is memo type which is 65535 characters max.
Any problem with this?
Thanx in advance.


Quote:
> The following is part of my code:
> <script LANGUAGE="VBScript">
> Sub showHead(str)
> document.writeln(str)
> End Sub
> </script>
> <%mesgString = "Message: " & recordAry(mesgPos,counter)%>
> <p align="left"><script>call showHead("<%=mesgString%>")</script></p>
> It shows nothing on html.

> If i use <%Response.Write(mesgString)%>, it will show the whole
mesgString.
> This prove the string is not null or abnormal.
> Or
> If i use <%mesgString = "abcd" & "<BR>" & "efgh"%>, it will work normally
> too. This prove the showHead subroutine works too.
> Then what is the problem?
> Thanx very much



Mon, 10 Feb 2003 02:53:20 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. questions on passing text parameter from server script to client script (some new findings)

2. Passing value from Server script to client script.

3. ?Passing arrays from Server script to Client Script

4. Pass client script variable to server script variable

5. ?Passing arrays from Server script to Client Script

6. Help: problem passing variable between client/server scripts

7. Passing values from client vars to Server script

8. Urgent : Passing variables from client script to server side

9. Passing Server Side Arrays to Client Side Scripts

10. Help: problem passing variable between client/server scripts

11. Script Parameters and Scripting Control (OCX)

12. Passing control from VB to VB Script -- need to access SetFocus in script

 

 
Powered by phpBB® Forum Software