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: Save/Restore tree states: Javascript Error!! Pls Help
fornic
Junior Member

Posts: 6
Registered: 7/8/2004
Member Is Offline
posted on 7/8/2004 at 09:05 AM Reply With Quote
Save/Restore tree states: Javascript Error!! Pls Help


Hi

I keep getting the error:

"
Line: 116
Char: 10
Error: 'undefined' is null or not an object
Code: 0
"

The attachment is the tree i'm trying to represent together with the script which i tweeked to satisfy my needs!

Can please pinpoint the error for me and why its doing so!

Thanks

Regards
Nick

Attachment: tree.zip (6.78kb)
This file has been downloaded 1020 times
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 7/8/2004 at 09:50 AM Reply With Quote

Without touching 'cookie_arr' format, I'd check its values before use those as indexes:
if(cookie_arr[x]) {
var o_item = this.a_index[cookie_arr[x]];
o_item.open(o_item.b_opened);
}

BTW: Quite good solution to save tree states.
View User's Profile View All Posts By User U2U Member
fornic
Junior Member

Posts: 6
Registered: 7/8/2004
Member Is Offline
posted on 7/8/2004 at 09:59 AM Reply With Quote

Thanks then! i'll try it out and post the outcome!

Cheers!
Nick
View User's Profile View All Posts By User U2U Member
fornic
Junior Member

Posts: 6
Registered: 7/8/2004
Member Is Offline
posted on 7/8/2004 at 10:03 AM Reply With Quote

Now its a different error: its stating:

Line: 125
Char: 7
Error: 'style' is null or not an object


What's happening...now i'm getting extrmely lost! hehe

Nick
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 7/8/2004 at 10:12 AM Reply With Quote

This may happen because script trying to open non-rendered items. I.e. if parent is never opened, and you try to call open method of its child an error occurs. You need to open all parents of the item or skip it utnil parent will be opened and then open the item.
View User's Profile View All Posts By User U2U Member
fornic
Junior Member

Posts: 6
Registered: 7/8/2004
Member Is Offline
posted on 7/8/2004 at 10:21 AM Reply With Quote

And how may solve this! i can't delve more into the code...not much time !

Thanks for your great help!

Nick
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 7/8/2004 at 10:27 AM Reply With Quote

PRO version of the Tigra Tree Menu could help to save your time and efforts.
View User's Profile View All Posts By User U2U Member
fornic
Junior Member

Posts: 6
Registered: 7/8/2004
Member Is Offline
posted on 7/8/2004 at 11:37 AM Reply With Quote

yes but my boss doesn't want to pay for scripts so!!!...well u get the point!

Thanks very much!
Nik
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos:
Frames targeting
Win help style
Free Download Free Download
Free Download Menu Builders
Online Builder
Product Documentation Documentation:
Documenation Page
Support Forum Technical Support
Support Forum
   

Go To Top


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