Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2
votes
3answers
23k views

Can I set a JS variable to a Twig output tag?

This came out of a previous question I need to set a variable of a tag group that I can reference in jquery for use with a plugin. I'm declaring this variable in a tag so my included js files can ...
0
votes
1answer
1k views

Javascript loads before iframes

I have a couple of youtube iframes loaded into a channel entry. I also have a script running that resizes those iframes. It appears the script fires on window load but it appears that it fires before ...
0
votes
1answer
137 views

Date picker broken? [closed]

I just tried adding a date field to the bone stock Craft news template to try out the Live Preview and I'm getting a jQuery error: TypeError: undefined is not an object (evaluating 'a.currentDay=e("...
1
vote
1answer
615 views

How reference “Craft” js object in jquery scope

I have this function within my <script> tags: $('.btn').click(function() { var data = { title: "This is a title" }; Craft.postActionRequest('plugin/controller/action', data,...