p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

proasp_codeclinic thread: error: 'hi' is undefined

Message #1 by "Joseph Kushnir" <jkushnir52@h...> on Sun, 23 Sep 2001 10:37:18 -0400
the client and the server are totally disconnected..you cannot have a 
client sided script call a method on the server like this

either output the method you need to the server, or post/get (over http) 
back to the server and execute the sever method with the appropriate inputs.


At 10:37 AM 9/23/2001 -0400, you wrote:
>I am new in javascript and developed page where I call server side script 
>from client side to display data from db. The client side script looks 
>like this:
>//this is snipet//
>rsData=<%= hello('parseInt(targetid)')%>
>and the function that has to return me the string data is:
>function hello(d)
>var ret = new String
>return ret
>//return d
>I have an error: 'hi' is undefined.
>if I change my client side to:
>//single quotes added//
>rsData='<%= hello('parseInt(targetid)')%>'
>it returns my string but I cannot manipulate integer sent ot this function.
>What I am doing wrong?
>Thanks in advance

Robert Chartier
Author and Developer

  Return to Index