/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] HELP!! New browser window not opening in IE

Hello everyone,

I’ve been stuck on this problem all day, sadly to say if there is an easy fix,

I have a drop down menu that, when you highlight an item in it, it’s suppose to make a DIV on the screen highlight red.

When you click it, it’s suppose to open a new window with a html editor in it.

Neither of the two work in IE, but they work flawlessly in firefox.

I am clueles as to why? I’m using IE 6.02900

Here is part of my HTML code for an item in the drop down that makes a DIV highlight

[CODE]
<select name=”LabelEditor”>
<option selected=”selected”>Choose Button to Edit</option>
<option onmouseover=”h_TopButton1();” onmouseout=”h_TopButton1Off();”>Top Menu Button 1</option>
[/CODE]

It goes on from there pretty much the same way over and over

Here’s part of the javascript that makes it highlight

[CODE]
function h_TopButton1(){
document.getElementById(‘TopButton1’).style.background = ‘red’
}
function h_TopButton1Off(){
document.getElementById(‘TopButton1’).style.background = ”
}
function h_TopButton2(){
document.getElementById(‘TopButton2’).style.background = ‘red’
}
function h_TopButton2Off(){
document.getElementById(‘TopButton2’).style.background = ”
}
[/CODE]

And that goes on from there over and over in pretty much the same fashion

For the pop up menu, this is part of my code

[CODE]
<option
onmouseover=”javascript:ajaxpage(‘MainContent/Button_Content1.txt’, ‘MainContent’);h_Button1();”
onmouseout=”h_Button1Off();”
onclick=”window.open(‘MainContent/E_Button_Content1.php’,’mywindow’,’width=590,height=420′)”>
Content for Button 1</option>
[/CODE]

I used the onclick=”window.open etc… command to open a new window.
Again, it works fine in firefox but not IE.

Does anyone know anyways I can fix this to work on both? Or preferably IE for now?

Thanks a ton, I have tried everything and have run out of ideas

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@AnarchistXauthorAug 16.2006 — N/M figured out a workaround. Found a different way to open a browser window. Put the statement onchange inside the select line vs. using the onclick="window.open etc...

Not sure why it works this way and not the other, but at this moment, I'll go with what works.

For highlighting, I just used nested Divs instead of dreamweaver's built in drop down menu.
×

Success!

Help @AnarchistX spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...