Groups
Groups
Sign in
Groups
Groups
[CLOSED] Ruby on Rails: Spinoffs
Conversations
About
Send feedback
Help
AJAX RETURNS HTML
1 view
Skip to first unread message
vijay
unread,
May 21, 2008, 12:49:54 AM
5/21/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Spinoffs
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
Reply all
Reply to author
Forward
0 new messages