Welcome to WebmasterWorld Guest from 54.145.209.34

Forum Moderators: incrediBILL

links within iframes don't work in firefox?

javascript link won't launch popup

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

5+ Year Member



(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

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

WebmasterWorld Senior Member 10+ Year Member



Is you FF browser popup blocker turned off?

Marshall

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

5+ Year Member



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

 

Featured Threads

Hot Threads This Week

Hot Threads This Month