HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
pop up windows for a FrontPage website
Goto page Previous  1, 2, 3, 4  Next
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML
View previous topic :: View next topic  
Author Message
ambreeze



Joined: 19 Jun 2004
Posts: 19

PostPosted: Sun Jun 20, 2004 3:13 pm     pop up windows for a FrontPage website Reply with quote

I think that the microsoft frontPage server might be what it's defaulting to... I give up. I think that if I put this damn thing up on the web and do all of my editing there it would work, but that's not exactly practical is it.

Something is very wrong here and I can't figure it out...

Thanks for all of the help though. Maybe frontpage doesn't like popups...

T.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8749
Location: Castle Pines North, CO USA

PostPosted: Sun Jun 20, 2004 3:33 pm     Reply with quote

Well not via FP "browser". Plus FP might be converting your code some as well depending on what version.
mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Sun Jun 20, 2004 3:41 pm     Reply with quote

Go to -

http://www.indigostar.com/indigoperl.htm
Download thier Apache server package an set it up. Its precompiled to run Perl and PHP. Follow the installation instructions to the letter. It is a few keystrokes to set up and you will have a server that will run just about anything you throw at it. It will save you trying to edit your pages on a remote server.[/url]
ambreeze



Joined: 19 Jun 2004
Posts: 19

PostPosted: Sun Jun 20, 2004 4:05 pm     pop up windows for a FrontPage website Reply with quote

OK, I'll try the Apache server... I HATE giving up! I do think it's a Frontpage issue or an address problem. Anyway, I'll go try the apache installation. Thanks.

maybe my computer hates me because I let my 16 year old son use it and now it feels 'so abused' Rolling Eyes
ambreeze



Joined: 19 Jun 2004
Posts: 19

PostPosted: Sun Jun 20, 2004 4:48 pm     pop up windows for a FrontPage website Reply with quote

OK..............
Now we're starting to get somewhere! I downloaded and installed the Apache Server. I tried the wizard and didn't have much luck, BUT, the free software DID work - mostly anyway.

I used it as directed and the 'sample' or preview of the pop-up that I want to make came up!!!!

I copied the first group of code into the <head> part of the index page which is where I want to launch the pop-up from.

Am I right in thinking that the second group of code - contains the HREF and 'onClick' coding etc. goes in the <body> of ALSO the index page?

Anyway, that's where I put it.
Saved
went to preview in browser feature but it didn't work... the new 'onclick' link was there now, but it produced the popup with the can not find server thing.

So, I feel I am making progress... any more ideas, and THANKS!!!
Terri Surprised
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8749
Location: Castle Pines North, CO USA

PostPosted: Sun Jun 20, 2004 5:07 pm     Reply with quote

Can you paste the source code - it would be a lot easier for us to see that.
ambreeze



Joined: 19 Jun 2004
Posts: 19

PostPosted: Sun Jun 20, 2004 5:26 pm     pop up windows for a FrontPage website Reply with quote

GREAT idea! And I'll also check it against what is in FrontPage... just in case it DOES change stuff.

here are both sets of code:

FIRST GROUP OF CODE:


<script language='javascript'>
<!--
/********************************************
AUTHOR:WWW.CGISCRIPT.NET.LLC
URL:http://www.cgiscript.net
Use the code for FREE but leave this message intact
Download your FREE CGI/Perl Scripts today!
( http://www.cgiscript.net/scripts.htm )
****************************************************/
var acePopupWindow=null;
function acePopup(mypage,myname,w,h,pos,infocus){
if(pos=='random'){
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=='center'){
LeftPosition=(screen.width)?(screen.width-w)/2:100;
TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!='random') || pos==null){LeftPosition=100;TopPosition=100;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
acePopupWindow=window.open('',myname,settings);
if(infocus=='front'){acePopupWindow.focus();acePopupWindow.location='http://C:\My Websites\wolverine\merrill-new\popup.htm';}
}
//-->
</script>


SECOND GROUP OF CODE:

<a href="javascript:acePopup('http://C:\My Websites\wolverine\merrill-new\popup.htm','acePopup','300','400','','front');">Click Here</a>

thanks.
T
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8749
Location: Castle Pines North, CO USA

PostPosted: Sun Jun 20, 2004 5:34 pm     Reply with quote

This is what I would use:
Code:
<head>
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
 <!--
/****************************************************
     AUTHOR: WWW.CGISCRIPT.NET, LLC
     URL: http://www.cgiscript.net
     Use the code for FREE but leave this message intact.
     Download your FREE CGI/Perl Scripts today!
     ( http://www.cgiscript.net/scripts.htm )
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}
// -->
</script>
</head>
<body>
<a href="javascript:NewWindow('popup.htm','acepopup','300','400','custom','front');">LinkText</a>

Get rid of those absolute URLs. They will not work when you upload them. This is also assuming that this is in the same folder as your pop-up.

I tested this on my Windows XP system - no server - it works via IE. I locate the index.htm file via My Computer Explorer, right click & choose to open with IE. Now I click on that link - it works. If I try it via FP, it does not work
ambreeze



Joined: 19 Jun 2004
Posts: 19

PostPosted: Sun Jun 20, 2004 6:10 pm     pop up windows for a FrontPage website Reply with quote

So, HOW do I thank you guys!!!!!

Yes, it works now. It's wonderful, YOU'RE wonderful.

Ummmm, if you ever want help training a racehorse (thoroughbreds), I'd be more than glad to help you all out... OK, so probably not, but that is what I do best...

Anyway, thank you very very very much!!!

Terri Very Happy
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8749
Location: Castle Pines North, CO USA

PostPosted: Sun Jun 20, 2004 6:15 pm     Reply with quote

Smile Hm, I have to ask now - do you know Al Schlom or Candace King?
mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Sun Jun 20, 2004 7:33 pm     Reply with quote

Corey, I have never used Front Page! Why would the software leave the local file paths in the code rather than convert them to the "target" server (assuming that this information is requested when you "publish" the site)?

I have fooled around with Microsoft Publisher back when I started playing around with HTML. It used the local files for previewing the site but as soon as you published the site it converted the addresses in the script and creates a new file(s) to be uploaded to the HTTP server.

ambreeze, is it possible you are looking at/running the HTML in it's raw form without taking it to the "publishing" step? It just seems strange that Front Page would leave in the file paths for the local machine.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8749
Location: Castle Pines North, CO USA

PostPosted: Sun Jun 20, 2004 7:52 pm     Reply with quote

It depends on what version. FP has some quirks & I always thought that it had to do with the paths. Every so often, you gotta check FP HTML Smile - I would say though that 95% of the time, FP fixes it. I know FP 2003 does. I rarely had this issue with FP2002, and sometimes I had it with 2000 especially when I saved it in HTML mode
ambreeze



Joined: 19 Jun 2004
Posts: 19

PostPosted: Mon Jun 21, 2004 8:47 am     pop up windows for a FrontPage website Reply with quote

Corey,

No, I don't know either of those people - I'm in Detroit and I don't think they're from around here... they closed my track a few years back, so I'm still waiting for the new one to be built.

You guys are right about FP- it DOES convert the local paths once published, and NO, I didn't publish this first because it wants you to give it a real place to publish it to, and I wasn't ready for it to go there yet.

But the good news is that once I took all of the absolute address references out of the code (only in 2 spots afterall), the code generated by the wizard worked just fine - whether I accessed the files from within FP or the other suggested way via accessing the files and opening them with MS I E.

Now, I do have one more little question...
If I want to have more than one pop-up launch from a particular page, do I need to keep putting all of that code in over and over again for the actual 'making' of the pop-up, or can I just add the additional addresses to the original code and then put in separate links with individual coding to call up the next pop-up (I'm talking about the second body of code - the 'onClick' portion).

What do ya think?

Terri
mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Mon Jun 21, 2004 8:58 am     Reply with quote

If you want multiple popups you should be able to call the NewWindow function as many times as you want but I would suggest that you alter the size/location of each popup so they don't cover each other up.
ambreeze



Joined: 19 Jun 2004
Posts: 19

PostPosted: Mon Jun 21, 2004 6:13 pm     pop up windows for a FrontPage website Reply with quote

Here's an interesting twist... I made a completely new pop-up with a toatally different name - hence its own 2 sets of codes. I placed the code on the same page as the original popup but obviously in a different spot (still within the <head> then <body> boundaries).

BOTH links bring up the new popup... even though when I check the link destination they both point to the correct/different pop-up pages.

All of the absolute addresses etc. have been removed and I went through exactly the same proceedures ( I actually wrote all of this down for a change). If I remove the new link, the original popup reappears. And yes, I have totally separate links and coding...

What do ya think about that?

T.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML All times are GMT - 8 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial