Current location: Hot Scripts Forums » General Community » Script Requests » javascript and frames?

javascript and frames?

Reply
  #1 (permalink)  
Old 09-29-07, 08:38 AM
warandchaos warandchaos is offline
Newbie Coder
 
Join Date: Sep 2007
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow javascript and frames?

is it possible to alter the content of another sites frames?

i mean like load a different page in a frame on someones site.

i thought there was maybe a way to open the page witha javascript, and then load a page nto the frame?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-01-07, 12:23 PM
warandchaos warandchaos is offline
Newbie Coder
 
Join Date: Sep 2007
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
anyone?
id really appreciate it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-02-07, 07:12 AM
Boraan's Avatar
Boraan Boraan is offline
Coding Addict
 
Join Date: Jul 2007
Location: Clayton, NC
Posts: 278
Thanks: 0
Thanked 0 Times in 0 Posts
You can use javascript to open a new window and you can load different pages into that same frame by naming the new window. Example if you name the frame that will open _newtarget, you can set the target parameter on links that you click and it will open in that frame.

You don't really need javascript for that though... You can do that from the link itself by setting the target.

Code:
<a href="http://www.techdex.net" target="_mywindow">link 1</a>
<br><a href="http://www.programmingtalk.com" target="_mywindow">link 2</a>
<br><a href="http://www.msn.com" target="_mywindow">link 3</a>
In that example, target has been set to a new window called "_mywindow" - now, every link that has the target named _mywindow will open in a new window. If the window is already open, new pages will load in that same page.

As for the second part of it, (opening it on someone elses site), short of hacking, there is no way to do it.

Clients are set up with one way traffic - from the server to you. You would need server access to that person's site for new windows to open on their site.... all the files are server-side.
__________________
Dexter Nelson
Techdex Development & Solutions
========================
Message Me (username: echomusic)
Hotscripts Softpedia
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with javascript print code? pcinfoman JavaScript 25 06-01-07 06:36 PM
Killing frames with Javascript? nova912 JavaScript 1 04-15-06 11:19 AM
Print Preview Javascript Frames!! jajalc JavaScript 2 10-25-05 04:28 AM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 12:58 PM
PLZ HLP! Sending Javascript between two frames. Caleb JavaScript 1 09-01-03 01:20 AM


All times are GMT -5. The time now is 11:28 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.