Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
I need help with AJAX
Old 04-29-2009, 03:28 PM I need help with AJAX
Junior Talker

Posts: 2
Name: DEIRDRE
Trades: 0
Hi, I have been able to transfer form entries to PHP for processing using
the ACTION/METHOD combination, however, I need to do an ajax call,
does this mean I don't keep this action/method on the HTML form any longer because the ajax call itself has a post and php reference, I have been
unable to get an ajax call to work with onClick on the form.

Please---thanks!
deirdreod is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-03-2009, 11:26 PM Re: I need help with AJAX
Junior Talker

Posts: 3
Name: PeteWilson
Trades: 0
D, could you please post the code? Or the URL? I've struggled for a couple of days with onclick and AJAX and just got it working. I /might/ be able to help a little.
pete142 is offline
Reply With Quote
View Public Profile
 
Old 05-03-2009, 11:41 PM Re: I need help with AJAX
Junior Talker

Posts: 3
Name: PeteWilson
Trades: 0
Oops, I didn't read the question carefully. I've found it useful to keep the action/method around because in one case I might want to call the ajax code or, in the other case, just do the vanilla submit:

onclick="if(gotta' go with ajax) {
[do the call]
}
else document.forms.formName.submit();"

It hasn't hurt to keep action/method around; in fact, it gives a little flexibility. It seems to make no difference if the button is type="submit" or type="button."

-- Pete
pete142 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to I need help with AJAX
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11882 seconds with 12 queries