Click to See Complete Forum and Search --> : Forcing a new page/window size.


shakerfish
05-11-2006, 08:59 PM
Hello all,

I am new to this forum and new to FrontPage. I was hoping someone could help me with information/help boxes. I am trying to build a website with links that will open a new (small) page with information in it when clicked.

Some websites will have a read more link or small information page that will pop up when clicked. Some are small pages that you enter credit card or address information in. Usually these small pages don’t allow you to maximize the window because the information or entry form fits in the small area of the window.

My question is how do you force a new page to maintain a small size approximately 3 -5 inches when the user clicks on it’s link? Is it designed in the parent or child page?

Thanks All
Your help would be greatly appreciated.

KDLA
05-12-2006, 07:05 AM
This page: http://javascript.internet.com/generators/popup-window.html
will code the pop-up for you.

KDLA

shakerfish
05-12-2006, 11:38 AM
KDLA,

Thanks for your help. This works great when building a simple page, however my situation is a bit unusual and I cannot place this code into the page I am working on. I am only able to place URL’s in this particular page. Is there any way the URL can point to a different location and run the javascript from that page/location and display the file/image?

Thanks

KDLA
05-12-2006, 12:53 PM
You can create a separate javascript file, and link to it in the <head> section of your page:
1. You'll place the coding that the javascript pop-up maker instructs you to place into the <head> section into a blank javascript file, minus the beginning <script> and ending </script> files.
2. Next, you'll place the path to that in your <head> section:

<script type="text/javascript" src="file.js"></script>

3. You'll code the link as instructed by the javascript pop-up maker.

KDLA

shakerfish
05-12-2006, 03:26 PM
There are two or more web pages created with the publishing tool I am using. The first (index.html) page is a very simple and is used for nothing more than a menu selection for the other page(s). Once the software creates the index.html page I can use Front Page to do anything I want with it because it is simply html.

I have since discovered however the other pages are actually generated with xml. I know so little about how a web page is generated with xml and I don’t know if you can run java scripting with it.

I have experimented a little with the xml code and can actually make subtle changes to the page when ran, but I haven’t a clue how to add code to it to make it create a pop-up

Any more thoughts?

Thanks Again.

KDLA
05-12-2006, 03:32 PM
You might post this question in the XML (http://www.webdeveloper.com/forum/forumdisplay.php?f=5) forum, and see what they say.

KDLA