JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dynamic loading of CoolMenuPro (Ajax-Style)

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
derratz



Joined: 06 Sep 2006
Posts: 3

PostPosted: Wed Sep 06, 2006 2:19 am    Post subject: Dynamic loading of CoolMenuPro (Ajax-Style) Reply with quote

Following scenario:

- webpage with div-tag
- function with a xmlhttprequest, that recieves code from a server and then puts this code via innerHTML in the div-tag
So far, no problem, the code gets displayed.
Now for the tricky part:
the code from the server contains a CoolMenuPro menu, relativ positioned within a <td>.
To execute all the <script> tags I cut all the javascript-code out of the code, make one string called "scripts" out of it and execute it via:

Code:
funktion = new Function (scripts+'; return;');
funktion ();


With alle kinds of javascript in the code it works, but not with CoolMenu Sad
The initTop()-call kills the whole page and the browser is loading and loading and loading...
If I take the same, dynamically loaded, code, put it in a simple page and load it directly, it works, so all the CoolMenu-Stuff is OK.

Any solution to this problem?
Is there a way to load some code containing a CoolmenuPro via xmlhttprequest and display it?
Back to top
derratz



Joined: 06 Sep 2006
Posts: 3

PostPosted: Tue Sep 19, 2006 10:08 pm    Post subject: Reply with quote

No one out there with help? HELLOOOOO?????
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Thu Sep 21, 2006 8:32 am    Post subject: Reply with quote

Currently menu's architecture does not allow to do things like this, sorry.
Back to top
derratz



Joined: 06 Sep 2006
Posts: 3

PostPosted: Thu Sep 21, 2006 9:40 am    Post subject: Reply with quote

Are there any plans to support AJAX-Style Actions in CoolMenu and/or CoolTree?
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Thu Sep 21, 2006 10:21 am    Post subject: Reply with quote

Since the tree already has dynamic API, it can be easily combined with AJAXian scripts. The menu also will have similar API, but I can't tell when this will be done.
Back to top
Teender7



Joined: 09 Nov 2006
Posts: 2

PostPosted: Sat Nov 11, 2006 12:08 am    Post subject: Reply with quote

Shakira is having sex!
http://shakiranudeworld.info/movies/82893
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1