Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6705347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:23:36+00:00 2026-05-26T07:23:36+00:00

I have an org chart using slickmap.css which I modified with toggle show/hide. It’s

  • 0

I have an org chart using slickmap.css which I modified with toggle show/hide. It’s all working fine but now I need to add a modal dialog window on click and display info form the a tag.

I managed to do this but had to add a return false to prevent the toggle close action from happening. Now when I display the info it completely removes the a tag from the page. I think when I add html(this), it ignores the return false at the end.

Please can anyone help me make these two functions work together.

Here is the code I am using to call the modal-dialog, sorry I havent posted a fiddle but I think this is where the problem lies

$('#samplelink').click(function(){
  $('#modal_window').dialog('open').html(this);
  return false;
}); //end click handler
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:23:37+00:00Added an answer on May 26, 2026 at 7:23 am

    You cannot pass this to the html() method.

    Since that code lies inside an event handler, this will be the DOM element handling the event (click in our case). html() can only take a string or a function argument.

    If your goal is to fill the dialog with the contents of #samplelink, you should call html() on the current element without arguments, then call html() on the dialog with the resulting string:

    $("#samplelink").click(function() {
        $("#modal_window").dialog("open").html($(this).html());
        return false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have modified my treeview to look like an Org chart using the example
i am using google org chart visualization API and i want to have the
I have been using com.sun.org.apache.xpath.internal.XPathAPI for some time and it seems to work ok.
I have been looking at LESS ( http://lesscss.org/ ) which adds variables and macro
I am using the scripts from here http://www.quirksmode.org/js/cookies.html and have successfully created a cookie..
I am a beginner at using openGL. I have used a program which I
Simple question, I think. I have org.springframework.scheduling.quartz.CronTriggerBean triggering one job once a day. Because
I have a org.w3c.dom.Node object. I would like to see if it has any
this is my situation: I have two org.w3c.dom.Document created from two xml files. What
I have added gemcutter.org to my Rubygems sources, and now I do not know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.