[thelist] Window Popup Problem

Bruso, John jbruso at SHERIDAN.EDU
Fri Feb 17 11:53:11 CST 2006


Hi Guys,

Thanks for your help with this. In reference to using the javascript..
I'm not worried about users who don't have javascript... this is a
controlled environment and everyone will be using javascript enabled
browsers.

The reason why there is a # in the href, and I'm using the onclick event
is because I have about 50+ href links on this page and each of them
call the same form, carrying a variable. I'm not too knowledgeable about
Javascript, but I got this to work.

So, I guess, to Chris's point, I need a way of targeting the new window
"_blank" instead of itself "#". 

But, how?

Thanks for your help guys,

John

    -------------------------
John Bruso
IS Developer
Sheridan College
ph  307.674-6446-2608

  
	
 
 
 

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Christian Heilmann
Sent: Friday, February 17, 2006 10:23 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Window Popup Problem

> > <a class="font_channels" href="#"
> >
onClick="document.logonForm.url.value='http://library.alldatapro.com';
> > document.logonForm.submit();" onMouseOver="return escape('The
> > world\'s most comprehensive resource for automotive
> > diagnostic and repair information.')" target="_blank"><img
> > src="https://www.sheridan.edu/uportal/icons/all-icons/jbruso_c
> > ustom/new_
> > window.png" alt="Click, to open in new window." width="12"
height="10"
> > border="0"></a>

Further to Chris' valid points:

What is the mouseover supposed to do? Right now it returns an escaped
string. Return to where?

You set a form value and send off the form with JavaScript. This
sounds dodgy to me, if you simply keep this link inside the form and
use an input type image you will submit the form for all users, not
only those with JS enabled.



--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/
-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 



More information about the thelist mailing list