Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger
  • Frits Walraven

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

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.
I don't like that guy. The tiny ad agrees with me.
Two software engineers solve most of the world's problems in one K&R sized book
    Bookmark Topic Watch Topic
  • New Topic