Click to See Complete Forum and Search --> : Refresh and combo box
Bob_PHP_Builder
12-06-2006, 05:34 AM
Hello all,
Ive got a combo box that uses javascript to add a number to a text box.
However as you all know javascript can be disabled, so i was wondering if its possible to use a refresh when a combo box item is changed to update the text box?
Im fairly new so i was wondering if someone could point me in the right direction as to how to go about accomplishing this?
Regards,
BoB
Piranha
12-06-2006, 05:46 AM
As far as I know it is possible to refresh when the combo box changes. The bad news is that it is done with javascript, so I'm afraid you are stuck.
Bob_PHP_Builder
12-06-2006, 05:51 AM
So does anyone have advice as to what i should do if javascript is disabled on the client side machine? Im sure there must be a solution?
U should check if the javascript is disable:
<noscript>
<meta http-equiv=\"refresh\" content=\"0;URL=javascript_disabled.htm\">
</noscript>
And check from php the text field so it wont be empty ...
thread_PHP
12-06-2006, 08:26 AM
HI Bob_PHP_Builder
http://www.babailiica.com/js/sorter/
look at this link might solve your problem
Bob_PHP_Builder
12-06-2006, 08:28 PM
Hi all,
thanks for the responses.
Yeah ive created the javascript, however the problem is if javascript is disabled.
for example http://www.babailiica.com/js/sorter/ can be disabled
Bob_PHP_Builder
12-06-2006, 09:14 PM
This is my big problem at the moment, i need the cookies for the login.. and i need javascript in one section to add to the textbox.. my problem is that i don't know what i should do to ensure that cookies and javascript are enabled?
Do i use javascript to test the cookies?
Do i use php to test if javascript is enabled?
How should i go about this?
Bob_PHP_Builder
12-06-2006, 09:52 PM
Googled <Noscript> i think i understand bogu. I have a go at that thanks!
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.