I am new to AJAX.PLease help me to resolve this problem.
This is my jsp page.
"Search.jsp".
<html>
<head>
<title>Search Results</title>
</head>
<body>
<form name="searchForm">
<input type="text" name="empName">
<input type="submit" value="Submit">
</form>
<div id="resultId">
</div>
<script>
//code for calling ajax
//retruns response from server
document.getElementById(resultId).innerHTML = responseText;
doOnLoad();
</script>
After clicking the submit button the AJAX request happens.And the
response contains only html with script
Here is the response from server
<HTML>
<HEAD>
<SCRIPT LANGUAGE=''JavaScript''>
<!--
function doOnLoad() {
page = ''contractSearch'';
}
//-->
</SCRIPT>
</HEAD>
<BODY onload=''doOnLoad()'' bgcolor=#000033>
I have to extract this script and i have to put it in the
"Search.jsp". Then i have to call this function.
The problem is i am not able call this function.
PLease help me
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---