Hi everyone,
I have one-field form on my website, which is supposed to be filled with barcode number. It was functional until few days age when the need emerged for the auto-submit.
As you can see, I have to make script which will automatically submit form when data is filled in barcode field.
Does anyone can give me some short guides how to do that, or just give me a link to some good tutorial or something?
Thanks...
eshko
0
Newbie Poster
Recommended Answers
Jump to PostYou can submit your form by stating it inside your conditional statement.
e.gif ( true ) { document.formId.submit(); return true; } return false;
Jump to PostEshko,
Do you really mean AJAX?
Form submission is a feature of bog-standard HTML/HTTP and can be triggered either by the user clicking the form's submit button or from javascript, eg,
forms[0].submit()
, which is safe as long as you have just one form on the page. This …
Jump to PostEshko,
OK, that sounds like genuine AJAX.
Would I be correct in understanding that you need to trigger an existing ajax script in response to a user event other than button click? If so it's trivial but I must fly now. I'm running late. Maybe Essential will come …
Jump to PostAnd with any luck my Daniweb email alerts will be arriving today .....
:(
Jump to PostHi guys,
i think i'm hanging my head around here, reading all your post. And i must admit, Airshow, is more reliable than me and always have his effective, efficient and precise solution...
But i think Airshow is on the run right now, rushing his way to work...
…
All 18 Replies
essential
84
Posting Shark
Featured Poster
Airshow
416
WiFi Lounge Lizard
Team Colleague
eshko
0
Newbie Poster
eshko
0
Newbie Poster
Airshow
416
WiFi Lounge Lizard
Team Colleague
Airshow
416
WiFi Lounge Lizard
Team Colleague
eshko
0
Newbie Poster
essential
84
Posting Shark
Featured Poster
eshko
0
Newbie Poster
essential
84
Posting Shark
Featured Poster
mschroeder
251
Bestower of Knowledge
Team Colleague
essential
84
Posting Shark
Featured Poster
essential
84
Posting Shark
Featured Poster
Airshow
416
WiFi Lounge Lizard
Team Colleague
eshko
0
Newbie Poster
Airshow
416
WiFi Lounge Lizard
Team Colleague
tazosmr
0
Newbie Poster
murat.ozkan.9028194
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.