Re: Notification of listbox selection change
| From: | Larry Martell | Date: | Thu, 09 Jan 2014 19:56:22 +0000 |
| Subject: | Re: Notification of listbox selection change | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322664@lists.php.net to get a copy of this message | ||
On Thu, Jan 9, 2014 at 12:48 PM, Jim Lucas <lists@cmsws.com> wrote:
> On 01/09/2014 11:14 AM, Larry Martell wrote:
>>
>>
>> Like I said, I totally understand how your code works. This is not a
>> new app I am developing from scratch. It's a big existing app that was
>> written a long time ago. Currently when the user makes selections they
>> have to click on a submit button. I was asked to make it so that their
>> selections take effect immediately and to get rid of the submit
>> button. The easiest thing for me to do was to call the same php code
>> that get called when the submit button is clicked. I have it working,
>> I just need to find a workaround for IE. Apparently innerHTML is
>> read-only in IE. I've read that using jQuery gets around this. But
>> jQuery is not installed on my client's sites.
>>
>>>>
>>>> I understand how your code works. My application is slightly
>>>> different. My page looks like this:
>>>>
>>>> <html>
>>>> <head>
>>>> <title>Main </title>
>>>> </head>
>>>> <frameset frameborder=1 border=1 rows="140,*">
>>>> <frame src="mainheader.php>
>>>> <frameset frameborder=1 border=1 cols='75%,25%'>
>>>> <frame src="main.php" name="main">
>>>> <frame src="selection.php" name="selection">
>>>> </frameset>
>>>> </frameset>
>>>> </html>
>
>
> Set a target on your form and add onchange="this.form.submit()" to your
> select element.
>
> http://www.w3.org/TR/html401/present/frames.html#h-16.3
>
> Checkout this:
>
> http://www.cmsws.com/examples/php/testscripts/larry.martell@gmail.com/
OMG! That is ridiculously simple! Works perfectly. Thank you very much!!