Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

links within iframes don't work in firefox?

javascript link won't launch popup

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

New User

5+ Year Member

joined:July 17, 2007
votes: 0

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

<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>

<form method=post name="form1">


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

<!-- 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:

<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


(big snip)

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


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,

7:02 pm on July 17, 2007 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 4, 2001
votes: 8

Is you FF browser popup blocker turned off?


7:13 pm on July 17, 2007 (gmt 0)

New User

5+ Year Member

joined:July 17, 2007
posts: 2
votes: 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.