homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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

5+ Year Member

Msg#: 3397333 posted 6:57 pm on Jul 17, 2007 (gmt 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,



WebmasterWorld Senior Member 10+ Year Member

Msg#: 3397333 posted 7:02 pm on Jul 17, 2007 (gmt 0)

Is you FF browser popup blocker turned off?



5+ Year Member

Msg#: 3397333 posted 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.


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