Website question...

Posted on

ILLbino - one of WA's finest
Member Since: Feb 10, 2004

I'm in the middle of designing my new site. I want to have a link that opens a new page in a new window. Problem is: I can't figure out how to adjust it so the pop up window is a fixed size. I'm using frontpage 2003. Any suggestions?

[ Back to Top ]


Administrator
Since: Apr 03, 2002


Jul 24, 2004 06:02 am

First, dump FrontPage, it'll do nothing but frustrate you as your skills progress. Plus if they are not hosted on Windows servers it doesn't work as well.

That said, you use the window.open Javascript to control the size:

<a href="whatever.html" onclick="window.open('whatever.html','windowname','width=500, height=300, resize=no, scrollbars=yes, toolbar=no, location=no, status=yes, menubar=no');">

I just added all those other parameters to show you what else is available, the exact wording of them might be off, as I don't use this that often, but it's close.

Hello!
Member
Since: Jan 12, 2004


Jul 24, 2004 06:44 am

You can also use the following:

<a href="a.html" target="_blank">

This will work if the user has Javascript disabled. Some do - most dont - just anotehr way to do it. You have less control tho as DB's method lets you specify size etc.

Good luck


Coco.

Administrator
Since: Apr 03, 2002


Jul 24, 2004 08:57 am

depending what standard you want to validate as, target is no longer supported in XHTML 1.1...but then Front Page code could never validate to that.

ILLbino - one of WA's finest
Member
Since: Feb 10, 2004


Jul 24, 2004 02:36 pm

I tried using the java code and came up with a problem. I'm using an I-frame (think thats what their called), and the link I want to use is in the I-frame. I could get it to open a new window with the specific size, but it also changed the content of the I-frame to the pop up window content as well. What am I doing wrong?

Hello!
Member
Since: Jan 12, 2004


Jul 24, 2004 03:31 pm

Ah..DB - I did not know that!! So - thanks!! I have hundreds of pages coded like this which is a nice thing to know :-( !!

Anyways..Illb, an Iframe opens a window within a window - not a new frame as such as you are looking for.

I think you should hunt oot the root of the javascript problem as this will defo be the way to go. Is this enabled within your browser??

Check that first...

Coco.

Administrator
Since: Apr 03, 2002


Jul 24, 2004 05:13 pm

AH, my bad, you need a "return false;" after the Javascript:

<a href="whatever.html" onclick="window.open('whatever.html','windowname','width=500, height=300, resize=no, scrollbars=yes, toolbar=no, location=no, status=yes, menubar=no'); return false;">

That is so it won't execute the javascript and go back to the HREF as well.

ILLbino - one of WA's finest
Member
Since: Feb 10, 2004


Jul 27, 2004 05:33 pm

Thanks for the code, it worked! Tell me what you think so far of the site.

www.RedAlertRecords.com

I still have to edit the keywords, page descriptions etc., but I wanted to get the design built first. I still need something to fill the gap on the left. I'll probably have a .gif file or something similar so I can have some animation to grab the viewer's eyes.

Hello!
Member
Since: Jan 12, 2004


Jul 27, 2004 05:36 pm

Looking very nice indeed Illbizzel..

One thing..take your email address RIGHT OFF yer site ASAP or you will be spammed and spammed and spammed til you cannot take no more!

Use something like "CLICK HERE TO EMAIL ME" or something similar. Do NOT use the address otherwise the vicious little gits that are spambots will have yer inbox full of offers for every piece of trash under the sun within days!

Good job tho..lookin good.

Coco.

ILLbino - one of WA's finest
Member
Since: Feb 10, 2004


Jul 27, 2004 06:44 pm

k, i changed it. I know hiding the email address won't rid the spam completely and that I need to use protected form mails, but I'm on a new hosting company and am still figuring out how to do so.

P.S. I put a link to homerecordingconnection.com. Figured it needed the recognition as its helped me quite a bit.

Administrator
Since: Apr 03, 2002


Jul 27, 2004 06:58 pm

Well, for starters, I gotta say thanks for the prominent link :-)

I have never been a big fan of frame or iframes, but I know you feel differently, which is cool, but it makes it VERY difficult for search engines to index you properly.

I like the header image, very sharp, you would do well to use the alt param of the image tag effectively with some keyword-laden mission statement or something because outside of what is in the iframe, there is really nothing much for a search engine to read, and the meta description and title don't have a lot either. Putting the same keyword-leden statement in your browser titlebar and meta description would help as well given the limited text available outside of the iframe.

The code seems to be clean and valid and the navigationis simple and effective.

It appears you are hosted at HostPC (good choice, Joe and Nick rock), that means you have PHP and MySQL databases available. I have a free script you can use that only requires PHP and is pretty simple to install that hides your email address VERY effectively and it has even been recommended by HostPC, Dixie Systems, HTML Junction and most notably SpyWareInfo.com.

If you are interested you can get it at scripts.dbmasters.net/index.php?id=39 and I have support forums there if the install gives you trouble.

Conclusion: I like the appearance, it looks very sharp and cool, ya just need to ramp up the search engine optimization so peeps can find it.

ILLbino - one of WA's finest
Member
Since: Feb 10, 2004


Jul 28, 2004 03:52 am

I got the formmailer working correctly. Only thing I don't like is the white screen with plain text after an email has been sent. Is there an easy way to create a redirect page? If not that, is there an easy way to keep the blue background, use white colored arial narrow text that is centered? So in other words, have it have the same layout as the other pages. The one I used before worked where it'd redirect to a different page that I could easily edit.

Administrator
Since: Apr 03, 2002


Jul 28, 2004 04:40 am

You can easily add a redirect with the error_page and thanks_page variables or add header and footer includes to hold the sites style.

By the way, that narrow text is veryhard to read for those of us with bad eyes, being so small and so narrow, then being light text on a dark background is a recipe for sore eyes.

Member
Since: Jan 08, 2003


Jul 28, 2004 03:28 pm

So you know dB, front page extensions can, and do run on non-windows machines/servers, the only determining factor is that they must be run on IP based accounts, not 'virtual hosting' or 'name based' hosting.

Not advocating them however...

W.

Administrator
Since: Apr 03, 2002


Jul 28, 2004 03:31 pm

Yes, I know there are Unix/Linux ports for FP extensions, but even the best extension hacks for Unix/Linux still don't perform fully like on Windows servers. I have played with Chilisoft and such, and some thing just never worked like on Windows servers. It's been a year or two since I have done it, so they may have improved, but if you insist on using FrontPage, which I don't advocate either, you are best served using a Windows server. it's been long enough where don't recall exactly which functions didn't cut it, but there were a few...

Czar of Midi
Administrator
Since: Apr 04, 2002


Jul 28, 2004 09:21 pm

ILLbizzel, you should change the URL listed in your profile and such to your new home page cause it is still going to your old hosting pages advert.

Related Forum Topics:



If you would like to participate in the forum discussions, feel free to register for your free membership.