Jump to content

Recommended Posts

Posted

I am a fairly advanced programmer, and I for the life of me cannot determine why my window.open statement is not working.

 

Here is the url where its not working:

 

http://www.irietones.com/item/conga+___+tumbadora

 

If you try and click to enlarge any of those rollover images, it's suppose to pop open a new window using the javascript window.open method. For whatever reason, no window opens, and I don't get any javascript errors. I've put in alert statements to verify that it actually hits the right function. All functions are defined in that file so you should be able to just view source and see whats going on.

 

Here is an IDENTICAL implementation of that window.open call, and it works fine here:

 

http://www.wholesalechess.com/chess/giant_...hess+Set+Pieces

 

The two functions being used are identical, so I'm at a complete loss to why ones not working. Could this somehow be a server side issue with TCH?

 

My popup blocker is not the issue either, I've already looked into that.

 

PLEASE HELP ME! I'M GOING INSANE! :)

Posted

The chess page is coded like this:

><a href="javascript:popProductImageByFile('0710_3L.jpg');"><img src="/images/products/0710_3S.jpg" name="three" height=40 border="0" id="three" onmouseover="MM_swapImage('main','','/images/products/0710_3S.jpg',1); document.image_rollover_form.main_large_image.value='0710_3L.jpg';" alt="Click here to see a much larger and detailed image"></a>

 

And the conga page is coded like this:

><a href="javascript:popProductImageByFile('CONL_1L.jpg');"><img src="/images/products/CONL_1S.jpg" name="one" width="33" height="50" border="0" id="one" onmouseover="MM_swapImage('main','','/images/products/CONL_1S.jpg',1)"></a>

 

Not sure if that would cause the window not to diplay or not. Just noticed that the document.image_rollover_form.main_large_image.value was not in the other page.

Posted (edited)

Ah, the answer always makes so much sense once you find it. After I viewed source and analyzed it some more, I found this piece of code:

 

<script language="JavaScript">

<!--

 

function SymError()

{

return true;

}

 

window.onerror = SymError;

 

var SymRealWinOpen = window.open;

 

function SymWinOpen(url, name, attributes)

{

return (new Object());

}

 

window.open = SymWinOpen;

 

//-->

</script>

 

 

I have no idea what its doing, but that was the problem. Thats what happens when you have too many chefs in the kitchen all mucking with the same recipe.

Edited by Gadianton

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...