posted 7 years ago
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.