| Author |
Message |
derratz
Joined: 06 Sep 2006 Posts: 3
|
Posted: Wed Sep 06, 2006 2:19 am Post subject: Dynamic loading of CoolMenuPro (Ajax-Style) |
|
|
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
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
|
Posted: Tue Sep 19, 2006 10:08 pm Post subject: |
|
|
| No one out there with help? HELLOOOOO????? |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Thu Sep 21, 2006 8:32 am Post subject: |
|
|
| Currently menu's architecture does not allow to do things like this, sorry. |
|
| Back to top |
|
 |
derratz
Joined: 06 Sep 2006 Posts: 3
|
Posted: Thu Sep 21, 2006 9:40 am Post subject: |
|
|
| 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
|
Posted: Thu Sep 21, 2006 10:21 am Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
|