JavaScript TinyBox

Hi,
I am trying to use a solution for a question I submited to the experts.
The solution that I received from " remorina : is TinyBox
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/HTML/Q_25761272.html
http://www.leigeber.com/2009/05/javascript-popup-box/

But now that I am trying to use it in my code it doesn't work.
I just see the Horizontal scrollbar for 3 seconds.
See the attached code.
I put a breakpoing before the line (TINY.box.show) and with the debugger I saw that it enters the function, but I cannot understand how it should work and what goes wrong.

function onHelp()
{
 TINY.box.show('advanced.html',1,300,150,1,3);
}

Open in new window

VapiSoftAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hieloCommented:
>>I just see the Horizontal scrollbar for 3 seconds.

From the "manual" page:
...The TINY.box.show function takes 6 parameters:
1. the HTML content for the box or the relative path to the AJAX source,
2. a toggle (true/false or 1/0) if the content is via AJAX,
3. the width of the window (use 0 for auto),
4. the height of the window (use 0 for auto),
5. a toggle (true/false or 1/0) to animate the window, and
6. the time in seconds to wait before auto hiding the popup (optional).

So there, Item 6 is the reason for those 3 seconds.

Also, advanced.html must be in YOUR server. It does not load a page from an remote site.

Lastly, you also need the following CSS in the head of your page:
<style type="text/css">
#tinybox {position:absolute; display:none; padding:10px; background:#fff url(http://sandbox.leigeber.com/tinybox/images/preload.gif) no-repeat 50% 50%; border:10px solid #e3e3e3; z-index:2000}
#tinymask {position:absolute; display:none; top:0; left:0; height:100%; width:100%; background:#000; z-index:1500}
#tinycontent {background:#fff}
</style>

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
VapiSoftAuthor Commented:
Thank you very much.
0
VapiSoftAuthor Commented:
I am trying to change the fonts in the Style.css but it does not affects the outcome. Why?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.