JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 8th, 2005, 10:36 AM
neptuno neptuno is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 2 neptuno User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 56 m 15 sec
Reputation Power: 0
Concatenating

Hi,

Canīt figure this out :P

document.write('<script language="vbscript"> window.navigate("http://www.google.com") </script>');

This doenst concatenate very well... Canīt see why...

Thank you

Reply With Quote
  #2  
Old March 8th, 2005, 11:08 AM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
Hey neptuno!

I can't see why eather..but I found way to bypass that.
Declare a variable:
var bla = '<script language="vbscript"> window.navigate("http://www.google.com") </script>'

then call

document.write(bla);

At least, until someone who knows more than me gives you a better solution!!. You can place all that in the same line, so it's not that bad after all....

Good Luck...

Anibal.

Reply With Quote
  #3  
Old March 8th, 2005, 12:41 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
What's the purpose of the vbscript?
Are you trying to be prejudice towards IE users?

<script type="Javascript">
window.location.href = "http://google.com";
</script>

Reply With Quote
  #4  
Old March 8th, 2005, 03:28 PM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
God! Is that what was needed? One can use that directly onLoad or onClick.
What's the use of <script....> </script> ?
Mother of Christ...


Quote:
Originally Posted by MadCowDzz
What's the purpose of the vbscript?
Are you trying to be prejudice towards IE users?

<script type="Javascript">
window.location.href = "http://google.com";
</script>

Reply With Quote
  #5  
Old March 9th, 2005, 08:58 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
I put the <script> tags there because I assumed you were putting that code in the <head> of the HTML

You could use <body onload="window.location.href='http://www.google.com';">

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Concatenating


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 3 hosted by Hostway
Stay green...Green IT