Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 429
  • Last Modified:

function openwindow() not working in Firefox Mac

I have been using this script since we went live 1 1/2 years ago. I was shocked to see tonight that it doesn't work in mac Firefox.  It does in IE, Safari, Netscape, and Firefox on the PC.  Any ideas or suggestions on how to fix?

Mike

<script type="text/javascript">
function openwindow()
{
window.open("http://www.dimplesanddandelions.com/zoom.asp?Display=1&Product_ID=<%=(product_details.Fields.Item("Product_ID").Value)%>","Details", "toolbar=no,location=no,directories=no, status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=400,height=475")
}
</script>

Here's the link

<a href="javascript:;" onclick="openwindow();return false;"><img src="<%=(product_details.Fields.Item("Catalog_Detail").Value)%>" width="225" border="0" galleryimg="no" /></a>
0
stroudtx
Asked:
stroudtx
1 Solution
 
0h4crying0utloudCommented:

Hmmm. I don't have a mac but maybe this will work.  I made two changes.

- double quotes to single quotes for Product_ID
- Used div instead of anchor tag


<script type="text/javascript">
function openwindow()
{
window.open("http://www.dimplesanddandelions.com/zoom.asp?Display=1&Product_ID=<%=(product_details.Fields.Item('Product_ID').Value)%>","Details", "toolbar=no,location=no,directories=no, status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=400,height=475")
}
</script>
<body>
<div onclick="openwindow()">
   <img src="<%=(product_details.Fields.Item("Catalog_Detail").Value)%>
</div>
</body>
0
 
Eternal_StudentCommented:
<a href="#" onClick="this.href='javascript:openWin()'">

function openWin() {
    windowHandle = window.open(url,'windowName','width=200,height=200' etc etc etc);
}
0
 
stroudtxAuthor Commented:
thanks - I'll give it a try
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now