SourceTec Software

It is currently Mon Apr 21, 2014 7:21 pm

All times are UTC + 8 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Mar 16, 2012 10:59 pm 

Joined: Fri Mar 16, 2012 10:35 pm
Posts: 1

I'm using DHTML menu for 3 years now, and i can say that i know the library very well, (write code dynamically to build the menu, etc...)
My concern is that i need to refresh a context menu (with html menu items only) settled as a custom menu (i need to call it at a specified location on the page and not from anywhere on the screen) without reload the page, because in this application at this place (where i need to refresh) i really can't loose my application context (mainly ajax application).
But as prefixes (using DB,sessionStorage,Ajax, ...) are taken into consideration only at page reload, and as the associated html DOM menu items can't be accessed from outside the menu, i really need to find a way to update my context menu (in/through js) without reloading the page such like with a, and help from support will be really appreciated. I can provide my DHTML menu licence info if requested.

Hope to hear from you soon

PostPosted: Sat Mar 17, 2012 4:59 am 
User avatar

Joined: Mon May 10, 2004 3:53 am
Posts: 1752
Location: Rescue, CA, USA
You might be able to do that using the jQuery framework. If you're using PHP try the following:

<div id="menu">
  <!-- menu data here -->

It should be refreshed with the following code:

$("#menu").load("index.php #menu");

That should load the contents of #menu from index again without refreshing the entire page. Also, you should be able to automate it to refresh every 30 seconds using setInterval();

  $("#menu").load("index.php #menu");
}, 30000);

You should also ask advice from Sothink at For future refertence please post to this thread and let us know what works, if anything.


Unofficial DHTML Menu Resource Site

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 8 hours

Who is online

Users browsing this forum: No registered users and 8 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group