Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote scripting - java.lang.NullpointerException

Status
Not open for further replies.

pet41

Programmer
Sep 13, 2005
16
NO
Hi

I got the fault Java.Lang.NullpointerException on remote scripting. I use the code under VBScript/FAQ.
Can someone tell me why

Code:
back.htm

<%RSDispatch%>
<!--#include file="../_scriptlibrary/rs.asp"-->
<script language="javascript" runat="SERVER">
var public_description = server_object;

function server_object()
{ this.TestFunction = testfunction;
}

function testfunction(text_to_bold)
{ return '<b>' + text_to_bold + '</b>';
}
</script>

---------------
front.asp

<SCRIPT language=Javascript src="../_scriptlibrary/rs.htm">
</SCRIPT>

<script Language=javascript>
function testSync()
{ text_to_bold = testtext.value;
co = RSExecute("backend.asp","TestFunction",text_to_bold);
alert(co.return_value);
}
</script>
<input type="text" name="testtext" id="testtext">
<button onClick="testSync();">Test Me</button>

My purpose is to lookup a SQl-query based on customer input.
Thank you in adwanced

Rune
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top