| Home | RDP Sales | Contact Us | Training |
|
| RDP Support | ||||
|
RDPWin Knowledge Base |
RDP-DOS Knowledge Base |
IRM and IRM.Net Knowledge Base |
Crystal Knowledge Base |
|
One of the goals of the IRM is to keep the pages simple and clean. Sometimes customers put a great deal of text on the IRM that results in a cluttered look. It is possible to add links for "More Information" in many places. For example, rather than show 10 paragraphs of a cancellation policy on a given page, a button can be added which says: "Click here to view the cancellation policy".
This implementation of a pop-up window allows the size, location and browser features to be altered. The pop-up is displayed using an HTML link which calls a JavaScript function when clicked. This all happens client-side or on the guest's browser.
To view a live example of the above "More" link, see the Resort Data Processing IRM Demo.
For the IRM, all the pages changed by customers should be in the UserText folder in the IRM. The path on the IRM bridge is normally C:\InetPub\wwwRoot\IRM\UserText. All Pop-Up HTML pages should also reside in this folder since that makes accessing with links much easier. If there will be many pictures used in these files, it would be wise to make a "Pictures" or "Images" sub-folder under the UserText folder. All images can then be referred to as "Pictures/MyPictures.jpg" or "Images/MyImage.gif" in links on the page.
On a user defined page where a link to a pop-up window is to be added, both the link to the pop-up HTML page and the following JavaScript function must be added:
<script language='JavaScript'>
<!--
function PopUp(PopUpURL,MoveX,MoveY){
var Features;
//Turn on Features using '=1'. Turn off Features using '=0'
//location = URL Field Display
//width & height in pixels
Features = "status=1, scrollbars=1, resizable=1, menubar=0, location=0, toolbar=0, width=450, height=450";
//To Replace the current window, make the window name (2nd parameter) the same.
//If left as "", each link will have a new window.
HelpWindow = window.open(PopUpURL, "", Features);
HelpWindow.moveTo(MoveX,MoveY);
HelpWindow.focus();
}
-->
</script>
Place the cursor at the upper left of the page and right click.
<a href="#PopUp1" name="PopUp1" onClick="PopUp('/IRM/UserText/YourPage.htm',20,20)">
This Text Shows
</a>
With the document open in FrontPage, add the tag above where you want a link to the pop-up window.
Edit the link as needed.
The first item to change is where
you see '/IRM/UserText/YourPage.htm' above. This is the location and name of the HTML page that will
be displayed from this link. Note that this example assumes the page you
are linking to is in the UserText folder of the IRM. All pages
should reside in the UserText folder in the IRM virtual web. The single
quotes around the full path and page name are critical.
The two numbers, 20 and 20 place the pop-up window's upper left corner 20 pixels
down and 20 pixels right of the top corner of the computer screen. If
these numbers are "0,0", the pop-up window will be in the very upper left of the
computer screen.
Next, change the text that will show on the page for the guest.
The example above has "This Text Shows" in that area. Change this to make
sense for the guest.
If you have multiple links per page, you must change the href= and name= parameters to make them unique for each link. The second link on the page should be: href="#PopUp2" name="PopUp2". The "PopUp2" for both the href and the name should be identical. This keeps the calling page from scrolling to the top of the page when the link is clicked.
Save the page in FrontPage and test.
In some cases it's nice to have a close button on the page to make it easy for the guest to close the pop-up window. The pop-up window with have the "X" in the upper right as well, which will close the window, so the close button is optional.
Open the pop-up window HTML page in FrontPage
Highlight the following text, right click and choose Copy.
<div align='center'>
<input type="button" Value=" Close " onClick="javascript:top.window.close();">
</div>
NOTE: JavaScript is case sensitive and very picky about the syntax, so this process must be precisely done in order to work. The easiest way is to cut and paste the code and HTML. If typing this in manually, then be very careful to make this exact.
| Recommended Simple Pop Up Window | Click Here |
| All Window Features Turned Off | Click Here |
| Replacing Windows & All Features On | Click Here |
| Show Just an Image | Click Here |
| Show Just a picture | Click Here |
| Home | RDPWin | RDP-DOS | IRM/IRM.Net | Open A Web Support Ticket |
|---|---|---|---|---|
|
Version 2.xxx | Upgrade to RDPWin | Link to Marketing Site | Contact Us |
| Training | Vendor Interfaces | Troubleshooting | RDP Sales Website |