Don,
Like this if what you you want is for the href to become a popup.
Note - I've used an image from google and put the google url in the popup window

html(macro) {
HTML>
HEAD>
meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
TITLE>TIME TRACKER Menu</TITLE>
script>
unction popup(url) {
t = 130;
h = screen.height-(t+90)
w = 800
settings = 'toolbar=no'
+ ',location=no'
+ ',directories=no'
+ ',status=no'
+ ',scrollbars=yes'
+ ',resizable=yes'
+ ',copyhistory=no'
+ ',width='+w
+ ',menubar=no'
+ ',top='+t
+ ',left='+ (screen.width-w)/2
+ ',height='+h;
popwin = window.open(url,'PopupWin',settings);
popwin.focus();
return false;
}
</script>
</head>
<body>
<h1 align="center">Time Tracker</h1>
<img src="http://images.google.co.nz/intl/en_ALL/images/logos/images_logo_lg.gif";
width="100" height="65" alt="Amerequip Corporation">

<table style="border:1pt solid black">
<tr valign="bottom">
<td>
<a name="foo1" href="foo1" onclick="return popup('http://google.co.nz')">Time Tracker</a
</td>
</tr>
</table>
<br>
<div style="font:italic 10pt Times Roman">
Amerequip<br>Corporation
</div>

</body>
</HTML>
%}

Cheers

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Don Cavaiani
Sent: Saturday, 21 November 2009 3:24 p.m.
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Net.data macro launching a new window

Peter,

Dare I ask you this?

Here is my macro below. Where would your code fit in here?

<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<TITLE>TIME TRACKER Menu</TITLE>
</HEAD>
<BODY>
<H1><CENTER>Time Tracker</CENTER></H1>
<td width="17%"><img src="/eagle.gif" width="100" height="65"
alt="Amerequip Corporation"></td>
<Table border>
<TR VALIGN="bottom">

<a
HREF="http://amereqip.com:8000/CGI-BIN/lansaweb?webapp=WAMSFERE4+webrtn=
BEGIN+ml=LANSA:XHTML+partition=DEV+language=ENG">Time_Tracker
</TR>

</Table>

<FONT SIZE=-1><I>
<BR>Amerequip
<BR>Corporation
<FONT SIZE=+0></I>
</BODY>
</HTML>

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Peter Connell
Sent: Friday, November 20, 2009 5:33 PM
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] Net.data macro launching a new window

Don,

The "fullscreen" option is available in IE on the window.open function.
It will literally give you a full screen with no visible elements apart
form any of your own html.
But you must code a link or button to close it otherwise the operator
has to know to press Alt-F4.

The macro below will do this if you use the fullwin() function as the
onload function.

However, I have coded the popup() function which I suspect is what you
want.
The macro will display Don's Page and automatically launch a popup
window for macro "mywindow" at the position and size you desire, just
fiddle with the variables for t and w (top and height)

%html(macro) {
<script>
function popup() {
t = 130;
h = screen.height-(t+90)
w = 800
settings = 'toolbar=no'
+ ',location=no'
+ ',directories=no'
+ ',status=no'
+ ',scrollbars=yes'
+ ',resizable=yes'
+ ',copyhistory=no'
+ ',width='+w
+ ',menubar=no'
+ ',top='+t
+ ',left='+ (screen.width-w)/2
+ ',height='+h;
url = "mywindow"
popwin = window.open(url,'PopupWin',settings);
}

function fullwin(){
window.open("mywindow","big","fullscreen,scrollbars")
}

</script>
<body onload="popup()">
Don's page
</body>
%}


%html(mywindow) {
Don's window
%}


Cheers,
dtwdude

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Don Cavaiani
Sent: Saturday, 21 November 2009 11:52 a.m.
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Net.data macro launching a new window

I have a short macro which currently just launches a url in a full
browser .

I would like to insert code (JavaScript?) into that macro which would
execute the url application in another window DEVOID of all toolbars,
back buttons and refresh buttons.

Does anyone have a simple example of that?

TIA,
Don C.

Don F. Cavaiani
IT Manager
Amerequip Corp.
920-894-7063

"It's amazing what you can accomplish if you don't care who gets the
credit." Harry S. Truman



--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To
post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.

Visit our website www.vedaadvantage.com. It has a new design with
improved navigation and search capabilities; and customer friendly
interface with more relevant insights and solutions to help you make
informed decisions.

########################################################################
#############

This correspondence is for the named person's use only. It may contain
confidential or legally privileged information, or both. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this correspondence in error, please immediately delete
it from your system and notify the sender. You must not disclose, copy
or rely on any part of this correspondence if you are not the intended
recipient.
Any views expressed in this message are those of the individual sender,
except where the sender expressly, and with authority, states them to be
the views of Veda Advantage.
If you need assistance, please contact Veda Advantage on either :-
Australia 1300-921-621 or New Zealand +64 9 367 6200
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To
post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.