Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #30866

Re: Interesting form functionality difference

From Robert Baer <robertbaer@localnet.com>
Newsgroups comp.lang.javascript
Subject Re: Interesting form functionality difference
References <5aIhz.240$9n.232@fx38.iad> <87twfsr18i.fsf@bsb.me.uk>
Message-ID <V9Xhz.2148$SS3.2022@fx37.iad> (permalink)
Date 2016-07-14 17:40 -0800

Show all headers | View raw


Ben Bacarisse wrote:
> 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.
>
   Thanks; i did not really expect a solution - i was just curious.
   Had to do some snooping on my hard drive as the wonderful search 
facility either shows too much irrelevant garbage, or shows almost nothing.
   Found that reference in forms.js so will give it a try.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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