JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 15th, 2010, 07:14 AM
SeanMack SeanMack is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2010
Posts: 1 SeanMack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 24 sec
Reputation Power: 0
Other - JQuery .submit function will not submit form in IE

Hi,I dont have a lot of JQuery experience!
I have a form that submits some values to JQuery code,which then which sends off an email with the values from the form.It works perfectly in Firefox, but does not work in IE6(surprise!) or IE7. Has anyone any suggestions why? greatly appreciated?I saw on some blogs that it may have something to do with the submit button in my form but nothing Ive tried seems to work.

Here is the form html:
<form id="myform1">

<input type="hidden" name="itempoints" id="itempoints" value="200"> </input>

<input type="hidden" name="itemname" id="itemname" value="testaccount"> </input>

<div class="username">
Nickname:

<input name="nickname" type="text" id="nickname" />
</div>
<div class="email">
Email:
<input name="email" type="text" id="email" />
</div>
<div class="submitit">
<input type="submit" value="Submit" class="submit" id="submit" />
</div>

</form>

and here is my JQuery:

var $j = jQuery;

$j("form[id^='myForm']").submit(function(event) {

var nickname = this.nickname.value;
var itempoints = this.itempoints.value;
var itemname = this.itemname.value;
event.preventDefault();
var email = this.email.value;
var resp = $j.ajax({
type:'post',
url:'/common/mail/application.aspx',
async: true,
data: 'email=' +email
+ '&nickname=' + nickname
+ '&itempoints=' + itempoints
+ '&itemname=' + itemname,
success: function(data, textStatus, XMLHttpRequest) {
alert("Your mail has been sent!");
window.closepopup();

}
}).responseText;
return false;
});

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Other - JQuery .submit function will not submit form in IE


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap