homepage Welcome to WebmasterWorld Guest from 54.161.155.142
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
links within iframes don't work in firefox?
javascript link won't launch popup
timelord




msg:3397335
 6:57 pm on Jul 17, 2007 (gmt 0)

(update: I'm using Firefox 2.0.0.4)
I have a page with an embedded iframe. Here is the barebones html (it's actually a fairly large ASP application):

<html>
<head>
<title>DOIT Contracts and Procurement Paperless System (DCP2S)</title>
<script type="text/javascript" src="../P2Common/print.js"></script>
<script type="text/javascript" src="../P2Common/history.js"></script>
</head>
<body>

<form method=post name="form1">

(snip)

<iframe name="formFrame" src="/doit10Browser/doit10Draw.asp?DOIT10Number=DAS00000053" width=750 height=7000 frameborder=0 scrolling=auto noresize></iframe><br>

</form>
<!-- Yes, the html ends here - don't know why. I inherited the system and haven't fixed all these little things -->
<!-- the iframe is inside the form which doesn't make much sense to me -->

Here is the barebones iframe HTML:

<HTML>
<HEAD>
<TITLE>CT DOIT-10 Form </TITLE>
</HEAD>
<SCRIPT type="text/vbscript">
Sub AttachmentDisplay(DocumentNumber, SequenceNumber, AttachmentID,DatabaseClass)
attribs = "height=600,width=800,resizable,buttons=no,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes"
url = "../DOIT10Browser/DOIT10AttachmentRedirect.asp?DocumentNumber=" & DocumentNumber & "&SequenceNumber=" & SequenceNumber & "&AttachmentID=" & AttachmentID & "&DatabaseClass=" & DatabaseClass
wname = "formWindow"
display = window.Open(url, wname, attribs)
End Sub
</SCRIPT>

<BODY>

(big snip)

<A HREF="Javascript:AttachmentDisplay('DAS00000053','1','20309','prod')">Vendor Quote</A>

</BODY>
</HTML>

As you can see, the AttachmentDisplay() javascript is defined within the iframe, and the link is displayed within the iframe. The javascript launches an ASP page with the same domain. This entire ASP site operates within one single domain, never refers to anything outside.

If I open the Firefox error console, load the page containing the iframe, and then click the "Vendor Quote" link that should run Javascript:AttachmentDisplay(), nothing happens in the browser, but the error console displays "AttachmentDisplay is not defined".

Does anyone have any idea what might be happening? I have full control over the ASP application so I can try anything anyone recommends, and I have a full development environment to play in.

What I've tried so far:
- searched the web for info, found this site among others, nothing so far matches very closely
- I haven't tried random code changes since I'm pretty much stumped so far.

Thank you in advance,
Ken

 

Marshall




msg:3397344
 7:02 pm on Jul 17, 2007 (gmt 0)

Is you FF browser popup blocker turned off?

Marshall

timelord




msg:3397356
 7:13 pm on Jul 17, 2007 (gmt 0)

Marshall - thanks for the suggestion. Other popups within this site work fine, but I nevertheless just set the domain as an exception (allowed) for the firefox popup blocker. I still got exactly the same behavior.

-Ken

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved