Topic: Is there a way to..... (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=28030" title="Pages that link to Topic: Is there a way to..... (Page 1 of 1)" rel="nofollow" >Topic: Is there a way to..... <span class="small">(Page 1 of 1)</span>\

 
AT
Bipolar (III) Inmate

From: Gainesboro, TN, USA
Insane since: Aug 2000

IP logged posted posted 06-03-2006 19:45 Edit Quote

I have a site, a page has results from a DB.
The page that has the results has a checkbox for each entry.

This is what I want it to do.

There are 10 entries on the page, when a checkbox is checked then that entry folds up using AJAX.
Rather than be left with the last 9, I would like the bottom of the list to populate with another row from the DB also using AJAX that way I can prevent the page refreshes.

Now, if they don't want to click on the checkboxes on the front page, they would also have pagination available. So if they do the above on the second page it'll work the same way. So an entry is taken from the third page to fill the void on the second...

Man, I wonder if this is possible...

Thanks

Casey / AT
Personal
Song Lyrics
Family Recipes

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 06-03-2006 21:49 Edit Quote

sure thing... a tad bit complicated, but workable.

I'd suggest you always load more htan 10, so that the first few clicks are 'instantanious',
and I'd also do the pagination that way... meaning if the user clicks page 2, you load the next ten, and replace the array
(or hide the first one (always changing) 10 times... )

so long,
TP


Ps: I'd give the dojo toolkit a try for this. I haven't worked with it yet, but I've toyed around with it and meddled with it's code - it seems solid.

(Edited by Tyberius Prime on 06-03-2006 21:56)

AT
Bipolar (III) Inmate

From: Gainesboro, TN, USA
Insane since: Aug 2000

IP logged posted posted 06-04-2006 21:24 Edit Quote

Thanks TP, I'll have to give this some more thought as I'm very new to AJAX

Thanks again,

Casey / AT
Personal
Song Lyrics
Family Recipes



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu