[solved] Dynamic HTML update with mootools
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.
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.
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.
- var url="index.php?option=com_mspg&format=raw&task=collectionSelected&collection="+this.getValue();
- 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.