Subj : Re: recursion errors To : echicken From : Rastus Date : Sun Dec 29 2013 12:03 pm echicken wrote: > Re: recursion errors > By: Rastus to DOVE-Net.Synchronet_JavaScript on Sat Dec 28 2013 20:25:16 > > Ra> I have a several JavaScript menus that are two levels deep. They > work Ra> fine when calling an external program, but I get a recursion > error when Ra> calling a JavaScript program such as a JavaScript external > message editor Ra> or yet another JavaScript menu. > > Ra> Is there a way to circumvent this error other than the obvious choice > of Ra> limiting the depth of the menus to one level? > > Can you put the code somewhere so we can look at it? Is there an exact > error message that you can provide, or is it just "Recursion error"? I am using Eric Oulashin's BRE/Lord Menu's. I used the example provided to create a hierarchal menu for BRE. I placed the url of the archive below. I ran into trouble when I added a Message Base to a menu.. I also use Eric's SlyEdit as my editor of choice. Calling the editor from 2 layers deep creates the following error: ----- !JavaScript /sbbs/exec/L169_Menu.js line 206: too much recursion !JavaScript /sbbs/exec/SlyEdit.js line 1: unknown (can't convert to string) !ERROR compiling /sbbs/exec/SlyEdit.js ------ The editor is not in question, calling any JavaScript file from 2 layers deep creates the same type of error message. However there is no problem calling JS files from The first layer of a such a JS menu. I am quite fond of Eric's Menus. It makes adding new games a breeze, far easier than trying to do Lightbars with Baja, and it looks great too! I included the link because there are a couple of JS Scripts including DDlightBarMenu.js. The Archive can be found here: ftp://www.digitaldistortionbbs.com/bbs/SYNC_JS/lbBRELRD.zip Nicholas Loch | SysOp: Electronic Warfare BBS Play Barren Realms Elite, Falcon's Eye, & More! http://www.ewbbs.net | telnet://bbs.ewbbs.net --- þ Synchronet þ Electronic Warfare BBS | telnet://ewbbs.synchro.net .