473,386 Members | 1,793 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,386 software developers and data experts.

More IE bugs, I think

I have this code here, which works just fine in Forefox, but in IE, the
first item in the select does not appear. If I add a third item, the
second and third items appear, but not the first, Does anyone know of a
workaround for this?
TIA

<td class='infoRow'>
<a
href=\"javascript:document.getElementById('select_ $bridge->b_id').value
= '$bridge->status';
hideObject('a_bridge_$bridge->b_id');showObject('select_$bridge->b_id');\"
id='a_bridge_$bridge->b_id'>$bridge->status </a>
<select id='select_$bridge->b_id' style='display: none'

onchange='document.getElementById(\"selectChange\" ).value=\"select_$bridge->b_id\";
self.refreshBridge=new
ajaxDisplay();refreshBridge.setForm(\"bridgeForm\" );
refreshBridge.getPage(\"common/bridges.php\", \"bridgesDIV\");'
<option value='Idle'>Idle</option>
<option value='Active'>Active</option>
</select>
</td></tr>";
Aug 24 '06 #1
2 987
Lorenzo Thurman wrote:
<snip>
... , Does anyone know of a
workaround for this?
TIA

<td class='infoRow'>
<a
href=\"javascript:document.getElementById('select_ $bridge->b_id').value
= '$bridge->status';
hideObject('a_bridge_$bridge->b_id');showObject('select_$bridge->b_id');\"
id='a_bridge_$bridge->b_id'>$bridge->status </a>
<select id='select_$bridge->b_id' style='display: none'

onchange='document.getElementById(\"selectChange\" ).value=\"select_$bridge->b_id\";
self.refreshBridge=new
ajaxDisplay();refreshBridge.setForm(\"bridgeForm\" );
refreshBridge.getPage(\"common/bridges.php\", \"bridgesDIV\");'
<option value='Idle'>Idle</option>
<option value='Active'>Active</option>
</select>
</td></tr>";
What a mess. Starting with something a browser might be expected to
understand would help (is this actually server-side code?), then
formatting it in a way that was readable to a human would be a good
idea if you expect others to see what it does.

1. Executing Javascript pseudo-protocol HREFs is a direct cause of
issues in IE. It can be regarded as the equivalent of kicking the
browser really hard, and after that expecting it to still work
normally is unrealistic.

2. This code seems to reference numerous
functions/methods/constructors/objects, and your issue is likely to
relate to the internal behaviour of those objects/functions/methods.
As you have omitted their code it cannot be viewed here.

Richard.

Aug 24 '06 #2
Richard Cornford wrote:
Lorenzo Thurman wrote:
<snip>
>... , Does anyone know of a
workaround for this?
TIA

<td class='infoRow'>
<a
href=\"javascript:document.getElementById('select _$bridge->b_id').value
= '$bridge->status';
hideObject('a_bridge_$bridge->b_id');showObject('select_$bridge->b_id');\"
id='a_bridge_$bridge->b_id'>$bridge->status </a>
<select id='select_$bridge->b_id' style='display: none'

onchange='document.getElementById(\"selectChange\ ").value=\"select_$bridge->b_id\";
self.refreshBridge=new
ajaxDisplay();refreshBridge.setForm(\"bridgeForm\ ");
refreshBridge.getPage(\"common/bridges.php\", \"bridgesDIV\");'
<option value='Idle'>Idle</option>
<option value='Active'>Active</option>
</select>
</td></tr>";

What a mess. Starting with something a browser might be expected to
understand would help (is this actually server-side code?), then
formatting it in a way that was readable to a human would be a good
idea if you expect others to see what it does.

1. Executing Javascript pseudo-protocol HREFs is a direct cause of
issues in IE. It can be regarded as the equivalent of kicking the
browser really hard, and after that expecting it to still work
normally is unrealistic.

2. This code seems to reference numerous
functions/methods/constructors/objects, and your issue is likely to
relate to the internal behaviour of those objects/functions/methods.
As you have omitted their code it cannot be viewed here.

Richard.
You're right, it was pretty busy. I found the problem. In all of that
clutter, I was missing the closing '>' for the <select.
Aug 24 '06 #3

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

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
2
by: JD | last post by:
This is more details about my problem, which I already managed to post as a Python bug to Sourceforge This problem is not related to the bug I encountered earlier, and this is related to a...
1
by: JD | last post by:
I hope I didn't post this twice, but I didn't see my earlier posting, so I've posted it again. Please excuse of me you see a 2nd one, but I suspect this might be a problem with our mailer. ...
18
by: Adrian B. | last post by:
Does anyone know of a framework or library that will enable me to use publish/subscribe comms? I want to create a server (using Python) running on a Unix box that will accept client connections...
83
by: kartik | last post by:
there seems to be a serious problem with allowing numbers to grow in a nearly unbounded manner, as int/long unification does: it hides bugs. most of the time, i expect my numbers to be small. 2**31...
39
by: Antoon Pardon | last post by:
I was wondering how people would feel if the cmp function and the __cmp__ method would be a bit more generalised. The problem now is that the cmp protocol has no way to indicate two objects are...
33
by: Joerg Schuster | last post by:
Hello, Python regular expressions must not have more than 100 capturing groups. The source code responsible for this reads as follows: # XXX: <fl> get rid of this limitation! if...
19
by: Alan Silver | last post by:
Hello, Having discovered what I believe to be two CSS bugs in IE7, I have submitted bug reports to MS. AFAIK, these don't get acted on until they receive votes form others to say they are worth...
3
by: Vincent Fatica | last post by:
It seems Arnaud was on target regarding the RTL inserting exception handling routines. Here's another oddball occurrence on which I hope someone can shed some light. My EVENT struct is declared...
11
by: Stevo | last post by:
I've been using the unload event for a long time. I have this code, which I've abstracted and made into a stripped down simple test case below, and it works fine on the major browsers (IE5+,...
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: 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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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.