Hi,
Is it possible to call a snippet from a JS file.
For example:
$('.mainarea').append('[[!Gallery? &album=`Ariana` &autoStart=`0` &plugin=`galleriffic` &numThumbs=`100` &prevLinkText=`<` &nextLinkText=`>` &enableHistory=`1` &imageWidth=`700` &imageHeight=`600` &navigationWidth=`0px` &renderNavControls=`1` &captionContainerSel=`0` &renderSSControls=`0` &enableTopPager=`1` &enableBottomPager=`0` &defaultTransitionDuration=`700` &delay=`1000` ]]');
If I do this, it just prints out the above into the div, but doesn't run it.
I need to pretty much load the snipprt from the JS file in a specific div.
Another way I tried was creating a resource page, adding the snippet call without any headers/template using jquery load into the div. It grabs the html, but since I have no headers, it wont create the plugins i need (js & css files).
$('.mainarea').load("portfolio2.html?galAlbum="+hasID);
In another words, loading a snippet from a js file using jquer ajax/load.
help?
10x
[ed. note: meytal1 last edited this post 14 years, 9 months ago.]