• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic