Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
New Window from External Javascript Feed
Old 12-04-2004, 09:00 AM New Window from External Javascript Feed
Junior Talker

Posts: 2
Trades: 0
Hi there,

I am currently getting a javascript feed from another site onto my site. In that feed, it contains a link; but I want it so when my users click on that link it will open in a new window, rather than the one that is on my site. How would I go about doing this?

A part of my code is below:

PHP Code:
echo "<script language=JavaScript src=http://beta.biblegateway.com/usage/votd/votd2html.php?version=".$tVersion."&amp;jscript=1>";
echo 
"</script>"
Thanks!
zonemen is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-04-2004, 09:40 AM
steveharro's Avatar
Extreme Talker

Posts: 172
Trades: 0
You could try this
Code:
echo "<script language=JavaScript src=http://beta.biblegateway.com/usage/votd/votd2html.php?version=".$tVersion."&amp;jscript=1" target="_blank>"; 
echo "</script>";
Regards Steve Best Download Sites
steveharro is offline
Reply With Quote
View Public Profile
 
Old 12-05-2004, 08:29 AM
Junior Talker

Posts: 2
Trades: 0
Alright thanks! I'll try it tomorrow.
zonemen is offline
Reply With Quote
View Public Profile
 
Old 12-05-2004, 03:09 PM
Spud In Disguise's Avatar
Super Spam Talker

Posts: 808
Location: UK... where else?
Trades: 0
I started this thread not long ago. There is nothing you can do, except put it in the feed page itself, sorry mate it's a real bummer!
__________________

Please login or register to view this content. Registration is FREE
- Fansite

Please login or register to view this content. Registration is FREE
- Blog
Spud In Disguise is offline
Reply With Quote
View Public Profile Visit Spud In Disguise's homepage!
 
Old 12-05-2004, 06:57 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
I'm not entirely sure, cos I'm not a javascript guru, but I've seen code that can sift through all images and replace attributes of specific ones. You might be able to use the same sort of thing.

Something like:
For every link on the page
---Check HREF attribute for <remote web page address>
------Change target attribute to "_blank"
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Reply     « Reply to New Window from External Javascript Feed
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21046 seconds with 12 queries