Re: [IUG] javascript for popups on release 2007
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Lorraine
Try this - untested but shouldn't be too far off:
<script type="text/javascript" language="JavaScript">
function popUp(popPage) {
popWin=window.open(popPage,'popWin','resizable=yes,scrollbars=yes,width=
600,he
ight=400,toolbar=no,screenX=150,screenY=100,left=150,top=100');
}
function closeThePopUp() {
if(!popWin.closed) {popWin.close();return false;}
}
</script>
...
<a id="popcloser" href="/" onClick="return closeThePopUp()"><img
src="popCloseIcon.gif" border="" alt="Back to My Library" /></a>
...
<style type="text/css">
#popcloser {display:block;width:100px;height:30px;margin:10px;}
</style>
...
This gets you away from using a disfunctional FORM which may
get in the way of III business. Make something that
looks like a clickable button for 'popCloseIcon.gif'
regards
Mark
========================================
Mark Huppert
Library Web Development &
Integrated Library Management System Coordinator
Division of Information
R.G. Menzies Building (#2)
The Australian National University
ACTON ACT 0200
T: +61 02 6125 2752
F: +61 02 6125 4063
W: http://anulib.anu.edu.au/about/
CRICOS Provider #00120C
========================================
-----Original Message-----
From: innopac-bounces at innopacusers dot org
[mailto:innopac-bounces at innopacusers dot org] On Behalf Of Lorraine Falconer
Sent: Wednesday, 21 January 2009 4:00 PM
To: IUG INNOPAC List
Subject: [IUG] javascript for popups on release 2007
We are putting the new example set for release 2007 up on our training
server, and the javascript we have been using to make some extra h elp
pages popup in the patron record is no longer working with it. The
page opens in a full-size screen, which isn't a popup, and the
close-window button closes down the entire window.
I need to be able to make some pages popup in small windows, preferably
with a button that will close them down so the viewer sees all of their
patron record again. Can anyone help?
This is what we were using,
<script type="text/javascript" language="JavaScript1.3">
function popUp(popPage) {
window.open(popPage,'popWin','resizable=yes,scrollbars=yes,width=1000,he
ight=1500,toolbar=no,screenX=150,screenY=100,left=150,top=100');
}
</script>
and
<INPUT TYPE="BUTTON" VALUE="Back to MyLibrary" onClick='window.close()'>
Thanks in hope
Lorraine Falconer
Electronic Access Librarian
University of Sydney Library
NSW 2006
Australia
Tel. 612 9351 3416
Fax. 612 9351 3689
http://www.library.usyd.edu.au/
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
--
This message was distributed through the Innovative Users Group INNOPAC
list
Public replies: INNOPAC at innopacusers dot org
Update your subscription options:
http://innopacusers.org/mailman/listinfo/innopac