FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Editing a combobox
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Editing a combobox [message #175650] Sun, 16 October 2011 01:19 Go to next message
bruceaj is currently offline  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 Go to previous messageGo to next message
Gregor Kofler is currently offline  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 Go to previous messageGo to next message
Beauregard T. Shagnas is currently offline  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 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  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 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  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 Go to previous messageGo to next message
bruceaj is currently offline  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 Go to previous message
Dave Pyles is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Taking parameters into functions
Next Topic: web page to image
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 08 13:14:18 GMT 2024

Total time taken to generate the page: 0.06638 seconds