/    Sign up×
Community /Pin to ProfileBookmark

Popup window works in IE(Vista) but not FF

Hello fellow members,
could any one suggest why the following code works in IE but not in FF. Basically,
I have a set of subject titles that, when moused over, create a popup window that displays a graphic picture; each picture is a slightly different dimension so I have to pass the picture height and width as parameters to the popup function. Here is the gest of the function?I am using DTD ‘transitional’ which I only mention because I suspect this might have something to do with my problem):

<script type=”text/JavaScript”>
<!–
var item_view;
function testpop(win_link,win_size,side_x,side_y)
{

item_view=window.open(win_link,”win_name”,win_size,”left=”+side_x,”top=”+side_y);
window.item_view.moveTo(side_x,side_y);
if(item_view =null)
{
document.write(“Unable to find file.”);
}

}
function shut_win(win_link,win_size)
{

var item_view=open(win_link,”win_name”,win_size)
if(item_view && !item_view.closed)
{
item_view.close();
}

}

//–>
</script>

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Feb 13.2009 — What doesn't work? You did not say what the issue is exactly.

Eric
Copy linkTweet thisAlerts:
@mrhooFeb 13.2009 — Probably your firefox browser, like most browsers, does not allow scripted windows without user confirmation.

I don't see why this line-
[CODE]if(item_view =null)[/CODE] doesn't cause a problem in IE.
Copy linkTweet thisAlerts:
@captsigauthorFeb 14.2009 — Hi, in FF, when you mouseover the title work, no popup window is created. I'm having

problems with another js program not working in FF while working perfecty fine in IE. I don't understand why Js works in IE and not FF.

captsig
×

Success!

Help @captsig 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.6,
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,
)...