Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) 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 May 20th, 2004, 09:48 PM
Authorized User
 
Join Date: May 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to myedu2k4
Default Link from listbox to a specific fram

Hi guys...
I got a problem to ask. it is ...
In dreamweaver i use a listbox. The problem is that when i click on the itme of the list and i want to link or load a html page into a fram in the same window, but it does not happen. When i click on an item it load html page in a new window not wihtin the fram that is specified.
Hope to get help about this...
Thanks in advance...

Pheap
 
Old May 24th, 2004, 04:57 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

How does the JavaScript or HTML code look like? Are you passing in the name of the frame as well??

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old May 25th, 2004, 01:40 AM
Authorized User
 
Join Date: May 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to myedu2k4
Default

I want to link from list menu to specific page by using frame.But I don't know about on change MM_JUMPMENU. It had default in parent(MM_JUMPMENU('PARENT',THIS,1))(HTML Code).
I want to know systax link to specific frame.

Thank in advace

 
Old May 25th, 2004, 02:02 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You'll need to rewrite the function that Dreamweaver added to the page a little. Try something like this:
Code:
<script type="text/javascript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.1
  window.parent.frames[targ].location.href = selObj.options[selObj.selectedIndex].value;
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
Now, instead of passing parent in the onchange event, you can pass the name of the frame, for example:
Code:
<select name="MyList" onChange="MM_jumpMenu('rightFrame',this,0)">
Hope this helps,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old May 25th, 2004, 10:18 PM
Authorized User
 
Join Date: May 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to myedu2k4
Default

Thanks for your code. think it works. let me try....

Pheap

 
Old May 26th, 2004, 02:33 AM
Authorized User
 
Join Date: May 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to myedu2k4
Default

Thank Imar for your kind answer. It just work.
Nice to know you. Maybe next time i might need your help more.
:). Is it posible if i want to know your private email address so that i can contact you. my email is : [email protected]

Pheap


 
Old May 26th, 2004, 02:38 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Pheap,

Glad it's working. If you have further or other questions, feel free to post them here at P2P.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Search specific data from specific columns yogeshyl SQL Language 1 January 16th, 2008 11:12 AM
Copy specific data in specific cells of sheet2 yogeshyl Excel VBA 1 May 14th, 2007 07:40 AM
two frame - how to run selected url in other fram BrendonMelville HTML Code Clinic 1 March 14th, 2006 03:58 PM
Link to a specific record rexecampbell Classic ASP Basics 2 April 7th, 2004 01:40 PM
I'm back :) Listbox var from listbox MichaelTJ .NET Web Services 2 October 21st, 2003 07:06 PM





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