Topolegion
11-07-2008, 04:53 PM
Hello.
I am a little new to JS and I was wondering if any of you might push me in the right direction with installing GreyBox on my website.
GreyBox (here: http://orangoo.com/labs/GreyBox/) is used as a nifty little pop-up that can show external/internal pages, images, movies, etc. (examples: http://orangoo.com/labs/greybox/examples.html)
In my website, I only want to use it to show external pages (like google.com).
I've read it's documentation (here: http://orangoo.com/labs/GreyBox/Documentation/ ) and so far I understand that to use it, I need to install some javascript on my server and call it from the <head> of my html pages.
That's fine.
I THINK I've installed in properly, but when I call in on my HTML pages it doesn't work.
To install it, I downloaded the files to my computer and then, using an FTP, I uploaded them into my website.
(Below is a picture of my website's file manager. The GreyBox folder was uploaded properly).
http://img116.imageshack.us/img116/3148/newimagenw0.png
The installation procedure (as found here: http://orangoo.com/labs/greybox/installation.html) tells me to append this code in the <header> ...</header> tags:
<script type="text/javascript">
var GB_ROOT_DIR = "http://mydomain.com/greybox/";
</script>
as well as this code:
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" />
And of course I changed the greybox/AJS.js, etc to their proper location of http://mydomain.com/greybox/AJS.js and so on.
So any ideas?
Have I taken a completely erroneous approach to installing GreyBox?
Is there something more fundamental which had to get done?
Is installing GreyBox more difficult than what I expect and should I just give up on it?
Thank you for your help.
I am a little new to JS and I was wondering if any of you might push me in the right direction with installing GreyBox on my website.
GreyBox (here: http://orangoo.com/labs/GreyBox/) is used as a nifty little pop-up that can show external/internal pages, images, movies, etc. (examples: http://orangoo.com/labs/greybox/examples.html)
In my website, I only want to use it to show external pages (like google.com).
I've read it's documentation (here: http://orangoo.com/labs/GreyBox/Documentation/ ) and so far I understand that to use it, I need to install some javascript on my server and call it from the <head> of my html pages.
That's fine.
I THINK I've installed in properly, but when I call in on my HTML pages it doesn't work.
To install it, I downloaded the files to my computer and then, using an FTP, I uploaded them into my website.
(Below is a picture of my website's file manager. The GreyBox folder was uploaded properly).
http://img116.imageshack.us/img116/3148/newimagenw0.png
The installation procedure (as found here: http://orangoo.com/labs/greybox/installation.html) tells me to append this code in the <header> ...</header> tags:
<script type="text/javascript">
var GB_ROOT_DIR = "http://mydomain.com/greybox/";
</script>
as well as this code:
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" />
And of course I changed the greybox/AJS.js, etc to their proper location of http://mydomain.com/greybox/AJS.js and so on.
So any ideas?
Have I taken a completely erroneous approach to installing GreyBox?
Is there something more fundamental which had to get done?
Is installing GreyBox more difficult than what I expect and should I just give up on it?
Thank you for your help.