This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jquery code doesn't work and gets omitted into popover.  RSS feed

Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

I am trying to extract a .html.haml file into a popover. The file that I trying to include is having some internal javascript (jquery). If i omit the javascript then the popover works fine but If i include it then the jquery code is omitted instead of html. I tried putting jquery code at the bottom of the haml file but then html shows fine but jquerry code doesn't work- Is this because of same-origin policy? . For popover i used this in js
and the below code in haml

The a.html.haml file is something like-

The result of popover is that it have all the text of javascript filter.

I know this is a haml question but please help , I am stuck and I have to use jquery code.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!