periodical update

a place to get help

Moderator: 1.1 Moderators

periodical update

Postby soddengecko on Fri Oct 03, 2008 4:53 am

Hi all

I have searched for this for days on end. I am looking for a periodical updater for mootools 1.1. all i can find is info for mootools 1.2. does anyone know of anything i can use?

TIA
Mark
soddengecko
 
Posts: 6
Joined: Fri Oct 03, 2008 4:08 am

Re: periodical update

Postby blindMoe on Fri Oct 03, 2008 6:22 am

not quite sure what you mean by "periodical updater", mind clarifying? 1.11 does allow the use of .periodical(duration);
blindMoe
 
Posts: 12
Joined: Sun Sep 28, 2008 10:06 pm

Re: periodical update

Postby soddengecko on Fri Oct 03, 2008 6:57 am

apologies

i need the contents of a div to refresh at a set interval or to update after a form has been submitted.

i have tried one periodical script and once the div is refreshed (every 4 seconds) the dynamic mootools accordion within that div expands completely as if the javascript controlling the accordion had not been loaded at all
soddengecko
 
Posts: 6
Joined: Fri Oct 03, 2008 4:08 am

Re: periodical update

Postby blindMoe on Sat Oct 04, 2008 7:11 pm

When you mean the 'div refresh' what is it refreshing to show? Something a user typed into a textarea or is it using an ajax call to pull data? Do you have an example for me to look it? Need more info... but from what I am hearing it sounds like you simply need to look into .periodical()
blindMoe
 
Posts: 12
Joined: Sun Sep 28, 2008 10:06 pm

Re: periodical update

Postby soddengecko on Sat Oct 04, 2008 11:24 pm

Hi Moe

The data in the div will be dynamically generated from a database with php and wrapped in JS to make an accordion effect (this is already complete). I have 4 such divs on the main page. One div contains links, another has todo's and so on. My aim is to have these divs refresh either periodically or when the form data has been submitted so that new contents show up immediately without having to refresh the entire page.

i tried an onsubmit script that updated the container div with my data but the accordion menu was fully expanded as if the JS for it had not been loaded into the page at all. a full site refresh and it is back to normal. I am not sure why this is happening.

I don't have an online example to show you, but I can provide you with the files and a copy of the mysql db for you to take a look at if you are interested

thanks for your patience on this,

Mark
soddengecko
 
Posts: 6
Joined: Fri Oct 03, 2008 4:08 am


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest