Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 2nd, 2005, 10:42 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default document.location.href

hi friends,
i'm going to add this code under frame page, but when i open that frame set, i need to open that site full frame page, not only that perticular frame page,
<script language="javascript">document.location.href="http ://www.onlinesrilanka.com"</script>



surendran
(Anything is Possible)
__________________
surendran
(Anything is Possible)
http://www.suren.info
http://ssuren.spaces.msn.com
 
Old August 3rd, 2005, 05:25 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Surendran,
Try this one
<frameset rows="1,*" border=0 scrolling=0 frameborder="0" framespacing="0">
<frame src="">
<frame src="http://www.onlinesrilanka.com">
</frameset>
Hope this will help you


Cheers :)

vinod
 
Old August 3rd, 2005, 05:40 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hello vinod,
it's not possible, because already i'm using iframe but i want without frame, i think u didn't get my requirements


surendran
(Anything is Possible)
 
Old August 3rd, 2005, 08:27 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Surendran,

Not sure if I understand you correctly, but if you want the page to open in place of the frameset, you can use:
Code:
top.location.href="http://www.onlinesrilanka.com";
HTH,

Chris

 
Old August 3rd, 2005, 09:47 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hi Surendran,
  Can you explain in detail??
As i m thinking u have a frameset
<frameset>
<frame name=f1 src="pg1.html">
<frame name=f2 src="pg2.html">
</frameset>
Now ur pg2.htm page have
<script>document.location.href="http://www.onlinesrilanka.com"</script>
offcourse it will open in its own location(that is f2 frame)

if you want to be open it into mainframe then
use
<script>window.parent.location.href="http://www.onlinesrilanka.com"</script>

Isn't it ??
Hope this will help you





Cheers :)

vinod
 
Old August 3rd, 2005, 10:17 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi ChrisScott, vinod
thanks for your help, now it's working fine

surendran
(Anything is Possible)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Received When Trying to Get Location.Href DragonKing005 Classic ASP Basics 3 May 22nd, 2005 09:54 PM
document.lcoation.href is null or not an object IceXia Javascript How-To 2 November 24th, 2004 04:44 AM
Href to Excel Document rbmohr Classic ASP Basics 1 November 15th, 2004 09:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.