 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
ambreeze
Joined: 19 Jun 2004 Posts: 19
|
Posted: Sun Jun 20, 2004 3:13 pm pop up windows for a FrontPage website |
|
|
|
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
|
Posted: Sun Jun 20, 2004 3:33 pm |
|
|
|
|
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
|
Posted: Sun Jun 20, 2004 3:41 pm |
|
|
|
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
|
Posted: Sun Jun 20, 2004 4:05 pm pop up windows for a FrontPage website |
|
|
|
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'  |
|
ambreeze
Joined: 19 Jun 2004 Posts: 19
|
Posted: Sun Jun 20, 2004 4:48 pm pop up windows for a FrontPage website |
|
|
|
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  |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8749 Location: Castle Pines North, CO USA
|
Posted: Sun Jun 20, 2004 5:07 pm |
|
|
|
| Can you paste the source code - it would be a lot easier for us to see that. |
|
ambreeze
Joined: 19 Jun 2004 Posts: 19
|
Posted: Sun Jun 20, 2004 5:26 pm pop up windows for a FrontPage website |
|
|
|
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
|
Posted: Sun Jun 20, 2004 5:34 pm |
|
|
|
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
|
Posted: Sun Jun 20, 2004 6:10 pm pop up windows for a FrontPage website |
|
|
|
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  |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8749 Location: Castle Pines North, CO USA
|
Posted: Sun Jun 20, 2004 6:15 pm |
|
|
|
Hm, I have to ask now - do you know Al Schlom or Candace King? |
|
mjpliv

Joined: 11 May 2004 Posts: 402 Location: Nova Scotia
|
Posted: Sun Jun 20, 2004 7:33 pm |
|
|
|
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
|
Posted: Sun Jun 20, 2004 7:52 pm |
|
|
|
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 - 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
|
Posted: Mon Jun 21, 2004 8:47 am pop up windows for a FrontPage website |
|
|
|
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
|
Posted: Mon Jun 21, 2004 8:58 am |
|
|
|
| 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
|
Posted: Mon Jun 21, 2004 6:13 pm pop up windows for a FrontPage website |
|
|
|
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. |
|
|
|
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
|
|
|
|
|