473,387 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Can't change text field value in IE

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 <divon 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.
Jun 27 '08 #1
3 4295
On Jun 10, 10:17 pm, "dugald.mor...@gmail.com"
<dugald.mor...@gmail.comwrote:
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 <divon 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
Jun 27 '08 #2
On Jun 11, 9:28*am, LukeK1...@gmail.com wrote:
On Jun 10, 10:17 pm, "dugald.mor...@gmail.com"

<dugald.mor...@gmail.comwrote:
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 <divon 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

Jun 27 '08 #3
On Jun 11, 3:17 am, "dugald.mor...@gmail.com"
<dugald.mor...@gmail.comwrote:
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 <divon 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...
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: fish | last post by:
Hi, I have an HTML page with a FORM and some input fields. On the fields I wish to do validation as the punters change the field values. If they get it wrong, then I tell them and then wish...
11
by: Karim | last post by:
I am looking for the easiest way to parse a float number. X.Y where X=>0 and X <=5 and Y = 0 or Y = 5 e.g. the number should be one of the following 1 1.0 1.5 2 2.0 2.5 etc. I tired using...
1
by: dan baker | last post by:
I am pretty much a newbie with javascript, and would like to get a little clarification on what I can do with an onChange javascript event handler. I have a dynamic page I build with perl and...
3
by: pentium77 | last post by:
Basically I have a situation where I need to update changes occuring in one Text field of a table into another text field located in another table. In addition both the tables are located in...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
6
by: charlie_M | last post by:
I figured out via various help from this forum... EXAMPLE: onClick="document.forms.MYBUTTON.value='SIMPLE';document.forms.submit()" In my CGI I see "MYBUTTON" = "SIMPLE" and this works...
13
by: nyt | last post by:
I have a problem of number and text field. I got the database file(mdb) that contains many combo boxes used and its list values are created by "value list" For eg field Field name= 'furniture'...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.