Reply to Re: HTML Form with a Select List and without Submit Button

Your name:

Reply:


Posted by Jonathan N. Little on 11/11/12 11:50

Martin Pöpping wrote:
> Jonathan N. Little schrieb:
>> Martin Pöpping wrote:
>>> Hi,
>>>
>>> somewhere I have seen that it is possible to create a formular
>>> with a select box and without any submit button.
>>>
>>> if you select via the select box an item, then the new page is loaded.
>>>
>>> how can i do that?
>>
>> Requires JavaScript, you create a submit function that you must attach
>> to the SELECT onchange event. You should provide and an alternate for
>> folks who have JavaScript disabled.
>
> Thanks,
>
> I did it like this now:
>
> <form name="form_genlist" method="get" action="index.asp">
> <select name="genfile" OnChange ="document.form_genlist.submit()">
> //...
>
> but how to do the alternate without JS?

I would say the most simply with NOSCRIPT.

<form name="form_genlist" method="get" action="index.asp">
<select name="genfile" OnChange ="document.form_genlist.submit()">
<noscript><input type="submit" value="go"></noscript>
....

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация