473,772 Members | 2,402 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
'setKeywordsFie ldValue'.

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 4322
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
'setKeywordsFie ldValue'.

Steps to reproduce the problem:

1. Visithttp://www.skicow.com/component/option,com_skic ow/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.getEle mentById('somet hing').innerHtm l = 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
'setKeywordsFie ldValue'.
Steps to reproduce the problem:
1. Visithttp://www.skicow.com/component/option,com_skic ow/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.getEle mentById('somet hing').innerHtm l = your new input- Hide quoted text -

- Show quoted text -
insead of document.getEle mentById('somet hing').innerHtm l = your new
input
use document.getEle mentById('somet hing').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
'setKeywordsFie ldValue'.

Steps to reproduce the problem:

1. Visithttp://www.skicow.com/component/option,com_skic ow/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
14300
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 to put the focus back to the offending field. ( It works if a use an 'onblur' event but not an 'onchange' )
11
16269
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 regular expressions, with no luck. Thanks, Karim
1
2600
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 print to the browser which includes some data displayed and edittable in <FORM> elements. There are a couple areas where I display a message or a calculated total to the user based on the initial values of some data elements. I would like to...
3
1571
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 different frames of a HTML page. So my question is can such an update be done ? Is it necessary that the tables be located in the same frame for the update to work ? Any pointers would be appreciated ? Thanks, -P.
7
3615
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> </head> <style type="text/css">
6
2749
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 fine.... except that the element MYBUTTON must exist as a hidden field.
13
4181
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' , data type='Number' ,Display Control='Combo Box', RowSource Type = 'Value List' and Row Source = ' 0;"chair";1;"Table";2;"Bed" ' Therefore, in data sheet view of table, if we select (1 : Table ) ,
6
4901
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 the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.