Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Reloading more than one frame with single item
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 9/2/2005 at 06:23 PM Reply With Quote
Reloading more than one frame with single item


in menu_items.js inside the items structure:

['test item', "javascript:rl('page1.html', 'page2.html')"]

in menu_items.js below the items structure:

function rl (url1, url2) {
if (url1) parent.frames['framename1'].location = url1;
if (url2) parent.frames['framename2'].location = url2;
}

replace framename1 and framename2 with actual frame names. the function can be extended to any number of frames. pass null if you don't want particular frame reloaded.
View User's Profile View All Posts By User U2U Member
kP
Junior Member

Posts: 3
Registered: 4/11/2006
Member Is Offline
posted on 4/14/2006 at 05:58 PM Reply With Quote
Javascript Throws Error In Internet Explorer and Firefox


I know very little about javascript, however, I'm having trouble with the following solution to call multiple pages with multiple targets in Internet Explorer on the PC. It seems to work just fine in Safari, but Firefox and Internet Explorer and presumeably Netscape don't work when this code is used.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 4/14/2006 at 09:10 PM Reply With Quote

what kind of problem do you experience? Do you receive any javascript errors?
View User's Profile View All Posts By User U2U Member
kP
Junior Member

Posts: 3
Registered: 4/11/2006
Member Is Offline
posted on 4/14/2006 at 09:22 PM Reply With Quote
A little more detail


Here is the code I have in my tree_item.js file:

/*
the format of the tree definition file is simple,
you can find specification in the product documentation at:

http://www.softcomplex.com/products/tigra_tree_menu_pro/docs/#hierarchy
*/

var TREE_ITEMS = [
['Project Development', "javascript:rl('solutions/Client Services/Project Management Meth/top_pm_meth.html', 'solutions/Client Services/Project Management Meth/navigation.html', 'solutions/Client Services/client_services.html')",
],
['Solution Development', "javascript:rl('solutions/Client Services/Solution Development Meth/top_solution_dev_meth.html', 'solutions/Client Services/Solution Development Meth/navigation.html', 'solutions/Client Services/client_services.html')",
],
];
function rl (url1, url2, url3) {
if (url1) parent.frames['topFrame'].location = url1;
if (url2) parent.frames['navigation'].location = url2;
if (url3) parent.frames['content'].location = url3;
}

I've also attached a screenshot of the error message I receive. The page it says the error is coming from is always different depending on what it's loading, but I've read that the error message can actually say this, but be coming from the externally loaded .js file.... or simply someplace other than where the error is stating. It's pretty much the same, line 1 stuff error message.

kP has attached this image:
error-message.gif - 5.42kb
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 4/14/2006 at 09:25 PM Reply With Quote

move function rl above the place where you first call it (i.e. put it at the beginning of the file)
View User's Profile View All Posts By User U2U Member
kP
Junior Member

Posts: 3
Registered: 4/11/2006
Member Is Offline
posted on 4/14/2006 at 10:02 PM Reply With Quote

I tried moving the function to the top of the page as well as under the comments.... I still seem to be getting the same errors... assuming there isn't something else that is jacked up with my stuff. The menu works fine on subsequent pages... the only thing I can't get to work is calling the multiple pages to load stuff into different frames.

/*
the format of the tree definition file is simple,
you can find specification in the product documentation at:

http://www.softcomplex.com/products/tigra_tree_menu_pro/docs/#hierarchy
*/
function rl (url1, url2, url3) {
if (url1) parent.frames['topFrame'].location = url1;
if (url2) parent.frames['navigation'].location = url2;
if (url3) parent.frames['content'].location = url3;
}
var TREE_ITEMS = [
['Project Development', "javascript:rl('solutions/Client Services/Project Management Meth/top_pm_meth.html', 'solutions/Client Services/Project Management Meth/navigation.html', 'solutions/Client Services/client_services.html')",
],
['Solution Development', "javascript:rl('solutions/Client Services/Solution Development Meth/top_solution_dev_meth.html', 'solutions/Client Services/Solution Development Meth/navigation.html', 'solutions/Client Services/client_services.html')",
],
];
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 4/14/2006 at 11:15 PM Reply With Quote

You also have commas at the end of the list (where the next symbol after comma is the closing bracket). If fixing this doesn't help then zip all files needed to reproduce the problem and attach the package to the support ticket; our technician will check out your menu setup.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Tigra Menu
Product Demonstrations Live Demos:
Traditional Blue
White Steps
Inner HTML
All Together
Frames Targeting
Free Download Free Download
Free Download Menu Builders
Online Builder
Builder for Windows
Product Documentation Documentation:
Documenation Page
Change Log
Menus Comparison Table
Support Forum Support Forum
 
Tigra Menu PRO
Product Demonstrations Live Demos
Alignment & Multimenus
Unlimited Depth
Item sizing and positioning
Inner HTML
Frames, Targeting
Static Positioning
Free Download Menu Builders
Online Builder
Product Documentation Documentation
Documenation Page
Tigra Menu PRO FAQ
Change Log
Menus Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 
Product Page Tigra Menu GOLD
Functionality demos Functionality demos
Multiple
Cross-framed
Select-boxes
Effects
Design demos Design demos
Icons & arrows
Idea!
Hi there!
Matrix
MS Style
XP Style
Dots
3D-Buttons
Product Documentation Documentation
Documenation Page
Change Log
Menus Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004