NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Simple jquery help!

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
6 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 06-14-2011, 06:28 AM THREAD STARTER               #1 (permalink)
NamePros Regular
 
BuLLDoG's Avatar
Join Date: Aug 2003
Location: England
Posts: 934
BuLLDoG is a glorious beacon of lightBuLLDoG is a glorious beacon of lightBuLLDoG is a glorious beacon of lightBuLLDoG is a glorious beacon of lightBuLLDoG is a glorious beacon of light
 



Simple jquery help!


I have been following this tutorial (http://trevordavis.net/blog/ajax-forms-with-jquery/) it works perfectly. However when I change the submit button to a input type="image"... it doesn't send. It still has the id as submit. I think it has something to do with the javascript.

Would anyone know how to solve this? thanks

---------- Post added at 02:28 PM ---------- Previous post was at 02:02 PM ----------

fixed
__________________
Free iPhone | Free Facebook Likes
BuLLDoG is offline   Reply With Quote
Old 06-14-2011, 06:34 AM   #2 (permalink)
Senior Member
 
musicplace.co.nr's Avatar
Join Date: Oct 2007
Location: Sydney, Australia
Posts: 1,022
musicplace.co.nr has much to be proud ofmusicplace.co.nr has much to be proud ofmusicplace.co.nr has much to be proud ofmusicplace.co.nr has much to be proud ofmusicplace.co.nr has much to be proud ofmusicplace.co.nr has much to be proud ofmusicplace.co.nr has much to be proud ofmusicplace.co.nr has much to be proud of
 



Alzheimer's
Out of curiosity, can I ask what the problem was?
musicplace.co.nr is offline   Reply With Quote
Old 06-15-2011, 07:17 AM   #3 (permalink)
NamePros Regular
 
baxter's Avatar
Join Date: Apr 2006
Posts: 360
baxter is just really nicebaxter is just really nicebaxter is just really nicebaxter is just really nice
 


Ethan Allen Fund Save The Children
This should get the form to submit for you:

Code:
$(function() {
  $('#submit').click(function() {
    $(this).parents('form')
           .submit();
  });
});
The input with type of submit will submit a form when clicked the above jquery will listen to the click event on the input with id submit and then find the form element and submit it as you expected.

Cheers,

Jay
__________________
Canadian Domain Registrar Ready.ca
baxter is offline   Reply With Quote
Old 06-27-2011, 01:18 PM   #4 (permalink)
New Member
Join Date: Sep 2010
Posts: 9
littlephoenix is an unknown quantity at this point
 



wondering if anyone tried it and got it to work with;

$(function() {
$('#submit').click(function() {
$(this).parents('form')
.submit();
});
});


thanks
__________________
my free spyware removal blog
littlephoenix is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
BioticDesigns.com - Wordpress Themes, Logos, PHP/SQL, jQuery, AJAX CyXic Developers For Hire 0 06-09-2011 08:16 PM
Why can't people in the Domains Wanted Forum respond to a simple PM? Premium-Domain-Names Domain Name Discussion 48 06-09-2011 02:59 PM
Wanted - wordpress expert, easy simple job theme installation Tim Schoon Web Development Wanted 2 06-04-2011 11:02 PM
$50 for more then a simple redesign ??? ExoGenesis Design Contests 1 06-04-2011 11:59 AM
PHP, MySQL, jQuery, CSS Developer for hire; long time NPer Mr. Johnson Developers For Hire 0 05-22-2011 09:38 AM

 
All times are GMT -7. The time now is 02:48 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger