Simple JavaScript not working, no errors...
Posted: Mon Oct 29, 2007 5:35 pm
I'm trying to construct a URL to dynamically handle loading AJAX includes for different galleries on my site. The script loads a set of thumbnails (32 thumbnails per set) in to an element with an ID.
The script is triggered via XHTML as so...
So I'm trying to create a string of...
templates/cowboybebop/session01/thumbs-02.tpl
...for the AJAX script to load.
Here is my general attempt (and I've gone through numerous variations to get this to work correctly)...
Once I get that working I'll attempt to remove the need for multiple functions (01~10 with this once I get it to work). But I just want to get this part to work right now. Thanks!
PS - Is it just me or has the site been a little slow today?
The script is triggered via XHTML as so...
Code: Select all
<a href="javascript:thumbs02('cowboybebop/session01');">next thumbnail set</a>templates/cowboybebop/session01/thumbs-02.tpl
...for the AJAX script to load.
Here is my general attempt (and I've gone through numerous variations to get this to work correctly)...
Code: Select all
function thumbs02(url) {
myvar = [url];
ajaxpage('templates/' + myvar + 'thumbs-02.tpl', 'galleryajax');
}PS - Is it just me or has the site been a little slow today?