Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Lightbox is not working in Vanilla

public function Base_Render_Before(&$Sender) { $Sender->AddJsFile($this->GetResource("js/jquery.lightbox-0.5.js", FALSE, FALSE)); $Sender->AddCssFile($this->GetResource("css/jquery.lightbox-0.5.css", FALSE, FALSE)); $Sender->Head->AddString('<script type="text/javascript"> $(function() { // $("a").click(function() { alert("hi"); } ); $("div.Message a").lightBox(); // Select all links in the page }); </script>'); }

I am using Lightbox Jquery from http://leandrovieira.com/projects/jquery/lightbox/

When i Click on image inside the
, nothing happen. The image is
<a href="image1.jpg"><img src="image1.jpg" /> </a>

even i use a simple $("a").click(function() {alert("hi"); } ); nothing happens also. But when i Click on Links outside the "Message" class div, the alert box pop up.

Is javascript disabled inside "message" class div???

Comments

  • Options
    I have got a feeling that this HtmLawed is preventing the execution of any jquery or javascript in ".Message" div.

    Anyway to enable lightbox for HtmLawed while not compromising the security?
Sign In or Register to comment.