Page 1 of 1

[solved] Dynamic HTML update with mootools

PostPosted: Fri Aug 21, 2009 11:49 pm
by shakura
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.

Re: Dynamic HTML update with mootools

PostPosted: Sat Aug 22, 2009 12:02 am
by daKmoR

Re: Dynamic HTML update with mootools

PostPosted: Sat Aug 22, 2009 1:42 pm
by shakura
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

Re: Dynamic HTML update with mootools

PostPosted: Sat Aug 22, 2009 11:32 pm
by shakura
Thank you very very much daKmoR you were absolutely spot on!

Re: Dynamic HTML update with mootools

PostPosted: Sat Aug 22, 2009 11:48 pm
by daKmoR
glad I could help :)