|
I can't speak for createPopup since I use floating DIVs instead. But onMouse... and onClick are absolutely supported on current Netscapes, I can't speak for 4.7x. Take a look at http://w3.techsoftwareinc.com/float.html (and the source behind it) and see if it fits your needs. The trick is in the JS at the bottom of the page which loads up the variable "popup" and "popupText" correctly depending on which flavor of DOM your browser uses. -Walden ________________________________ From: web400-bounces@xxxxxxxxxxxx on behalf of Rob Dixon Sent: Thu 04-Nov-04 6:47 PM To: Web Enabling the AS400 / iSeries Subject: Re: [WEB400] Javascript and browser compatability Walden Many thanks for your response. The trouble is that onMouseover, onClick and createPopup are only supported by IE. An extract from my code, generated by my product ERROS, that works in IE is <SCRIPT LANGUAGE="JavaScript"> var popup=window.createPopup(); var num; var colour; var session=(document.getElementById('SESSION').value); javascript:window.history.forward(1); colour = "cyan"; void(document.bgColor='C0C0C0'); function fd() {var buttonname = session + "/BUTTON.999-999=*E"; document.getElementById(buttonname).click()} function fm(msg) {popup.document.body.style.backgroundColor="yellow"; if (msg=='1') {msgtxt="Double left click on link to navigate"} else if (msg=='2') {msgtxt="Double click to continue"} else if (msg=='3') {msgtxt="Double click to Navigate or Single click and then select option"} else if (msg=='4') {msgtxt="Double click to continue or Single click and then select option"} else {msgtxt="Hover over highlighted links or images for instructions"} popup.document.body.innerHTML=msgtxt; popup.show(12,274,600,20, document.body)}function fr(num) {document.getElementById('AFIELD.007-016').value = num} fm(9) </SCRIPT> <STYLE>A:link {color:blue;text-decoration:none;font-weight:bold;} A:visited {color:blue;text-decoration:none;font-weight:bold;} A:hover {color:blue;text-decoration:underline;font-weight:bold;}</STYLE> <A href="#" ONMOUSEOVER="fm(4)" onDblClick="fr(50); fd()" ONCLICK="fr(50); fm(4)"; onmouseout="fm(9)";> James Villiers, 1st Duke of Buckingham,</A> I have chosen a link in an historical site that I am building but it could be anything. When you hover over this link, you have a choice of options and the popup tells you this. The appropriate option is selected by clicking on a button. The browser does not return a URL to ERROS but, in this case, the number "50" which ERROS knows is the 50th item of data sent to the browser. There are no stored URL's except for images hence href="#". This (and much more) is put into the 5250 datastream by ERROS which allows me to use AS/400 WSG to provide a full point and click interface without (as yet) having written any CGI code or anything else. It works for any application built using ERROS. I would like to get it to work under later Netscape and Firefox. Many thanks Rob Dixon Walden H. Leverich wrote: >Rob, > >For the most part JS that works in one works in the other. You hit some >strangeness in how you address forms, but you can isolate that. Can you >post the code that isn't working? Also, define "Netscape" Are you >willing to restrict to newer Netscapes, or do you need to support 4.78? > >-Walden > > >------------ >Walden H Leverich III >President & CEO >Tech Software >(516) 627-3800 x11 >WaldenL@xxxxxxxxxxxxxxx >http://www.TechSoftInc.com > >Quiquid latine dictum sit altum viditur. >(Whatever is said in Latin seems profound.) > >-----Original Message----- >From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] >On Behalf Of Rob Dixon >Sent: Thursday, 04 November, 2004 12:04 >To: Web Enabling the AS400 / iSeries >Subject: [WEB400] Javascript and browser compatability > >Thanks to the help of kind people on this list, I was able to get an >onMouseOver and an onClick to trigger a createPopup, and this works well > >in IE. I would like to get a similiar function to work in Netscape and >Firefox (ideally to create code that works for all browsers!) > >Can anyone please point me in the right direction? > >Many thanks > >Rob Dixon > > > >_______________________________________________ >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. > > >_______________________________________________ >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. > > > > _______________________________________________ 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 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.