Link to home
Start Free TrialLog in
Avatar of ellandrd
ellandrdFlag for Ireland

asked on

firefox - disabled button not working

<form name="myform" action="http://www.antons-law.com/ff/properties/global.php" method="post" style="margin:0px 0px 0px 0px;">
<p><input type="text" value="" name="property_search" onKeyUp='this.form.submit.disabled=(this.value=="");' style="width:95px;">
<input type="submit" name="submit" value="Find" disabled></p>
</form>

cant seem to get this working in firefox

any ideas?
Avatar of Batalf
Batalf
Flag of United States of America image

That works in my Firefox

What problems do you experience?

Batalf
Avatar of ellandrd

ASKER

the button isnt disabled...

the button should be disabled until the user starts typing into the textfield
The button is disabled when I try your code and when I open the page

http://www.antons-law.com/properties/ff/index.php

Could it be cache problems?
>>Could it be cache problems?

i'll clear my cache...
no still not disabled
Avatar of Michel Plungjan
Works in my 1.0.4 under win2k too
well not for me??

getting confused and worried
you can see my screen dump here...

http://www.antons-law.com/properties/ff/error.bmp

total visitors is ok, but online is blank, for batalf, the search button is still not disabled for me...
ASKER CERTIFIED SOLUTION
Avatar of Diablo84
Diablo84

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok im well confused, ive just got my boss to view the page in firefox and its working fine, but yet when i view it, its not disabled... clearing cache in firefox:

this is what im doing:

tools>options>privacy>cache>click clear>OK...

dont see anything taken a long time ot clear, not like IE, were i could be waiting for a minute for the cache to clear...
batalf
that code has made 2 textfields now...:

look:

http://www.antons-law.com/properties/ff/index.php
if you typ in the first textfield, the second textfield is enabled. if clear 1st field of text, 2nd is disabled
Sorry, the line

<input type="submitButton" name="submitButton" value="Find" disabled></p>

should be

<input type="submit" name="submitButton" value="Find" disabled></p>