[solved] Dynamic HTML update with mootools

here you will find only solved 1.1 Help topics

Moderator: 1.1 Moderators

[solved] Dynamic HTML update with mootools

Postby shakura on Fri Aug 21, 2009 11:49 pm

I seem to be the only one having this problem, or it might be that it is so obvious that no one else made the mistake I'm making.

In short, I'm using mootools 1.11 together with the noobslide script.

this bit of code is supposed to dynamically get image locations from the database, upon selecting a collection from the select box, and return the full HTML markup for the noobslide gallery.

  1. var url="index.php?option=com_mspg&format=raw&task=collectionSelected&collection="+this.getValue();
  2.         var a=new Ajax(url,{method:"get",update:$("gallery")}).request();


the problem seems to be that the DOM is never updated or something like that, as the noobslide gallery seems to loose it's handles instead of begin reloaded as I would expect from the domready event I have added.

I home some one will be able to help me get this working, I've been trying to figure this out for the better part of a week now, and the voices all agree that there should be a simple and probably obvious solution.

Thank you for your time.
shakura
 
Posts: 6
Joined: Fri Aug 21, 2009 11:35 pm

Re: Dynamic HTML update with mootools

Postby daKmoR on Sat Aug 22, 2009 12:02 am

"Speak when you are angry and you will make the best speech you will ever regret." - Ambrose Bierce
User avatar
daKmoR
Site Admin
 
Posts: 860
Joined: Mon Jul 14, 2008 11:40 am

Re: Dynamic HTML update with mootools

Postby shakura on Sat Aug 22, 2009 1:42 pm

it seems like the same problem. I'm going to try that approach, just hope I get the noobslide to reinitialize, I'm developing this on a local host so sadly I do not have webspace to demo with, will try to get it online.

Thank you for the response
shakura
 
Posts: 6
Joined: Fri Aug 21, 2009 11:35 pm

Re: Dynamic HTML update with mootools

Postby shakura on Sat Aug 22, 2009 11:32 pm

Thank you very very much daKmoR you were absolutely spot on!
shakura
 
Posts: 6
Joined: Fri Aug 21, 2009 11:35 pm

Re: Dynamic HTML update with mootools

Postby daKmoR on Sat Aug 22, 2009 11:48 pm

glad I could help :)
"Speak when you are angry and you will make the best speech you will ever regret." - Ambrose Bierce
User avatar
daKmoR
Site Admin
 
Posts: 860
Joined: Mon Jul 14, 2008 11:40 am


Return to Solutions

Who is online

Users browsing this forum: No registered users and 1 guest