Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30863
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Interesting form functionality difference |
| Date | 2016-07-14 10:57 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <87twfsr18i.fsf@bsb.me.uk> (permalink) |
| References | <5aIhz.240$9n.232@fx38.iad> |
Robert Baer <robertbaer@localnet.com> writes: > The form in my page http://www.oil4lessllc.com/index-4.html works > perfectly IF AND ONLY IF one is online. > Copy all of the supporting folders and files, and the user-visible > attributes look the same, but the entries do not get received. > > Any ideas as to why? At first glance it looks like the form is handled by PHP using a relative URL. Unless you are running a PHP compatible server locally (and your use of the phrase "all of the supporting folders and files" suggests you are not) then it can't work offline. You could try changing mailHandlerURL:'bat/MailHandler.php' to mailHandlerURL:'http://www.oil4lessllc.com/bat/MailHandler.php' so the same PHP resource is used even when the pages are just local files. It's a shame that this is all done using client-side scripting. You'd get a very much more obvious error if the form element had an action attribute. Client-side scripting should really only be used to add features that assist the user, rather than being responsible for basic functionality like submitting the form. But, as I say, first glance. And you have hundreds of lines of script. -- Ben.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Interesting form functionality difference Robert Baer <robertbaer@localnet.com> - 2016-07-14 00:36 -0800
Re: Interesting form functionality difference Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-07-14 10:57 +0100
Re: Interesting form functionality difference Robert Baer <robertbaer@localnet.com> - 2016-07-14 17:40 -0800
Re: Interesting form functionality difference Robert Baer <robertbaer@localnet.com> - 2016-07-14 18:03 -0800
Re: Interesting form functionality difference Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-15 08:27 +0200
Re: Interesting form functionality difference Robert Baer <robertbaer@localnet.com> - 2016-07-16 19:47 -0800
Re: Interesting form functionality difference Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-17 20:31 +0200
Re: Interesting form functionality difference Robert Baer <robertbaer@localnet.com> - 2016-07-19 20:27 -0800
Re: Interesting form functionality difference Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-24 18:40 +0200
csiph-web