Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

passing variables though jquery....


Go to End


2 Posts   1869 Views

Avatar
JPG

Community Member, 53 Posts

24 March 2011 at 9:25pm

Hi - I was wondering if anyone could help me with something... Basically I want to use gallery type thing that I downloaded that produces a fullscreen slideshow on the fly, the issue is that the images are created/input in the jquery code and I cannot work out how to pass them in my page controller... I understand how to produce the controller pages etc but cannot workout how the SS tags could be input (if possible) to the js pages.

Is this something that anyone can help with???

Many thanks

Avatar
Ryan M.

Community Member, 309 Posts

25 March 2011 at 1:06pm

http://doc.silverstripe.org/sapphire/en/topics/javascript

You could use Requirements::customScript() to print your jquery code using data obtained through the controller.