View Full Version : Chromless Windows - Error Message


speed_ballerina
03-16-2003, 05:58 AM
I am having troble getting my Chromless Window up and running. I have followed Lissa's instructions very carefully, but when I open up my splash page in a browser, and click on the link to open up my window, i get a little error down the bottom.

When I try to follow the link in Frontpage, a popup tells me -

An error has occured in the script on this page
Line: 14
Char: 3
Error: Object Expected
Code: 0
URL: file://C:\WINDOWS\TEMP\FrontPageTempDir\pvw1.htm
Do you want to continue running scripts on this page?

Please Help. I need to get my page on the web quickly!

I have put this code into my splash page:

<a href="#" onclick="mywindow=openIT('index.html',400,200,null,null,'my windowname')">Open Chromeless</a>

And I have put this code in the page I want to pop up in the window. Its a frames page, so I put it into the big Frames Page HTML Document:

<script src="chromeless_35.js"></script>
<script language="javascript">
// CREDITS:
// Chromeless window script by Gabriel Suchowolski ( www.microbians.com )
// Distributed with permission by Lissa ( www.lissaexplains.com )
function openIT(u,W,H,X,Y,n,b,x,m,r) {
var cU ='close_up.gif'
var cO ='close_ovr.gif'
var cL ='clock.gif'
var mU ='min_up.gif'
var mO ='min_ovr.gif'
var xU ='max_up.gif'
var xO ='max_ovr.gif'
var rU ='res_up.gif'
var rO ='res_ovr.gif'
var tH ='<font face=verdana size=1> Window title</font>'
var tW =' window title'
var wB ='#9966ff'
var wBs ='#FFFFFF'
var wBG ='#ffe0ff'
var wBGs='#9966ff'
var wNS ='toolbar=0,location=0,directories=0,status=0,menu bar=0,scrollbars=0,resizable=0'
var fSO ='scrolling=no noresize'
var brd =b||0;
var max =x||false;
var min =m||false;
var res =r||true;
var tsz =20;
return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,
tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz)
}
</script>


And I have extracted all of the Zip file pictures, and the script file, into my webpage folder.

What Is going wrong?

epolady
03-16-2003, 06:42 AM
I didn't see any major errors, when you're pasting the code, try to remove any unnecessary space bar spaces. Then save.

Also, try not to use FP, FP tends to add extra coding that you want.

speed_ballerina
03-16-2003, 07:06 AM
Are you familiar with Front page?
My scripts are coming up in maroon, and I think they should be in blue and brown. Could this be the problem.

If not, what should I do. I can't stop using Frontpage now...

epolady
03-16-2003, 07:32 AM
I've used it in the past. I'm not real sure about the Syntax coloring. I'd say if you really have to FP (i.e. you purchased it or what not), try not to use it on this particular page. But personally, I think the major problem is unnecessary space bar hits. I copied your exact coding, removed the unnecessary hits and it worked.

speed_ballerina
03-17-2003, 08:42 AM
Thanks for everything, but none of the things that you have suggested have worked...

I entered the HTML using (Inset, Advanced, HTML) and removed all of the spaces. I tried it in notepad as well.

Nothing has worked.

Might it be because my site isnt actually up on the internet yet - im just trying to work it in netscape offline?

Any more suggestions would be greatly appreciated.

epolady
03-17-2003, 08:57 AM
Try using IE (that's what I'm using) or sign up with a free account with somehost (angelfire/geocities/tripod) and upload all of the files. I just tried again (removing spaces etc) and it worked on my IE.

speed_ballerina
03-17-2003, 08:59 AM
By IE, do you mean Internet Explorer?
Sorry if this is a silly question...

I dont really want to sign up with a free website host because of the ads and the inconvenience with frames and things.

epolady
03-17-2003, 09:05 AM
Yes, sorry for the confusion.

Well I only suggested the free server so you could just test the coding.

speed_ballerina
03-17-2003, 09:08 AM
Do you mean use IE to write my HTML?

I am using IE at the moment to check and view my site and all my hyperlinks.

Im not sure how to use it to write my HTML...

epolady
03-17-2003, 09:20 AM
You mentioned that you were using NS (netscape) to view the files and it wasn't working. I mentioned trying it with IE (since it worked with mine) offline and seeing if it made a difference.

speed_ballerina
03-17-2003, 09:26 AM
No, I never said I was using Netscape, sorry!

My friend is trying to help me as well, and nothing is working.

I think it might be my computer...
But it shouldnt be!

epolady
03-17-2003, 09:36 AM
Okay, is it not popping anything at all? I'm not sure what to suggest. It's working fine on my computer offline. =\

speed_ballerina
03-17-2003, 09:38 AM
Oh well...
Thank you for all your help!

Im heading off now...
:)