Editing a combobox [message #175650] |
Sun, 16 October 2011 01:19 |
bruceaj
Messages: 30 Registered: September 2010
Karma: 0
|
Member |
|
|
When using a combobox, I want to add a new item to the dropdown box
but typing the item in the display box. I can do this with Java. Can I
do it with PHP?
Thank you..
Bruce
|
|
|
Re: Editing a combobox [message #175653 is a reply to message #175650] |
Sun, 16 October 2011 10:23 |
Gregor Kofler
Messages: 69 Registered: September 2010
Karma: 0
|
Member |
|
|
Am 2011-10-16 03:19, bruceaj meinte:
> When using a combobox, I want to add a new item to the dropdown box
> but typing the item in the display box. I can do this with Java. Can I
> do it with PHP?
Since PHP runs on the server, which doesn't know about "comboboxes"
(what's that, BTW?) - no.
> Thank you..
You're welcome.
Gregor
--
http://vxweb.net
|
|
|
Re: Editing a combobox [message #175655 is a reply to message #175653] |
Sun, 16 October 2011 12:13 |
Beauregard T. Shagnas
Messages: 154 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
Gregor Kofler wrote:
> Am 2011-10-16 03:19, bruceaj meinte:
>> When using a combobox, I want to add a new item to the dropdown box but
>> typing the item in the display box. I can do this with Java. Can I do
>> it with PHP?
>
> Since PHP runs on the server, which doesn't know about "comboboxes"
> (what's that, BTW?) - no.
It is like a <select> ... <option> ... but allows new data to be entered
into the text display box. My old Visual Basic work tells me this. :-)
There's no HTML equivalent.
http://en.wikipedia.org/wiki/Combo_box
So the answer is No.
--
-bts
-This space for rent, but the price is high
|
|
|
Re: Editing a combobox [message #175656 is a reply to message #175653] |
Sun, 16 October 2011 12:16 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma: 0
|
Senior Member |
|
|
Gregor Kofler wrote:
> Am 2011-10-16 03:19, bruceaj meinte:
>> When using a combobox, I want to add a new item to the dropdown box
>> but typing the item in the display box. I can do this with Java. Can I
>> do it with PHP?
>
> Since PHP runs on the server,
PHP runs everywhere.
> which doesn't know about "comboboxes" (what's that, BTW?) - no.
You should not be so quick to dismiss the possibility of client-side GUI
programming with PHP. There is an API for that.
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
|
|
|
Re: Editing a combobox [message #175664 is a reply to message #175650] |
Mon, 17 October 2011 08:02 |
alvaro.NOSPAMTHANX
Messages: 277 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
El 16/10/2011 3:19, bruceaj escribió/wrote:
> When using a combobox, I want to add a new item to the dropdown box
> but typing the item in the display box. I can do this with Java. Can I
> do it with PHP?
The problem is not Java or PHP, the problem is HTML which, as far as I
know, does not currently define such form element.
These kind of complex controls are normally emulated with client-side
JavaScript.
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
|
|
|
Re: Editing a combobox [message #175671 is a reply to message #175664] |
Mon, 17 October 2011 18:59 |
bruceaj
Messages: 30 Registered: September 2010
Karma: 0
|
Member |
|
|
On Oct 17, 4:02 am, "Álvaro G. Vicario"
<alvaro.NOSPAMTH...@demogracia.com.invalid> wrote:
> El 16/10/2011 3:19, bruceaj escribió/wrote:
>
>> When using a combobox, I want to add a new item to the dropdown box
>> but typing the item in the display box. I can do this with Java. Can I
>> do it with PHP?
>
> The problem is not Java or PHP, the problem is HTML which, as far as I
> know, does not currently define such form element.
>
> These kind of complex controls are normally emulated with client-side
> JavaScript.
>
> --
> --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
> -- Mi sitio sobre programación web:http://borrame.com
> -- Mi web de humor satinado:http://www.demogracia.com
> --
So I can update the options list in a combobox using JavaScript.
Right?
Can you point me to a JavaScript example? In the meantime, I'll go
over to the JavaScript newsgroup and post the same problem.
Thanks..
Bruce
|
|
|
Re: Editing a combobox [message #175672 is a reply to message #175671] |
Mon, 17 October 2011 19:54 |
Dave Pyles
Messages: 7 Registered: October 2011
Karma: 0
|
Junior Member |
|
|
On 10/17/2011 2:59 PM, bruceaj wrote:
> On Oct 17, 4:02 am, "Álvaro G. Vicario"
> <alvaro.NOSPAMTH...@demogracia.com.invalid> wrote:
>> El 16/10/2011 3:19, bruceaj escribió/wrote:
>>
>>> When using a combobox, I want to add a new item to the dropdown box
>>> but typing the item in the display box. I can do this with Java. Can I
>>> do it with PHP?
>>
>> The problem is not Java or PHP, the problem is HTML which, as far as I
>> know, does not currently define such form element.
>>
>> These kind of complex controls are normally emulated with client-side
>> JavaScript.
>>
>> --
>> --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
>> -- Mi sitio sobre programación web:http://borrame.com
>> -- Mi web de humor satinado:http://www.demogracia.com
>> --
>
> So I can update the options list in a combobox using JavaScript.
> Right?
>
> Can you point me to a JavaScript example? In the meantime, I'll go
> over to the JavaScript newsgroup and post the same problem.
>
> Thanks..
>
> Bruce
http://lmgtfy.com/?q=update+combobox+javascript
Dave Pyles
|
|
|