HighDots Forums  

Can't change text field value in IE

Javascript JavaScript language (comp.lang.javascript)


Discuss Can't change text field value in IE in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dugald.morrow@gmail.com
 
Posts: n/a

Default Can't change text field value in IE - 06-10-2008 , 09:17 PM






I have some javascript that updates the text in a text field after
certain actions take place such as clicking a checkbox. The javascript
works fine in Safari and Firefox, but in IE, the text in the text
field remains empty.

The page containing this problem is at the following location:

http://www.skicow.com/component/opti...g_enabled,true

The last parameter enables debug which results in alerts popping up
with debug info and a <div> on the page that shows what should be in
the text field.

The javascript is in the following file:

http://www.skicow.com/components/com...BayShop_1.1.js

All updating of the text field is done through the function
'setKeywordsFieldValue'.

Steps to reproduce the problem:

1. Visit
http://www.skicow.com/component/opti...g_enabled,true
in IE

2. Click on a keywords group link such as 'Snowboard' (this will
result in various checkboxes being displayed)

3. Click on a checkbox such as 'Snowboard Boots'

Step 3 should result in the keyword 'Snowboard Boots' being added to
the text field, but doesn't in Internet Explorer.

Any help would be greatly appreciated.

Reply With Quote
  #2  
Old   
LukeK1980@gmail.com
 
Posts: n/a

Default Re: Can't change text field value in IE - 06-10-2008 , 11:28 PM






On Jun 10, 10:17 pm, "dugald.mor... (AT) gmail (DOT) com"
<dugald.mor... (AT) gmail (DOT) com> wrote:
Quote:
I have some javascript that updates the text in a text field after
certain actions take place such as clicking a checkbox. The javascript
works fine in Safari and Firefox, but in IE, the text in the text
field remains empty.

The page containing this problem is at the following location:

http://www.skicow.com/component/opti...hop/Itemid,51/...

The last parameter enables debug which results in alerts popping up
with debug info and a <div> on the page that shows what should be in
the text field.

The javascript is in the following file:

http://www.skicow.com/components/com...Bay/eBayShop_1....

All updating of the text field is done through the function
'setKeywordsFieldValue'.

Steps to reproduce the problem:

1. Visithttp://www.skicow.com/component/option,com_skicow/act,shop/Itemid,51/...
in IE

2. Click on a keywords group link such as 'Snowboard' (this will
result in various checkboxes being displayed)

3. Click on a checkbox such as 'Snowboard Boots'

Step 3 should result in the keyword 'Snowboard Boots' being added to
the text field, but doesn't in Internet Explorer.

Any help would be greatly appreciated.
Seems to work fine in FireFox. Try putting the input field in a div
and then on check box set the innerHTML of the div to the new input
field with the wanted value. The problem is the refresh of the field.
try this. if you don't like that you going to have to put that input
field in its own script and call a write function on every change.
<div id="sommething">
<input id="keywords" name="keywords" type="text" value="" size="60"/>
</div>

document.getElementById('something').innerHtml = your new input


Reply With Quote
  #3  
Old   
Amrit Ranjan
 
Posts: n/a

Default Re: Can't change text field value in IE - 06-11-2008 , 12:24 AM



On Jun 11, 9:28*am, LukeK1... (AT) gmail (DOT) com wrote:
Quote:
On Jun 10, 10:17 pm, "dugald.mor... (AT) gmail (DOT) com"





dugald.mor... (AT) gmail (DOT) com> wrote:
I have some javascript that updates the text in a text field after
certain actions take place such as clicking a checkbox. The javascript
works fine in Safari and Firefox, but in IE, the text in the text
field remains empty.

The page containing this problem is at the following location:

http://www.skicow.com/component/opti...hop/Itemid,51/...

The last parameter enables debug which results in alerts popping up
with debug info and a <div> on the page that shows what should be in
the text field.

The javascript is in the following file:

http://www.skicow.com/components/com...Bay/eBayShop_1....

All updating of the text field is done through the function
'setKeywordsFieldValue'.

Steps to reproduce the problem:

1. Visithttp://www.skicow.com/component/option,com_skicow/act,shop/Itemid,51/...
in IE

2. Click on a keywords group link such as 'Snowboard' (this will
result in various checkboxes being displayed)

3. Click on a checkbox such as 'Snowboard Boots'

Step 3 should result in the keyword 'Snowboard Boots' being added to
the text field, but doesn't in Internet Explorer.

Any help would be greatly appreciated.

Seems to work fine in FireFox. *Try putting the input field in a div
and then on check box set the innerHTML of the div to the new input
field with the wanted value. *The problem is the refresh of the field.
try this. if you don't like that you going to have to put that input
field in its own script and call a write function on every change.
div id="sommething"
input id="keywords" name="keywords" type="text" value="" size="60"/
/div

document.getElementById('something').innerHtml = your new input- Hide quoted text -

- Show quoted text -
insead of document.getElementById('something').innerHtml = your new
input
use document.getElementById('something').value = your new input



Reply With Quote
  #4  
Old   
GArlington
 
Posts: n/a

Default Re: Can't change text field value in IE - 06-11-2008 , 05:30 AM



On Jun 11, 3:17 am, "dugald.mor... (AT) gmail (DOT) com"
<dugald.mor... (AT) gmail (DOT) com> wrote:
Quote:
I have some javascript that updates the text in a text field after
certain actions take place such as clicking a checkbox. The javascript
works fine in Safari and Firefox, but in IE, the text in the text
field remains empty.

The page containing this problem is at the following location:

http://www.skicow.com/component/opti...hop/Itemid,51/...

The last parameter enables debug which results in alerts popping up
with debug info and a <div> on the page that shows what should be in
the text field.

The javascript is in the following file:

http://www.skicow.com/components/com...Bay/eBayShop_1....

All updating of the text field is done through the function
'setKeywordsFieldValue'.

Steps to reproduce the problem:

1. Visithttp://www.skicow.com/component/option,com_skicow/act,shop/Itemid,51/...
in IE

2. Click on a keywords group link such as 'Snowboard' (this will
result in various checkboxes being displayed)

3. Click on a checkbox such as 'Snowboard Boots'

Step 3 should result in the keyword 'Snowboard Boots' being added to
the text field, but doesn't in Internet Explorer.

Any help would be greatly appreciated.
Too much of a conditional processing for different browsers...
The behaviour differs in FF and IE from onLoad() - there is NO alert()
when you load the page in FF...
So, I suspect that you are loading different versions of your js
depending on the browser and the one that you load in IE does not
work, as simple as that...


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.