Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old February 20th, 2004, 01:07 AM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 2
Redirect to _blank without using target

How do I use java to redirect a user to another (external) site with a new window when they click on an image.

I can't use _target as it doesn't validate.

Reply With Quote
  #2  
Old February 20th, 2004, 01:28 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Redirect to _blank without using target

it doesn't validate because it is a bad thing (i hate new windows. i use tabs, thank you very much, and i like to decide when i open a new one, thank you very much again).

you can either play nice and validate, or play whatever you want, and (naturally) not validate. everything else is pointless..

Reply With Quote
  #3  
Old February 20th, 2004, 01:31 AM
tebrino tebrino is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Subotica, Serbia & Montenegro
Posts: 263 tebrino User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to tebrino
RE: Redirect to _blank without using target

Try this:
window.open();
You can also use target attribute. You simply open your page which does validation and use header location to redirect. If you need to do this with links, I have a code ready.

Reply With Quote
  #4  
Old February 20th, 2004, 01:38 AM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 2
RE: Redirect to _blank without using target

Okay I have code... and I'm prepared to use it:

- just for everyone else :
function newwindow(link, x, y) {
window.open(link, 'Edit','width='+x+',height='+y+',toolbar=0,directo ries=0,menubar=0,status=0,resizable=0,location=0,s crollbars=yes,copyhistory=0');
}

<a href="javascript:newwindow('http://www.codewalkers',770,502)">codewalkers</a>


I don't NEED to validate - but I'd like too.

I can't validate as I'm using php4 and it appends &PHPSESSID to the url's - this won't validate -
So I wonder the point of it all myself.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Redirect to _blank without using target


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT