Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-22-2009, 11:20 PM   PM User | #1
a1hanson
New to the CF scene

 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
a1hanson is an unknown quantity at this point
Using window.open with image distorts table layout

Here is the code I am using:

Code:
<a  href="javascript:void(window.open('http://netimpact.org/displaycommon.cfm?an=1&subarticlenbr=2452','IiD','width=650,height=600,left=50,top=75,status=1,toolbar=0,location=0,menubar=0,scrollbars=0,resizable=1'))">
I am using it to open a new window when an image is clicked. I have about 80 images and different links that I all want to open, however, when I add these window.open links to the images, the site layout gets reall funky - specifically, the table content gets funky or, as the content at the bottom of the table suddenly gets cut off.

Here is what the source looks like when I link an image:

Code:
<a
 href="javascript:void(window.open('http://netimpact.org/displaycommon.cfm?an=1&subarticlenbr=2452','IiD','width=650,height=600,left=50,top=75,status=1,toolbar=0,location=0,menubar=0,scrollbars=0,resizable=1'))">
      <img style="border: 0px solid ; width: 17px; height: 17px;"
 alt="Listen to the Call"
 src="http://netimpact.org/associations/4342/files/play_icon.gif"></a>
The strange thing is that this doesn't happen when I use the window.open function for a text link. I have narrowed it down to only happening when I use the window.open function on the images.

For reference, view the test site i'm working on here:
http://netimpact.org/displaycommon.c...rticlenbr=2440

Note: i'm working behind a content management system... but I don't think that is what's affecting this. In IE i return a _gat is undefined error, however, I think that is also unrelated to this current issue.

Your help is much appreciated! I'm so frustrated and have been working on this for about 2 weeks.

Regards.
a1hanson is offline   Reply With Quote
Reply

Bookmarks

Tags
javascript, window.open

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:34 AM.


Advertisement
Log in to turn off these ads.