-
IE not POSTing using Prototype AJAX library
Hey guys, hope one of you can help me.
I have the following (Prototype) code that works with Firefox but not within IE.
The basic premise is that when using a POST to send to my page, IE
doesn't seem to send it and therefore doesn't fire the database update.
GET's work fine in IE but due to the potential volume of text, a GET
is not realistic.
In Firefox, GETs and POSTs work as expected. Here is my code.
function sendData (frm) {
var url = '/includes/ajax/test.asp';
var pars = Form.serialize(frm);
pars = pars + '&time=' + new Date().getTime();
var myAjax = new Ajax.Request( url, {method: 'post', parameters: pars, onLoading: '', onComplete: showResponse} );
}
function showResponse (originalRequest) {
var newData = originalRequest.responseText;
$('responseholder').innerHTML = newData;
}
The form is as follows:
<form>
<input type="hidden" name="id" value="1">
<input type="hidden" name="action" value="create">
<label for="pmpcomment">Comment *</label>
<textarea name="comment" id="pmpcomment" cols="60" rows="3"></textarea>
<button type="button" onClick="sendData(this.form)" class="doAction">Add Comment</button>
</form>
Looping through Request.Form in the asp page shows all the name/value
pairs when using Firefox. With IE, nothing is displayed (in fact
Request.Form has a length of 0 in IE).
Please can anyone help? I'm new to Prototype/AJAX and thus
am tearing my hair out!
Cheers in advance,
- S
Similar Threads
-
Replies: 0
Last Post: 06-19-2006, 08:56 AM
-
Replies: 0
Last Post: 02-09-2006, 01:26 PM
-
By AM003295 in forum VB Classic
Replies: 4
Last Post: 08-12-2005, 09:13 PM
-
By Developer Express in forum dotnet.announcements
Replies: 0
Last Post: 03-21-2002, 07:03 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks