From ws at chello.se Sun Dec 1 16:13:04 2002 From: ws at chello.se (ws) Date: Sun, 01 Dec 2002 23:13:04 +0100 Subject: [Javascript] Browser forward Message-ID: <5.1.1.6.0.20021201231118.009f0c50@pop.chello.se> I want to redirect users to two different versions of a site depending on if they have a browser version >4.0 or <4.0. I've tried writing a couple of scripts but they didn't work very well so I wonder if any of you would happen to have a script already? Regards, L Johansson From tsimmons at employmentlawadvisors.com Sun Dec 1 19:39:21 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Sun, 1 Dec 2002 19:39:21 -0600 Subject: [Javascript] Full Screen References: <20021130015945.20462.qmail@web40709.mail.yahoo.com> Message-ID: <000f01c299a3$a4b96e50$0000a398@sndmgr122> Noha, Here's a good write-up on fullscreen mode: http://www.htmlgoodies.com/beyond/fullscreen.html HTH, Tommy Simmons Employment Law Advisory Network www.employmentlawadvisors.com ----- Original Message ----- From: "Noha Dawood" To: Sent: Friday, November 29, 2002 7:59 PM Subject: [Javascript] Full Screen > Hi ALL, > > I wanna an HTML page be in Full Screen first time it's > loaded. I don't wanna it be another Pop Up window > beside the original Page. I wanna the page itself be > Full Screen > > Thanks in advance > Noha From sanghamitra.das at itreya.com Mon Dec 2 22:36:10 2002 From: sanghamitra.das at itreya.com (Sanghamitra) Date: Tue, 3 Dec 2002 10:06:10 +0530 Subject: [Javascript] Redirect based on browser In-Reply-To: <20021202180101.E66A930913E@LaTech.edu> Message-ID: > I want to redirect users to two different versions of a site depending on > if they have a browser > version >4.0 or <4.0. I've tried writing a couple of scripts but they > didn't work very well so I > wonder if any of you would happen to have a script already? Hi Johansson Can u try this // convert all characters to lowercase to simplify testing var agt=navigator.userAgent.toLowerCase(); // *** BROWSER VERSION *** // Note: On IE5, these return 4, so use is_ie5up to detect IE5. var is_major = parseInt(navigator.appVersion); var is_minor = parseFloat(navigator.appVersion); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) ); var is_ie4up = (is_ie && (is_major >= 4)); now you can chk by if(is_ie4up) { //write the code for version greater then 4 } else { //write the code for version less then and equal to 4 } Regards Sanghamitra From alan.easton at unn.ac.uk Tue Dec 3 03:27:33 2002 From: alan.easton at unn.ac.uk (Alan Easton) Date: Tue, 3 Dec 2002 09:27:33 -0000 Subject: [Javascript] Redirect based on browser Message-ID: <8CB72D8EAD84D411B3D600508BCF7B6C04A5188E@colorado.unn.ac.uk> Try this, re-directs to various pages depending on your browser........works for various browsers Hope it helps.... Alan... -----Original Message----- From: Sanghamitra [mailto:sanghamitra.das at itreya.com] Sent: 03 December 2002 04:36 To: javascript Subject: [Javascript] Redirect based on browser > I want to redirect users to two different versions of a site depending on > if they have a browser > version >4.0 or <4.0. I've tried writing a couple of scripts but they > didn't work very well so I > wonder if any of you would happen to have a script already? Hi Johansson Can u try this // convert all characters to lowercase to simplify testing var agt=navigator.userAgent.toLowerCase(); // *** BROWSER VERSION *** // Note: On IE5, these return 4, so use is_ie5up to detect IE5. var is_major = parseInt(navigator.appVersion); var is_minor = parseFloat(navigator.appVersion); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) ); var is_ie4up = (is_ie && (is_major >= 4)); now you can chk by if(is_ie4up) { //write the code for version greater then 4 } else { //write the code for version less then and equal to 4 } Regards Sanghamitra _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From Patti.M.Koenig at jpl.nasa.gov Wed Dec 4 16:41:59 2002 From: Patti.M.Koenig at jpl.nasa.gov (Patti M. Koenig) Date: Wed, 04 Dec 2002 14:41:59 -0800 Subject: [Javascript] FastScript3D Message-ID: <5.1.0.14.2.20021204143539.017ecab8@mail1.jpl.nasa.gov> In response to some of the emails that I have received, I wanted to post a very simple example of how FastScript3D makes it easy to create java3D web applets via JavaScript and HTML. You do have to have Java and Java3D installed properly on your machine and working right with your browser. Once you have that, though, it is very easy to create applets with Java3D content. The following script shows three 3D cubes, the right and left ones are rotating continuously. Here is the script code: Here is the script: EASY.HTML FastScript3D - Easy Model Easiest FastScript3D Model Ever

If you were using a Java-capable browser, you would see the graphics window here. < /blockquote>
Here is the applet: EASY.JAVA import java.applet.Applet; import com.sun.j3d.utils.applet.MainFrame; import fscore.fastscript.*; import fscore.fastscript3d.*; ^M public class easy extends FS3D { public void init() { fs3dinit(); } public static void main(String[] args) { new MainFrame(new easy(),400,400); } } You can see this example running and other applets at http://fastscript3d.jpl.nasa.gov Please send me your feedback! Patti Koenig From ws at chello.se Fri Dec 6 17:28:39 2002 From: ws at chello.se (ws) Date: Sat, 07 Dec 2002 00:28:39 +0100 Subject: [Javascript] Image preload problem Message-ID: <5.1.1.6.0.20021207002702.009ef4c0@pop.chello.se> My image preload script doesn't work! Images 1aboutus.gif, 2services.gif etc. are the graphic files for the menu options (i.e. buttons with the text " About Us", "Services" etc.). Images 1.gif to 7.gif contains icons that are displayed in the same place no matter what menu option the mouse cursor is pointing at (onmouseover). nada.gif is the image being displayed onmouseout. When you move the mouse cursor over the different menu options the icon shifts depending on which menu option you're doing an onmouseover for. The purpose of the script is to preload all images (menu options but particularly icons) so that the browser won't access the internet on every single onmouseover and onmouseout. But it doesn't work! The browser accesses the internet every single time I do an onmouseover or onmouseout. What have I done wrong??? The script ------------- SCRIPT LANGUAGE="JavaScript"> part of the the menu code: ---------------------------------- About 
Us Services From jegadcheran at yahoo.com Mon Dec 9 00:09:52 2002 From: jegadcheran at yahoo.com (Cheran) Date: Sun, 8 Dec 2002 22:09:52 -0800 (PST) Subject: [Javascript] NEW WINDOW PROPERTIES... Message-ID: <20021209060952.8330.qmail@web13404.mail.yahoo.com> Hi, The following code works fine for a rotating banner with each banner has different links and opening in a new window. so on clicking a each banner it will open in a seperate window. but the links has to open in a same one window. can it be done?? Regards, Cheran Banner Demo Click here to
visit these links __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From costea.dan at ssi-schaefer.ro Mon Dec 9 00:36:39 2002 From: costea.dan at ssi-schaefer.ro (Dan Costea) Date: Mon, 9 Dec 2002 08:36:39 +0200 Subject: [Javascript] NEW WINDOW PROPERTIES... References: <20021209060952.8330.qmail@web13404.mail.yahoo.com> Message-ID: <001901c29f4d$547d4830$7cdea8c0@PCCostea> Modify this: function gotoAd () { document.location.href = window.open(adURLs[thisAd], 'sameWin'); } You have to use a target name ('sameWin') each time you open a window, if you don't want more windows to be opened. Dan. ----- Original Message ----- From: "Cheran" To: Sent: Monday, December 09, 2002 8:09 AM Subject: [Javascript] NEW WINDOW PROPERTIES... > Hi, > The following code works fine for a rotating banner with each banner > has different links and opening in a new window. so on clicking a > each banner it will open in a seperate window. but the links has to > open in a same one window. can it be done?? > Regards, > Cheran > > > > Banner Demo > > > > > Click here to
> visit these links > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From HSenior at twii.net Mon Dec 9 06:46:32 2002 From: HSenior at twii.net (Senior, Henry (TWIi London)) Date: Mon, 9 Dec 2002 12:46:32 -0000 Subject: [Javascript] RE: Javascript digest, Vol 1 #829 - Image preload problem Message-ID: I have the same problem and would be very interested in answers. One cause for this may be browser settings: if your browser is set up to check for new versions every time then it will check for the last modified date whatever. As far as I understand it, with this setup (I am talking IE here and I imagine this will vary from browser to broswser) the cached/preloaded image will not appear until the browser has contacted the server and verified that the cached version is in fact the newest one. Also, again as far as my understanding goes (I have not had the time to speak to my hosting colleagues about this but will do) if the server sets an expires period/date then this may force the browser to reload images more often than necessary. My image preload script doesn't work! Images 1aboutus.gif, 2services.gif etc. are the graphic files for the menu options (i.e. buttons with the text " About Us", "Services" etc.). Images 1.gif to 7.gif contains icons that are displayed in the same place no matter what menu option the mouse cursor is pointing at (onmouseover). nada.gif is the image being displayed onmouseout. When you move the mouse cursor over the different menu options the icon shifts depending on which menu option you're doing an onmouseover for. The purpose of the script is to preload all images (menu options but particularly icons) so that the browser won't access the internet on every single onmouseover and onmouseout. But it doesn't work! The browser accesses the internet every single time I do an onmouseover or onmouseout. What have I done wrong??? The script ------------- SCRIPT LANGUAGE="JavaScript"> part of the the menu code: ---------------------------------- About 
Us Services --__--__-- _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript End of Javascript Digest DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From peter at brunone.com Mon Dec 9 08:49:23 2002 From: peter at brunone.com (Peter Brunone) Date: Mon, 9 Dec 2002 08:49:23 -0600 Subject: [Javascript] NEW WINDOW PROPERTIES... In-Reply-To: <001901c29f4d$547d4830$7cdea8c0@PCCostea> Message-ID: Why not just make it document.location.href = adURLs[thisAd]; instead? There's no reason to use window.open() if you're not opening a new window. -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Dan Costea | |Modify this: | |function gotoAd () |{ | document.location.href = window.open(adURLs[thisAd], 'sameWin'); |} | |You have to use a target name ('sameWin') each time you open a window, if |you don't want more windows to be opened. | |Dan. | |----- Original Message ----- |From: "Cheran" |To: |Sent: Monday, December 09, 2002 8:09 AM |Subject: [Javascript] NEW WINDOW PROPERTIES... | | |> Hi, |> The following code works fine for a rotating banner with each banner |> has different links and opening in a new window. so on clicking a |> each banner it will open in a seperate window. but the links has to |> open in a same one window. can it be done?? |> Regards, |> Cheran |> |> |> |> Banner Demo |> |> |> |> |> Click here to
|> visit these links |> |> |> |> |> __________________________________________________ |> Do you Yahoo!? |> Yahoo! Mail Plus - Powerful. Affordable. Sign up now. |> http://mailplus.yahoo.com |> _______________________________________________ |> Javascript mailing list |> Javascript at LaTech.edu |> https://lists.LaTech.edu/mailman/listinfo/javascript | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | From hub_elyn at hotmail.com Mon Dec 9 15:37:06 2002 From: hub_elyn at hotmail.com (Elyn) Date: Mon, 9 Dec 2002 13:37:06 -0800 Subject: [Javascript] Re: Problem solving Message-ID: I need a script that shown few option list which all of them are cascading/ related to each other. Example of my concept and the script i try to explain is http://www.trans4mind.com/personal_development/JavaScript/tripleMenu.htm but the main difference between the example is i need a multiple selection instead of single. Can anyone of you help me with this? and is there any example on the web? Thanks, Elyn -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at brunone.com Tue Dec 10 17:40:46 2002 From: peter at brunone.com (Peter Brunone) Date: Tue, 10 Dec 2002 17:40:46 -0600 Subject: [Javascript] Split In-Reply-To: <00ae01c2a0ff$52f5cba0$2fe8adcb@k1n8i8> Message-ID: var t=txt.split("\\") |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Andrew Gibson |Sent: Wednesday, December 11, 2002 4:23 AM |To: javascript at LaTech.edu |Subject: [Javascript] Split | | |I'm trying to use split to separate out a file name from the complete |string. | |from | | var txt="C:\Copy\new.html" | | I want to get "new.html" | |Whenever I try to use "\" I get a Unterminated String variable error | eg var t=txt.split("\") | |Obviously the problem is in trying to use the "\" character which is an |escape char for JScript I beleive. But how can I solve my problem? | |Andrew | | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | From goodmansystem at usa.com Tue Dec 10 23:51:28 2002 From: goodmansystem at usa.com (Goodman Systems) Date: Wed, 11 Dec 2002 06:51:28 +0100 Subject: [Javascript] Your Free E mail Books! Message-ID: <20021210235110.546F2309DD5@LaTech.edu> Here are your FREE Internet Books We are presently enlarging our famous Opt in list database. For allowing us to send to you three E mails per month we give you a unique gift. Free of charge you will receive the ultimate library of the top marketing and E Mail business books on the internet today. These books contain the secrets of business success from some of the most successful business people of our time. Simply click on this link and and download the file http://www.eboxbooks.com/freetosellvip.exe There you can access over 20 E mail books that normally cost $49.99 but to you FREE! If you do not want to accept this unique offer simply click the unsubscribe button and send to us a blank E mail and we will honor your request to be removed. If you wish to accept do nothing other than to down load your FREE books. We guarantee you will be sent only 3 E mails per month. On the bottom of the E mail it will say " This is an Opt In List E mail" To unsubscribe please press this remove button and send an emailwith remove in the subject box -------------- next part -------------- An HTML attachment was scrubbed... URL: From andyg at ihug.co.nz Wed Dec 11 04:23:17 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Wed, 11 Dec 2002 23:23:17 +1300 Subject: [Javascript] Split References: Message-ID: <00ae01c2a0ff$52f5cba0$2fe8adcb@k1n8i8> I'm trying to use split to separate out a file name from the complete string. from var txt="C:\Copy\new.html" I want to get "new.html" Whenever I try to use "\" I get a Unterminated String variable error eg var t=txt.split("\") Obviously the problem is in trying to use the "\" character which is an escape char for JScript I beleive. But how can I solve my problem? Andrew From awebster at venda.com Wed Dec 11 05:50:52 2002 From: awebster at venda.com (Anthony Webster) Date: Wed, 11 Dec 2002 11:50:52 -0000 Subject: [Javascript] variable whose name is the result of a calculation? Message-ID: hi all, I want to define a new variable, whose name is the result of a calculation. does this make sense? a simple example follows var1 = 'ora'; var2= 'nge'; var3 = var1 + var2; // result: // var3 = 'orange'; eval(var3) = '263'; // intended result: // orange = '#FB8E36'; of course when I do this, javascript is not happy. it doesnt like the left hand side with the 'intended result' bit. why am I doing things like this? I am going to be supplied the names of the colours without knowing what they will be. I will need to evaluate what they are and then declare variables for each of them so I can reuse this information. any help would be greatly appreciated! thanks, anthony From carl at carladler.org Wed Dec 11 06:38:41 2002 From: carl at carladler.org (Carl Adler) Date: Wed, 11 Dec 2002 07:38:41 -0500 Subject: [Javascript] Split In-Reply-To: Message-ID: Actually var t=txt.split("\") > |works for me using Netscape 4.7 and IE 5.1 on the Mac and IE 5.5 on Windows ME. If "\" was a problem I think that you would use "\/" not "//" Carl > From: "Peter Brunone" > Organization: Your Name Here > Reply-To: javascript at LaTech.edu > Date: Tue, 10 Dec 2002 17:40:46 -0600 > To: > Subject: RE: [Javascript] Split > > > var t=txt.split("\\") > > |-----Original Message----- > |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On > |Behalf Of Andrew Gibson > |Sent: Wednesday, December 11, 2002 4:23 AM > |To: javascript at LaTech.edu > |Subject: [Javascript] Split > | > | > |I'm trying to use split to separate out a file name from the complete > |string. > | > |from > | > | var txt="C:\Copy\new.html" > | > | I want to get "new.html" > | > |Whenever I try to use "\" I get a Unterminated String variable error > | eg var t=txt.split("\") > | > |Obviously the problem is in trying to use the "\" character which is an > |escape char for JScript I beleive. But how can I solve my problem? > | > |Andrew > | > | > |_______________________________________________ > |Javascript mailing list > |Javascript at LaTech.edu > |https://lists.LaTech.edu/mailman/listinfo/javascript > | > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From merchant at LATECH.EDU Wed Dec 11 09:05:46 2002 From: merchant at LATECH.EDU (David Merchant) Date: Wed, 11 Dec 2002 09:05:46 -0600 Subject: [Javascript] Your Free E mail Books! In-Reply-To: <20021210235110.546F2309DD5@LaTech.edu> Message-ID: <5.1.0.14.2.20021211090421.01ad2d18@mail.latech.edu> At 06:51 AM 12/11/2002 +0100, you wrote: >We are presently enlarging our famous Opt in list database. disingenuous... Another candidate for the kill file TTFN, David Director of Integrated Technology CATALyST Louisiana Tech University Carson Taylor Hall, Rm. 129 PO Box 3179 Ruston, LA 71272 Tel: (318) 257-4772 Fax: (318) 257-3852 projectlife.latech.edu c3.latech.edu catalyst.latech.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter_brunone at yahoo.com Wed Dec 11 11:08:50 2002 From: peter_brunone at yahoo.com (Peter Brunone) Date: Wed, 11 Dec 2002 09:08:50 -0800 (PST) Subject: [Javascript] Split In-Reply-To: Message-ID: <20021211170850.73900.qmail@web20302.mail.yahoo.com> But he wants to split based on \, not on /. txt.split("\\") escapes the second \ character, just as txt.split("\"") escapes the " character so you can split on it... not that you would, but there it is. As for working in different browsers... ah, that's the joy of web development. -Peter Carl Adler wrote:Actually var t=txt.split("\") > |works for me using Netscape 4.7 and IE 5.1 on the Mac and IE 5.5 on Windows ME. If "\" was a problem I think that you would use "\/" not "//" Carl > From: "Peter Brunone" > Organization: Your Name Here > Reply-To: javascript at LaTech.edu > Date: Tue, 10 Dec 2002 17:40:46 -0600 > To: > Subject: RE: [Javascript] Split > > > var t=txt.split("\\") > > |-----Original Message----- > |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On > |Behalf Of Andrew Gibson > |Sent: Wednesday, December 11, 2002 4:23 AM > |To: javascript at LaTech.edu > |Subject: [Javascript] Split > | > | > |I'm trying to use split to separate out a file name from the complete > |string. > | > |from > | > | var txt="C:\Copy\new.html" > | > | I want to get "new.html" > | > |Whenever I try to use "\" I get a Unterminated String variable error > | eg var t=txt.split("\") > | > |Obviously the problem is in trying to use the "\" character which is an > |escape char for JScript I beleive. But how can I solve my problem? > | > |Andrew > | > | > |_______________________________________________ > |Javascript mailing list > |Javascript at LaTech.edu > |https://lists.LaTech.edu/mailman/listinfo/javascript > | > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From laurence.cotton at ntlworld.com Wed Dec 11 11:23:07 2002 From: laurence.cotton at ntlworld.com (Larry Cotton) Date: Wed, 11 Dec 2002 17:23:07 +0000 Subject: [Javascript] (no subject) Message-ID: <5.1.0.14.0.20021211165144.03740eb8@pop3.norton.antivirus> Hi I'm attempting to update some information in a form using an external reference to a window opened using the open() method. My test scripts look something like (deb_prn simply writes to a debug window) : WinOpTst.htm - file containing the code to open the window ---------------------- popPgTst.htm ----------------------
When I open WinOpTst.htm in IE 5 the output I get is : popPgWin.document.forms.length = 0 popPgWin.document.forms[0].name = form1 popPgWin.document.forms.length = 1 popPgWin.document.forms.TextBox1.value = Hello ... which is almost what I expect, except for some reason the length of forms[] returns 0 until the form itself has been accessed. When I open it in Netscape 7.0 the output is : popPgWin.document.forms.length = 0 and there is an error message saying ' popPgWin.document.forms[0] has no properties' Does anyone know what is going on here and how I can access the form in Netscape ? Cheers Larry From charlie_chan at cox-internet.com Wed Dec 11 12:07:29 2002 From: charlie_chan at cox-internet.com (charlie_chan) Date: Wed, 11 Dec 2002 12:07:29 -0600 Subject: [Javascript] (no subject) References: <5.1.0.14.0.20021211165144.03740eb8@pop3.norton.antivirus> Message-ID: <000601c2a140$2baf8fe0$5f1cb4d0@coxinternet.com> I am confused about this code. I do not see any thing that creates a form on the Javascript created page. It would look like: popPgWin.document.write('
') & popPgWin.document.wrte('
') to open and close a form created with JavaScript. ----- Original Message ----- From: "Larry Cotton" To: Sent: Wednesday, December 11, 2002 11:23 AM Subject: [Javascript] (no subject) > Hi > > I'm attempting to update some information in a form using an external > reference to a window opened using the open() method. > > My test scripts look something like (deb_prn simply writes to a debug window) : > > WinOpTst.htm - file containing the code to open the window > ---------------------- > > > popPgTst.htm > ---------------------- > >
> >
> > > When I open WinOpTst.htm in IE 5 the output I get is : > popPgWin.document.forms.length = 0 > popPgWin.document.forms[0].name = form1 > popPgWin.document.forms.length = 1 > popPgWin.document.forms.TextBox1.value = Hello > > ... which is almost what I expect, except for some reason the length of > forms[] returns 0 until the form itself has been accessed. > > When I open it in Netscape 7.0 the output is : > popPgWin.document.forms.length = 0 > > and there is an error message saying ' popPgWin.document.forms[0] has no > properties' > > Does anyone know what is going on here and how I can access the form in > Netscape ? > > Cheers > Larry > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From charlie_chan at cox-internet.com Wed Dec 11 12:13:54 2002 From: charlie_chan at cox-internet.com (charlie_chan) Date: Wed, 11 Dec 2002 12:13:54 -0600 Subject: [Javascript] variable whose name is the result of a calculation? References: Message-ID: <000b01c2a141$10eb56c0$5f1cb4d0@coxinternet.com> The entire code would help a lot! Not enough info here to understand what you are doing. ----- Original Message ----- From: "Anthony Webster" To: Sent: Wednesday, December 11, 2002 5:50 AM Subject: [Javascript] variable whose name is the result of a calculation? hi all, I want to define a new variable, whose name is the result of a calculation. does this make sense? a simple example follows var1 = 'ora'; var2= 'nge'; var3 = var1 + var2; // result: // var3 = 'orange'; eval(var3) = '263'; // intended result: // orange = '#FB8E36'; of course when I do this, javascript is not happy. it doesnt like the left hand side with the 'intended result' bit. why am I doing things like this? I am going to be supplied the names of the colours without knowing what they will be. I will need to evaluate what they are and then declare variables for each of them so I can reuse this information. any help would be greatly appreciated! thanks, anthony _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From carl at carladler.org Wed Dec 11 12:19:42 2002 From: carl at carladler.org (Carl Adler) Date: Wed, 11 Dec 2002 13:19:42 -0500 Subject: [Javascript] Split In-Reply-To: <20021211170850.73900.qmail@web20302.mail.yahoo.com> Message-ID: I just tested it and \/ works and // does not work. Carl From: Peter Brunone Reply-To: javascript at LaTech.edu Date: Wed, 11 Dec 2002 09:08:50 -0800 (PST) To: javascript at LaTech.edu Subject: Re: [Javascript] Split But he wants to split based on \, not on /. txt.split("\\") escapes the second \ character, just as txt.split("\"") escapes the " character so you can split on it... not that you would, but there it is. As for working in different browsers... ah, that's the joy of web development. -Peter Carl Adler wrote: Actually var t=txt.split("\") > |works for me using Netscape 4.7 and IE 5.1 on the Mac and IE 5.5 on Windows ME. If "\" was a problem I think that you would use "\/" not "//" Carl > From: "Peter Brunone" > Organization: Your Name Here > Reply-To: javascript at LaTech.edu > Date: Tue, 10 Dec 2002 17:40:46 -0600 > To: > Subject: RE: [Javascript] Split > > > var t=txt.split("\\") > > |-----Original Message----- > |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On > |Behalf Of Andrew Gibson > |Sent: Wednesday, December 11, 2002 4:23 AM > |To: javascript at LaTech.edu > |Subject: [Javascript] Split > | > | > |I'm trying to use split to separate out a file name from the complete > |string. > | > |from > | > | var txt="C:\Copy\new.html" > | > | I want to get "new.html" > | > |Whenever I try to use "\" I get a Unterminated String variable error > | eg var t=txt.split("\") > | > |Obviously the problem is in trying to use the "\" character which is an > |escape char for JScript I beleive. But how can I solve my problem? > | > |Andrew > | > | > |_______________________________________________ > |Javascript mailing list > |Javascript at LaTech.edu > |https://lists.LaTech.edu/mailman/listinfo/javascript > | > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at babelfish.co.uk Wed Dec 11 12:24:20 2002 From: ben at babelfish.co.uk (Ben Joyce) Date: Wed, 11 Dec 2002 18:24:20 -0000 Subject: [Javascript] Split In-Reply-To: Message-ID: \o/ :) -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of Carl Adler Sent: 11 December 2002 18:20 To: javascript at LaTech.edu Subject: Re: [Javascript] Split I just tested it and \/ works and // does not work. Carl From: Peter Brunone Reply-To: javascript at LaTech.edu Date: Wed, 11 Dec 2002 09:08:50 -0800 (PST) To: javascript at LaTech.edu Subject: Re: [Javascript] Split But he wants to split based on \, not on /. txt.split("\\") escapes the second \ character, just as txt.split("\"") escapes the " character so you can split on it... not that you would, but there it is. As for working in different browsers... ah, that's the joy of web development. -Peter Carl Adler wrote: Actually var t=txt.split("\") > |works for me using Netscape 4.7 and IE 5.1 on the Mac and IE 5.5 on Windows ME. If "\" was a problem I think that you would use "\/" not "//" Carl > From: "Peter Brunone" > Organization: Your Name Here > Reply-To: javascript at LaTech.edu > Date: Tue, 10 Dec 2002 17:40:46 -0600 > To: > Subject: RE: [Javascript] Split > > > var t=txt.split("\\") > > |-----Original Message----- > |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On > |Behalf Of Andrew Gibson > |Sent: Wednesday, December 11, 2002 4:23 AM > |To: javascript at LaTech.edu > |Subject: [Javascript] Split > | > | > |I'm trying to use split to separate out a file name from the complete > |string. > | > |from > | > | var txt="C:\Copy\new.html" > | > | I want to get "new.html" > | > |Whenever I try to use "\" I get a Unterminated String variable error > | eg var t=txt.split("\") > | > |Obviously the problem is in trying to use the "\" character which is an > |escape char for JScript I beleive. But how can I solve my problem? > | > |Andrew > | > | > |_______________________________________________ > |Javascript mailing list > |Javascript at LaTech.edu > |https://lists.LaTech.edu/mailman/listinfo/javascript > | > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at brunone.com Wed Dec 11 12:30:36 2002 From: peter at brunone.com (Peter Brunone) Date: Wed, 11 Dec 2002 13:30:36 -0500 Subject: [Javascript] Split Message-ID: <200212111330.AA2924676092@brunone.com> Doesn't work in what way? // would split on //, since \ is the character that he was trying to find, and it's also the escape character (which is why it needs to be escaped by another of itself). -Peter ---------- Original Message ---------------------------------- From: Carl Adler Reply-To: javascript at LaTech.edu Date: Wed, 11 Dec 2002 13:19:42 -0500 >I just tested it and \/ works and // does not work. >Carl > >From: Peter Brunone >Reply-To: javascript at LaTech.edu >Date: Wed, 11 Dec 2002 09:08:50 -0800 (PST) >To: javascript at LaTech.edu >Subject: Re: [Javascript] Split > > > >But he wants to split based on \, not on /. > >txt.split("\\") escapes the second \ character, just as > >txt.split("\"") escapes the " character so you can split on it... not that >you would, but there it is. > >As for working in different browsers... ah, that's the joy of web >development. > >-Peter > >Carl Adler wrote: >Actually var t=txt.split("\") >> |works for me using Netscape 4.7 and IE 5.1 on the Mac and IE 5.5 on Windows >ME. If "\" was a problem I think that you would use "\/" not "//" >Carl > >> From: "Peter Brunone" >> Organization: Your Name Here >> Reply-To: javascript at LaTech.edu >> Date: Tue, 10 Dec 2002 17:40:46 -0600 >> To: >> Subject: RE: [Javascript] Split >> >> >> var t=txt.split("\\") >> >> |-----Original Message----- >> |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On >> |Behalf Of Andrew Gibson >> |Sent: Wednesday, December 11, 2002 4:23 AM >> |To: javascript at LaTech.edu >> |Subject: [Javascript] Split >> | >> | >> |I'm trying to use split to separate out a file name from the complete >> |string. >> | >> |from >> | >> | var txt="C:\Copy\new.html" >> | >> | I want to get "new.html" >> | >> |Whenever I try to use "\" I get a Unterminated String variable error >> | eg var t=txt.split("\") >> | >> |Obviously the problem is in trying to use the "\" character which is an >> |escape char for JScript I beleive. But how can I solve my problem? >> | >> |Andrew >> | >> | >> |_______________________________________________ >> |Javascript mailing list >> |Javascript at LaTech.edu >> |https://lists.LaTech.edu/mailman/listinfo/javascript >> | >> _______________________________________________ >> Javascript mailing list >> Javascript at LaTech.edu >> https://lists.LaTech.edu/mailman/listinfo/javascript >> > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > >Do you Yahoo!? >Yahoo! Mail Plus > - Powerful. >Affordable. Sign up now > > > > > From carl at carladler.org Wed Dec 11 12:40:50 2002 From: carl at carladler.org (Carl Adler) Date: Wed, 11 Dec 2002 13:40:50 -0500 Subject: [Javascript] Split In-Reply-To: <200212111330.AA2924676092@brunone.com> Message-ID: Ah yes I now remember on a pc "\" is used for internal URLs instead of "/" which is what I am used to seeing and thought he was splitting on. I mainly use a Mac and am so used to seeing "/" in internal URLs I mentally translated his \. That will teach me to copy and paste. The one time I am not lazy I pay for it. Sorry about that. Carl > From: "Peter Brunone" > Reply-To: javascript at LaTech.edu > Date: Wed, 11 Dec 2002 13:30:36 -0500 > To: > Subject: Re: [Javascript] Split > > > Doesn't work in what way? // would split on //, since \ is the character that > he was trying to find, and it's also the escape character (which is why it > needs to be escaped by another of itself). > > -Peter > > ---------- Original Message ---------------------------------- > From: Carl Adler > Reply-To: javascript at LaTech.edu > Date: Wed, 11 Dec 2002 13:19:42 -0500 > >> I just tested it and \/ works and // does not work. >> Carl >> >> From: Peter Brunone >> Reply-To: javascript at LaTech.edu >> Date: Wed, 11 Dec 2002 09:08:50 -0800 (PST) >> To: javascript at LaTech.edu >> Subject: Re: [Javascript] Split >> >> >> >> But he wants to split based on \, not on /. >> >> txt.split("\\") escapes the second \ character, just as >> >> txt.split("\"") escapes the " character so you can split on it... not that >> you would, but there it is. >> >> As for working in different browsers... ah, that's the joy of web >> development. >> >> -Peter >> >> Carl Adler wrote: >> Actually var t=txt.split("\") >>> |works for me using Netscape 4.7 and IE 5.1 on the Mac and IE 5.5 on Windows >> ME. If "\" was a problem I think that you would use "\/" not "//" >> Carl >> >>> From: "Peter Brunone" >>> Organization: Your Name Here >>> Reply-To: javascript at LaTech.edu >>> Date: Tue, 10 Dec 2002 17:40:46 -0600 >>> To: >>> Subject: RE: [Javascript] Split >>> >>> >>> var t=txt.split("\\") >>> >>> |-----Original Message----- >>> |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On >>> |Behalf Of Andrew Gibson >>> |Sent: Wednesday, December 11, 2002 4:23 AM >>> |To: javascript at LaTech.edu >>> |Subject: [Javascript] Split >>> | >>> | >>> |I'm trying to use split to separate out a file name from the complete >>> |string. >>> | >>> |from >>> | >>> | var txt="C:\Copy\new.html" >>> | >>> | I want to get "new.html" >>> | >>> |Whenever I try to use "\" I get a Unterminated String variable error >>> | eg var t=txt.split("\") >>> | >>> |Obviously the problem is in trying to use the "\" character which is an >>> |escape char for JScript I beleive. But how can I solve my problem? >>> | >>> |Andrew >>> | >>> | >>> |_______________________________________________ >>> |Javascript mailing list >>> |Javascript at LaTech.edu >>> |https://lists.LaTech.edu/mailman/listinfo/javascript >>> | >>> _______________________________________________ >>> Javascript mailing list >>> Javascript at LaTech.edu >>> https://lists.LaTech.edu/mailman/listinfo/javascript >>> >> >> _______________________________________________ >> Javascript mailing list >> Javascript at LaTech.edu >> https://lists.LaTech.edu/mailman/listinfo/javascript >> >> >> >> >> >> >> >> Do you Yahoo!? >> Yahoo! Mail Plus >> - Powerful. >> Affordable. Sign up now >> >> >> >> >> > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From trojani2000 at hotmail.com Wed Dec 11 13:20:53 2002 From: trojani2000 at hotmail.com (BEKIM BACAJ) Date: Wed, 11 Dec 2002 19:20:53 +0000 Subject: [Javascript] Split Message-ID: Try: var t=txt.split("\\") >From: "Andrew Gibson" >Reply-To: javascript at LaTech.edu >To: >Subject: [Javascript] Split >Date: Wed, 11 Dec 2002 23:23:17 +1300 > >I'm trying to use split to separate out a file name from the complete >string. > >from > > var txt="C:\Copy\new.html" > > I want to get "new.html" > >Whenever I try to use "\" I get a Unterminated String variable error > eg var t=txt.split("\") > >Obviously the problem is in trying to use the "\" character which is an >escape char for JScript I beleive. But how can I solve my problem? > >Andrew > > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From alfwro at wp.pl Wed Dec 11 14:53:25 2002 From: alfwro at wp.pl (aw) Date: Wed, 11 Dec 2002 21:53:25 +0100 Subject: [Javascript] create
using JS Message-ID: <3DF7B3D5.13213.1A98D@localhost> Hi I have galery page with smal pics, when you click them new window is opening with the picture orginal size. I'd like rebuit it that no new window is opening but new
section is creating and displaying the image with is orginal resolution within the confines of the old page.
I could create definitions as shown above for each image with visibility set: hide and on click change to visible but for large colection (about 100-200 images) it is no sens. How to rebuild this function that it won't open new window but create new
section: ..... ...... ..... function displayWindow(imageName, ImageWidthPx, ImageHeightPx) { var Win = window.open(imageName,"displayWindow",'width=' +ImageWidthPx+ ',height=' + ImageHeightPx + '); } .... .... ... ... ... ... ... Have any ideas? Regards andrzej From charlie_chan at cox-internet.com Thu Dec 12 00:42:27 2002 From: charlie_chan at cox-internet.com (charlie_chan) Date: Thu, 12 Dec 2002 00:42:27 -0600 Subject: [Javascript] create
using JS References: <3DF7B3D5.13213.1A98D@localhost> Message-ID: <000401c2a1a9$a3538560$5f1cb4d0@coxinternet.com> I believe that creating an array of images to use as a image cache during the download process is your best option. You can then dynamically create a page and use a variable that corresponds to the image in the cache for the image to display on the page. You can use a Boolean variable at some point/s in the array that relates to a particular image location to determine if a certain amount of images have been download. That way you will not have an active page without all the images you need to make it work. ----- Original Message ----- From: "aw" To: Sent: Wednesday, December 11, 2002 2:53 PM Subject: [Javascript] create
using JS > Hi > I have galery page with smal pics, when you click them new window is > opening with the picture orginal size. > I'd like rebuit it that no new window is opening but new
section is > creating and displaying the image with is orginal resolution within the > confines of the old page. > >
> >
> > I could create definitions as shown above for each image with visibility set: hide > and on click change to visible but for large colection (about 100-200 images) it is > no sens. > > How to rebuild this function that it won't open new window but create new
> section: > > > > ..... > ...... > ..... > function displayWindow(imageName, ImageWidthPx, ImageHeightPx) { > var Win = window.open(imageName,"displayWindow",'width=' > +ImageWidthPx+ ',height=' + ImageHeightPx + '); > } > .... > .... > > > ... > ... > > WIDTH="80"> > > ... > ... > ... > > > Have any ideas? > > Regards > andrzej > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From geckoz at today.com.au Thu Dec 12 00:59:55 2002 From: geckoz at today.com.au (Dan) Date: Thu, 12 Dec 2002 17:59:55 +1100 Subject: [Javascript] weird JavaScript problem in IE6 Message-ID: <4946627CDCCAF4942A952CF4485527F6@geckoz.today.com.au> Hi all, I have the following script, This works fine in IE5.5, but does not display anything at all in IE6 or Netscape 7 . Netscape complains about permissions denied when attempting to access the form field values. If I just have the following script, It works fine. What on earth is going on here? Dan. --- Send the right message --- + Today freemail + Get your free, private email address at http://www.today.com.au From laurence.cotton at ntlworld.com Thu Dec 12 04:21:45 2002 From: laurence.cotton at ntlworld.com (Larry Cotton) Date: Thu, 12 Dec 2002 10:21:45 +0000 Subject: [Javascript] Accessing forms in remote windows. In-Reply-To: <000601c2a140$2baf8fe0$5f1cb4d0@coxinternet.com> References: <5.1.0.14.0.20021211165144.03740eb8@pop3.norton.antivirus> Message-ID: <5.1.0.14.0.20021212100431.00a68148@pop3.norton.antivirus> Hi (Sorry about forgetting to put in a subject !!) There is no form created by the javascript code in WinOpTst.htm. WinOpTst.htm uses window.open() to open a window and load popPgTst.htm (if it hasn't already been opened) and naming it "PopPgTst". The javascript stores the returned reference to the window in a variable called popPgWin. PopPgTst.htm contains a form called "form1" (standard html). Once the window has been opened (with PopPgTst.htm) the javascript then tries to access the form object in the standard way, but through the window reference returned by window.open() : popPgWin.document.forms.form1 As I understand it (but I may well be wrong) the window.open(, ) function should open a new browser window, load the page identified by , name the new window and return a reference to the new window (which can then, of course, be used in the same way as any window object). This indeed seems to be the behavior in IE5, but in NN7 the form object does not seem to be created (though the document object exists and the page is displayed correctly in the new window). Cheers Larry At 12:07 11/12/2002 -0600, you wrote: >I am confused about this code. I do not see any thing that creates a form >on the Javascript created page. It would look like: >popPgWin.document.write('
') & popPgWin.document.wrte('
') to >open and close a form created with JavaScript. > >----- Original Message ----- >From: "Larry Cotton" >To: >Sent: Wednesday, December 11, 2002 11:23 AM >Subject: [Javascript] (no subject) > > > > Hi > > > > I'm attempting to update some information in a form using an external > > reference to a window opened using the open() method. > > > > My test scripts look something like (deb_prn simply writes to a debug >window) : > > > > WinOpTst.htm - file containing the code to open the window > > ---------------------- > > > > > > popPgTst.htm > > ---------------------- > > > >
> > > >
> > > > > > When I open WinOpTst.htm in IE 5 the output I get is : > > popPgWin.document.forms.length = 0 > > popPgWin.document.forms[0].name = form1 > > popPgWin.document.forms.length = 1 > > popPgWin.document.forms.TextBox1.value = Hello > > > > ... which is almost what I expect, except for some reason the length >of > > forms[] returns 0 until the form itself has been accessed. > > > > When I open it in Netscape 7.0 the output is : > > popPgWin.document.forms.length = 0 > > > > and there is an error message saying ' popPgWin.document.forms[0] has no > > properties' > > > > Does anyone know what is going on here and how I can access the form in > > Netscape ? > > > > Cheers > > Larry > > > > > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript From laurence.cotton at ntlworld.com Thu Dec 12 04:50:15 2002 From: laurence.cotton at ntlworld.com (Larry Cotton) Date: Thu, 12 Dec 2002 10:50:15 +0000 Subject: [Javascript] weird JavaScript problem in IE6 In-Reply-To: <4946627CDCCAF4942A952CF4485527F6@geckoz.today.com.au> Message-ID: <5.1.0.14.0.20021212104500.02a2d520@pop3.norton.antivirus> Hi I'm also having problems accessing forms in remote windows on NN7 (I haven't tried on IE6). Does anyone know if there has been some security features put in the latest browsers to prevent javascript from accessing properties of documents in remote windows ? or where I might find out whether this is the case ? Cheers Larry At 17:59 12/12/2002 +1100, you wrote: >Hi all, > >I have the following script, > > >This works fine in IE5.5, but does not display >anything at all in IE6 or Netscape 7 . Netscape >complains about permissions denied when >attempting to access the form field values. > >If I just have the following script, > > >It works fine. What on earth is going on here? > >Dan. > > --- Send the right message --- > > + Today freemail + > >Get your free, private email address at > http://www.today.com.au >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript From hannum at ohio.edu Thu Dec 12 06:52:36 2002 From: hannum at ohio.edu (David Hannum) Date: Thu, 12 Dec 2002 07:52:36 -0500 Subject: [Javascript] Limit Choices in Multiple Select Box References: <4946627CDCCAF4942A952CF4485527F6@geckoz.today.com.au> Message-ID: <008c01c2a1dd$617001d0$bd08eb84@HERCULESE> I'm using a script that when a user selects an option in a multi-select box, it places it in another box. What I need to do is limit the number of items in the second box to three. Can this be done? Dave =============================== David R. Hannum Web Analyst/Programmer Ohio University Computer Services Administrative Systems (740) 597-2524 "If your wife is having fun, and you're not . . . You're still having a lot more fun than if you're having fun, and she's not!" (Red Green) From bader at tcbader.com Thu Dec 12 08:35:34 2002 From: bader at tcbader.com (Terry) Date: Thu, 12 Dec 2002 09:35:34 -0500 Subject: [Javascript] Limit Choices in Multiple Select Box References: <4946627CDCCAF4942A952CF4485527F6@geckoz.today.com.au> <008c01c2a1dd$617001d0$bd08eb84@HERCULESE> Message-ID: <007201c2a1eb$bb8fdfb0$6401a8c0@roadrunner> sure... i have done it before... i dont have the code but you will want to look into doing the following... -new array to hold current values of selected indexs (HOLDER) -select.onchange will evoke your function to check -onchange function: check length of HOLDER if > 3 then loop select and reset values to unselect loop HOLDER set select.options[HOLDER].selected to true else loop select and insert selected indexes into HOLDER Anyway, this is where I would start.... I would recommend getting O'Reilly's Javascript - The Definitive Guide ~ Terry 757 581-5981 AIM/Yahoo: lv2bounce ----- Original Message ----- From: "David Hannum" To: Sent: Thursday, December 12, 2002 7:52 AM Subject: [Javascript] Limit Choices in Multiple Select Box > I'm using a script that when a user selects an option in a multi-select box, > it places it in another box. What I need to do is limit the number of items > in the second box to three. Can this be done? > > Dave > > > > =============================== > David R. Hannum > Web Analyst/Programmer > Ohio University Computer Services > Administrative Systems > (740) 597-2524 > > "If your wife is having fun, and you're not . . . > You're still having a lot more fun than if > you're having fun, and she's not!" (Red Green) > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andyg at ihug.co.nz Thu Dec 12 17:11:06 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Fri, 13 Dec 2002 12:11:06 +1300 Subject: [Javascript] Split References: Message-ID: <00af01c2a233$c072b550$1ce8adcb@k1n8i8> Trying to split string with "\" Subject: Re: [Javascript] Split > Try: var t=txt.split("\\") Many thanks for the help on this. But when I try the following code The alerts return 1 for the length of the array and value of the first element is "test est" That must be something to do with \t [est] in the string but I thought the \\ would escape the special \ character. Im using ie6.0 on pc. Andrew Gibson From geckoz at today.com.au Thu Dec 12 17:53:33 2002 From: geckoz at today.com.au (Dan) Date: Fri, 13 Dec 2002 10:53:33 +1100 Subject: [Javascript] weird JavaScript problem in IE6 Message-ID: <22060262F38BF3C40973FE16CB83B9F3@geckoz.today.com.au> I have worked out the cause of my problem. The problem was this: This code works, in both IE5.5 and IE6, and NN7, window.open('showreport.asp?url='+pageurl,"Report","HEIGHT=250,WIDTH=390,left= 300,top=250"), But this only works in IE5.5, window.open('http://myserver:81/reports/showreport.asp?url='+pageurl,"Report","HEIGHT=250,WIDTH=390,left= 300,top=250"), The problem that I have to resolve now is how to set the path in window.open to the document to be opened. What approach can I use so that the document showreport.asp can be referenced from anywhere in the directory structure, since I now cannot use http://myserver:81/ etc. ? Dan. ---- Begin Original Message ---- From: "Dan" Sent: Thu, 12 Dec 2002 17:59:55 +1??S0D0o: javascript at LaTech.edu Subject: [Javascript] weird JavaScript problem in IE6 Hi all, I have the following script, This works fine in IE5.5, but does not display anything at all in IE6 or Netscape 7 . Netscape complains about permissions denied when attempting to access the form field values. If I just have the following script, It works fine. What on earth is going on here? Dan. --- Send the right message --- + Today freemail + Get your free, private email address at http://www.today.com.au _______________________________________________ Javascript mailing list Javascript at LaTech.edu hP???:?/lists.LaTech.edu/mailman/listinfo/javascript ---- End Original Message ---- --- Send the right message --- + Today freemail + Get your free, private email address at http://www.today.com.au From merchant at LATECH.EDU Fri Dec 13 09:12:59 2002 From: merchant at LATECH.EDU (David Merchant) Date: Fri, 13 Dec 2002 09:12:59 -0600 Subject: [Javascript] JavaScript List Unsubscirbe, Subscribe & Posting Info. Message-ID: <5.1.0.14.2.20021213091236.01ae1fc8@mail.latech.edu> There are two sets of instructions, first for those who joined the list directly and second for those who joined the list via egroups (at present I cannot manually unsubscribe anyone who joined via Yahoo Groups or eGroups). 1. If you wish to subscribe or unsubscribe, visit https://lists.LaTech.edu/mailman/listinfo/javascript or send a message with the word `help' in it to the request address, javascript-request at LaTech.edu, for further instructions. To post to the list, send your posts to javascript at latech.edu 2. For those who subscribed to the Javascript list via Yahoo Groups (formally eGroups), here is how to unsubscribe: To unsubscribe via email: From your email program, send a blank message to: javascript-unsubscribe at yahoogroups.com To unsubscribe via the Web: * Sign in to Yahoo! Groups and go to the My Groups page. * Click on the Edit Message Settings link at the top of the page. * Look for the group you wish to unsubscribe from, and select Unsubscribe from the pull-down list on the right. * Click Update to save your changes. The group will no longer be listed on the My Groups page, and you will no longer receive messages. Note: If you own a group, you must first give up your ownership in the Members section of your group before you can unsubscribe on the My Groups page. *** I CANNOT manually unsubscribe you if you subscribed to the list via eGroups or Yahoo Groups. *** I have complained _repeatedly_ about this to the folks at Yahoo Groups, but to no avail. I can only manually unsubscribe those who joined via https://lists.LaTech.edu/mailman/listinfo/javascript. TTFN, David Merchant Director of Integrated Technology CATALyST Louisiana Tech University Carson Taylor Hall, Rm. 129 PO Box 3179 Ruston, LA 71272 Tel: (318) 257-4772 Fax: (318) 257-3852 projectlife.latech.edu c3.latech.edu catalyst.latech.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From laurence.cotton at ntlworld.com Mon Dec 16 10:58:51 2002 From: laurence.cotton at ntlworld.com (Larry Cotton) Date: Mon, 16 Dec 2002 16:58:51 +0000 Subject: [Javascript] Remote windows in NN Message-ID: <5.1.0.14.0.20021216143839.00a68820@pop3.norton.antivirus> Hi I'm still having problems with opening popup windows in netscape. Can someone help me here. 1) Firstly I downloaded my NN from the web. When I bring up the about dialog I get the following text : " Netscape 7.0 Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0" I'm running on Windows 2000 and parseInt(navigator.appVersion) returns 5. Does this mean its netscape version 5 or 7 ? 2) Using this version of netscape I'm having problems accessing the properties of a window opened using window.open(). The follwing code : var wi = window.open("../rhythmOrderForm.htm", "RhythmOrders", "HEIGHT=700,WIDTH=840,left=0,top=0,scrollbars=1"); document.write("wi.location = " + wi.location + "
"); produces the following output : wi.location = about:blank and any attempts to access the properties of the document result in an error message of thew form : Error: wi.document.forms.RhythmOrderForm has no properties. When I press the "refresh" button on the browser the problem goes away and the window properties become accessible. Does anyone know what is going on here ? I seem to be hitting my head against brick wall at the moment. Cheers Larry From gassinaumasis at hotmail.com Mon Dec 16 11:36:05 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Mon, 16 Dec 2002 17:36:05 +0000 Subject: [Javascript] Remote windows in NN Message-ID: >I'm still having problems with opening popup windows in netscape. Can >someone help me here. > >1) Firstly I downloaded my NN from the web. When I bring up the about >dialog I get the following text : >" Netscape 7.0 >Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 >Netscape/7.0" > >I'm running on Windows 2000 and parseInt(navigator.appVersion) returns 5. > >Does this mean its netscape version 5 or 7 ? Officially Netscape 7. See my article at http://www.evolt.org/article/One_browser_many_names/21/29442/index.html for a partial explanation of the extremely complicated naming systems of Netscape and Mozilla. >2) Using this version of netscape I'm having problems accessing the >properties of a window opened using window.open(). The follwing code : > >var wi = window.open("../rhythmOrderForm.htm", "RhythmOrders", >"HEIGHT=700,WIDTH=840,left=0,top=0,scrollbars=1"); > document.write("wi.location = " + wi.location + "
"); > >produces the following output : >wi.location = about:blank That's because you ask for the location immediately after opening the window. The browser hasn't yet had a chance to evaluate your statement, open the window, assign the URL to location.href and download the page. It needs some more time. If you execute this function onLoad in the popup you'll get more satisfying results. >and any attempts to access the properties of the document result in an >error message of thew form : >Error: wi.document.forms.RhythmOrderForm has no properties. Same problem. ppk _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From javascript at theblades-family.com Tue Dec 17 09:32:51 2002 From: javascript at theblades-family.com (Cutter (JavaScript)) Date: Tue, 17 Dec 2002 10:32:51 -0500 Subject: [Javascript] link status Message-ID: <3DFF43A3.2020509@theblades-family.com> How can I setup a script which will "listen" for a user attempting to mouseover a link and automatically set the status bar to "" when they do so? Cutter From Esther_Strom at hmco.com Tue Dec 17 09:39:18 2002 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Tue, 17 Dec 2002 09:39:18 -0600 Subject: [Javascript] link status Message-ID: Not sure what you mean by "listen"; if you want the status bar to change when someone mouses over a link, put something in the onmouseover event: test |------------------------------| | E S T H E R S T R O M, CLPP | | Notes Application Development| | McDougal Littell | | 909 Davis Street | | Evanston, IL 60201 USA | | w: 847.424.3209 | | e: esther_strom at hmco.com | |------------------------------| "Cutter (JavaScript)" cc: Sent by: Subject: [Javascript] link status javascript-admin at LaTec h.edu 12/17/2002 09:32 AM Please respond to javascript How can I setup a script which will "listen" for a user attempting to mouseover a link and automatically set the status bar to "" when they do so? Cutter _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From javascript at theblades-family.com Tue Dec 17 10:12:46 2002 From: javascript at theblades-family.com (Cutter (JavaScript)) Date: Tue, 17 Dec 2002 11:12:46 -0500 Subject: [Javascript] link status References: Message-ID: <3DFF4CFE.4050207@theblades-family.com> Yes, I want to set a mouseover event for all links on the page. No, I do not want to include the mouseover in the link itself. I wanted to know if anyone had possibly done something like this using the links[] object of the document. Something like (though this doesn't do it...): Cutter Esther_Strom at hmco.com wrote: >Not sure what you mean by "listen"; if you want the status bar to change >when someone mouses over a link, put something in the onmouseover event: > >test >|------------------------------| >| E S T H E R S T R O M, CLPP | >| Notes Application Development| >| McDougal Littell | >| 909 Davis Street | >| Evanston, IL 60201 USA | >| w: 847.424.3209 | >| e: esther_strom at hmco.com | >|------------------------------| > > > > > > > "Cutter (JavaScript)" > family.com> cc: > Sent by: Subject: [Javascript] link status > javascript-admin at LaTec > h.edu > > > 12/17/2002 09:32 AM > Please respond to > javascript > > > > > > >How can I setup a script which will "listen" for a user attempting to >mouseover a link and automatically set the status bar to "" when they do >so? > >Cutter > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > From hassan at webtuitive.com Tue Dec 17 11:02:29 2002 From: hassan at webtuitive.com (Hassan Schroeder) Date: Tue, 17 Dec 2002 09:02:29 -0800 Subject: [Javascript] link status References: <3DFF4CFE.4050207@theblades-family.com> Message-ID: <3DFF58A5.8070200@webtuitive.com> Cutter (JavaScript) wrote: > Yes, I want to set a mouseover event for all links on the page. No, I do > not want to include the mouseover in the link itself. I wanted to know > if anyone had possibly done something like this using the links[] object > of the document. Something like (though this doesn't do it...): > > Assignment to an event handler takes a reference to a function, so you need something like this: // Until the page is loaded the links array will be empty , hence // the running it via onload(). HTH! -- Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. From sandra_tibbs at abicon.com Tue Dec 17 11:40:45 2002 From: sandra_tibbs at abicon.com (sandra_tibbs at abicon.com) Date: Tue, 17 Dec 2002 11:40:45 -0600 Subject: [Javascript] Javascript digest, Vol 1 #458 - 3 msgs Message-ID: (Embedded image moved to file: pic13458.jpg) Send Javascript mailing list submissions to javascript at LaTech.edu To subscribe or unsubscribe via the World Wide Web, visit http://www.LaTech.edu/mailman/listinfo/javascript or, via email, send a message with subject or body 'help' to javascript-request at LaTech.edu You can reach the person managing the list at javascript-admin at LaTech.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Javascript digest..." Today's Topics: 1. Re:Selects and Arrays (Bill Marriott) 2. RE: Re:Selects and Arrays (Mckinney, Lori K) 3. Re: Selects and Arrays. . (Bill Marriott) --__--__-- Message: 1 From: "Bill Marriott" To: Date: Sat, 17 Nov 2001 09:29:49 +1100 Subject: [Javascript] Re:Selects and Arrays Reply-To: javascript at LaTech.edu Hi Everyone, I'm having trouble with dynaically adding options to a second select depending on the choice of the first select. Can anyone see why the code below dosen't work. (It works without the "for" looping. ) thanks Bill var sprayChoice = new Array(); sprayChoice[0]= new Array(); sprayChoice[0][0]=13; sprayChoice[0][1]="Cosmos"; sprayChoice[0][2]=4; sprayChoice[1]= new Array(); sprayChoice[1][0]=9; sprayChoice[1][1]="DAP"; sprayChoice[1][2]=3; sprayChoice[2]= new Array(); sprayChoice[2][0]=1; sprayChoice[2][1]="Glysophate 450"; sprayChoice[2][2]=1; sprayChoice[3]= new Array(); sprayChoice[3][0]=11; sprayChoice[3][1]="Lorsban"; sprayChoice[3][2]=2; sprayChoice[4]= new Array(); sprayChoice[4][0]=8; sprayChoice[4][1]="MAP"; sprayChoice[4][2]=3; sprayChoice[5]= new Array(); sprayChoice[5][0]=10; sprayChoice[5][1]="Red Pickle"; sprayChoice[5][2]=4; sprayChoice[6]= new Array(); sprayChoice[6][0]=7; sprayChoice[6][1]="Spray seed"; sprayChoice[6][2]=1; sprayChoice[7]= new Array(); sprayChoice[7][0]=12; sprayChoice[7][1]="Talstar"; sprayChoice[7][2]=2; var totalRows=8; var filter = 0 ; function setProductOptions() { filter=document.newTable.sprayType.value; var i; for (i=0; i=totalRows; i++) { if ( filter = sprayChoice[i][3]) { var pOption=document.createElement("OPTION"); pOption.value=sprayChoice[i][0]; pOption.text=sprayChoice[i][1]; document.newTable.SPRAYPRODUCT.options.add(pOption); } } } --__--__-- Message: 2 From: "Mckinney, Lori K" To: javascript at LaTech.edu Subject: RE: [Javascript] Re:Selects and Arrays Date: Fri, 16 Nov 2001 16:54:52 -0600 Reply-To: javascript at LaTech.edu Bill, Is this just a typo in your mail? Shouldn't it be ==? if ( filter = sprayChoice[i][3]) -----Original Message----- From: Bill Marriott [mailto:bill.marriott at optusnet.com.au] Sent: Friday, November 16, 2001 4:30 PM To: javascript at LaTech.edu Subject: [Javascript] Re:Selects and Arrays Hi Everyone, I'm having trouble with dynaically adding options to a second select depending on the choice of the first select. Can anyone see why the code below dosen't work. (It works without the "for" looping. ) thanks Bill var sprayChoice = new Array(); sprayChoice[0]= new Array(); sprayChoice[0][0]=13; sprayChoice[0][1]="Cosmos"; sprayChoice[0][2]=4; sprayChoice[1]= new Array(); sprayChoice[1][0]=9; sprayChoice[1][1]="DAP"; sprayChoice[1][2]=3; sprayChoice[2]= new Array(); sprayChoice[2][0]=1; sprayChoice[2][1]="Glysophate 450"; sprayChoice[2][2]=1; sprayChoice[3]= new Array(); sprayChoice[3][0]=11; sprayChoice[3][1]="Lorsban"; sprayChoice[3][2]=2; sprayChoice[4]= new Array(); sprayChoice[4][0]=8; sprayChoice[4][1]="MAP"; sprayChoice[4][2]=3; sprayChoice[5]= new Array(); sprayChoice[5][0]=10; sprayChoice[5][1]="Red Pickle"; sprayChoice[5][2]=4; sprayChoice[6]= new Array(); sprayChoice[6][0]=7; sprayChoice[6][1]="Spray seed"; sprayChoice[6][2]=1; sprayChoice[7]= new Array(); sprayChoice[7][0]=12; sprayChoice[7][1]="Talstar"; sprayChoice[7][2]=2; var totalRows=8; var filter = 0 ; function setProductOptions() { filter=document.newTable.sprayType.value; var i; for (i=0; i=totalRows; i++) { if ( filter = sprayChoice[i][3]) { var pOption=document.createElement("OPTION"); pOption.value=sprayChoice[i][0]; pOption.text=sprayChoice[i][1]; document.newTable.SPRAYPRODUCT.options.add(pOption); } } } _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript --__--__-- Message: 3 From: "Bill Marriott" To: Date: Sat, 17 Nov 2001 14:32:52 +1100 Subject: [Javascript] Re: Selects and Arrays. . Reply-To: javascript at LaTech.edu Thanks Lori, It was not a typo just a mistake( I haven't done much in Javascript for a while) There was also a similar one in the "for" logic. Thanks for pointing it out. Bill --__--__-- _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript End of Javascript Digest -------------- next part -------------- A non-text attachment was scrubbed... Name: pic13458.jpg Type: image/jpeg Size: 1868 bytes Desc: not available URL: From sandra_tibbs at abicon.com Tue Dec 17 11:40:45 2002 From: sandra_tibbs at abicon.com (sandra_tibbs at abicon.com) Date: Tue, 17 Dec 2002 11:40:45 -0600 Subject: [Javascript] Javascript digest, Vol 1 #460 - 14 msgs Message-ID: (Embedded image moved to file: pic19796.jpg) Send Javascript mailing list submissions to javascript at LaTech.edu To subscribe or unsubscribe via the World Wide Web, visit http://www.LaTech.edu/mailman/listinfo/javascript or, via email, send a message with subject or body 'help' to javascript-request at LaTech.edu You can reach the person managing the list at javascript-admin at LaTech.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Javascript digest..." Today's Topics: 1. Re: disable "ctrl+n" (Dan Costea) 2. Help wanted re. Daylight-Saving Time values (Tim Makins) 3. How can i create new
Sent: 11 December, 2001 5:49 = PM
Subject: [Javascript] right = click base=20 popup

when you right click on on window or an = image or=20 somethin you 've got a default popup with
'open in new window' etc etc...
So,=20 I would really like to get rid of this because I need the right click = to do=20 something.
I tried to catch the = onmouseup=20 event but it seems that it doesn't care at all.
Please HEEEEELP !!   ;-))=20

------=_NextPart_000_0037_01C18271.17EDCBA0-- --__--__-- Message: 10 From: FERON Matthieu To: "'javascript at LaTech.edu'" Subject: RE: [Javascript] right click base popup Date: Tue, 11 Dec 2001 17:29:35 +0100 Reply-To: javascript at LaTech.edu This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C18260.7C3AC182 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable thanks a lot, I'll try this immediately !!! -----Message d'origine----- De : Dan Costea [mailto:costea.dan at ssi-schaefer.ro] Envoy=E9 : mardi 11 d=E9cembre 2001 17:25 =C0 : javascript at LaTech.edu Objet : Re: [Javascript] right click base popup If you want to get rid of the context menu, try this: =20 =20 Then you can use events like onClick, onMouseDown, onMouseUp to call = your own functions (to open a popup, a div or whatever you need to). =20 If you need the context menu in some cases, try: =20 =20 then you will have the context menu only if you have ctrl key pressed = (this might be useful sometime). =20 ----- Original Message -----=20 From: FERON Matthieu=20 To: 'javascript at LaTech.edu' =20 Sent: 11 December, 2001 5:49 PM Subject: [Javascript] right click base popup when you right click on on window or an image or somethin you 've got a default popup with=20 'open in new window' etc etc...=20 So, I would really like to get rid of this because I need the right = click to do something.=20 I tried to catch the onmouseup event but it seems that it doesn't care = at all.=20 Please HEEEEELP !! ;-))=20 ------_=_NextPart_001_01C18260.7C3AC182 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable right click base popup
thanks=20 a lot, I'll try this immediately !!!
-----Message d'origine-----
De : Dan Costea=20 [mailto:costea.dan at ssi-schaefer.ro]
Envoy=E9 : mardi = 11 d=E9cembre=20 2001 17:25
=C0 : = javascript at LaTech.edu
Objet : Re:=20 [Javascript] right click base popup

If you want to get rid of the = context menu, try=20 this:
 
<body onContextMenu=3D"return=20 false">
 
Then you can use events like = onClick,=20 onMouseDown, onMouseUp to call your own functions (to open a popup, a = div or=20 whatever you need to).
 
If you need the context menu in some = cases,=20 try:
 
<body onContextMenu=3D"return=20 event.ctrlKey">
 
then you will have the context menu = only if you=20 have ctrl key pressed (this might be useful sometime).
 
----- Original Message -----
From:=20 FERON=20 Matthieu
Sent: 11 December, 2001 5:49 = PM
Subject: [Javascript] right = click base=20 popup

when you right click on on window or = an image or=20 somethin you 've got a default popup with
'open in new window' etc etc...
So, I would really like to get rid of this because I need = the right=20 click to do something.
I = tried to catch=20 the onmouseup event but it seems that it doesn't care at = all.=20
Please HEEEEELP !!   = ;-))=20

------_=_NextPart_001_01C18260.7C3AC182-- --__--__-- Message: 11 Subject: Re: [Javascript] right click base popup To: javascript at LaTech.edu From: Esther_Strom at hmco.com Date: Tue, 11 Dec 2001 10:31:03 -0600 Reply-To: javascript at LaTech.edu Keep in mind that this doesn't work in Netscape (at least in 4.x; don't know about 6.) "Dan Costea" haefer.ro> cc: Sent by: Subject: Re: [Javascript] right click base popup javascript-admin at L aTech.edu 12/11/01 10:24 AM Please respond to javascript If you want to get rid of the context menu, try this: Then you can use events like onClick, onMouseDown, onMouseUp to call your own functions (to open a popup, a div or whatever you need to). If you need the context menu in some cases, try: then you will have the context menu only if you have ctrl key pressed (this might be useful sometime). ----- Original Message ----- From: FERON Matthieu To: 'javascript at LaTech.edu' Sent: 11 December, 2001 5:49 PM Subject: [Javascript] right click base popup when you right click on on window or an image or somethin you 've got a default popup with 'open in new window' etc etc... So, I would really like to get rid of this because I need the right click to do something. I tried to catch the onmouseup event but it seems that it doesn't care at all. Please HEEEEELP !! ;-)) --__--__-- _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript End of Javascript Digest -------------- next part -------------- A non-text attachment was scrubbed... Name: pic23622.jpg Type: image/jpeg Size: 1868 bytes Desc: not available URL: From sandra_tibbs at abicon.com Tue Dec 17 11:40:56 2002 From: sandra_tibbs at abicon.com (sandra_tibbs at abicon.com) Date: Tue, 17 Dec 2002 11:40:56 -0600 Subject: [Javascript] Javascript digest, Vol 1 #525 - 4 msgs Message-ID: (Embedded image moved to file: pic18875.jpg) Send Javascript mailing list submissions to javascript at LaTech.edu To subscribe or unsubscribe via the World Wide Web, visit https://lists.LaTech.edu/mailman/listinfo/javascript or, via email, send a message with subject or body 'help' to javascript-request at LaTech.edu You can reach the person managing the list at javascript-admin at LaTech.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Javascript digest..." Today's Topics: 1. Non-Scrolling Titles (pd) 2. doubts (gk) 3. Re: Could someone explain this to me (vallinis) 4. Re: Non-Scrolling Titles (Peter-Paul Koch) --__--__-- Message: 1 Date: Sat, 19 Jan 2002 17:22:18 -0500 To: javascript at LaTech.edu From: pd Subject: [Javascript] Non-Scrolling Titles Reply-To: javascript at LaTech.edu Is there a way to create something like an html with javascript that keeps the title row stationary at the top while allowing the other rows to scroll up underneath it? It would need to use the vertical scrollbar. I need to create reports with the top line stationary and the bottom rows scrolling up. It seems like I've seen this on different web sites. It seems like it would already have been done somewhere. If not with javascript, is there another technology that would make it possible? Thank you for any ideas you might have. Much appreciated. Paul --__--__-- Message: 2 From: "gk" To: Date: Wed, 16 Jan 2002 12:57:27 -0800 Subject: [Javascript] doubts Reply-To: javascript at LaTech.edu This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C19E8D.59C3DC30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable sir, how to disable save target as option in ( tag) right click = popup menu in javascript pls send the sample code for the above doubts mymail id is sn_karthi at rediffmail.com regards karthi ------=_NextPart_000_0005_01C19E8D.59C3DC30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
sir,
 
how to disable save target as option in = (<a=20 href></a> tag) right click popup menu in = javascript
pls send the sample code for the above=20 doubts
 
mymail id is sn_karthi at rediffmail.com
 
regards
karthi
------=_NextPart_000_0005_01C19E8D.59C3DC30-- --__--__-- Message: 3 Date: Sun, 20 Jan 2002 09:56:48 +0100 To: javascript at LaTech.edu From: vallinis Subject: [Javascript] Re: Could someone explain this to me Reply-To: javascript at LaTech.edu Hey, unbelievably good page, the nifitest Elements Table I ever saw! If you want to accomodate NS4 all you have to do is to use images instead=20 of buttons, and a link around them: if you make a set of a few coloured=20 images, that won't take too much time to load, say a set of 10 small gifs. Anyway, very very good: I bookmarked it! ciao Alberto .=B7. Vallini http://www.unitedscripters.com >I don't have an answer for your question you submitted to the JavaScript >list, but I do have a script that I wrote for I.E. 5 that you might want to >put on your site, its a periodic table of elements that when you click on= any >element it will tell you ALOT about the element, i hope you use it since it >took me about 4 days to write....and its not being used anywhere else. Its >located at: > >http://www.geocities.com/snarf_scripts/table.html > >if you use it you'll have to use table.js, and style.css, because= table.html >links to both of those files...and if you don't have them well it won't= work >:) > >go to : > >http://www.geocities.com/snarf_scripts/index.html > > There are two other scripts on the site...both of them were made to=20 > replace >a "links.html" page with a list of links, but the compact list with >categories would probably be really useful to you, IMHO. Just remember any >"script errors" that show up on the page are NOT from my scripts but from >geocities and i don't know why. > >Have a nice day and I hope you like my scripts. > >-Snarf > >if you have any questions email me. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com --__--__-- Message: 4 From: "Peter-Paul Koch" To: javascript at LaTech.edu Subject: Re: [Javascript] Non-Scrolling Titles Date: Sun, 20 Jan 2002 10:10:10 +0000 Reply-To: javascript at LaTech.edu >Is there a way to create something like an html
with javascript >that keeps the title row stationary at the top while allowing the other >rows to scroll up underneath it? It would need to use the vertical >scrollbar. > >It seems like I've seen this on different web sites. It seems like it >would already have been done somewhere. http://www.xs4all.nl/~ppk/js/index.html?fixedhead.html ppk _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com --__--__-- _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript End of Javascript Digest -------------- next part -------------- A non-text attachment was scrubbed... Name: pic18875.jpg Type: image/jpeg Size: 1868 bytes Desc: not available URL: From sandra_tibbs at abicon.com Tue Dec 17 11:41:00 2002 From: sandra_tibbs at abicon.com (sandra_tibbs at abicon.com) Date: Tue, 17 Dec 2002 11:41:00 -0600 Subject: [Javascript] Javascript digest, Vol 1 #540 - 3 msgs Message-ID: (Embedded image moved to file: pic31998.jpg) Send Javascript mailing list submissions to javascript at LaTech.edu To subscribe or unsubscribe via the World Wide Web, visit https://lists.LaTech.edu/mailman/listinfo/javascript or, via email, send a message with subject or body 'help' to javascript-request at LaTech.edu You can reach the person managing the list at javascript-admin at LaTech.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Javascript digest..." Today's Topics: 1. Browser sniffer script question (Lisa Bradshaw) 2. Re: Browser sniffer script question (Michael J. Mahony) 3. Re: Browser sniffer script question (Lisa Bradshaw) --__--__-- Message: 1 From: "Lisa Bradshaw" To: Date: Fri, 1 Feb 2002 18:27:56 -0500 Subject: [Javascript] Browser sniffer script question Reply-To: javascript at LaTech.edu Hi all, I don't know a whole lot of javascript. I'm mostly a cut-n-paster. I know enough to usually be able to tweek a script for my needs. I'm using a browser sniffer so I can determine what style sheet to serve up. Problem is, I don't know how to translate it fron HTML. Any help would be most appreciated. What I want to do is, if the browser is NN4 I want a specific style sheet loaded into the parent window. Here's the HTML way to load the style sheet: <.link rel="stylesheet" type="text/css" href="styles.css"> but how do I do it whithin a javascript "if " statement? TIA, Lisa --__--__-- Message: 2 From: "Michael J. Mahony" To: javascript at LaTech.edu Date: Fri, 1 Feb 2002 15:42:04 -0700 Subject: Re: [Javascript] Browser sniffer script question Reply-To: javascript at LaTech.edu On 1 Feb 2002 at 18:27, Lisa Bradshaw wrote: > Hi all, > > I don't know a whole lot of javascript. I'm mostly a cut-n-paster. I know > enough to usually be able to tweek a script for my needs. I'm using a > browser sniffer so I can determine what style sheet to serve up. Problem is, > I don't know how to translate it fron HTML. Any help would be most > appreciated. What I want to do is, if the browser is NN4 I want a specific > style sheet loaded into the parent window. Here's the HTML way to load the > style sheet: > <.link rel="stylesheet" type="text/css" href="styles.css"> but how do I do > it whithin a javascript "if " statement? > TIA, > Lisa Test for the browser type and then insert the stylesheet information with a document.write command: function insertStylesheet() { if(navigator.appName=="Microsoft Internet Explorer") { document.write "<.link rel='stylesheet' type='text/css' href='iestyles.css'>" } if(navigator.appName=="Netscape") { document.write "<.link rel='stylesheet' type='text/css' href='nsstyles.css'>" } } Just call this function where you would want to insert the style sheet: Document blahblahblah Hope that helps. Michael J. Mahony Philippians 4:13 -- I can do all things through Him who strengthens me. --__--__-- Message: 3 From: "Lisa Bradshaw" To: Subject: Re: [Javascript] Browser sniffer script question Date: Sat, 2 Feb 2002 12:12:37 -0500 Reply-To: javascript at LaTech.edu Thanks Michael! That did the trick! ----- Original Message ----- From: "Michael J. Mahony" To: Sent: Friday, February 01, 2002 5:42 PM Subject: Re: [Javascript] Browser sniffer script question > > Test for the browser type and then insert the stylesheet information with a > document.write command: > > function insertStylesheet() > { > if(navigator.appName=="Microsoft Internet Explorer") > { > document.write "<.link rel='stylesheet' type='text/css' href='iestyles.css'>" > } > > if(navigator.appName=="Netscape") > { > document.write "<.link rel='stylesheet' type='text/css' href='nsstyles.css'>" > } > } > > Just call this function where you would want to insert the style sheet: > > > > Document > > > > blahblahblah > > > > Hope that helps. > Michael J. Mahony > > Philippians 4:13 -- > I can do all things through Him who strengthens me. > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > --__--__-- _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript End of Javascript Digest -------------- next part -------------- A non-text attachment was scrubbed... Name: pic31998.jpg Type: image/jpeg Size: 1868 bytes Desc: not available URL: From sandra_tibbs at abicon.com Tue Dec 17 11:42:18 2002 From: sandra_tibbs at abicon.com (sandra_tibbs at abicon.com) Date: Tue, 17 Dec 2002 11:42:18 -0600 Subject: [Javascript] Javascript digest, Vol 1 #745 - 1 msg Message-ID: (Embedded image moved to file: pic21548.jpg) Send Javascript mailing list submissions to javascript at LaTech.edu To subscribe or unsubscribe via the World Wide Web, visit https://lists.LaTech.edu/mailman/listinfo/javascript or, via email, send a message with subject or body 'help' to javascript-request at LaTech.edu You can reach the person managing the list at javascript-admin at LaTech.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Javascript digest..." Today's Topics: 1. (no subject) (Smile) (Senior, Henry (TWIi London)) --__--__-- Message: 1 From: "Senior, Henry (TWIi London)" To: "'javascript at LaTech.edu'" Date: Fri, 6 Sep 2002 18:06:20 +0100 Subject: [Javascript] (no subject) (Smile) Reply-To: javascript at LaTech.edu I think this is a system setting - I've never seen a css property for this but is can be altered as a global window setting (in Windows at least) -----Original Message----- From: javascript-request at LaTech.edu [mailto:javascript-request at LaTech.edu] Sent: 06 September 2002 18:01 To: javascript at LaTech.edu Subject: Javascript digest, Vol 1 #744 - 2 msgs Send Javascript mailing list submissions to javascript at LaTech.edu To subscribe or unsubscribe via the World Wide Web, visit https://lists.LaTech.edu/mailman/listinfo/javascript or, via email, send a message with subject or body 'help' to javascript-request at LaTech.edu You can reach the person managing the list at javascript-admin at LaTech.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Javascript digest..." Today's Topics: 1. Fwd: Re: Re: Reloading "parent" window... (Sabrina Leandro) 2. (no subject) (Smile) -- __--__-- Message: 1 Date: Thu, 5 Sep 2002 14:08:35 -0700 (PDT) From: Sabrina Leandro To: javascript at LaTech.edu Subject: [Javascript] Fwd: Re: Re: Reloading "parent" window... Reply-To: javascript at LaTech.edu > Hi Peter and all, > > > window.opener.frames.frameName.location.reload() > > should do the trick. Just > > climb the object model :) > > I tried it, but it doesn't seem to work. I just > changed the framesName for my target's framename. > Isn't that right? > > Well, but I'll try to be more specific about my > problem. > > I usually work with PHP, and use only some jscripts, > (already done by others or poorly done by me :)) to > do > some form info checking, but nothing fancy... > > What I want to do now is this: user clicks on a > buttom > to select an image. This opens up a new window (with > the open jscript command). There he selects an image > and some other data in a form. > > I want to know how can I get hold of this > information > when he clicks the submit button on the child > window. > > Should I send it over to the other page as a form? > Or > can I get hold of the child's form info without > posting the form? > > I'm sure this is an easy (or at least, > done-a-hundred-times) thing, but I'm quite in a > hurry, > and I need some direction :) > > Just tell me which solution is best, and I'll learn > from that. > > I promise to read the js tutorials you've mentioned, > but only after my college's final exams :) > > Thanks a lot, - and sorry to bug you :) > Sabrina > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- __--__-- Message: 2 From: "Smile" To: Date: Fri, 6 Sep 2002 11:03:17 +0200 Subject: [Javascript] (no subject) Reply-To: javascript at LaTech.edu This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C25595.010D1D80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello! I found you on a Javascript Archives, and i wonder if u can help me. I want to change the scrollbar Width but i dont know how to do it. Do you? very greatfull Gilda ------=_NextPart_000_0005_01C25595.010D1D80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello!
 
I found you on a Javascript Archives, = and i wonder=20 if u can help me.
I want to change the scrollbar Width = but i dont=20 know how to do it.
Do you?
 
very greatfull
 
Gilda
 
------=_NextPart_000_0005_01C25595.010D1D80-- -- __--__-- _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript End of Javascript Digest DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. --__--__-- _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript End of Javascript Digest -------------- next part -------------- A non-text attachment was scrubbed... Name: pic21548.jpg Type: image/jpeg Size: 1868 bytes Desc: not available URL: From laurence.cotton at ntlworld.com Tue Dec 17 11:49:27 2002 From: laurence.cotton at ntlworld.com (Larry Cotton) Date: Tue, 17 Dec 2002 17:49:27 +0000 Subject: [Javascript] Remote windows in NN In-Reply-To: Message-ID: <5.1.0.14.0.20021217174422.00a68a68@pop3.norton.antivirus> Hi Thanks very much for this information Peter. Setting a timeout and executing the code in the called function seems to fix this. I had no idea the netscape naming system was so involved!! I don't suppose you (or anyone else) knows whether its possible (and I suspect not) to open a hidden window and then make it visible at an appropiate time ? Cheers Larry At 17:36 16/12/2002 +0000, you wrote: >>I'm still having problems with opening popup windows in netscape. Can >>someone help me here. >> >>1) Firstly I downloaded my NN from the web. When I bring up the about >>dialog I get the following text : >>" Netscape 7.0 >>Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 >>Netscape/7.0" >> >>I'm running on Windows 2000 and parseInt(navigator.appVersion) returns 5. >> >>Does this mean its netscape version 5 or 7 ? > >Officially Netscape 7. See my article at >http://www.evolt.org/article/One_browser_many_names/21/29442/index.html >for a partial explanation of the extremely complicated naming systems of >Netscape and Mozilla. > >>2) Using this version of netscape I'm having problems accessing the >>properties of a window opened using window.open(). The follwing code : >> >>var wi = window.open("../rhythmOrderForm.htm", "RhythmOrders", >>"HEIGHT=700,WIDTH=840,left=0,top=0,scrollbars=1"); >> document.write("wi.location = " + wi.location + "
"); >> >>produces the following output : >>wi.location = about:blank > >That's because you ask for the location immediately after opening the >window. The browser hasn't yet had a chance to evaluate your statement, >open the window, assign the URL to location.href and download the page. It >needs some more time. > >If you execute this function onLoad in the popup you'll get more >satisfying results. > >>and any attempts to access the properties of the document result in an >>error message of thew form : >>Error: wi.document.forms.RhythmOrderForm has no properties. > >Same problem. > >ppk > >_________________________________________________________________ >Tired of spam? Get advanced junk mail protection with MSN 8. >http://join.msn.com/?page=features/junkmail > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript From laurence.cotton at ntlworld.com Wed Dec 18 08:26:42 2002 From: laurence.cotton at ntlworld.com (Larry Cotton) Date: Wed, 18 Dec 2002 14:26:42 +0000 Subject: [Javascript] (no subject) Message-ID: <5.1.0.14.0.20021218140746.00a68de0@pop3.norton.antivirus> Hi I have a couple of questions regarding frames. The first is about whether I can avoid using them and the second is about refreshing frames. 1) I have a situation where the first part of the page is a simple search engine that, when activated (by a button press) uses javascript to generate and search an array. When the search is complete I wish to display the results below in the second half of the page. The viewer can then make some selections from the output and javascript is used to store any selections and perform any actions on the displayed items in the array. The array is stored in an object that must be accessible by both sections of the page. I'm not a huge fan of frames and was wondering if it is possible to do this sort of thing without using frames ? 2) I noticed that when there are two frames in a frameset and the bottom frame has been displayed using javascript, the bottom frame is not reset when the refresh button is pressed on the browser. Does anyone know a) why this is and b) how to make sure both frames are refreshed ? Cheers Larry From Andrew at d2k.com.au Thu Dec 19 01:22:04 2002 From: Andrew at d2k.com.au (Andrew Dunn) Date: Thu, 19 Dec 2002 17:22:04 +1000 Subject: [Javascript] SHOWMODELESSDIALOGUE Message-ID: <3B279CCBE6A1AD44A920B108222FC12D058E3C@chimaera.d2k.com.au> Hi Does anyone know how to change the location (url) of the ShowModeLessDialog box without the desired url appearing in a new window? Thank you. From costea.dan at ssi-schaefer.ro Thu Dec 19 01:29:53 2002 From: costea.dan at ssi-schaefer.ro (Dan Costea) Date: Thu, 19 Dec 2002 09:29:53 +0200 Subject: [Javascript] SHOWMODELESSDIALOGUE References: <3B279CCBE6A1AD44A920B108222FC12D058E3C@chimaera.d2k.com.au> Message-ID: <001f01c2a730$6c431680$7cdea8c0@PCCostea> I recomand you: http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodele ssdialog.asp ----- Original Message ----- From: "Andrew Dunn" To: Sent: Thursday, December 19, 2002 9:22 AM Subject: [Javascript] SHOWMODELESSDIALOGUE > > Hi > Does anyone know how to change the location (url) of the > ShowModeLessDialog box without the desired url appearing in a new > window? > > Thank you. > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From clipower at yahoo.com Thu Dec 19 10:31:05 2002 From: clipower at yahoo.com (Cli Power) Date: Thu, 19 Dec 2002 08:31:05 -0800 (PST) Subject: [Javascript] Free Javascript Web Controls Message-ID: <20021219163105.91593.qmail@web14503.mail.yahoo.com> Hi, http://www.geocities.com/clipower Just wanted to share this link with all Javascript Guys... These are cool Javascript client side controls which are free to download and use. Available controls are: Table Control Tab Control Tree Control Dropdown Control. To use these controls, we just need to pass the data and rest all is done by these controls. Please Visit, http://www.geocities.com/clipower clipower --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From gorden at bnl.gov Thu Dec 19 14:00:42 2002 From: gorden at bnl.gov (Gorden-Ozgul, Patricia E) Date: Thu, 19 Dec 2002 15:00:42 -0500 Subject: [Javascript] Free Javascript Web Controls Message-ID: ...can Dolls look too? -----Original Message----- From: Cli Power [mailto:clipower at yahoo.com] Sent: Thursday, December 19, 2002 11:31 AM To: javascript at LaTech.edu Subject: [Javascript] Free Javascript Web Controls Hi, http://www.geocities.com/clipower Just wanted to share this link with all Javascript Guys... These are cool Javascript client side controls which are free to download and use. Available controls are: Table Control Tab Control Tree Control Dropdown Control. To use these controls, we just need to pass the data and rest all is done by these controls. Please Visit, http://www.geocities.com/clipower clipower _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfwro at wp.pl Thu Dec 19 14:09:57 2002 From: alfwro at wp.pl (aw) Date: Thu, 19 Dec 2002 21:09:57 +0100 Subject: [Javascript] shift window In-Reply-To: References: <20021130015945.20462.qmail@web40709.mail.yahoo.com> Message-ID: <3E0235A5.10450.4ABA77@localhost> Hi all this script should do: 1. if window is opened resize it to current monitor resolution - it's works fine 2. then shift this window to top left of the monitor - fail, why? Whats wrong ? How to do this? regards andrzej From rodrigom at ctis.com.br Thu Dec 19 15:12:10 2002 From: rodrigom at ctis.com.br (=?iso-8859-1?Q?Rodrigo_Ot=E1vio_Moraes?=) Date: Thu, 19 Dec 2002 18:12:10 -0300 Subject: [JavaScript] Word Message-ID: <000601c2a7a3$8f9ca1f0$ac200180@nteinfoap> Hi, i'm in deep trouble. I'm getting from my webserv a FTF document, and I need to edit them, and... SAVE then! How can I read the content of my edited rtf document from another frame? Thanks.... -------------- next part -------------- An HTML attachment was scrubbed... URL: From tsimmons at employmentlawadvisors.com Thu Dec 19 15:36:03 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Thu, 19 Dec 2002 15:36:03 -0600 Subject: [Javascript] shift window References: <20021130015945.20462.qmail@web40709.mail.yahoo.com> <3E0235A5.10450.4ABA77@localhost> Message-ID: <01ab01c2a7a6$a2124030$0000a398@sndmgr122> Andrzej, Try "moveTo" in place of "scrollTo" - that works for me. HTH, Tommy Simmons Employment Law Advisory Network www.employmentlawadvisors.com ----- Original Message ----- From: "aw" To: Sent: Thursday, December 19, 2002 2:09 PM Subject: [Javascript] shift window > Hi all > this script should do: > 1. if window is opened resize it to current monitor resolution - > it's works fine > 2. then shift this window to top left of the monitor - fail, why? > Whats wrong ? How to do this? > > > > regards > andrzej From Kipp.Spanbauer at sas.com Fri Dec 20 08:55:46 2002 From: Kipp.Spanbauer at sas.com (Kipp Spanbauer) Date: Fri, 20 Dec 2002 09:55:46 -0500 Subject: [Javascript] greying out checkboxes Message-ID: Philip: I had the same question that you did regarding greying out javascript checkboxes and found my answer on a macromedia website: http://www.macromedia.com/v1/documents/hs4/html_reference/Forms/input.htm Basically, all you need is the word "DISABLED" in the along with the INPUT tag. Example: User must change password at next login
That should do it for you. I found your message at: https://lists.latech.edu/pipermail/javascript/2002-April/003356.html Thanks, Kipp Spanbauer kipp.spanbauer at sas.com ============================================================ Philip Humeniuk's message read as follows: Hi, I have the following input boxes in my index.htm file. What I would like to happen is if the user checks the box "User must change password at next login" I want the "User cannot change password" and "Password never expires" checkboxes grayed out and possibly the text also so they cannot check those. The only other option to check would be the "Account is disabled" Can this be easilty done with JS? User must change password at next login
User cannot change password
Password never expires
Account is disabled From TMccoy at city.newport-beach.ca.us Fri Dec 20 10:36:53 2002 From: TMccoy at city.newport-beach.ca.us (McCoy, Thomas) Date: Fri, 20 Dec 2002 08:36:53 -0800 Subject: [Javascript] Mac IE oddities with rollover help pop-ups Message-ID: <69DB2122006FD511AE44009027406B24731CAE@EXCHANGE_LIB> Our new Web site incorporates boxes that pop up when you roll over a link (to help people decide which link they want). It works good in most browsers, except Mac IE 5... where the pop up spans the entire screen. I throw myself upon the mercy of the JavaScript mailing list... I would appreciate any help you all may offer. Thanks :) Sincerely, Thomas McCoy (see it in action - mouse over a tab at: http://www.city.newport-beach.ca.us/nbpl/ ) SCRIPT: // to invoke: // // // //link pop_border = 1; pop_pad_top = 3; pop_pad_left = 4; pop_bordercolor = "#003300"; pop_bgcolor = '#FFFFCC'; pop_font = "Arial,Verdana,,Helvetica,sans-serif"; pop_textsize = 2; pop_fontsize = '7pt'; pop_textcolor = "#003300"; pop_offset_x = 12; pop_offset_y = 10; //-- var pop = null; var initialized = false; var pop_width = 200; var mouse_x=0, mouse_y=0; // Decide browser version var ie4 = document.all && !document.getElementById; var ie5 = document.all && document.getElementById; var ns6 = !document.all && document.getElementById; var ns4 = document.layers; function init(){ // popup if(ie4 || ie5 || ns4 || ns6){ // Make a popup object shortcut if (ns4) pop = document.popupDiv; if (ie4 || ie5) pop = popupDiv; if (ns6) pop = document.getElementById("popupDiv"); // Capture mouse movement if (ns4) document.captureEvents(Event.MOUSEMOVE); document.onmousemove = mouseMoved; } else { popup = do_nothing; popdn = do_nothing; } initialized = true; } // Show a popup function popup(text,width,height) { if (!initialized) return false; pop_width = (width)? width:200; pop_contentwidth = pop_width - (pop_border*2) - (pop_pad_left*2); // Make layer content if (typeof width != 'undefined') { var html_width = 'WIDTH='+width+' '; } if (typeof height != 'undefined') { var html_height = 'HEIGHT='+height+' '; } else var html_height = ''; if (ie4 || ie5) { var layerhtml = "
"+text+"
"; } if (ns4) { var layerhtml = "
"+text+"
"; } if (ns6) { var layerhtml = "
"+text+"
"; } // Write layer layerWrite(layerhtml); // Position layer setPopupPos(mouse_x, mouse_y); // Show layer show(pop); return true; } // Show a news story as a popup function news_popup (heading,text) { if (!initialized) return false; var layerhtml = "
< /TR>
"+heading+"
"+text+"
"; // Write layer layerWrite(layerhtml); // Position layer setPopupPos(mouse_x, mouse_y); // Show layer show(pop); return true; } // Clears popups if appropriate function popdn() { if ( initialized && (ie4 || ie5 || ns4 || ns6) && (pop != null) ) { hide(pop); } return true; } // Store mouse coordinates and move popup layer accordingly function mouseMoved(e) { if ( ns4 || ns6 ) { mouse_x=e.pageX; mouse_y=e.pageY;} if (ie4) { mouse_x=event.x; mouse_y=event.y;} if (ie5) { mouse_x=event.x+self.document.body.scrollLeft; mouse_y=event.y+self.document.body.scrollTop;} setPopupPos(mouse_x, mouse_y); } // Determine popup position (relative to cursor) function setPopupPos(mouse_x, mouse_y) { if (!initialized) return false; // Get window size if (ie4 || ie5) { var win_width = self.document.body.clientWidth; var win_height = self.document.body.clientHeight; } if (ns4) { var win_width = self.innerWidth; var win_height = self.innerHeight; } if (ns6) { var win_width = self.outerWidth; var win_height = self.outerHeight; } // Get window scroll position var win_scroll_x = (ie4 || ie5) ? self.document.body.scrollLeft : self.pageXOffset; var win_scroll_y = (ie4 || ie5) ? self.document.body.scrollTop : self.pageYOffset; // Get popup dimensions var pop_width_current = (ie4 || ie5)? pop.clientWidth:pop.offsetWidth; var pop_height_current = (ie4 || ie5)? pop.clientHeight:pop.offsetHeight; //alert (mouse_x + ':' + mouse_y + "\n" + win_width + ':' + win_height + "\n" + pop_width_current + ':' + pop_height_current + "\n" + pos_x + ':' + pos_y ); var scrollbar_size = (ie4 || ie5)? 0:16; // Set horizontal pos var pos_x = mouse_x + win_scroll_x + pop_offset_x; if (pos_x + pop_width_current > win_width + win_scroll_x - scrollbar_size) pos_x = win_width + win_scroll_x - pop_width_current - scrollbar_size; if (pos_x < win_scroll_x) pos_x = win_scroll_x; // Set vertical pos var pos_y = mouse_y + pop_offset_y; // stick to edge of window if would pass bottom edge // if (pos_y + pop_height_current > win_height + win_scroll_y - scrollbar_size) // pos_y = win_height + win_scroll_y - pop_height_current - scrollbar_size; // move above cursor if would pass bottom edge if (pos_y + pop_height_current > win_height + win_scroll_y - scrollbar_size) pos_y = mouse_y - pop_height_current - pop_offset_y; //self.status = "msx:" +mouse_x+ " msy:" +mouse_y+ " | posx:" +pos_x+ " posy:" +pos_y+ " | scrx:" +win_scroll_x+ " scry:" +win_scroll_y+ " | offx:" +pop_offset_x+ " offy:" +pop_offset_y+ " | cW:" + pop_width_current + " cH:" + pop_height_current; // Move the layer moveLayerTo(pop, pos_x, pos_y); } function moveLayerTo(obj,x,y) { if (ns4) { obj.left = x; obj.top = y; } else if (ie4 || ie5) { obj.style.left = x; obj.style.top = y; } else if (ns6) { obj.style.left = x + "px"; obj.style.top = y + "px"; } } // ========================================== // Make an object visible function show(obj) { if (ns4) obj.visibility = "show"; else if (ie4 || ie5) obj.style.visibility = "visible"; else if (ns6) obj.style.visibility = "visible"; } // Hides an object function hide(obj) { if (ns4) obj.visibility = "hide"; else if (ie4 || ie5) obj.style.visibility = "hidden"; else if (ns6) obj.style.visibility = "hidden"; } // Writes to a layer function layerWrite(txt) { if (ns4) { var lyr = self.document.popupDiv.document; lyr.write(txt); lyr.close(); } else if (ie4 || ie5) { // pop.innerHTML = txt; document.all.popupDiv.innerHTML=txt; } else if (ns6) { var range = self.document.createRange(); range.setStartBefore(pop); domfrag = range.createContextualFragment(txt); while (pop.hasChildNodes()) { pop.removeChild(pop.lastChild); } pop.appendChild(domfrag); } } function do_nothing() { return 1; } From Kipp.Spanbauer at sas.com Fri Dec 20 10:44:07 2002 From: Kipp.Spanbauer at sas.com (Kipp Spanbauer) Date: Fri, 20 Dec 2002 11:44:07 -0500 Subject: [Javascript] FW: greying out checkboxes Message-ID: Philip: Here's the code that I used:
Group A SubGroup 1
Group A SubGroup 2
Group B SubGroup 1
Group B SubGroup 2
Group C SubGroup 1
Group C SubGroup 2

Group Selection:

Free JavaScripts provided
by The JavaScript Source

Good luck, Kipp Spanbauer kipp.spanbauer at sas.com -----Original Message----- From: Kipp Spanbauer Sent: Fri 12/20/2002 9:55 AM To: phumes1 at rogers.com Cc: phil.humeniuk at rogers.com; javascript at LaTech.edu Subject: greying out checkboxes Philip: I had the same question that you did regarding greying out javascript checkboxes and found my answer on a macromedia website: http://www.macromedia.com/v1/documents/hs4/html_reference/Forms/input.htm Basically, all you need is the word "DISABLED" in the along with the INPUT tag. Example: User must change password at next login
That should do it for you. I found your message at: https://lists.latech.edu/pipermail/javascript/2002-April/003356.html Thanks, Kipp Spanbauer kipp.spanbauer at sas.com ============================================================ Philip Humeniuk's message read as follows: Hi, I have the following input boxes in my index.htm file. What I would like to happen is if the user checks the box "User must change password at next login" I want the "User cannot change password" and "Password never expires" checkboxes grayed out and possibly the text also so they cannot check those. The only other option to check would be the "Account is disabled" Can this be easilty done with JS? User must change password at next login
User cannot change password
Password never expires
Account is disabled From sachinz at dpsl.net Sun Dec 22 12:16:35 2002 From: sachinz at dpsl.net (Sachin Zingade) Date: Sun, 22 Dec 2002 23:46:35 +0530 Subject: [Javascript] Focus in Netscape 6.1 and above Message-ID: <009a01c2a9e6$43d574f0$310410ac@comp179> Hi, I need to focus on a media on a page displayed in a window when i click on a link present on another window.For this I have a code where I put ' ' before the text where I want to focus when that HTML is displayed on a browser and then I write a script '' which takes focus to that text. For ex - shailja saxena
( repeat text so that it scrolls down on a page ) shailja saxena
shailja saxena
shailja saxena
end here This works in IE but I have to refresh this page 3 times for it to work in Netscape6.2 How can I make it work in 1 go in Nescape ? I need this urgently. regards, Shailja -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 1784 bytes Desc: not available URL: From amol_n_mali at yahoo.com Tue Dec 24 09:37:16 2002 From: amol_n_mali at yahoo.com (Amol ) Date: Tue, 24 Dec 2002 15:37:16 -0000 Subject: [Javascript] Re: Silent window.close... or a better idea In-Reply-To: <01c801c2346a$5685c420$2791210a@pbrunone> Message-ID: Hi there, The idea of closing opener window seams to work fine for IE (Except for the first window call). Is there any work around for netscape. THanx. Amol --- In javascript at yahoogroups.com, "Peter Brunone" wrote: > Dan, > > That is EXACTLY what I needed... although I just said window.opener=top > and then closed it. Thanks a million! I wonder when MS will patch *that* > little useful feature... > > Cheers, > > Peter > > ----- Original Message ----- > From: "Dan Costea" > > > I had exactly the same problem few months ago :o) > > Because of the security reasons, you cannot close a window without > > confirmation, if you didn't open that window with your js. But if you > really > > have no choice, you must lie the IE, by telling it that you opened that > > window you want to close! Here is the code: > > > > function cheatCloseWin () > > { > > win = top; > > > > // lying: > > win.opener = top; > > > > win.close (); > > } > > > > Dan. > > > > ----- Original Message ----- > > From: "Peter Brunone" > > > > > > I have an intranet application (IE 5.5 only) that needs to be in a > > > fixed-size window with no menu, status, etc. I can use a simple > > > window.open, but unfortunately the user doesn't want an extra window > > around. > > > I thought that if a page is the first one in the history, you could > > > window.close() without a confirmation, but that doesn't seem to be the > > case. > > > Can someone suggest a way to either silently close the calling window > > > (which will be a new browser instance just for this app anyway) OR alter > > the > > > existing window in the same way? Since this is restricted to high-level > > MS > > > browsers, there has to be a usable option. > > > > > > Cheers, > > > > > > Peter > > > > _______________________________________________ > Javascript mailing list > Javascript at L... > https://lists.LaTech.edu/mailman/listinfo/javascript From javascript at theblades-family.com Tue Dec 24 10:42:03 2002 From: javascript at theblades-family.com (Cutter (JavaScript)) Date: Tue, 24 Dec 2002 11:42:03 -0500 Subject: [Javascript] Re: Silent window.close... or a better idea References: Message-ID: <3E088E5B.2020700@theblades-family.com> Amol, Unfortunately browser security settings restrict you from doing this. I've heard that you may be able to do this with NN using a signed script... Cutter Amol wrote: >Hi there, > > The idea of closing opener window seams to work fine for IE >(Except for the first window call). Is there any work around for >netscape. > >THanx. > >Amol >--- In javascript at yahoogroups.com, "Peter Brunone" wrote: > > >>Dan, >> >> That is EXACTLY what I needed... although I just said >> >> >window.opener=top > > >>and then closed it. Thanks a million! I wonder when MS will patch >> >> >*that* > > >>little useful feature... >> >>Cheers, >> >>Peter >> >>----- Original Message ----- >>From: "Dan Costea" >> >> >> >>>I had exactly the same problem few months ago :o) >>>Because of the security reasons, you cannot close a window without >>>confirmation, if you didn't open that window with your js. But if >>> >>> >you > > >>really >> >> >>>have no choice, you must lie the IE, by telling it that you >>> >>> >opened that > > >>>window you want to close! Here is the code: >>> >>>function cheatCloseWin () >>>{ >>> win = top; >>> >>> // lying: >>> win.opener = top; >>> >>> win.close (); >>>} >>> >>>Dan. >>> >>>----- Original Message ----- >>>From: "Peter Brunone" >>> >>> >>>>I have an intranet application (IE 5.5 only) that needs to be >>>> >>>> >in a > > >>>>fixed-size window with no menu, status, etc. I can use a simple >>>>window.open, but unfortunately the user doesn't want an extra >>>> >>>> >window > > >>>around. >>> >>> >>>>I thought that if a page is the first one in the history, you >>>> >>>> >could > > >>>>window.close() without a confirmation, but that doesn't seem to >>>> >>>> >be the > > >>>case. >>> >>> >>>>Can someone suggest a way to either silently close the calling >>>> >>>> >window > > >>>>(which will be a new browser instance just for this app anyway) >>>> >>>> >OR alter > > >>>the >>> >>> >>>>existing window in the same way? Since this is restricted to >>>> >>>> >high-level > > >>>MS >>> >>> >>>>browsers, there has to be a usable option. >>>> >>>>Cheers, >>>> >>>>Peter >>>> >>>> >> >>_______________________________________________ >>Javascript mailing list >>Javascript at L... >>https://lists.LaTech.edu/mailman/listinfo/javascript >> >> > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > From peter at brunone.com Tue Dec 24 12:19:20 2002 From: peter at brunone.com (Peter Brunone) Date: Tue, 24 Dec 2002 12:19:20 -0600 Subject: [Javascript] Re: Silent window.close... or a better idea In-Reply-To: Message-ID: I'm not sure what you mean by "first window call", but here's a partial list of browsers and whether or not they will let you close the original window. -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |Hi there, | | The idea of closing opener window seams to work fine for IE |(Except for the first window call). Is there any work around for |netscape. | |THanx. | |Amol |--- In javascript at yahoogroups.com, "Peter Brunone" wrote: |> Dan, |> |> That is EXACTLY what I needed... although I just said |window.opener=top |> and then closed it. Thanks a million! I wonder when MS will patch |*that* |> little useful feature... |> |> Cheers, |> |> Peter |> |> ----- Original Message ----- |> From: "Dan Costea" |> |> > I had exactly the same problem few months ago :o) |> > Because of the security reasons, you cannot close a window without |> > confirmation, if you didn't open that window with your js. But if |you |> really |> > have no choice, you must lie the IE, by telling it that you |opened that |> > window you want to close! Here is the code: |> > |> > function cheatCloseWin () |> > { |> > win = top; |> > |> > // lying: |> > win.opener = top; |> > |> > win.close (); |> > } |> > |> > Dan. |> > |> > ----- Original Message ----- |> > From: "Peter Brunone" |> > > |> > > I have an intranet application (IE 5.5 only) that needs to be |in a |> > > fixed-size window with no menu, status, etc. I can use a simple |> > > window.open, but unfortunately the user doesn't want an extra |window |> > around. |> > > I thought that if a page is the first one in the history, you |could |> > > window.close() without a confirmation, but that doesn't seem to |be the |> > case. |> > > Can someone suggest a way to either silently close the calling |window |> > > (which will be a new browser instance just for this app anyway) |OR alter |> > the |> > > existing window in the same way? Since this is restricted to |high-level |> > MS |> > > browsers, there has to be a usable option. |> > > |> > > Cheers, |> > > |> > > Peter |> |> |> |> _______________________________________________ |> Javascript mailing list |> Javascript at L... |> https://lists.LaTech.edu/mailman/listinfo/javascript | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | From slyong at pannaage.com Wed Dec 25 23:58:38 2002 From: slyong at pannaage.com (Swee Li) Date: Thu, 26 Dec 2002 13:58:38 +0800 Subject: [Javascript] Re: Javascript digest, Vol 1 #844 - 2 msgs References: <20021224180101.CAB8830917E@LaTech.edu> Message-ID: <000901c2aca3$d79c59f0$6c80a8c0@squirtle> can that be done using self.close() ? ----- Original Message ----- From: To: Sent: Wednesday, December 25, 2002 2:01 AM Subject: Javascript digest, Vol 1 #844 - 2 msgs > Send Javascript mailing list submissions to > javascript at LaTech.edu > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.LaTech.edu/mailman/listinfo/javascript > or, via email, send a message with subject or body 'help' to > javascript-request at LaTech.edu > > You can reach the person managing the list at > javascript-admin at LaTech.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Javascript digest..." > > > Today's Topics: > > 1. Re: Silent window.close... or a better idea (Amol ) > 2. Re: Re: Silent window.close... or a better idea (Cutter (JavaScript)) > > --__--__-- > > Message: 1 > Date: Tue, 24 Dec 2002 15:37:16 -0000 > From: "Amol " > To: javascript at LaTech.edu > Subject: [Javascript] Re: Silent window.close... or a better idea > Reply-To: javascript at LaTech.edu > > Hi there, > > The idea of closing opener window seams to work fine for IE > (Except for the first window call). Is there any work around for > netscape. > > THanx. > > Amol > --- In javascript at yahoogroups.com, "Peter Brunone" wrote: > > Dan, > > > > That is EXACTLY what I needed... although I just said > window.opener=top > > and then closed it. Thanks a million! I wonder when MS will patch > *that* > > little useful feature... > > > > Cheers, > > > > Peter > > > > ----- Original Message ----- > > From: "Dan Costea" > > > > > I had exactly the same problem few months ago :o) > > > Because of the security reasons, you cannot close a window without > > > confirmation, if you didn't open that window with your js. But if > you > > really > > > have no choice, you must lie the IE, by telling it that you > opened that > > > window you want to close! Here is the code: > > > > > > function cheatCloseWin () > > > { > > > win = top; > > > > > > // lying: > > > win.opener = top; > > > > > > win.close (); > > > } > > > > > > Dan. > > > > > > ----- Original Message ----- > > > From: "Peter Brunone" > > > > > > > > I have an intranet application (IE 5.5 only) that needs to be > in a > > > > fixed-size window with no menu, status, etc. I can use a simple > > > > window.open, but unfortunately the user doesn't want an extra > window > > > around. > > > > I thought that if a page is the first one in the history, you > could > > > > window.close() without a confirmation, but that doesn't seem to > be the > > > case. > > > > Can someone suggest a way to either silently close the calling > window > > > > (which will be a new browser instance just for this app anyway) > OR alter > > > the > > > > existing window in the same way? Since this is restricted to > high-level > > > MS > > > > browsers, there has to be a usable option. > > > > > > > > Cheers, > > > > > > > > Peter > > > > > > > > _______________________________________________ > > Javascript mailing list > > Javascript at L... > > https://lists.LaTech.edu/mailman/listinfo/javascript > > > --__--__-- > > Message: 2 > Date: Tue, 24 Dec 2002 11:42:03 -0500 > From: "Cutter (JavaScript)" > To: javascript at LaTech.edu > Subject: Re: [Javascript] Re: Silent window.close... or a better idea > Reply-To: javascript at LaTech.edu > > Amol, > > Unfortunately browser security settings restrict you from doing this. > I've heard that you may be able to do this with NN using a signed script... > > Cutter > > Amol wrote: > > >Hi there, > > > > The idea of closing opener window seams to work fine for IE > >(Except for the first window call). Is there any work around for > >netscape. > > > >THanx. > > > >Amol > >--- In javascript at yahoogroups.com, "Peter Brunone" wrote: > > > > > >>Dan, > >> > >> That is EXACTLY what I needed... although I just said > >> > >> > >window.opener=top > > > > > >>and then closed it. Thanks a million! I wonder when MS will patch > >> > >> > >*that* > > > > > >>little useful feature... > >> > >>Cheers, > >> > >>Peter > >> > >>----- Original Message ----- > >>From: "Dan Costea" > >> > >> > >> > >>>I had exactly the same problem few months ago :o) > >>>Because of the security reasons, you cannot close a window without > >>>confirmation, if you didn't open that window with your js. But if > >>> > >>> > >you > > > > > >>really > >> > >> > >>>have no choice, you must lie the IE, by telling it that you > >>> > >>> > >opened that > > > > > >>>window you want to close! Here is the code: > >>> > >>>function cheatCloseWin () > >>>{ > >>> win = top; > >>> > >>> // lying: > >>> win.opener = top; > >>> > >>> win.close (); > >>>} > >>> > >>>Dan. > >>> > >>>----- Original Message ----- > >>>From: "Peter Brunone" > >>> > >>> > >>>>I have an intranet application (IE 5.5 only) that needs to be > >>>> > >>>> > >in a > > > > > >>>>fixed-size window with no menu, status, etc. I can use a simple > >>>>window.open, but unfortunately the user doesn't want an extra > >>>> > >>>> > >window > > > > > >>>around. > >>> > >>> > >>>>I thought that if a page is the first one in the history, you > >>>> > >>>> > >could > > > > > >>>>window.close() without a confirmation, but that doesn't seem to > >>>> > >>>> > >be the > > > > > >>>case. > >>> > >>> > >>>>Can someone suggest a way to either silently close the calling > >>>> > >>>> > >window > > > > > >>>>(which will be a new browser instance just for this app anyway) > >>>> > >>>> > >OR alter > > > > > >>>the > >>> > >>> > >>>>existing window in the same way? Since this is restricted to > >>>> > >>>> > >high-level > > > > > >>>MS > >>> > >>> > >>>>browsers, there has to be a usable option. > >>>> > >>>>Cheers, > >>>> > >>>>Peter > >>>> > >>>> > >> > >>_______________________________________________ > >>Javascript mailing list > >>Javascript at L... > >>https://lists.LaTech.edu/mailman/listinfo/javascript > >> > >> > > > >_______________________________________________ > >Javascript mailing list > >Javascript at LaTech.edu > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > > > > --__--__-- > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > End of Javascript Digest > From alon at malabi.com Sat Dec 28 07:38:11 2002 From: alon at malabi.com (Alon Solell) Date: Sat, 28 Dec 2002 15:38:11 +0200 Subject: [Javascript] how to close a frame popup window? Message-ID: <001e01c2ae76$5ebec610$2101a8c0@p4xpalon1> Hi, I hope you can assist me resolve a simple close window event using javascript. I have a link that opens a frame popup window. The frame popup window is divided into two: Content (on the left side) and Main on the right side. I want a button/link/image on the left (Content) side that when pressed, closes the entire popup window. I can't make it happen! http://www.malabi.com/php42/car_details.php?Id=1 When pressed on the Center Image, it opens the popup. I need the code to close it! (I've tried several attempts there, but none seem to do the trick!) Thanks for your help. -Alon Alon Solell alon at malabi.com Cellular in Israel: +972-54-933-220 Fax: +972-3-744-0989 -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at brunone.com Sat Dec 28 10:28:30 2002 From: peter at brunone.com (Peter Brunone) Date: Sat, 28 Dec 2002 10:28:30 -0600 Subject: [Javascript] how to close a frame popup window? In-Reply-To: <001e01c2ae76$5ebec610$2101a8c0@p4xpalon1> Message-ID: Alon, It seems that you've achieved your goal. I clicked the center image, got the popup, tried a few of the other views, and then closed the frameset window with the link you provided. If you're still having problems, let us know. -Peter -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Alon Solell Hi, I hope you can assist me resolve a simple close window event using javascript. I have a link that opens a frame popup window. The frame popup window is divided into two: Content (on the left side) and Main on the right side. I want a button/link/image on the left (Content) side that when pressed, closes the entire popup window. I can't make it happen! http://www.malabi.com/php42/car_details.php?Id=1 When pressed on the Center Image, it opens the popup. I need the code to close it! (I've tried several attempts there, but none seem to do the trick!) Thanks for your help. -Alon Alon Solell alon at malabi.com Cellular in Israel: +972-54-933-220 Fax: +972-3-744-0989 From sumit at davlin.co.in Sun Dec 29 07:01:49 2002 From: sumit at davlin.co.in (Sumit Jaiswal) Date: Sun, 29 Dec 2002 18:31:49 +0530 (IST) Subject: [Javascript] accessing javascript array value inside the html combo tag Message-ID: <2466.202.4.160.30.1041166909.squirrel@mail.davlin.co.in> hi, I am new to the group. I would like to ask u the question of How can I set the value of the Javascript array in the html combo. Thank in advance for the help -- Sumit Jaiswal Davlin Software Pvt Ltd . 2nd Floor , Punja Building, Lalbaugh , Mangalore Ph 0824-451001,451005 -------------------------------------------------- From bader at tcbader.com Sun Dec 29 14:17:24 2002 From: bader at tcbader.com (Terry) Date: Sun, 29 Dec 2002 15:17:24 -0500 Subject: [Javascript] accessing javascript array value inside the html combo tag References: <2466.202.4.160.30.1041166909.squirrel@mail.davlin.co.in> Message-ID: <001601c2af77$523db520$6401a8c0@roadrunner> what is a "html combo"? ~ Terry 757 581-5981 AIM/Yahoo: lv2bounce ----- Original Message ----- From: "Sumit Jaiswal" To: Sent: Sunday, December 29, 2002 8:01 AM Subject: [Javascript] accessing javascript array value inside the html combo tag > hi, > I am new to the group. I would like to ask u the question of > How can I set the value of the Javascript array in the html combo. > Thank in advance for the help > > -- > Sumit Jaiswal > Davlin Software Pvt Ltd . > 2nd Floor , Punja Building, > Lalbaugh , Mangalore > Ph 0824-451001,451005 > -------------------------------------------------- > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > From andyg at ihug.co.nz Sun Dec 29 16:04:53 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Mon, 30 Dec 2002 11:04:53 +1300 Subject: [Javascript] accessing javascript array value inside the html combo tag References: <2466.202.4.160.30.1041166909.squirrel@mail.davlin.co.in> Message-ID: <002501c2af86$51b96c20$e0e6adcb@k1n8i8> What is the html combo?? But you can put a script anywhere in the html, just surround by and you can have more than one! Andrew > hi, > I am new to the group. I would like to ask u the question of > How can I set the value of the Javascript array in the html combo. > Thank in advance for the help > From andyg at ihug.co.nz Sun Dec 29 21:26:21 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Mon, 30 Dec 2002 16:26:21 +1300 Subject: [Javascript] accessing javascript array value inside the select tag References: <001601c2af77$523db520$6401a8c0@roadrunner> <1113.202.4.160.30.1041221185.squirrel@mail.davlin.co.in> Message-ID: <009c01c2afb3$3a35b400$e0e6adcb@k1n8i8> I think probably you'd put those arrays in with a server side script Something like: If you needed to access the collegeName(i) you could always go > where i is the index of the array From sumit at davlin.co.in Sun Dec 29 22:06:25 2002 From: sumit at davlin.co.in (Sumit Jaiswal) Date: Mon, 30 Dec 2002 09:36:25 +0530 (IST) Subject: [Javascript] accessing javascript array value inside the select tag In-Reply-To: <001601c2af77$523db520$6401a8c0@roadrunner> References: <001601c2af77$523db520$6401a8c0@roadrunner> Message-ID: <1113.202.4.160.30.1041221185.squirrel@mail.davlin.co.in> Sorry, My question was confusing. It's like this : I have a script like this : now i have a select tag in which i want to have where i is the index of the array ---------------------------------------------- > what is a "html combo"? > > ~ Terry > 757 581-5981 > AIM/Yahoo: lv2bounce > > > ----- Original Message ----- > From: "Sumit Jaiswal" > To: > Sent: Sunday, December 29, 2002 8:01 AM > Subject: [Javascript] accessing javascript array value inside the html combo > tag > > > > hi, > > I am new to the group. I would like to ask u the question of > > How can I set the value of the Javascript array in the html combo. > > Thank in advance for the help > > > > -- > > Sumit Jaiswal > > Davlin Software Pvt Ltd . > > 2nd Floor , Punja Building, > > Lalbaugh , Mangalore > > Ph 0824-451001,451005 > > -------------------------------------------------- > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > -- Sumit Jaiswal Davlin Software Pvt Ltd . 2nd Floor , Punja Building, Lalbaugh , Mangalore Ph 0824-451001,451005 -------------------------------------------------- From sumit at davlin.co.in Mon Dec 30 01:12:43 2002 From: sumit at davlin.co.in (Sumit Jaiswal) Date: Mon, 30 Dec 2002 12:42:43 +0530 (IST) Subject: [Javascript] Can we have 3D Array in JavaScript ? Message-ID: <1538.202.4.160.30.1041232363.squirrel@mail.davlin.co.in> hi, I have a problem in which i require to use a 3D array. I created the array but it gives an error object reqd. How do we use a 3d array in Javascript. thank u, -- Sumit Jaiswal Davlin Software Pvt Ltd . 2nd Floor , Punja Building, Lalbaugh , Mangalore Ph 0824-451001,451005 -------------------------------------------------- From tsimmons at employmentlawadvisors.com Mon Dec 30 02:18:01 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Mon, 30 Dec 2002 02:18:01 -0600 Subject: [Javascript] double quotes inside a String References: <1649.202.4.160.30.1041237276.squirrel@mail.davlin.co.in> Message-ID: <001b01c2afdb$f9258700$0000a398@sndmgr122> Try using either the single-quote character 'like this' or else escape the " character \"like this\". For examples, see this URL: http://www.dardenhome.com/js/x17294.htm HTH, Tommy Simmons Employment Law Advisory Network www.employmentlawadvisors.com ----- Original Message ----- From: "Sumit Jaiswal" To: Sent: Monday, December 30, 2002 2:34 AM Subject: [Javascript] double quotes inside a String > hi , > i have a query : > > How do we write a double quotes inside a String in JavaScript. > Something like this : > > > collegeId[i][j] = "(""+ "<%=college%>" + "",""+"<%=courseid%>"+")""; > > thank u, > > -- > Sumit Jaiswal > Davlin Software Pvt Ltd . > 2nd Floor , Punja Building, > Lalbaugh , Mangalore > Ph 0824-451001,451005 > -------------------------------------------------- From sumit at davlin.co.in Mon Dec 30 02:34:36 2002 From: sumit at davlin.co.in (Sumit Jaiswal) Date: Mon, 30 Dec 2002 14:04:36 +0530 (IST) Subject: [Javascript] double quotes inside a String Message-ID: <1649.202.4.160.30.1041237276.squirrel@mail.davlin.co.in> hi , i have a query : How do we write a double quotes inside a String in JavaScript. Something like this : collegeId[i][j] = "(""+ "<%=college%>" + "",""+"<%=courseid%>"+")""; thank u, -- Sumit Jaiswal Davlin Software Pvt Ltd . 2nd Floor , Punja Building, Lalbaugh , Mangalore Ph 0824-451001,451005 -------------------------------------------------- From bill.marriott at optusnet.com.au Mon Dec 30 04:29:39 2002 From: bill.marriott at optusnet.com.au (Bill Marriott) Date: Mon, 30 Dec 2002 21:29:39 +1100 Subject: [Javascript] accessing javascript array value inside the select tag References: <001601c2af77$523db520$6401a8c0@roadrunner> <1113.202.4.160.30.1041221185.squirrel@mail.davlin.co.in> <009c01c2afb3$3a35b400$e0e6adcb@k1n8i8> Message-ID: <001501c2afee$5cabdec0$1f778ec6@DESKTOP> Hi Something like this may be what you need to set the options dynamically ( if that is what you are trying to do). You will need to declare all the variables. comboObj.options.length = 0; var i; for (i = 0; i < myarray.length; i++) { var pOption=document.createElement("OPTION"); pOption.value=myarray[i][0]; pOption.text=myarray[i][1]; comboObj.options.add(pOption); } Bill ----- Original Message ----- From: "Andrew Gibson" To: Sent: Monday, December 30, 2002 2:26 PM Subject: Re: [Javascript] accessing javascript array value inside the select tag > I think probably you'd put those arrays in with a server side script > > Something like: > > > > If you needed to access the collegeName(i) you could always go > > > > > where i is the index of the array > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript >