Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Design

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 25-03-2002, 03:00 PM
Inspired Webmaster
 
Join Date: Jul 2001
Location: -lostworld-
Posts: 102
Rep Power: 89
donut is on a distinguished road
Send a message via Yahoo to donut Send a message via Skype™ to donut
problem with 2 frame target...

mmmm... biasanya dalam satu page(frameset), yg ada beberapa frame... kalau kita nak buat link,... kita hanya boleh target kan ia ke satu frame yg lain..

macamana kalau kita nak buat link, supaya boleh menukarkan dua frame yg berbeza di dalam satu frameset yg sama....
boleh ke....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 25-03-2002, 03:20 PM
geekrawk's Avatar
Moderator
 
Join Date: Jul 2001
Location: a state of mind
Posts: 98
Rep Power: 88
geekrawk is on a distinguished road
Send a message via Yahoo to geekrawk
yeah.. it is possible.. using javascript.

use <a href> as usual.. giving the target frame name.. and also in addition use OnClick to load the 2nd page into 2nd frame (2 links with one click)

another way you could do this without using the onclick event is to use OnLoad. use <a href> as usual.. loading the 1st page into the target frame.. use OnLoad (in the 1st page) to load the 2nd page in the 2nd target frame.
__________________
geekrawk

{wt} - angry middle finger
http://geekrawk.wordpress.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 25-03-2002, 04:23 PM
Inspired Webmaster
 
Join Date: Jul 2001
Location: -lostworld-
Posts: 102
Rep Power: 89
donut is on a distinguished road
Send a message via Yahoo to donut Send a message via Skype™ to donut
ok thanks...

i've tried with the onLoad command inserted in the <body> , but still not working.... maybe my command is wrong... can you please give me the correct one...

..havent try with the onClick yet...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 25-03-2002, 05:39 PM
geekrawk's Avatar
Moderator
 
Join Date: Jul 2001
Location: a state of mind
Posts: 98
Rep Power: 88
geekrawk is on a distinguished road
Send a message via Yahoo to geekrawk
this is the code i did in dw

Quote:
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" onLoad="MM_openBrWindow('http://wasted-talent.org','TopFrame','')">
</body>
</html>
i used the default macromedia openBrWindow function and called it with the onLoad event, but i specified a frame/window name for the html page to load in.

another "hand" coded way is to use onLoad=top[0].location="url" (will only work with framed pages). this command will load the url into the top frame (top as in position, not hierarchy)

let me know if u have any more problems.
__________________
geekrawk

{wt} - angry middle finger
http://geekrawk.wordpress.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 25-03-2002, 06:17 PM
Inspired Webmaster
 
Join Date: Jul 2001
Location: -lostworld-
Posts: 102
Rep Power: 89
donut is on a distinguished road
Send a message via Yahoo to donut Send a message via Skype™ to donut
thanks.... it works...
really appreciate it...
i'm using the onLoad=top[0].location="url"
simple and easy...

p/s : ...i've tried to load the page to other frame, such as left,right.main... by changing the top parameter in the command.., but failed to do so....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2002, 12:29 AM
Novice Webmaster
 
Join Date: May 2002
Location: Kuala Lumpur, Malaysia
Posts: 36
Rep Power: 0
victor is on a distinguished road
Send a message via ICQ to victor Send a message via AIM to victor Send a message via Yahoo to victor
By putting both of those frame that you want to change to the main frame and you will be able to change both of the frame at once.

E.g.
mainFrame
| by putting both of the frame in mainFrame
two frame = (frame1,frame2)

Then when you put the links.... just make it open in mainframe, and WOALAH, both of the frame will be change at once.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISP problem lately? Hunz Mamak Stall 2 05-12-2004 04:08 PM
Any way to get around this problem philin Revenue and Monetization 18 09-10-2004 11:56 PM
How to do inline frame? elfreakz Website Design 14 09-11-2003 11:37 PM
ftp problem limteoh Webmaster Tools 2 03-05-2003 10:31 AM
IIS problem kasih Website Programming 1 01-10-2002 11:56 AM



All times are GMT +8. The time now is 06:55 AM. Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58