Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Zohr Ridhan
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!