Print is not working in orgchart - orgchart

I am currently using getorgchart plugin. When ı want to print the chart , ıt opens a blank page.
$("#people").getOrgChart("print");

You need to put the target document element (in your case people) inside something else. For example, nest it inside another div.
Example:
<div id="container">
<div id="people"></div>
</div>
Fiddle

Related

linking to another part of the same page

I've been looking around online for a solution but the methods I've found don't work. The methods online tell me to do this
Make a div with a class and ID
I make one like this
<div class="paragraphBackground" id="paragraphBackground">
<p class="paragraphContent">content of paragraph</p></div>
then it says to make a link like o have below.
Goto paragraph
But when I click on the goto paragraph it doesn't do anything.
What I'm wanting to use this for is a html readme for a mod that contains a sidebar on the left that shows all the contents of the readme and when you click on one of the links it will jump you to that section in that same HTML file.
Are you looking for something like this?
http://jsfiddle.net/huntmg90/
Basically you set a <a name="identityofanchor" /> in front of your text you want linked, then to link to it you do a label of anchor
Just use the following for the link: <a href="#readme">.
For the part that you want to scroll to, use this: <div id="readme">Read me!</div>
JSFIDDLE HERE.
Your link will need to look something like this:
Paragraph 1
And the corresponding content needs to have:
<a name="paragraph1">Paragraph 1</a>
Here's a Fiddle to help: http://jsfiddle.net/m0nk3y/9mx5yx7d/

(HTML) Have button open up another html page within the page

I am a newbie to html and css so sorry if this sounds dumb.
How do I create a clickable area that contains two images, text, and whitespace that when clicked, opens ANOTHER html file within the page?
So far I got an html file to appear inside an html file like this:
<object data=EXAMPLE.html width=100% height=100% /> Error </object>
But the problem with that is that you must scroll within the content box to view it, and I would prefer if it expanded the content box indefinitely downward based on how big the html file was.
As #Jarred Farrish pointed out: Regular frames do what you describe. You don't need object elements.
I believe this question becomes a duplicate of this question.
You can make a "button" by creating a div, placing the other elements within the div, and setting an onclick handler on the div itself. You are free to have as much "empty" space, because the emptiness is really the div.
<div class=my_button onclick=my_button_press();>
<img src="..."></img>
<img src="..."></img>
<span class=my_text>My text here</span>
</div>
<iframe id=my_frame></iframe>
<script>
function my_button_press() {
document.getElementById('my_iframe').src = "...";
}
</script>
Check this example http://jsfiddle.net/b6sdunqj/1/.
You'd want to combine the instruction in the question referenced above with my_button_press() to complete everything.

How to open html page directly to div id location?

I am using tables to open 3 websites on one page - works fine.
I would like those pages to jump into a specific location when loaded but it does not seems to work.
I tried jumping to the div id location using:
https://example.com/home.html#div id
sometimes it works and sometimes not... what am I missing? Is this the best way to do it?
Please advice,
You need to add an tag as the first element in that div. And then navigating to https://example.com/home.html#blah will bring you there
Do something like this:
http://jsfiddle.net/w9sNc/6/
go to second div
<div id="first"></div>
<div id="second">
<a name="blah"></a>
</div>

Expression Engine tags causing DIV to disappear!? How can I solve this?

I am using Expression Engine to develop a site. I have created the page I want in a template file and now I am making use of EE's tags to make the content dynamic.
{exp:channel:entries channel="test123"}
{test123}
<div class="panel" style="margin-bottom:10px;">
<div class="paneldiv" style="background-color: red;">
hello there
</div>
</div>
{/test123}
{/exp:channel:entries}
The above code makes my DIV disappear. But if I remove the tags, the DIV shows up.
Its also worth noting that when the tags are in and I click "view rendered template" the DIV shows up.
Very strange! I've been bashing my head all day!
I believe you are using the {test123} tag incorrectly. First, I'm assuming that {test123} refers to a Channel Field within the 'test123' Channel. If so, then you simply need to remove the {/test123} ending tag, as data field tags are usually single-variable tags.
The reason your div content is disappearing is that EE is failing to process {test123} as a variable pair, and therefore it doesn't show the content within.

How to remove surrounding tags in IntelliJ IDEA

In IDEA I can select a block of html and press ctrl+alt+t to surround that with a tag. I am trying to find the option/keymapping to do the opposite... I want to select a block of html and remove the outermost surrounding tag. Here's an example:
<div id="one">
<div id="two">Hello</div>
</div>
If I select the #one div in the editor I should be able to have it removed, leaving only this:
<div id="two">Hello</div>
Any way to have IDEA do this for me?
Code | Unwrap/Remove... Ctrl+Shift+Delete
(Cmd+Shift+fn+Backspace on Mac)
Take a look at "XML Refactorings" > "Unwrap Tag..." in context menu. This functionality is provided by Refactor-X plugin.