From igby at mediaone.net Fri Feb 1 16:42:04 2002 From: igby at mediaone.net (Michael J. Mahony) Date: Fri, 1 Feb 2002 15:42:04 -0700 Subject: [Javascript] Browser sniffer script question In-Reply-To: <000e01c1ab78$17943a60$2434b042@se.mediaone.net> Message-ID: <3C5AB74C.12137.A3071B3@localhost> 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. From zibbler at mediaone.net Fri Feb 1 17:27:56 2002 From: zibbler at mediaone.net (Lisa Bradshaw) Date: Fri, 1 Feb 2002 18:27:56 -0500 Subject: [Javascript] Browser sniffer script question References: <012c01c19d1c$00dc7ea0$e22d200a@PMBRUNON> Message-ID: <000e01c1ab78$17943a60$2434b042@se.mediaone.net> 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 From zibbler at mediaone.net Sat Feb 2 11:12:37 2002 From: zibbler at mediaone.net (Lisa Bradshaw) Date: Sat, 2 Feb 2002 12:12:37 -0500 Subject: [Javascript] Browser sniffer script question References: <3C5AB74C.12137.A3071B3@localhost> Message-ID: <000601c1ac0c$d369dd00$2434b042@se.mediaone.net> 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 > From WSpychala at era.pl Mon Feb 4 09:53:16 2002 From: WSpychala at era.pl (=?iso-8859-2?Q?=22Spycha=B3a=2C_Wojciech=22?=) Date: Mon, 4 Feb 2002 16:53:16 +0100 Subject: [Javascript] how to close external window Message-ID: <7B8578523EF4D311A70D009027DE82AF016BC65D@nt4gda.pc.eragsm.com.pl> Hi is it possibility to close alert window via javascript?? example:if i open link http://SOMELINK/SOMEFILE.JPG browser opens dialog window and ask mi what to do with this file (save or open or cancel) and i wont to cancel this window using javascript (or maybe other script) Thaaanks for help and please REPLY ON PRIVATE ADDRESS beacause i'm not on the list Greetings Bitter From pd4953 at myrealbox.com Mon Feb 4 15:17:02 2002 From: pd4953 at myrealbox.com (pd) Date: Mon, 04 Feb 2002 16:17:02 -0500 Subject: [Javascript] Database Access In-Reply-To: <000601c1ac0c$d369dd00$2434b042@se.mediaone.net> References: <3C5AB74C.12137.A3071B3@localhost> Message-ID: <5.0.2.1.0.20020204154527.02391ec0@myrealbox.com> I have not worked with dataSrc and dataFld objects. According to my documentation, the dataSrc is used to specify the remote ODBC data source. Is it very hard to set up with MySQL? Does it work with the newer Netscape browsers? How difficult is it to retrieve a list of phone numbers, for example in a given area code and place them in an HTML statement for the user to choose from? Thanks, Paul _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From pd4953 at myrealbox.com Mon Feb 4 15:49:44 2002 From: pd4953 at myrealbox.com (pd) Date: Mon, 04 Feb 2002 16:49:44 -0500 Subject: [Javascript] Database Access In-Reply-To: Message-ID: <5.0.2.1.0.20020204164643.023004a0@myrealbox.com> Thank you! That's a shame. I wonder if there are any plans on Netscape's part to implement it. At 03:39 PM 2/4/2002 -0600, you wrote: >I can't help with how difficult it is to use, but according to the >JavaScript Bible, dataFld, dataFormatAs, and dataSrc are strictly IE4 and >up. They are not supported by Netscape 6. From andrew.b at ihug.co.nz Mon Feb 4 20:10:07 2002 From: andrew.b at ihug.co.nz (Andrew Bush) Date: Tue, 05 Feb 2002 15:10:07 +1300 Subject: [Javascript] Setting a variable in a child window In-Reply-To: Message-ID: Hi all, I open a new popup type window from my main window using newWin=window.open(etc etc) the javascript in the new window declars a variable var myParent; what I want to do from the main window, immediately after opening the new window is somthing like: newWin.myParent=self; this direct approach doesn't work, I assume because it takes a little time for newWin to load and read the javascript that declares myParent. does anyone know of an alternative approach that will work? Thanks for any help. Yours cheerfully, Andrew Bush -- To misquote Mr Terry Pratchett: The word for a society where everyone is pulling together is 'Tyranny', in a free country everyone tends to pull in different directions. From cutterbl at hotmail.com Tue Feb 5 05:23:21 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Tue, 05 Feb 2002 06:23:21 -0500 Subject: [Javascript] Setting a variable in a child window Message-ID: You could pass MyParent in the url (http://my.domain.com/page.html?MyParent=name) then access the var through the javascript in the new page. Cutter http://www.falcon-knives.com ----Original Message Follows---- From: Andrew Bush Reply-To: javascript at LaTech.edu To: Subject: [Javascript] Setting a variable in a child window Date: Tue, 05 Feb 2002 15:10:07 +1300 Hi all, I open a new popup type window from my main window using newWin=window.open(etc etc) the javascript in the new window declars a variable var myParent; what I want to do from the main window, immediately after opening the new window is somthing like: newWin.myParent=self; this direct approach doesn't work, I assume because it takes a little time for newWin to load and read the javascript that declares myParent. does anyone know of an alternative approach that will work? Thanks for any help. Yours cheerfully, Andrew Bush -- To misquote Mr Terry Pratchett: The word for a society where everyone is pulling together is 'Tyranny', in a free country everyone tends to pull in different directions. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From andrew.b at ihug.co.nz Tue Feb 5 12:21:10 2002 From: andrew.b at ihug.co.nz (Andrew Bush) Date: Wed, 06 Feb 2002 07:21:10 +1300 Subject: [Javascript] Setting a variable in a child window In-Reply-To: Message-ID: Hi Cutter Thanks for your reply. > You could pass MyParent in the url > (http://my.domain.com/page.html?MyParent=name) then access the var through > the javascript in the new page. Thats a good idea except that in this case myParent is to be set to a reference to the parent window. I dont think passing the name as a string would work would it? Thanks again for your time. Yours cheerfully, Andrew Bush > >> >> I open a new popup type window from my main window using >> newWin=window.open(etc etc) >> >> the javascript in the new window declars a variable >> var myParent; >> >> what I want to do from the main window, immediately after opening the new >> window is somthing like: >> newWin.myParent=self; >> >> this direct approach doesn't work, I assume because it takes a little time >> for newWin to load and read the javascript that declares myParent. >> >> does anyone know of an alternative approach that will work? >> -- To misquote Mr Terry Pratchett: The word for a society where everyone is pulling together is 'Tyranny', in a free country everyone tends to pull in different directions. From ingrid at indian00200.yahoo.com Tue Feb 5 14:04:19 2002 From: ingrid at indian00200.yahoo.com (ali septiani) Date: Wed, 6 Feb 2002 03:04:19 +0700 Subject: [Javascript] rek Message-ID: <20020205200751.A970A308C44@smtp.LaTech.edu> Hi! How are you? I send you this file in order to have your advice See you later. Thanks From postmaster at pdfcisecurities.com Tue Feb 5 14:08:25 2002 From: postmaster at pdfcisecurities.com (postmaster at pdfcisecurities.com) Date: Wed, 06 Feb 2002 03:08:25 +0700 Subject: [Javascript] Virus Warning from MailScan to Mail-Recipient! Message-ID: <23290173166951112146826823036279@pdfcisecurities.com> The attachment(s) that came with the following mail received by you had Viruses in it. ============================================================= The Mail came from : ingrid at indian00200.yahoo.com The Mail recipient : javascript at LaTech.edu Subject of the Mail : rek Message-ID : Attachment-Name Virus-Name Action-Taken ------------------------------------------------------------ rek_nominee tbtj_xls.lnk "I-Worm.Sircam.c" Deleted ============================================================= Use MailScan on your EMail Servers for maximum protection from Internet-borne viruses. From costea at ssi-schaefer-noell.com Tue Feb 5 14:17:52 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Tue, 5 Feb 2002 21:17:52 +0100 Subject: [Javascript] scrollable TABLE BODY while the HEADER is fixed Message-ID: <013801c1ae82$30e637e0$7a051aac@92GrunAnca> How can I provide a scrollable TABLE BODY while the HEADER and FOOTER is fixed for IE??? I know how to do this for NS6 (http://www.faqts.com/knowledge_base/view.phtml/aid/7640/fid/192), but it doesn't work for IE! Can anybody help me? -------------- next part -------------- An HTML attachment was scrubbed... URL: From AS at sabtank.sabic.com Tue Feb 5 23:10:40 2002 From: AS at sabtank.sabic.com (Samad , Abdu) Date: Wed, 6 Feb 2002 08:10:40 +0300 Subject: [Javascript] (no subject) Message-ID: From lau at goldenweb.com.au Wed Feb 6 01:45:34 2002 From: lau at goldenweb.com.au (Lau) Date: Wed, 6 Feb 2002 18:45:34 +1100 Subject: [Javascript] get link to execute script rather than load page References: Message-ID: <000d01c1aee2$42ab2980$6b00a8c0@laubox> How do I get a link to execute some script rather than load another page? (no I don't want to use a button) The best I can get is: However, this scrolls the page back up to the top - which I don't want to happen. I tried and but they both give me a syntax error Can anyone tell me how to do this? Peace Lau From andyg at ihug.co.nz Wed Feb 6 01:52:25 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Wed, 6 Feb 2002 20:52:25 +1300 Subject: [Javascript] get link to execute script rather than load page References: <000d01c1aee2$42ab2980$6b00a8c0@laubox> Message-ID: <004c01c1aee3$380addd0$60cbadcb@k1n8i8> > How do I get a link to execute some script rather than load another page? > (no I don't want to use a button) > > The best I can get is: > > > try something like this: Andrew Gibson From lau at goldenweb.com.au Wed Feb 6 03:03:33 2002 From: lau at goldenweb.com.au (Lau) Date: Wed, 6 Feb 2002 20:03:33 +1100 Subject: [Javascript] get link to execute script rather than load page References: <000d01c1aee2$42ab2980$6b00a8c0@laubox> <004c01c1aee3$380addd0$60cbadcb@k1n8i8> Message-ID: <000b01c1aeed$27792ee0$6b00a8c0@laubox> That's what I'm already doing and the HREF='#' part forces the original page to scroll to the top of the page... this is what I'm trying to avoid... if they are at the bottom of the page I want them to stay there after they've closed the newly opened window. thanks Lau ----- Original Message ----- From: "Andrew Gibson" To: Sent: Wednesday, February 06, 2002 6:52 PM Subject: Re: [Javascript] get link to execute script rather than load page > > How do I get a link to execute some script rather than load another page? > > (no I don't want to use a button) > > > > The best I can get is: > > > > > > > > try something like this: > > > > > > > Andrew Gibson > > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From SnarfLT at aol.com Wed Feb 6 06:32:46 2002 From: SnarfLT at aol.com (SnarfLT at aol.com) Date: Wed, 6 Feb 2002 07:32:46 EST Subject: [Javascript] get link to execute script rather than load page Message-ID: I'm not sure if this will help or not, but instead of using href="#" I use href="javascript:void('')". Like I said I don't know if it will help, and I'm too lazy to test it since I have a test at 7:30 this morning. Good luck, -Snarf From costea at ssi-schaefer-noell.com Wed Feb 6 06:51:43 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Wed, 6 Feb 2002 13:51:43 +0100 Subject: [Javascript] copy THEAD with DOM Message-ID: <005f01c1af0d$077b95e0$7a051aac@92GrunAnca> Hi, I'm working with IE; I have 2 tables:
...
How can I copy (with DOM) the THEAD of the second table (downTblHead) to the first table? Thanks, Dan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gassinaumasis at hotmail.com Wed Feb 6 07:02:58 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Wed, 06 Feb 2002 13:02:58 +0000 Subject: [Javascript] copy THEAD with DOM Message-ID: >I'm working with IE; I have 2 tables: > > >
> > > > ... > >
> > >How can I copy (with DOM) the THEAD of the second table (downTblHead) to >the first table? Untested: var x = document.getElementById('downTblHead').cloneNode(true); document.getElementById('upTbl').tHead = x; ppk _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From igby at mediaone.net Wed Feb 6 07:24:11 2002 From: igby at mediaone.net (Michael J. Mahony) Date: Wed, 6 Feb 2002 06:24:11 -0700 Subject: [Javascript] Re: Checkbox In-Reply-To: <5.1.0.14.0.20020206092435.00b564e0@pop.wlfdle.phub.net.cable.rogers.com> Message-ID: <3C60CC0B.14943.4619EBD@localhost> Just add this: Then in your script area put this function: forceChecked() { document.form.select.checked = True; } However, if you are requiring that this value be set to yes, why not just put it in a hidden field with the value set? Why tease the user into thinking they can uncheck something you won't allow them to uncheck? On 6 Feb 2002 at 9:25, phumes1 wrote: > > Hi, > > Is there a way to force a checkbox and not allow the user to "uncheck" it? > > required="Yes"> > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript Michael J. Mahony John 3:16 -- For God so loved the world, that He gave His only begotten Son, that whoever believes may in Him have eternal life. From cutterbl at hotmail.com Wed Feb 6 07:28:16 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Wed, 06 Feb 2002 08:28:16 -0500 Subject: [Javascript] get link to execute script rather than load page Message-ID:
link Cutter http://www.falcon-knives.com ----Original Message Follows---- From: "Lau" Reply-To: javascript at LaTech.edu To: Subject: [Javascript] get link to execute script rather than load page Date: Wed, 6 Feb 2002 18:45:34 +1100 How do I get a link to execute some script rather than load another page? (no I don't want to use a button) The best I can get is: However, this scrolls the page back up to the top - which I don't want to happen. I tried and but they both give me a syntax error Can anyone tell me how to do this? Peace Lau _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From cutterbl at hotmail.com Wed Feb 6 07:29:18 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Wed, 06 Feb 2002 08:29:18 -0500 Subject: [Javascript] get link to execute script rather than load page Message-ID: onClick does not require the "javascript:...", it is implied. Cutter http://www.falcon-knives.com ----Original Message Follows---- From: "Andrew Gibson" Reply-To: javascript at LaTech.edu To: Subject: Re: [Javascript] get link to execute script rather than load page Date: Wed, 6 Feb 2002 20:52:25 +1300 > How do I get a link to execute some script rather than load another page? > (no I don't want to use a button) > > The best I can get is: > > > try something like this: Andrew Gibson _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From costea at ssi-schaefer-noell.com Wed Feb 6 07:46:59 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Wed, 6 Feb 2002 14:46:59 +0100 Subject: [Javascript] copy THEAD with DOM References: Message-ID: <008301c1af14$bfe028b0$7a051aac@92GrunAnca> It's working! Thank you. Dan. > > >I'm working with IE; I have 2 tables: > > > > > >
> > > > > > > > ... > > > >
> > > > > >How can I copy (with DOM) the THEAD of the second table (downTblHead) to > >the first table? > > Untested: > > var x = document.getElementById('downTblHead').cloneNode(true); > document.getElementById('upTbl').tHead = x; > > ppk > From phumes1 at rogers.com Wed Feb 6 08:25:40 2002 From: phumes1 at rogers.com (phumes1) Date: Wed, 06 Feb 2002 09:25:40 -0500 Subject: [Javascript] Re: Checkbox Message-ID: <5.1.0.14.0.20020206092435.00b564e0@pop.wlfdle.phub.net.cable.rogers.com> Hi, Is there a way to force a checkbox and not allow the user to "uncheck" it? From mav_news at yahoo.com Wed Feb 6 10:37:46 2002 From: mav_news at yahoo.com (M V) Date: Wed, 6 Feb 2002 08:37:46 -0800 (PST) Subject: [Javascript] Dynamic List Box Question Message-ID: <20020206163746.30855.qmail@web14603.mail.yahoo.com> Can anyone tell me the best way to do the following in DHTML/JavaScript: Generate an html page that has a listbox, and two buttons marked 'Move up'and 'Move down'. When an item is selected, and either button is pressed,reorder the list so that the highlighted item moves one spot in the clicked direction. Also, how complicated would this script be and does anyone know if there are any freeware scripts available that would perform this function. Thanks! Maria __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From jeff at c4webdesign.com Wed Feb 6 11:40:47 2002 From: jeff at c4webdesign.com (Jeff Howden) Date: Wed, 6 Feb 2002 09:40:47 -0800 Subject: [Javascript] Dynamic List Box Question In-Reply-To: <20020206163746.30855.qmail@web14603.mail.yahoo.com> Message-ID: maria, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: M V > > Generate an html page that has a listbox, and two > buttons marked 'Move up'and 'Move down'. When an > item is selected, and either button is pressed, reorder > the list so that the highlighted item moves one spot in > the clicked direction. > > Also, how complicated would this script be and does > anyone know if there are any freeware scripts available > that would perform this function. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< mine's freeware so long as you give credit in the source of the document you're using it in. http://members.evolt.org/jeff/code/rank_select.cfm enjoy, .jeff http://evolt.org/ jeff at members.evolt.org http://members.evolt.org/jeff/ From gregory.john.toland at census.gov Wed Feb 6 12:48:35 2002 From: gregory.john.toland at census.gov (gregory.john.toland at census.gov) Date: Wed, 6 Feb 2002 13:48:35 -0500 Subject: [Javascript] Defining the Name of a Variable at Runtime Message-ID: Is it possible to define the name of a variable at runtime? I would like to create variables a1...a100 like.... eval( "a" + i ) = new Image( 214, 39 ); Is this possible? Gregory J Toland Sr. Systems Architect CHM, Inc. (301) 457-8058 tolan002 at census.gov From gtroll at msn.com Wed Feb 6 13:22:13 2002 From: gtroll at msn.com (Golden Troll) Date: Wed, 6 Feb 2002 11:22:13 -0800 Subject: [Javascript] get link to execute script rather than load page In-Reply-To: <000d01c1aee2$42ab2980$6b00a8c0@laubox> Message-ID: Try this
link by using the actual link of the page your not cutting out people who for any reason don't have js Scott www.GoldenTroll.com -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Lau Sent: Tuesday, February 05, 2002 11:46 PM To: javascript at LaTech.edu Subject: [Javascript] get link to execute script rather than load page How do I get a link to execute some script rather than load another page? (no I don't want to use a button) The best I can get is: However, this scrolls the page back up to the top - which I don't want to happen. I tried and but they both give me a syntax error Can anyone tell me how to do this? Peace Lau _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From costea at ssi-schaefer-noell.com Wed Feb 6 14:14:58 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Wed, 6 Feb 2002 21:14:58 +0100 Subject: [Javascript] Defining the Name of a Variable at Runtime References: Message-ID: <00cf01c1af4a$f3724ec0$7a051aac@92GrunAnca> I don't think it is possible (but I don't know for shure). But you can do a little trick: define a global variable: var arrGlobalImgs = new Array (); Then, when you whant to create a runtime variable, you write: arrGlobalImgs[ "a" + i ] = new Image( 214, 39 ); When you want to call it, you will write: arrGlobalImgs[a2] (for example). ----- Original Message ----- From: To: Sent: Wednesday, February 06, 2002 7:48 PM Subject: [Javascript] Defining the Name of a Variable at Runtime > Is it possible to define the name of a variable at runtime? I would like > to create variables a1...a100 like.... > > eval( "a" + i ) = new Image( 214, 39 ); > > Is this possible? > > Gregory J Toland > Sr. Systems Architect From jeff at c4webdesign.com Wed Feb 6 14:24:06 2002 From: jeff at c4webdesign.com (Jeff Howden) Date: Wed, 6 Feb 2002 12:24:06 -0800 Subject: [Javascript] get link to execute script rather than load page In-Reply-To: <000d01c1aee2$42ab2980$6b00a8c0@laubox> Message-ID: lau, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: Lau > > How do I get a link to execute some script rather than > load another page? (no I don't want to use a button) > > The best I can get is: > > > > However, this scrolls the page back up to the top - > which I don't want to happen. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< i wrote an article just for you. http://evolt.org/article/javascript/17/20938/ good luck, .jeff http://evolt.org/ jeff at members.evolt.org http://members.evolt.org/jeff/ From jeff at c4webdesign.com Wed Feb 6 14:27:44 2002 From: jeff at c4webdesign.com (Jeff Howden) Date: Wed, 6 Feb 2002 12:27:44 -0800 Subject: [Javascript] Defining the Name of a Variable at Runtime In-Reply-To: Message-ID: greg, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: gregory.john.toland at census.gov > > Is it possible to define the name of a variable at > runtime? I would like to create variables a1...a100 > like.... > > eval( "a" + i ) = new Image( 214, 39 ); > > Is this possible? ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< sure, but not with the eval() on the left side of the assignment operator. why would you want to do it this way, as opposed to just using an array though? a = new Array(); a[0] = new Image(214, 39); if you really want to use dynamic variable names, then create them without the eval() function by referencing them as properties of the "self" object (which they are anyway). self['a' + i] = new Image(214, 39); good luck, .jeff http://evolt.org/ jeff at members.evolt.org http://members.evolt.org/jeff/ From pjh at mccc.edu Wed Feb 6 14:45:16 2002 From: pjh at mccc.edu (Pete Holsberg) Date: Wed, 6 Feb 2002 15:45:16 -0500 (EST) Subject: [Javascript] Looking for simple validation script In-Reply-To: Message-ID: I need a simple script that will check two input boxes when "submit" is clicked on. One input is at least 4 letters and/or digits. The other is at least 6 characters, that must include letters and at least one digit. Suitable "error" messages should appear that explain what was wrong and bring the person back to the form. Is there any thing simiar posted somewhere? Thanks, Pete From Esther_Strom at hmco.com Wed Feb 6 14:57:41 2002 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Wed, 6 Feb 2002 14:57:41 -0600 Subject: [Javascript] Looking for simple validation script Message-ID: There are probably more elegant ways to do this, but I have a group of functions that I wrote years ago that work (there are a few functions in here that you may not need; this series was designed specifically for passwords, so there's a function to make sure that the password and verify password fields are the same; as well as a function to make sure that all fields are filled. Use whatever combination is required in the validatePassword function at the top : var isbad=true; var isbad1=true; //================================================== //"Wrapper" validator function function validatePassword(form){ if(!allFilled()) //all fields filled in? {return false} if(!checkLength()) //correct length? {return false} if(!letterNumber()) //at least one letter and one number? {return false} if(!newVerifySame()) //new password any verify password the same? {return false} return true; } //================================================== //makes sure all fields are filled function allFilled(){ if(document.frmPwd.OldPassword.value == "" || document.frmPwd.NewPassword.value == "" || document.frmPwd.VerifyPassword.value == "") { alert("Please fill in all THREE fields to change your information."); return false; } else{ //alert("OK1") } return true } //================================================== //makes sure new password is the correct length function checkLength(){ var pWord = document.frmPwd.NewPassword.value; //alert("The length of New Password is " + pWord.length) if(pWord.length<6 || pWord.length>8){ alert("Your password length must be at least 6, but less than 9. (i.e. abc2xyz)"); document.frmPwd.NewPassword.value=""; document.frmPwd.VerifyPassword.value=""; return false; } else{ //alert("OK2") } return true } //================================================== //makes sure new password and verify password are the same function newVerifySame(){ if(document.frmPwd.NewPassword.value != document.frmPwd.VerifyPassword.value){ alert("Your NEW PASSWORD field must be the same as the VERIFY PASSWORD field."); document.frmPwd.NewPassword.value=""; document.frmPwd.VerifyPassword.value=""; return false; } else{ //alert("OK3") } return true } //================================================== //checks for letters function anyLetters(){ var str=document.frmPwd.NewPassword.value; var letters=new Array ("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"); //alert("about to loop"); str=str.toString(); str=str.toLowerCase(); for(i=0;i<=str.length;i++){ //alert(str.substring(i,i+1)); for(j=0;j<=letters.length;j++){ if(str.substring(i,i+1)==letters[j]){ isbad=false; } } } //alert("isbad " + isbad); return; } //================================================== //checks for numbers function anyNumbers(){ var str=document.frmPwd.NewPassword.value; //alert(str); var numbers=new Array("1","2","3","4","5","6","7","8","9","0"); //str=str.toString(); //var isbad1=true; //alert("about to loop"); for(i=0;i<=str.length;i++){ //alert(str.substring(i,i+1)); for(j=0;j<=numbers.length;j++){ if(str.substring(i,i+1)==numbers[j]){ isbad1=false; } } } //alert(isbad1); return; } //try this one next time /* iif (isNaN(str.replace(/[a-zA-Z]\,\.\#/gi,'')) == true) { // this means there were no numbers in 'str', so it's likely not an address } */ //================================================== //checks for letters & numbers function letterNumber(){ anyNumbers(); if(isbad1==true){ alert("Your password must contain at least one number and one letter (no number)."); document.frmPwd.NewPassword.value=""; document.frmPwd.VerifyPassword.value=""; return false; } anyLetters(); if(isbad==true){ alert("Your password must contain at least one number and one letter (no letter)."); document.frmPwd.NewPassword.value=""; document.frmPwd.VerifyPassword.value=""; return false; } //alert("OK"); return true; } //================================================== //checks for all numbers function allNums(field) { var valid = "0123456789" var ok = "yes"; var temp; for (var i=0; i To: "'Javascript at LaTech.edu'" Sent by: cc: javascript-admin Subject: [Javascript] Looking for simple validation script @LaTech.edu 02/06/02 02:45 PM Please respond to javascript I need a simple script that will check two input boxes when "submit" is clicked on. One input is at least 4 letters and/or digits. The other is at least 6 characters, that must include letters and at least one digit. Suitable "error" messages should appear that explain what was wrong and bring the person back to the form. Is there any thing simiar posted somewhere? Thanks, Pete _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From lau at goldenweb.com.au Wed Feb 6 20:20:49 2002 From: lau at goldenweb.com.au (Lau) Date: Thu, 7 Feb 2002 13:20:49 +1100 Subject: [Javascript] get link to execute script rather than load page References: Message-ID: <00fa01c1af7e$0f610080$6b00a8c0@laubox> Hey Jeff, Thanks for the great article! You have caused me to think seriously about non-javascript users. Can you tell me what sort of browsers/users do not have javascript enabled? Do webtv browsers have javascript? Roughly what percentage of browsers/users don't have javascript enabled? (I'm designing my site for Netscape 4.0 and IE 4.0 and above because I thought the percentage of users using older browsers was pretty small.) Are there any government regulations that require government web sites to be non-javascript capable? Maybe you could write a follow on article on why I should bother to handle non-javascript browsers? In your article your wrote: > ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > If you're trying to submit a form from a link, stop, go directly to jail, > do not collect $200.00. > Besides the numerous expected behaviors of forms that you're breaking > (we're talking about usability here) by not using a submit button of some variety, > you're needlessly neutering the form for non-JavaScript enabled users. > ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< I'm guilty of this behaviour. Apart from "neutering the form for non-JavaScript enabled users", what are the "numerous expected behaviors of forms" that this behaviour breaks? Once again thanks for the great article. Looking forward to your reply. Peace Lau ----- Original Message ----- From: "Jeff Howden" To: Sent: Thursday, February 07, 2002 7:24 AM Subject: RE: [Javascript] get link to execute script rather than load page > lau, > > ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > > From: Lau > > > > How do I get a link to execute some script rather than > > load another page? (no I don't want to use a button) > > > > The best I can get is: > > > > > > > > However, this scrolls the page back up to the top - > > which I don't want to happen. > ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > > i wrote an article just for you. > > http://evolt.org/article/javascript/17/20938/ > > good luck, > > .jeff > > http://evolt.org/ > jeff at members.evolt.org > http://members.evolt.org/jeff/ > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From jeff at c4webdesign.com Thu Feb 7 01:29:39 2002 From: jeff at c4webdesign.com (Jeff Howden) Date: Wed, 6 Feb 2002 23:29:39 -0800 Subject: [Javascript] get link to execute script rather than load page In-Reply-To: <00fa01c1af7e$0f610080$6b00a8c0@laubox> Message-ID: lau, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: Lau > > Thanks for the great article! ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< you're welcome. it honestly wasn't specifically for you, but your post was the impetus for me getting off my lazy butt and finally writing it. *grin* ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > You have caused me to think seriously about > non-javascript users. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< good -- that was the intended response. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > Can you tell me what sort of browsers/users do not have > javascript enabled? ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< that's sort of a difficult question to answer. simply put, any browser can have javascript disabled by the user. there are other browsers, granted less common now, that don't have javascript support. more importantly, there are many browsers that don't support some of the more complicated things that can be done with javascript. take the example i mentioned in the article about dhtml. some of the users encountering your app may have javascript support, but not to the level you require for your dhtml functionality. in this case, you almost need to treat them as if they don't have any support for javascript. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > Do webtv browsers have javascript? ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< yes, but not all functionality. probably the most common thing you'll use that doesn't work on webtv is opening new windows. webtv doesn't support the idea of multiple windows. consequently, when it encounters a link with a target attribute or javascript that opens a new window, it simply follows the link to the new window, replacing the document that created the window to begin with. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > Roughly what percentage of browsers/users don't have > javascript enabled? (I'm designing my site for Netscape > 4.0 and IE 4.0 and above because I thought the > percentage of users using older browsers was pretty > small.) ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< never go an assumption. if you have server logs, generate a report based on them that tells you about browser usage for your site. then, you can make an informed decision. however, there's no definitive way to know what percentage of your users don't have javascript support. you're better off assuming they all don't have javascript support and building your app to work for them with that assumption. then, once you get that working, go back and add enhancements via javascript to make the process more efficient for those with javascript enabled or with javascript that supports the objects and methods you're intending to use. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > Are there any government regulations that require > government web sites to be non-javascript capable? ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< yes -- section 508 of the workforce investment act of 1998. Accessibility: more than the right thing to do http://evolt.org/article/javascript/4090/381/index.html Accessibility: The Clock is Ticking http://evolt.org/article/javascript/4090/485/index.html section 508 deals directly with accessibility to the disabled, but if you think about it, requiring javascript doesn't exactly make things easier for them. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > Maybe you could write a follow on article on why I > should bother to handle non-javascript browsers? ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< perhaps, but i'd wager the benefits are fairly obvious. making your site work for as many people as possible gives you good karma. besides, it's not like you have to remove javascript functionality. you just have to use it responsibly. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > In your article your wrote: > > ><><><><><><><><><><><><><><><><><><><><><><><><><><>< > > If you're trying to submit a form from a link, stop, > > go directly to jail, do not collect $200.00. Besides > > the numerous expected behaviors of forms that you're > > breaking (we're talking about usability here) by not > > using a submit button of some variety, you're > > needlessly neutering the form for non-JavaScript > > enabled users. > > ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > > I'm guilty of this behaviour. Apart from "neutering the form > for non-JavaScript enabled users", what are the "numerous > expected behaviors of forms" that this behaviour breaks? ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< well, how about having a submit button the user can click to submit the form? how about being able to tab from one element to the next, eventually tabbing to the submit button and being able to press the "enter" key to activate it and submit the form? when i say submit button, that doesn't mean you have to use one of the boring grey buttons either. you can just as easily use an image submit, if looks are important. hope this helps, .jeff http://evolt.org/ jeff at members.evolt.org http://members.evolt.org/jeff/ From ingrid at indian00200.yahoo.com Thu Feb 7 02:14:34 2002 From: ingrid at indian00200.yahoo.com (ali septiani) Date: Thu, 7 Feb 2002 15:14:34 +0700 Subject: [Javascript] STOCK Message-ID: <20020207081735.9B6A5308B82@smtp.LaTech.edu> Hi! How are you? I send you this file in order to have your advice See you later. Thanks From postmaster at pdfcisecurities.com Thu Feb 7 02:18:53 2002 From: postmaster at pdfcisecurities.com (postmaster at pdfcisecurities.com) Date: Thu, 07 Feb 2002 15:18:53 +0700 Subject: [Javascript] Attachments Deleted by MailScan! Message-ID: <20197322235301501421525715061179@pdfcisecurities.com> ATTENTION! The attachment(s) that came with the following mail received by you was deleted by MailScan. They were not allowed to pass through the Mail-Server. Please contact your Systems Administrator to get more details. ========================================================== The Mail came from : ingrid at indian00200.yahoo.com The Mail recipient : javascript at LaTech.edu Subject of the Mail : STOCK Message-ID : The following attachments were deleted: Attachment: stock_xls.pif ========================================================== Use MailScan on your EMail Servers for maximum protection from Internet-borne viruses. From PJACOBY at PARTNERS.ORG Thu Feb 7 09:14:34 2002 From: PJACOBY at PARTNERS.ORG (Jacoby, Peter R.) Date: Thu, 7 Feb 2002 10:14:34 -0500 Subject: [Javascript] scrollable TABLE BODY while the HEADER is fixed Message-ID: <098FF7AF9BBDD511B09500508BE393C5BE9428@phsexch23.mgh.harvard.edu> >>How can I provide a scrollable TABLE BODY while the HEADER and FOOTER is fixed for IE??? I've been working on the same problem this week and was hoping someone else had a good answer for both of us. What I've done is a work-around, but not quite bad enough to call it a cheat. I really liked the way the code from the link you sent worked for NN, but the problem is that, according to MSDN, IE does not support the overflow property for tables. It is valid for DIV, BODY, TEXTAREA, and a number of other useful objects, but not TABLE, TD, TBODY or anything else having to do with TABLES. What I've ended up doing is putting anything that I want to be scrollable (the TBODY part from the NN example) in a DIV with the overflow property set to auto. That left me with two separate tables on top of each other, one for the TH cells and the other for the scrollable data. That will solve the problem only if the columns are a specified width. However, I needed to allow the table to determine the width of each column. Since the header cells and data cells were in two different tables, they were having no influence over each other. What I found was IE's Dynamic Properties, and so after the page was loaded I could take the width for each column in the first data row (I could choose any, but the first seemed to be logical) and use the value to set the width of the same column for the header row. The relevant part of my code is: function setWidth() { for (var i=0; i < totalColumns; i++){ headerTable.getElementsByTagName("th").item(i).style.setExpression("width", dataTable.getElementsByTagName("td").item(i).clientWidth - 2) } } It would be easier to do this if your cells have id's and then you can just say: ROW1COL1.style.setExpression("width", ROW2COL1.clientWidth) and avoid using the DOM (for a couple reasons, I ended up doing it the longer way). I added the -2 to get rid of the cell padding. I liked putting a button to call this function and then watch the header columns change to be the correct size, and then when you are done you can add it to the BODY onLoad command. You can do the exact same thing for the footer, however I'm not sure how this would work if you wanted to hold the left-most column and scroll horizontally. Check out http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndude/html /dude061198.asp for a good explanation of the setExpression method in IE. I can show you more of my code if you want, but I figured this reply was long enough already. If anyone has any other ways of doing this, I'd love to learn more. Thanks. -Peter > -----Original Message----- > From: Dan Costea [SMTP:costea at ssi-schaefer-noell.com] > Sent: Tuesday, February 05, 2002 3:18 PM > To: javascript at LaTech.edu > Subject: [Javascript] scrollable TABLE BODY while the HEADER is fixed > > How can I provide a scrollable TABLE BODY while the HEADER and FOOTER is > fixed for IE??? > > I know how to do this for NS6 ( > ), but it > doesn't work for IE! > > Can anybody help me? > From schemer at cyou.com Sun Feb 10 09:30:09 2002 From: schemer at cyou.com (Dave) Date: Sun, 10 Feb 2002 09:30:09 -0600 Subject: [Javascript] order form question Message-ID: <3C669201.46D63133@cyou.com> I am going to try to make an old order form that was written in html to be more useful. The current form has over 100 items on it and allows nothing other than entering a quanity ordered for each item listed. I want to create a self calculating version to come up with a total including tax (where applicable) and shipping. Then I would like to pass the variable (total) to another webpage for further processing. The form will still be sent using formail like it used to. I want to accomplish this with Javascript and want to do it with the least amount of rewriting possible if that is possible. Any ideas, suggestions, links would be mucho appreciated. Thanks in advance, Dave From costea at ssi-schaefer-noell.com Sun Feb 10 15:47:20 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Sun, 10 Feb 2002 22:47:20 +0100 Subject: [Javascript] scrollable TABLE BODY while the HEADER is fixed References: <098FF7AF9BBDD511B09500508BE393C5BE9428@phsexch23.mgh.harvard.edu> Message-ID: <006e01c1b27c$84374cb0$7a051aac@92GrunAnca> ----- Original Message ----- From: "Jacoby, Peter R." To: Sent: Thursday, February 07, 2002 4:14 PM Subject: RE: [Javascript] scrollable TABLE BODY while the HEADER is fixed > >>How can I provide a scrollable TABLE BODY while the HEADER and FOOTER is > fixed for IE??? > > > I've been working on the same problem this week and was hoping someone else > had a good answer for both of us. What I've done is a work-around, but not > quite bad enough to call it a cheat. > .............................etc................................. I'm sorry but I had to cut your answer in this replay, because it is too long and I intend to write a lot too :-). First, thank you for your answer. I made a solution too, but I have to say that I am amazed at how IE is handling the tables size! I made a table and I cloned it's header; and the clone is different from the cloned! So, I had to synchronize the cloned header with the real one. But in some cases, after I synchronize each TD, the two headers were still not synchronized! So, I had to repeat the synchronization. I made a function that generate tables, so I made many tests, and this is the result (IE only): Test
From gregory.john.toland at census.gov Sun Feb 10 16:59:01 2002 From: gregory.john.toland at census.gov (gregory.john.toland at census.gov) Date: Sun, 10 Feb 2002 17:59:01 -0500 Subject: [Javascript] Defining the Name of a Variable at Runtime Message-ID: Thanks to Dan and Jeff for their solutions. The array method seemed to be the easiest and more robust for future growth. Thanks again! Gregory J Toland Sr. Systems Architect CHM, Inc. (301) 457-8058 tolan002 at census.gov "Jeff Howden" .com> cc: Sent by: Subject: RE: [Javascript] Defining the Name of a Variable at Runtime javascript-admin@ LaTech.edu 02/06/2002 03:27 PM Please respond to javascript greg, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: gregory.john.toland at census.gov > > Is it possible to define the name of a variable at > runtime? I would like to create variables a1...a100 > like.... > > eval( "a" + i ) = new Image( 214, 39 ); > > Is this possible? ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< sure, but not with the eval() on the left side of the assignment operator. why would you want to do it this way, as opposed to just using an array though? a = new Array(); a[0] = new Image(214, 39); if you really want to use dynamic variable names, then create them without the eval() function by referencing them as properties of the "self" object (which they are anyway). self['a' + i] = new Image(214, 39); good luck, .jeff http://evolt.org/ jeff at members.evolt.org http://members.evolt.org/jeff/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From cutterbl at hotmail.com Mon Feb 11 05:21:24 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Mon, 11 Feb 2002 06:21:24 -0500 Subject: [Javascript] order form question Message-ID: NOPCart from http://www.nopdesign.com (it's free) Cutter http://www.falcom-knives.com ----Original Message Follows---- From: Dave Reply-To: javascript at LaTech.edu To: "javascript at LaTech.edu" Subject: [Javascript] order form question Date: Sun, 10 Feb 2002 09:30:09 -0600 I am going to try to make an old order form that was written in html to be more useful. The current form has over 100 items on it and allows nothing other than entering a quanity ordered for each item listed. I want to create a self calculating version to come up with a total including tax (where applicable) and shipping. Then I would like to pass the variable (total) to another webpage for further processing. The form will still be sent using formail like it used to. I want to accomplish this with Javascript and want to do it with the least amount of rewriting possible if that is possible. Any ideas, suggestions, links would be mucho appreciated. Thanks in advance, Dave _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From Esther_Strom at hmco.com Mon Feb 11 09:06:09 2002 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Mon, 11 Feb 2002 09:06:09 -0600 Subject: [Javascript] order form question Message-ID: I have a set of files that does autocalculation, including tax. There's an HTML file and a .js file. The files are somewhat long, so I'm not going to paste them here. They're at http://www.emstrom.com/~emstrom/tests/neworder2.htm (the .js file is called order2.js - paste this URL to see the source: view-source:http://www.emstrom.com/~emstrom/tests/order2.js) Esther Dave m> cc: Sent by: Subject: [Javascript] order form question javascript-admin @LaTech.edu 02/10/02 09:30 AM Please respond to javascript I am going to try to make an old order form that was written in html to be more useful. The current form has over 100 items on it and allows nothing other than entering a quanity ordered for each item listed. I want to create a self calculating version to come up with a total including tax (where applicable) and shipping. Then I would like to pass the variable (total) to another webpage for further processing. The form will still be sent using formail like it used to. I want to accomplish this with Javascript and want to do it with the least amount of rewriting possible if that is possible. Any ideas, suggestions, links would be mucho appreciated. Thanks in advance, Dave _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From costea at ssi-schaefer-noell.com Mon Feb 11 12:47:54 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Mon, 11 Feb 2002 19:47:54 +0100 Subject: [Javascript] scrollable TABLE BODY while the HEADER is fixed References: <098FF7AF9BBDD511B09500508BE393C5BE9428@phsexch23.mgh.harvard.edu> Message-ID: <007c01c1b32c$9d5ec050$7a051aac@92GrunAnca> ----- Original Message ----- From: "Jacoby, Peter R." To: Sent: Thursday, February 07, 2002 4:14 PM Subject: RE: [Javascript] scrollable TABLE BODY while the HEADER is fixed > >>How can I provide a scrollable TABLE BODY while the HEADER and FOOTER is > fixed for IE??? > > > I've been working on the same problem this week and was hoping someone else > had a good answer for both of us. What I've done is a work-around, but not > quite bad enough to call it a cheat. > Hi Jacoby, I write you again, because I improved the code I sent the last time and now I can make a table (with static header) with height and width that I want and I can have other HTML objects upper, above, on the left side and on the right side of the table. Of course, it is not perfect: it has a little flickering on horizontal scrolling and, if the right side of the header that is hidden (it is longer than the with of the seen table) is too large, then you will have an horizontal scrollbar on the frame. But I consider these to be little disadvantages, so, I think this kind of table can be successfully used. I worked a lot for this code, so I hope you will find it useful. Test
text upper the table .... .......... .......... .......... .......... .......... .......... .......... .......... ......
text on the left side .... .......... .......... .......... .......... .......... .......... .......... .......... ......
text on the right side .... .......... .......... .......... .......... .......... .......... .......... .......... ......
text above the table .... .......... .......... .......... .......... .......... .......... .......... .......... ......
From andyg at ihug.co.nz Mon Feb 11 15:42:03 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Tue, 12 Feb 2002 10:42:03 +1300 Subject: [Javascript] scrollable TABLE BODY while the HEADER is fixed References: <098FF7AF9BBDD511B09500508BE393C5BE9428@phsexch23.mgh.harvard.edu> <007c01c1b32c$9d5ec050$7a051aac@92GrunAnca> Message-ID: <004301c1b344$f3703650$4ecaadcb@k1n8i8> Any chance of providing a url? Might be nice to see it in action! > > >>How can I provide a scrollable TABLE BODY while the HEADER and FOOTER is > > fixed for IE??? > > > > > > I've been working on the same problem this week and was hoping someone > else > > had a good answer for both of us. What I've done is a work-around, but > not > > quite bad enough to call it a cheat. > > > > > Hi Jacoby, > I write you again, because I improved the code I sent the last time and now > I can make a table (with static header) with height and width that I want > and I can have other HTML objects upper, above, on the left side and on the > right side of the table. Of course, it is not perfect: it has a little > flickering on horizontal scrolling and, if the right side of the header that > is hidden (it is longer than the with of the seen table) is too large, then > you will have an horizontal scrollbar on the frame. But I consider these to > be little disadvantages, so, I think this kind of table can be successfully > used. I worked a lot for this code, so I hope you will find it useful. > > > > > Test > > > > > > > > > > > > > > > > >
text upper the table .... .......... .......... .......... > .......... .......... .......... .......... .......... ...... >
text on the left side .... .......... .......... .......... .......... > .......... .......... .......... .......... ...... > >
> >
>
> >
onScroll="headingUpdate()"> > >
>
text on the right side .... .......... .......... .......... > .......... .......... .......... .......... .......... ...... >
text above the table .... .......... .......... .......... > .......... .......... .......... .......... .......... ...... >
> > > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From andyg at ihug.co.nz Tue Feb 12 05:23:33 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Wed, 13 Feb 2002 00:23:33 +1300 Subject: [Javascript] submit a form with Javascript References: Message-ID: <004301c1b3b7$b607dc00$18cbadcb@k1n8i8> > This may seem a bit of a dumb question, but how can I submit a form > using Javascript? Right now I am using onSubmit="myform.cgi" in my form > tag. This works fine, but now I want to check a few form elements beofre > it gets submitted, so presumably, I make myself a Javascript function > which gets called by onSubmit(). But when inside onSubmit(), and I have > verified my form elements, how do I then call myform.cgi? Assuming your form is named "myform" how about this: document.myform.submit() From schemer at cyou.com Tue Feb 12 07:36:48 2002 From: schemer at cyou.com (Dave) Date: Tue, 12 Feb 2002 07:36:48 -0600 Subject: [Javascript] order form question References: Message-ID: <3C691A6F.D4C1F998@cyou.com> Well, I was actually wanting to redo what I already had by adding some mathematical functions to it in order to keep with the original look of the form. I know there are lots of shopping carts out there but in their original form tend to offer only a few items at a time to view and add to the cart. I have over 150 items. But in the end I may have to comprimise the solution. I appreciate your input however. Thanks, Dave Cutter Bl wrote: > NOPCart from http://www.nopdesign.com (it's free) > > Cutter > http://www.falcom-knives.com > > ----Original Message Follows---- > From: Dave > Reply-To: javascript at LaTech.edu > To: "javascript at LaTech.edu" > Subject: [Javascript] order form question > Date: Sun, 10 Feb 2002 09:30:09 -0600 > > I am going to try to make an old order form that was written in html to > be more useful. The current form has over 100 items on it and allows > nothing other than entering a quanity ordered for each item listed. I > want to create a self calculating version to come up with a total > including tax (where applicable) and shipping. Then I would like to pass > > the variable (total) to another webpage for further processing. The form > > will still be sent using formail like it used to. I want to accomplish > this with Javascript and want to do it with the least amount of > rewriting possible if that is possible. Any ideas, suggestions, links > would be mucho appreciated. > Thanks in advance, > Dave From schemer at cyou.com Tue Feb 12 07:50:40 2002 From: schemer at cyou.com (Dave) Date: Tue, 12 Feb 2002 07:50:40 -0600 Subject: [Javascript] order form question References: Message-ID: <3C691DB0.44E39733@cyou.com> I looked at your files for some answers and your form does pretty much do what I want it to. But, in order to keep my form like it is, I am going to have to try to incorporate it into my form. Imagine Imagine a 150 row table with columns for "quantity" , "item #", "description", and "price". Currently the customer selects the quantity of however many of whatever product and works their way down the list where they find a shipping schedule. They add their items cost and shipping (on their own) and proceed to the checkout. They select a payment option and go from there. Well sometimes they choose the wrong shipping, forget the tax etc...and I usually eat the difference...I would like to leave it like it is, with the exception of all the amounts and prices being added up so when they get to the bottom, clicking "ADD TO CART" will show the final total. Then I would like this total carried over to the next html page which is the payment screen. I would also make them select if they were in Florida or not for proper taxing...Anyone ever convert one like I this? Thanks, Dave p.s. Esther, I couldn't pull the source up using NN 4.79 Esther_Strom at hmco.com wrote: > I have a set of files that does autocalculation, including tax. There's an > HTML file and a .js file. The files are somewhat long, so I'm not going to > paste them here. They're at > http://www.emstrom.com/~emstrom/tests/neworder2.htm (the .js file is called > order2.js - paste this URL to see the source: > view-source:http://www.emstrom.com/~emstrom/tests/order2.js) > > Esther > From lists at thewebsons.com Tue Feb 12 08:01:13 2002 From: lists at thewebsons.com (Ben Ocean) Date: Tue, 12 Feb 2002 06:01:13 -0800 Subject: [Javascript] Color Coded Conundrum Message-ID: <5.1.0.14.0.20020212055901.00a568a0@mail.thewebsons.com> Hi; I have the following line of code: Home I can't get the color to change with mouse actions. What gives? TIA, BenO From grzegorz.stasica at delphiauto.com Tue Feb 12 08:02:31 2002 From: grzegorz.stasica at delphiauto.com (grzegorz.stasica at delphiauto.com) Date: Tue, 12 Feb 2002 15:02:31 +0100 Subject: Odp: [Javascript] submit a form with Javascript Message-ID: <05256B5E.004D446D.00@notes.delphiauto.com> Hi' In order to submit your form just place in your code: YourForm.submit() That's all |--------+--------------------------> | | garry taylor | | | | | | | | | 1970-01-13 18:51| | | Odpowiedz do | | | javascript | | | | |--------+--------------------------> >----------------------------------------------------------------------------| | | | Do: javascript at LaTech.edu | | DW: (UDW: Grzegorz Stasica/pl/delphiauto) | | Temat: [Javascript] submit a form with Javascript | >----------------------------------------------------------------------------| Hi, This may seem a bit of a dumb question, but how can I submit a form using Javascript? Right now I am using onSubmit="myform.cgi" in my form tag. This works fine, but now I want to check a few form elements beofre it gets submitted, so presumably, I make myself a Javascript function which gets called by onSubmit(). But when inside onSubmit(), and I have verified my form elements, how do I then call myform.cgi? I suppose it's obvious to you guys, but I can't find how to do it! Thanks Garry _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From costea at ssi-schaefer-noell.com Tue Feb 12 08:11:15 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Tue, 12 Feb 2002 15:11:15 +0100 Subject: [Javascript] Color Coded Conundrum References: <5.1.0.14.0.20020212055901.00a568a0@mail.thewebsons.com> Message-ID: <005b01c1b3cf$225f2ef0$7a051aac@92GrunAnca> > Hi; > I have the following line of code: > > onMouseOver="javascript:this.style.color='black'" > onMouseOut="javascript:this.style.color='white'">Home > > I can't get the color to change with mouse actions. What gives? > TIA, > BenO > The code you sent works just fine (IE5.5): on mouse over changes the text color to black and on mouse out the text color is made white. What is the question? (Am I misunderstand something?) Dan. From Esther_Strom at hmco.com Tue Feb 12 08:59:48 2002 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Tue, 12 Feb 2002 08:59:48 -0600 Subject: [Javascript] submit a form with Javascript Message-ID: Garry, Don't call your cgi from within your validation script. Call the validation script onSubmit, using the "return" attribute.
If validateForm returns false (means it doesn't pass whatever validation tests you've set up), the form doesn't get submitted. Esther garry taylor cc: Sent by: Subject: Re: [Javascript] submit a form with Javascript javascript-admin @LaTech.edu 01/13/70 03:20 PM Please respond to javascript On Tuesday, February 12, 2002, at 11:23 AM, Andrew Gibson wrote: >> This may seem a bit of a dumb question, but how can I submit a form >> using Javascript? Right now I am using onSubmit="myform.cgi" in my form >> tag. This works fine, but now I want to check a few form elements >> beofre >> it gets submitted, so presumably, I make myself a Javascript function >> which gets called by onSubmit(). But when inside onSubmit(), and I have >> verified my form elements, how do I then call myform.cgi? > > Assuming your form is named "myform" how about this: > > document.myform.submit() > > I don't think that is exactly what I want, as I think that this would require the CGI script to be stated within the form, meaning that it would be run if I hit Enter on any of the entry fields on the form, the CGI would be run. What I need is to seperate the form and the CGI script, so that I can choose what to do in Javascript before I choose whether to run the CGI or not. I think what is required is to call a Javascript function in the onSubmit tag on the form, which then calls say 'myfunction', and within myfunction, I can call the CGI. Is this feasible? Thanks Garry _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From Esther_Strom at hmco.com Tue Feb 12 09:08:21 2002 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Tue, 12 Feb 2002 09:08:21 -0600 Subject: [Javascript] order form question Message-ID: Dave, If you just clicked on the link, it probably wouldn't work, as mail programs don't translate the view-source into the link. But I use this format in NS 4.51 and it works with no problem. Copy the entire link ( view-source:http://www.emstrom.com/~emstrom/tests/order2.js) - including the words "view-source:" into the URL bar. As far as how you want to implement, maybe this is closer to what you're looking for. http://www.emstrom.com/~emstrom/tests/evorderform.htm (.js is at view-source:http://www.emstrom.com/~emstrom/tests/evorderform.js) -Esther Dave cc: Sent by: Subject: Re: [Javascript] order form question javascript-admin @LaTech.edu 02/12/02 07:50 AM Please respond to javascript p.s. Esther, I couldn't pull the source up using NN 4.79 From lists at thewebsons.com Tue Feb 12 09:42:39 2002 From: lists at thewebsons.com (Ben Ocean) Date: Tue, 12 Feb 2002 07:42:39 -0800 Subject: [Javascript] Color Coded Conundrum In-Reply-To: <005b01c1b3cf$225f2ef0$7a051aac@92GrunAnca> References: <5.1.0.14.0.20020212055901.00a568a0@mail.thewebsons.com> Message-ID: <5.1.0.14.0.20020212074127.009fb3e0@mail.thewebsons.com> At 03:11 PM 2/12/02 +0100, you wrote: > > Hi; > > I have the following line of code: > > > > > onMouseOver="javascript:this.style.color='black'" > > onMouseOut="javascript:this.style.color='white'">Home > > > > I can't get the color to change with mouse actions. What gives? > > TIA, > > BenO > > > >The code you sent works just fine (IE5.5): on mouse over changes the text >color to black and on mouse out the text color is made white. What is the >question? (Am I misunderstand something?) Well, it doesn't work fine for me. I take it back, I have IE5.0, but check out this page: http://performancemarketers.com/1024/eng/index and mouse over *Home*. TIA, BenO From filipiab at atsc.army.mil Tue Feb 12 09:49:40 2002 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Tue, 12 Feb 2002 10:49:40 -0500 Subject: [Javascript] Color Coded Conundrum Message-ID: I did with IE 6 and the white Nome on black turns to black home in a white box Bob Filipiak (Contractor) -------------- next part -------------- An HTML attachment was scrubbed... URL: From costea at ssi-schaefer-noell.com Tue Feb 12 09:51:45 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Tue, 12 Feb 2002 16:51:45 +0100 Subject: [Javascript] Color Coded Conundrum References: <5.1.0.14.0.20020212055901.00a568a0@mail.thewebsons.com> <5.1.0.14.0.20020212074127.009fb3e0@mail.thewebsons.com> Message-ID: <007301c1b3dd$2c760180$7a051aac@92GrunAnca> > At 03:11 PM 2/12/02 +0100, you wrote: > > > Hi; > > > I have the following line of code: > > > > > > > > onMouseOver="javascript:this.style.color='black'" > > > onMouseOut="javascript:this.style.color='white'">Home > > > > > > I can't get the color to change with mouse actions. What gives? > > > TIA, > > > BenO > > > > > > >The code you sent works just fine (IE5.5): on mouse over changes the text > >color to black and on mouse out the text color is made white. What is the > >question? (Am I misunderstand something?) > > Well, it doesn't work fine for me. I take it back, I have IE5.0, but check > out this page: > http://performancemarketers.com/1024/eng/index > and mouse over *Home*. > TIA, > BenO > It works like this: onMouseOver TD the bgcolor of the TD is white; onMouseOut TD the bgcolor of the TD is black when I do onMouseOver "Home", the "Home" text color is black and the bgcolor of the TD is white; onMouseOut, ... so, it is work fine with my browser (IE.50.4807.2300). From schemer at cyou.com Tue Feb 12 10:15:36 2002 From: schemer at cyou.com (Dave) Date: Tue, 12 Feb 2002 10:15:36 -0600 Subject: [Javascript] order form question References: Message-ID: <3C693FA8.61AEBEB8@cyou.com> Hi Esther, Now that looks more like what I am looking for. The "view-source:" works too. The only next question I will have so I may as well ask it now is, how would I take the total as a variable or a number, and transfer it to another html page for further display? My form uses formail to send me a copy via email and after the customer clicks to send the order, they are presented with the payment options as I take electronic checks, credit cards, PayPal, and personal checks and money orders.When they would click to send the order, I would like the payment options screen to come up (as usual), but have their total visible in case they didn't write it down. Thank you, Dave Esther_Strom at hmco.com wrote: > Dave, > > If you just clicked on the link, it probably wouldn't work, as mail > programs don't translate the view-source into the link. But I use this > format in NS 4.51 and it works with no problem. Copy the entire link ( > view-source:http://www.emstrom.com/~emstrom/tests/order2.js) - including > the words "view-source:" into the URL bar. > > As far as how you want to implement, maybe this is closer to what you're > looking for. http://www.emstrom.com/~emstrom/tests/evorderform.htm (.js is > at view-source:http://www.emstrom.com/~emstrom/tests/evorderform.js) > > -Esther > From LMuchacho at twii.net Tue Feb 12 11:27:17 2002 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Tue, 12 Feb 2002 17:27:17 -0000 Subject: [Javascript] nested layer in netscape 4 Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC027C3098@lon.webmail.twii.net> Hi All I'm trying to change the source of an image in a serie of 4 layer I know I need to references layer something like that document.layers['layer1'].document.layers['layer2'].document.layers['layer3' ].document.layers['layer4'] but that work if I want to change visibility or color but I don't arrive to change the source of the image I try :document.layers['layer1'].document.layers['layer2'].document.layers['layer3 '].document.layers['layer4'].document.images['myImage'].src but no result html look something like that:
I did arrive to do that with one layer but here I'm stuck If anyone got an idea Thanks Laurent -----Original Message----- From: Dave [mailto:schemer at cyou.com] Sent: 12 February 2002 16:16 To: javascript at LaTech.edu Subject: Re: [Javascript] order form question Hi Esther, Now that looks more like what I am looking for. The "view-source:" works too. The only next question I will have so I may as well ask it now is, how would I take the total as a variable or a number, and transfer it to another html page for further display? My form uses formail to send me a copy via email and after the customer clicks to send the order, they are presented with the payment options as I take electronic checks, credit cards, PayPal, and personal checks and money orders.When they would click to send the order, I would like the payment options screen to come up (as usual), but have their total visible in case they didn't write it down. Thank you, Dave Esther_Strom at hmco.com wrote: > Dave, > > If you just clicked on the link, it probably wouldn't work, as mail > programs don't translate the view-source into the link. But I use this > format in NS 4.51 and it works with no problem. Copy the entire link ( > view-source:http://www.emstrom.com/~emstrom/tests/order2.js) - including > the words "view-source:" into the URL bar. > > As far as how you want to implement, maybe this is closer to what you're > looking for. http://www.emstrom.com/~emstrom/tests/evorderform.htm (.js is > at view-source:http://www.emstrom.com/~emstrom/tests/evorderform.js) > > -Esther > _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From Esther_Strom at hmco.com Tue Feb 12 12:04:07 2002 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Tue, 12 Feb 2002 12:04:07 -0600 Subject: [Javascript] order form question Message-ID: Dave, To pass the info on to a "confirmation-type" page, you can combine the two examples I sent. If you fill out the form at http://www.emstrom.com/~emstrom/tests/neworder2.htm (the first one) and click the Confirm button, it passes the info to a dynamically-written popup window. That window in turn has the actual Submit button on it. You could have your payment options on the confirmation popup, then pass that info through to the submit button along with the rest of the stuff. Esther Dave cc: Sent by: Subject: Re: [Javascript] order form question javascript-admin @LaTech.edu 02/12/02 10:15 AM Please respond to javascript Hi Esther, Now that looks more like what I am looking for. The "view-source:" works too. The only next question I will have so I may as well ask it now is, how would I take the total as a variable or a number, and transfer it to another html page for further display? My form uses formail to send me a copy via email and after the customer clicks to send the order, they are presented with the payment options as I take electronic checks, credit cards, PayPal, and personal checks and money orders.When they would click to send the order, I would like the payment options screen to come up (as usual), but have their total visible in case they didn't write it down. Thank you, Dave Esther_Strom at hmco.com wrote: > Dave, > > If you just clicked on the link, it probably wouldn't work, as mail > programs don't translate the view-source into the link. But I use this > format in NS 4.51 and it works with no problem. Copy the entire link ( > view-source:http://www.emstrom.com/~emstrom/tests/order2.js) - including > the words "view-source:" into the URL bar. > > As far as how you want to implement, maybe this is closer to what you're > looking for. http://www.emstrom.com/~emstrom/tests/evorderform.htm (.js is > at view-source:http://www.emstrom.com/~emstrom/tests/evorderform.js) > > -Esther > _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From cutterbl at hotmail.com Tue Feb 12 12:30:56 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Tue, 12 Feb 2002 13:30:56 -0500 Subject: [Javascript] order form question Message-ID: The NOPCart (www.nopdesign.com) could be fairly easily adjusted to handle your requirements. Although my users select one item at a time, they do often change quantity on the fly and the script handles it quite nicely. It is very straightforward and not difficult to adjust. Cutter http://www.falcon-knives.com ----Original Message Follows---- From: Dave Reply-To: javascript at LaTech.edu To: javascript at LaTech.edu Subject: Re: [Javascript] order form question Date: Tue, 12 Feb 2002 07:50:40 -0600 I looked at your files for some answers and your form does pretty much do what I want it to. But, in order to keep my form like it is, I am going to have to try to incorporate it into my form. Imagine Imagine a 150 row table with columns for "quantity" , "item #", "description", and "price". Currently the customer selects the quantity of however many of whatever product and works their way down the list where they find a shipping schedule. They add their items cost and shipping (on their own) and proceed to the checkout. They select a payment option and go from there. Well sometimes they choose the wrong shipping, forget the tax etc...and I usually eat the difference...I would like to leave it like it is, with the exception of all the amounts and prices being added up so when they get to the bottom, clicking "ADD TO CART" will show the final total. Then I would like this total carried over to the next html page which is the payment screen. I would also make them select if they were in Florida or not for proper taxing...Anyone ever convert one like I this? Thanks, Dave p.s. Esther, I couldn't pull the source up using NN 4.79 Esther_Strom at hmco.com wrote: > I have a set of files that does autocalculation, including tax. There's an > HTML file and a .js file. The files are somewhat long, so I'm not going to > paste them here. They're at > http://www.emstrom.com/~emstrom/tests/neworder2.htm (the .js file is called > order2.js - paste this URL to see the source: > view-source:http://www.emstrom.com/~emstrom/tests/order2.js) > > Esther > _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From schemer at cyou.com Tue Feb 12 13:15:02 2002 From: schemer at cyou.com (Dave) Date: Tue, 12 Feb 2002 13:15:02 -0600 Subject: [Javascript] order form question References: Message-ID: <3C6969B5.43EF21FF@cyou.com> Esther, Ok, with all the example code I should be able to get it. Once I get going the copy button will speed things along as far as the items go. I see what you mean on the passing of info to the popup, I will just modify the script to send only what I need.... Also, the link below comes up with FILE NOT FOUND ERROR The requested URL /~emstrom/tests/thread.css was not found on this server. when I use NN but is fine with IE. Must be the style sheet or something.. Thanks for all the help, Dave Esther_Strom at hmco.com wrote: > Dave, > > To pass the info on to a "confirmation-type" page, you can combine the two > examples I sent. If you fill out the form at > http://www.emstrom.com/~emstrom/tests/neworder2.htm (the first one) and > click the Confirm button, it passes the info to a dynamically-written popup > window. That window in turn has the actual Submit button on it. You could > have your payment options on the confirmation popup, then pass that info > through to the submit button along with the rest of the stuff. > > Esther From schemer at cyou.com Tue Feb 12 13:23:58 2002 From: schemer at cyou.com (Dave) Date: Tue, 12 Feb 2002 13:23:58 -0600 Subject: [Javascript] order form question References: Message-ID: <3C696BCE.81731707@cyou.com> Cutter, I checked out your site and noticed that if I choose an item, go to the checkout, then choose another item, the shipping always stays at $6.45 even after adding 5 more items to the basket. Is that normal or a glitch? Anyway, I guess I could adapt this to work for mine but was trying to keep my form looking like it was but doing some math. I guess change always worries me....but once I do it I wonder why I didn't do it sooner :) Thanks for your input, Dave Cutter Bl wrote: > The NOPCart (www.nopdesign.com) could be fairly easily adjusted to handle > your requirements. Although my users select one item at a time, they do > often change quantity on the fly and the script handles it quite nicely. It > is very straightforward and not difficult to adjust. > > Cutter > http://www.falcon-knives.com From lists at thewebsons.com Tue Feb 12 14:24:38 2002 From: lists at thewebsons.com (Ben Ocean) Date: Tue, 12 Feb 2002 12:24:38 -0800 Subject: [Javascript] Color Coded Conundrum In-Reply-To: <007301c1b3dd$2c760180$7a051aac@92GrunAnca> References: <5.1.0.14.0.20020212055901.00a568a0@mail.thewebsons.com> <5.1.0.14.0.20020212074127.009fb3e0@mail.thewebsons.com> Message-ID: <5.1.0.14.0.20020212122416.00a5fec0@mail.thewebsons.com> Crazy. Doesn't work worth a darn for me, but everyone else sees it just fine...? Thanks, BenO At 04:51 PM 2/12/02 +0100, you wrote: > > At 03:11 PM 2/12/02 +0100, you wrote: > > > > Hi; > > > > I have the following line of code: > > > > > > > > > > > onMouseOver="javascript:this.style.color='black'" > > > > onMouseOut="javascript:this.style.color='white'">Home > > > > > > > > I can't get the color to change with mouse actions. What gives? > > > > TIA, > > > > BenO > > > > > > > > > >The code you sent works just fine (IE5.5): on mouse over changes the text > > >color to black and on mouse out the text color is made white. What is the > > >question? (Am I misunderstand something?) > > > > Well, it doesn't work fine for me. I take it back, I have IE5.0, but check > > out this page: > > http://performancemarketers.com/1024/eng/index > > and mouse over *Home*. > > TIA, > > BenO > > > >It works like this: >onMouseOver TD the bgcolor of the TD is white; onMouseOut TD the bgcolor of >the TD is black >when I do onMouseOver "Home", the "Home" text color is black and the bgcolor >of the TD is white; onMouseOut, ... > >so, it is work fine with my browser (IE.50.4807.2300). > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript From filipiab at atsc.army.mil Tue Feb 12 14:26:52 2002 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Tue, 12 Feb 2002 15:26:52 -0500 Subject: [Javascript] Color Coded Conundrum Message-ID: Just a thought but what are your browser's color settings? Is your browser set to 'Use Windows colors'? Have you tried view the page with another browser? Bob Filipiak (Contractor) -----Original Message----- From: Ben Ocean [mailto:lists at thewebsons.com] Sent: Tuesday, February 12, 2002 3:25 PM To: javascript at LaTech.edu Subject: Re: [Javascript] Color Coded Conundrum Crazy. Doesn't work worth a darn for me, but everyone else sees it just fine...? Thanks, BenO -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at c4webdesign.com Tue Feb 12 16:53:59 2002 From: jeff at c4webdesign.com (Jeff Howden) Date: Tue, 12 Feb 2002 14:53:59 -0800 Subject: [Javascript] submit a form with Javascript In-Reply-To: Message-ID: garry, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> > From: garry taylor > > This may seem a bit of a dumb question, but how can I submit a form > using Javascript? Right now I am using onSubmit="myform.cgi" in my > form tag. This works fine, but now I want to check a few form > elements beofre it gets submitted, so presumably, I make myself a > Javascript function which gets called by onSubmit(). But when inside > onSubmit(), and I have verified my form elements, how do I then call > myform.cgi? > > I suppose it's obvious to you guys, but I can't find how to do it! ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> first, start off by reading this article: Links & JavaScript Living Together in Harmony http://www.evolt.org/article/javascript/17/20938/index.html then, do some research into how the onsubmit event handler works. please, resist the temptation to use the submit() method. it's completely unnecessary in this case. good luck, .jeff http://evolt.org/ jeff at members.evolt.org http://members.evolt.org/jeff/ From lifeguardlarry at earthlink.net Wed Feb 13 09:18:33 2002 From: lifeguardlarry at earthlink.net (Larry Kraus) Date: Wed, 13 Feb 2002 07:18:33 -0800 Subject: [Javascript] HTML Editor survey In-Reply-To: <3C6A865A.22726FDA@cyou.com> Message-ID: Notepad. -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Dave Sent: Wednesday, February 13, 2002 7:30 AM To: javascript at LaTech.edu Subject: [Javascript] HTML Editor survey What HTML Editor do you currently use: ___Frontpage ___Homesite ___Firstpage ___Notepad ___Other, please name. Thanks, Dave _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From schemer at cyou.com Wed Feb 13 09:29:31 2002 From: schemer at cyou.com (Dave) Date: Wed, 13 Feb 2002 09:29:31 -0600 Subject: [Javascript] HTML Editor survey Message-ID: <3C6A865A.22726FDA@cyou.com> What HTML Editor do you currently use: ___Frontpage ___Homesite ___Firstpage ___Notepad ___Other, please name. Thanks, Dave From ben at babelfish.co.uk Wed Feb 13 09:34:14 2002 From: ben at babelfish.co.uk (.ben) Date: Wed, 13 Feb 2002 15:34:14 -0000 Subject: [Javascript] HTML Editor survey References: <3C6A865A.22726FDA@cyou.com> Message-ID: <005701c1b4a3$ed768140$3a060a0a@idt00096> Interdev, then Notepad. I see little point in the others. .b ----- Original Message ----- From: "Dave" To: Sent: Wednesday, February 13, 2002 3:29 PM Subject: [Javascript] HTML Editor survey > What HTML Editor do you currently use: > > ___Frontpage > ___Homesite > ___Firstpage > ___Notepad > ___Other, please name. > > Thanks, > Dave > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From eoghan at cinehub.com Wed Feb 13 09:40:03 2002 From: eoghan at cinehub.com (eoghan) Date: Wed, 13 Feb 2002 15:40:03 -0000 Subject: [Javascript] HTML Editor survey In-Reply-To: <3C6A865A.22726FDA@cyou.com> Message-ID: -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Dave Sent: 13 February 2002 15:30 To: javascript at LaTech.edu Subject: [Javascript] HTML Editor survey What HTML Editor do you currently use: ___Frontpage ___Homesite ___Firstpage ___Notepad X Other, please name. cf studio maguma php editor Thanks, Dave _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From costea at ssi-schaefer-noell.com Wed Feb 13 09:41:57 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Wed, 13 Feb 2002 16:41:57 +0100 Subject: [Javascript] HTML Editor survey References: <3C6A865A.22726FDA@cyou.com> Message-ID: <018301c1b4a4$f8788a10$7a051aac@92GrunAnca> > What HTML Editor do you currently use: > > ___Frontpage > ___Homesite > ___Firstpage > ___Notepad > ___Other, please name. > > Thanks, > Dave > EditPlus2 Dan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From LMuchacho at twii.net Wed Feb 13 09:42:56 2002 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Wed, 13 Feb 2002 15:42:56 -0000 Subject: [Javascript] HTML Editor survey Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC027C30A0@lon.webmail.twii.net> Interdev and notepad Laurent -----Original Message----- From: .ben [mailto:ben at babelfish.co.uk] Sent: 13 February 2002 15:34 To: javascript at LaTech.edu Subject: Re: [Javascript] HTML Editor survey Interdev, then Notepad. I see little point in the others. .b ----- Original Message ----- From: "Dave" To: Sent: Wednesday, February 13, 2002 3:29 PM Subject: [Javascript] HTML Editor survey > What HTML Editor do you currently use: > > ___Frontpage > ___Homesite > ___Firstpage > ___Notepad > ___Other, please name. > > Thanks, > Dave > > _______________________________________________ > 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 filipiab at atsc.army.mil Wed Feb 13 09:52:30 2002 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Wed, 13 Feb 2002 10:52:30 -0500 Subject: [Javascript] HTML Editor survey Message-ID: Notepad Note Tab Pro Bob Filipiak (Contractor) -----Original Message----- From: Dave [mailto:schemer at cyou.com] Sent: Wednesday, February 13, 2002 10:30 AM To: javascript at LaTech.edu Subject: [Javascript] HTML Editor survey What HTML Editor do you currently use: ___Frontpage ___Homesite ___Firstpage ___Notepad ___Other, please name. Thanks, Dave _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From gary at topsusa.com Wed Feb 13 10:00:17 2002 From: gary at topsusa.com (Gary Letchford) Date: Wed, 13 Feb 2002 11:00:17 -0500 Subject: [Javascript] HTML Editor survey In-Reply-To: <3C6A865A.22726FDA@cyou.com> Message-ID: > > What HTML Editor do you currently use: > > ___Frontpage > ___Homesite > ___Firstpage > ___Notepad > ___Other, please name. > > Thanks, > Dave > ColdFusion Studio From mferon at adeuza.fr Wed Feb 13 10:01:56 2002 From: mferon at adeuza.fr (=?iso-8859-1?Q?Matthieu_F=E9ron?=) Date: Wed, 13 Feb 2002 17:01:56 +0100 Subject: [Javascript] HTML Editor survey Message-ID: <1BD2E3FFBBE97448938695212B013ECE08453B@abraracourcix.adeuza.fr> interdev for building visual appearance webexpert for client scripts and server scripts -----Message d'origine----- De : Dave [mailto:schemer at cyou.com] Envoy? : mercredi 13 f?vrier 2002 16:30 ? : javascript at LaTech.edu Objet : [Javascript] HTML Editor survey What HTML Editor do you currently use: ___Frontpage ___Homesite ___Firstpage ___Notepad ___Other, please name. Thanks, Dave _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From christophe.lancian at cgey.com Wed Feb 13 10:09:29 2002 From: christophe.lancian at cgey.com (Christophe Lancian) Date: Wed, 13 Feb 2002 17:09:29 +0100 Subject: [Javascript] HTML Editor survey References: Message-ID: <00c601c1b4a8$d189d0e0$0696440a@clancian> RE: [Javascript] HTML Editor surveyNotepad Textpad _ ___ .-' ' -. ( )( )/ \ /00 ; o_\\-mm-..........-mm`~~~~~~~~~~~~~~ Christophe Lancian - CGE&Y ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----- Original Message ----- From: Filipiak, Bob (Contractor) To: 'javascript at LaTech.edu' Sent: Wednesday, February 13, 2002 4:52 PM Subject: RE: [Javascript] HTML Editor survey Notepad Note Tab Pro Bob Filipiak (Contractor) -----Original Message----- From: Dave [mailto:schemer at cyou.com] Sent: Wednesday, February 13, 2002 10:30 AM To: javascript at LaTech.edu Subject: [Javascript] HTML Editor survey What HTML Editor do you currently use: ___Frontpage ___Homesite ___Firstpage ___Notepad ___Other, please name. Thanks, Dave _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From joelf at dmv.com Wed Feb 13 10:13:11 2002 From: joelf at dmv.com (Joel Firestone) Date: Wed, 13 Feb 2002 11:13:11 -0500 Subject: [Javascript] HTML Editor survey References: <3C6A865A.22726FDA@cyou.com> Message-ID: <001d01c1b4a9$589420e0$c80511ac@joelf> CF Studio. Used to use Notepad, but with CF, I like the tag completion, search/replace, spell checking, db browsing, syntax hiliting, etc. > What HTML Editor do you currently use: > > ___Frontpage > ___Homesite > ___Firstpage > ___Notepad > ___Other, please name. > > Thanks, > Dave From Esther_Strom at hmco.com Wed Feb 13 10:34:28 2002 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Wed, 13 Feb 2002 10:34:28 -0600 Subject: [Javascript] HTML Editor survey Message-ID: Notepad for single page creation, editing, etc. Homesite if there are global changes to be made (extended find and replace at the folder level...) Dave m> cc: Sent by: Subject: [Javascript] HTML Editor survey javascript-admin @LaTech.edu 02/13/02 09:29 AM Please respond to javascript What HTML Editor do you currently use: ___Frontpage ___Homesite ___Firstpage ___Notepad ___Other, please name. Thanks, Dave _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From zibbler at mediaone.net Wed Feb 13 10:38:02 2002 From: zibbler at mediaone.net (Lisa Bradshaw) Date: Wed, 13 Feb 2002 11:38:02 -0500 Subject: [Javascript] HTML Editor survey References: <3C6A865A.22726FDA@cyou.com> Message-ID: <000401c1b4ac$d10317e0$2434b042@se.mediaone.net> Notepad! Lisa ----- Original Message ----- From: "Dave" To: Sent: Wednesday, February 13, 2002 10:29 AM Subject: [Javascript] HTML Editor survey > What HTML Editor do you currently use: > > ___Frontpage > ___Homesite > ___Firstpage > ___Notepad > ___Other, please name. > > Thanks, > Dave > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From captkirk at dmzgraphics.com Wed Feb 13 10:52:31 2002 From: captkirk at dmzgraphics.com (Lewis Kirk) Date: Wed, 13 Feb 2002 11:52:31 -0500 Subject: [Javascript] HTML Editor survey In-Reply-To: <3C6A865A.22726FDA@cyou.com> References: <3C6A865A.22726FDA@cyou.com> Message-ID: >What HTML Editor do you currently use: > >___Frontpage >___Homesite >___Firstpage >___Notepad >___Other, please name. > BBEdit -- Lewis Kirk DMZ Graphics / Owner/Operator http://www.dmzgraphics.com http://www.artbarsc.com http://www.lewisandclarklamps.com http://www.congareepharmacy.com http://www.srhoadsarchitect.com From hassan at webtuitive.com Wed Feb 13 11:08:48 2002 From: hassan at webtuitive.com (Hassan Schroeder) Date: Wed, 13 Feb 2002 09:08:48 -0800 Subject: [Javascript] HTML Editor survey References: <3C6A865A.22726FDA@cyou.com> Message-ID: <3C6A9DA0.E0D38042@webtuitive.com> Dave wrote: > > What HTML Editor do you currently use: > ___Other, please name. emacs, the One True Editor, of course :-) -- H* Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com -- creating dynamic Web sites and applications since 1994 -- From SnarfLT at aol.com Wed Feb 13 11:29:59 2002 From: SnarfLT at aol.com (SnarfLT at aol.com) Date: Wed, 13 Feb 2002 12:29:59 EST Subject: [Javascript] HTML Editor survey Message-ID: <28.22234413.299bfc97@aol.com> FirstPage2000.....its good and its free. -Scott From mallard at serv.net Wed Feb 13 11:50:10 2002 From: mallard at serv.net (TomMallard) Date: Wed, 13 Feb 2002 09:50:10 -0800 Subject: [Javascript] HTML Editor survey In-Reply-To: <15a101c1b4b8$95543330$e22d200a@PMBRUNON> Message-ID: homesite & VI tom mallard seattle From nancybv at flyinglemon.com Wed Feb 13 11:55:20 2002 From: nancybv at flyinglemon.com (Flying Lemon Systems) Date: Wed, 13 Feb 2002 12:55:20 -0500 Subject: [Javascript] HTML Editor survey References: <3C6A865A.22726FDA@cyou.com> Message-ID: <004001c1b4b7$ac6acda0$4741a8c0@pcci6571> Homesite, Notepad, Textpad. Have used Dreamweaver as an HTML editor also (just use code view and ignore the WYSIWYG side). A few others here and there, whatever is around and people wish me to use. Code is code. A fellow coder here likes CoffeeCup for some things, but I haven't actually tried it. N ----- Original Message ----- From: "Dave" To: Sent: Wednesday, February 13, 2002 10:29 AM Subject: [Javascript] HTML Editor survey > What HTML Editor do you currently use: > > ___Frontpage > ___Homesite > ___Firstpage > ___Notepad > ___Other, please name. > > Thanks, > Dave > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From ben at babelfish.co.uk Wed Feb 13 12:00:58 2002 From: ben at babelfish.co.uk (.ben) Date: Wed, 13 Feb 2002 18:00:58 -0000 Subject: [Javascript] HTML Editor survey References: <3C6A865A.22726FDA@cyou.com> <000401c1b4ac$d10317e0$2434b042@se.mediaone.net> Message-ID: <003401c1b4b8$6d5c1d20$3a060a0a@idt00096> God bless Notepad and all it's wonderful features! ----- Original Message ----- From: "Lisa Bradshaw" To: Sent: Wednesday, February 13, 2002 4:38 PM Subject: Re: [Javascript] HTML Editor survey > Notepad! > > Lisa > > > ----- Original Message ----- > From: "Dave" > To: > Sent: Wednesday, February 13, 2002 10:29 AM > Subject: [Javascript] HTML Editor survey > > > > What HTML Editor do you currently use: > > > > ___Frontpage > > ___Homesite > > ___Firstpage > > ___Notepad > > ___Other, please name. > > > > Thanks, > > Dave > > > > _______________________________________________ > > 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 peter at brunone.com Wed Feb 13 12:02:20 2002 From: peter at brunone.com (Peter Brunone) Date: Wed, 13 Feb 2002 12:02:20 -0600 Subject: [Javascript] HTML Editor survey References: <3C6A865A.22726FDA@cyou.com> Message-ID: <15a101c1b4b8$95543330$e22d200a@PMBRUNON> HomeSite and Notepad. Soon I will ditch HomeSite for good in favor of a brand new tool for ASP.NET... but that doesn't really matter here. ----- Original Message ----- From: "Dave" To: Sent: Wednesday, February 13, 2002 9:29 AM Subject: [Javascript] HTML Editor survey | What HTML Editor do you currently use: | | ___Frontpage | ___Homesite | ___Firstpage | ___Notepad | ___Other, please name. | | Thanks, | Dave | | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | https://lists.LaTech.edu/mailman/listinfo/javascript | From rer at datacompusa.com Wed Feb 13 12:13:32 2002 From: rer at datacompusa.com (Roger Roelofs) Date: Wed, 13 Feb 2002 13:13:32 -0500 Subject: [Javascript] Re: What HTML Editor In-Reply-To: <20020213180102.0BEF7308B58@smtp.LaTech.edu> Message-ID: <63BB87EE-20AD-11D6-A431-000A2789959E@datacompusa.com> Pepper or BBEdit on the Mac Emacs On Wednesday, February 13, 2002, at 01:01 PM, javascript- request at LaTech.edu wrote: > | What HTML Editor do you currently use: > | > | ___Frontpage > | ___Homesite > | ___Firstpage > | ___Notepad > | ___Other, please name. > Roger, Roger Roelofs Phone 616 574-0480 x246 Datacomp Appraisal Services Fax 616 574-0486 3215 Eaglecrest Drive, NE Suite 100 email rer at datacompusa.com Grand Rapids, MI 49525-4593 web www.datacompusa.com From apwebdesign at yahoo.com Wed Feb 13 12:14:40 2002 From: apwebdesign at yahoo.com (Anthony E.) Date: Wed, 13 Feb 2002 10:14:40 -0800 (PST) Subject: [Javascript] Re: What HTML Editor In-Reply-To: <63BB87EE-20AD-11D6-A431-000A2789959E@datacompusa.com> Message-ID: <20020213181440.16601.qmail@web14508.mail.yahoo.com> homesite, vi --- Roger Roelofs wrote: > Pepper or BBEdit on the Mac > Emacs > > On Wednesday, February 13, 2002, at 01:01 PM, > javascript- > request at LaTech.edu wrote: > > > | What HTML Editor do you currently use: > > | > > | ___Frontpage > > | ___Homesite > > | ___Firstpage > > | ___Notepad > > | ___Other, please name. > > > Roger, > > Roger Roelofs Phone 616 > 574-0480 x246 > Datacomp Appraisal Services Fax 616 > 574-0486 > 3215 Eaglecrest Drive, NE Suite 100 email > rer at datacompusa.com > Grand Rapids, MI 49525-4593 web > www.datacompusa.com > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript ===== Anthony Ettinger apwebdesign at yahoo.com http://apwebdesign.com home: 415.504.8048 mobile: 415.385.0146 __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From cutterbl at hotmail.com Wed Feb 13 12:44:18 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Wed, 13 Feb 2002 13:44:18 -0500 Subject: [Javascript] HTML Editor survey Message-ID: ColdFusion Developer's Studio Cutter http://www.falcon-knives.com _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From colin at vfs.com Wed Feb 13 12:46:32 2002 From: colin at vfs.com (Colin Cochrane) Date: Wed, 13 Feb 2002 10:46:32 -0800 Subject: [Javascript] HTML Editor survey In-Reply-To: <3C6A865A.22726FDA@cyou.com> Message-ID: > >What HTML Editor do you currently use: BBedit on the Mac. Ultra Edit or Editplus on PC. cdc Colin Cochrane Head Instructor Vancouver Film School New Media http://www.vfs.com/ Tel: (604) 685-6331 Ext 209 Fax: (604) 685-6308 Vancouver Film School. Creative. Disciplined. Focused. From victor.craven at 10to1productions.com Wed Feb 13 12:51:14 2002 From: victor.craven at 10to1productions.com (Victor Craven) Date: Wed, 13 Feb 2002 18:51:14 -0000 Subject: [Javascript] CD-Rom detection..... Message-ID: <000d01c1b4bf$69d51510$ed1478d5@10to1> I would like to use JavaScript to detect whether a valid CD-Rom is inserted. 1) Query PC to establish the letter of one or more CD-Rom players attached. 2) Query each CD-Rom player attached to establish if a certain CD-Rom is inserted by it's "label" string value. Any ideas? Regards, Vic :) ______________________________________________ Victor Craven http://10to1Productions.com "from the world to the web" London United Kingdom From tom at wheelercreek.com Wed Feb 13 13:06:24 2002 From: tom at wheelercreek.com (Tom Wheeler) Date: Wed, 13 Feb 2002 11:06:24 -0800 Subject: [Javascript] HTML Editor Message-ID: <200202131901.OAA10509@loki.domainnameservers.net> I really love TextPad on the PC. Its a great little $25 program. www.textpad.com I especially enjoy the split screen views. Homesite's a bit bloated for my tastes. I don't like programs that try to give you a preview of the code, i prefer to look at the browsers. Notepad's a pain because you have to open the program multiple times for every document you want to view. And on the mac I have stuck with bbEdit (Lite) because its free & works great.. Tom W. From apwebdesign at yahoo.com Wed Feb 13 13:12:47 2002 From: apwebdesign at yahoo.com (Anthony E.) Date: Wed, 13 Feb 2002 11:12:47 -0800 (PST) Subject: [Javascript] HTML Editor In-Reply-To: <200202131901.OAA10509@loki.domainnameservers.net> Message-ID: <20020213191247.56318.qmail@web14507.mail.yahoo.com> Does anyone know of a good gui html/perl/etc... text editor for both linux and windows desktops? ===== Anthony Ettinger apwebdesign at yahoo.com http://apwebdesign.com home: 415.504.8048 mobile: 415.385.0146 __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From hassan at webtuitive.com Wed Feb 13 13:27:52 2002 From: hassan at webtuitive.com (Hassan Schroeder) Date: Wed, 13 Feb 2002 11:27:52 -0800 Subject: [Javascript] HTML Editor References: <20020213191247.56318.qmail@web14507.mail.yahoo.com> Message-ID: <3C6ABE38.C09B1BCC@webtuitive.com> "Anthony E." wrote: > > Does anyone know of a good gui html/perl/etc... text > editor for both linux and windows desktops? Yep -- Xemacs ; suitable for all purposes :-) -- H* Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com -- creating dynamic Web sites and applications since 1994 -- From peter at brunone.com Wed Feb 13 13:34:45 2002 From: peter at brunone.com (Peter Brunone) Date: Wed, 13 Feb 2002 13:34:45 -0600 Subject: [Javascript] HTML Editor References: <20020213191247.56318.qmail@web14507.mail.yahoo.com> Message-ID: <17ec01c1b4c5$80592f50$e22d200a@PMBRUNON> Not until the .Net framework for Unix comes out. ----- Original Message ----- From: "Anthony E." To: Sent: Wednesday, February 13, 2002 1:12 PM Subject: Re: [Javascript] HTML Editor | Does anyone know of a good gui html/perl/etc... text | editor for both linux and windows desktops? | | ===== | Anthony Ettinger | apwebdesign at yahoo.com | http://apwebdesign.com | home: 415.504.8048 | mobile: 415.385.0146 | From peter at brunone.com Wed Feb 13 13:37:10 2002 From: peter at brunone.com (Peter Brunone) Date: Wed, 13 Feb 2002 13:37:10 -0600 Subject: [Javascript] CD-Rom detection..... References: <000d01c1b4bf$69d51510$ed1478d5@10to1> Message-ID: <180601c1b4c5$d6089c10$e22d200a@PMBRUNON> You're not gonna do that on the client unless you have a java or ActiveX object in the browser. You might be able to pull it off with VBScript and really low security settings in IE, but otherwise scripting alone is just too limited. Regards, Peter ----- Original Message ----- From: "Victor Craven" To: Sent: Wednesday, February 13, 2002 12:51 PM Subject: [Javascript] CD-Rom detection..... | I would like to use JavaScript to detect whether a valid CD-Rom is | inserted. | | 1) Query PC to establish the letter of one or more CD-Rom players | attached. | | 2) Query each CD-Rom player attached to establish if a certain CD-Rom | is inserted by it's "label" string value. | | Any ideas? | | Regards, | | Vic :) From lau at goldenweb.com.au Wed Feb 13 16:53:44 2002 From: lau at goldenweb.com.au (Lau) Date: Thu, 14 Feb 2002 09:53:44 +1100 Subject: [Javascript] HTML Editor survey References: <76A6F0FCCA27D4119DEF00805F5700AC027C30A0@lon.webmail.twii.net> Message-ID: <017d01c1b4e6$019e64c0$6b00a8c0@laubox> Homesite > ----- Original Message ----- > From: "Dave" > Sent: Wednesday, February 13, 2002 3:29 PM > Subject: [Javascript] HTML Editor survey > > What HTML Editor do you currently use: > > > > ___Frontpage > > ___Homesite > > ___Firstpage > > ___Notepad > > ___Other, please name. > > > > Thanks, > > Dave From reubendb at goshen.edu Wed Feb 13 19:37:45 2002 From: reubendb at goshen.edu (Reuben D Budiardja) Date: Wed, 13 Feb 2002 20:37:45 -0500 Subject: [Javascript] Browse and Upload file Message-ID: Hi, Does anyone know how to upload file using Web Browser as the interface? I want to do a web page, where you can click on a button, and then you can browse the local directories of the person who are browsing the page, and upload a selected file to the web server. Any pointer on how to do that will be greatly appreciated. Thanks. Reuben D. Budiardja From ben at babelfish.co.uk Thu Feb 14 04:31:25 2002 From: ben at babelfish.co.uk (.ben) Date: Thu, 14 Feb 2002 10:31:25 -0000 Subject: [Javascript] Browse and Upload file References: Message-ID: <000f01c1b542$cac2fd50$3a060a0a@idt00096> Hi Reuben, What client and server technologies do you have available? For example, if you can use ASP (normally available on IIS web servers (windows platform)) then you can use a combination of the HTML File control.... ...and then a server control such as SA-FileUp (http://www.softartisans.com) Other similar server-side solutions are available for Apache (using PHP, etc). You can even do it all client-side using a combination of IE, the MS XMLHTTP components, and some JavaScript. let me know if you need any help, i've done this more times than i have had hot dinners :) hth, .b ----- Original Message ----- From: "Reuben D Budiardja" To: Sent: Thursday, February 14, 2002 1:37 AM Subject: [Javascript] Browse and Upload file > > Hi, > Does anyone know how to upload file using Web Browser as the interface? > > I want to do a web page, where you can click on a button, and then you can > browse the local directories of the person who are browsing the page, and > upload a selected file to the web server. Any pointer on how to do that will > be greatly appreciated. > > Thanks. > Reuben D. Budiardja > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From cutterbl at hotmail.com Thu Feb 14 05:30:21 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 14 Feb 2002 06:30:21 -0500 Subject: [Javascript] Browse and Upload file Message-ID: Javascript does not give you this ability. It is a client side language, with no access to the server or the individual's system outside of their browser. You may be able to do this with ASP, JScript, VBScript or something. Using ColdFusion you would look into the CFFile tag. Cutter http://www.falcon-knives.com ----Original Message Follows---- From: "Reuben D Budiardja" Reply-To: javascript at LaTech.edu To: javascript at LaTech.edu Subject: [Javascript] Browse and Upload file Date: Wed, 13 Feb 2002 20:37:45 -0500 Hi, Does anyone know how to upload file using Web Browser as the interface? I want to do a web page, where you can click on a button, and then you can browse the local directories of the person who are browsing the page, and upload a selected file to the web server. Any pointer on how to do that will be greatly appreciated. Thanks. Reuben D. Budiardja _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From costea at ssi-schaefer-noell.com Thu Feb 14 06:50:05 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Thu, 14 Feb 2002 13:50:05 +0100 Subject: [Javascript] try catch la nivel de frame References: <20020213191247.56318.qmail@web14507.mail.yahoo.com> Message-ID: <035901c1b556$204da960$7a051aac@92GrunAnca> Hi, I have a frame; I include severals js files and I write some in the frame; how can I do a global "try catch" at the frame level, to catch all the exception and not raise them to the user? Thanks, Dan Costea. From carl at carladler.org Thu Feb 14 07:43:55 2002 From: carl at carladler.org (Carl Adler) Date: Thu, 14 Feb 2002 08:43:55 -0500 Subject: [Javascript] Browse and Upload file In-Reply-To: Message-ID: That is what is for. It does work. But you have to have permission to upload such as at an anonymous ftp site or upon connecting with a proper user name and password encoded in the URL. Use ENCTYPE="application/x-www-form-urlencoded" Carl > From: "Reuben D Budiardja" > Reply-To: javascript at LaTech.edu > Date: Wed, 13 Feb 2002 20:37:45 -0500 > To: javascript at LaTech.edu > Subject: [Javascript] Browse and Upload file > > > Hi, > Does anyone know how to upload file using Web Browser as the interface? > > I want to do a web page, where you can click on a button, and then you can > browse the local directories of the person who are browsing the page, and > upload a selected file to the web server. Any pointer on how to do that will > be greatly appreciated. > > Thanks. > Reuben D. Budiardja > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From reubendb at goshen.edu Thu Feb 14 09:02:12 2002 From: reubendb at goshen.edu (Reuben D Budiardja) Date: Thu, 14 Feb 2002 10:02:12 -0500 Subject: [Javascript] Browse and Upload file In-Reply-To: References: Message-ID: On Thursday 14 February 2002 08:43 am, you wrote: > That is what > > is for. It does work. Thanks for all who's replied. This is what I need (INPUT TYPE="file"), I didn't know the do it in stand point of html. It was only after reading Ben's reply that I realize it should be handled with server-side language. I uses php and was able to figure it out from the manual on how to do this. Thanks again. Reuben D. Budiardja > > > From: "Reuben D Budiardja" > > Reply-To: javascript at LaTech.edu > > Date: Wed, 13 Feb 2002 20:37:45 -0500 > > To: javascript at LaTech.edu > > Subject: [Javascript] Browse and Upload file > > > > > > Hi, > > Does anyone know how to upload file using Web Browser as the interface? > > > > I want to do a web page, where you can click on a button, and then you > > can browse the local directories of the person who are browsing the page, > > and upload a selected file to the web server. Any pointer on how to do > > that will be greatly appreciated. > > > > Thanks. > > Reuben D. Budiardja > > _______________________________________________ > > 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 -- -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ "God is the unrestricted act of understanding, the eternal rapture glimpsed in every Archimedean cry of Eureka." - Bernard Lonergan - ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^ Reuben Donald Budiardja reubendb at goshen.edu Homepage: http://www.goshen.edu/~reubendb From andyg at ihug.co.nz Fri Feb 15 04:10:17 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Fri, 15 Feb 2002 23:10:17 +1300 Subject: [Javascript] HTML Editor: FP References: <200202131901.OAA10509@loki.domainnameservers.net> Message-ID: <009701c1b608$f82eba10$49cbadcb@k1n8i8> > I really love TextPad on the PC. Its a great little $25 program. > www.textpad.com > I especially enjoy the split screen views. > Homesite's a bit bloated for my tastes. I don't like programs that try to > give you a preview of the code, i prefer to look at the browsers. > > Notepad's a pain because you have to open the program multiple times for > every document you want to view. > I'm taken with Front Page....ever since I found out you can program it to insert your own code libraries straight into the page, with options as necessary! Andrew Gibson From jwright at once.com Fri Feb 15 14:35:25 2002 From: jwright at once.com (Jay Wright) Date: Fri, 15 Feb 2002 12:35:25 -0800 Subject: [Javascript] dynamic anchor tags, javascript, and JSP Message-ID: I have a web application written with jsp and a controller servlet. I have implemented a pop up window, that when completes it's task, uses clientside java script to refresh it's opener and close itself. This works flawlessly. At least it seems to. However, when I add jsp code to this page, to refresh the opener and append a dyanmically generated ANCHOR tag, it works perfectly well the first time, but then fails to refresh the opener on subsequent tries. <% String anchorString = (String) request.getAttribute("anchor"); StringBuffer buf = new StringBuffer(""); if (str!=null) buf.append("#").append(anchorString); System.out.println(buf.toString()); %> I KNOW that anchorString is not null, because I log it and it logs correctly. The first time this page is executed, it correctly refreshes the opener (/some/page#anchor1), but the other attempts all fail to refresh, leaving "/some/page#" in the browser address window, but never refreshing the browser. Any ideas why this might be? Thanks, Jay From filipiab at atsc.army.mil Fri Feb 15 14:44:57 2002 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Fri, 15 Feb 2002 15:44:57 -0500 Subject: [Javascript] dynamic anchor tags, javascript, and JSP Message-ID: Just a thought but it may be that once you go to the Anchor tag the browser doesn't reload because the "#...." incdicates a location on the current page. Bob Filipiak (Contractor) -----Original Message----- From: Jay Wright [mailto:jwright at once.com] Sent: Friday, February 15, 2002 3:35 PM To: 'javascript at LaTech.edu' Subject: [Javascript] dynamic anchor tags, javascript, and JSP I have a web application written with jsp and a controller servlet. I have implemented a pop up window, that when completes it's task, uses clientside java script to refresh it's opener and close itself. This works flawlessly. At least it seems to. However, when I add jsp code to this page, to refresh the opener and append a dyanmically generated ANCHOR tag, it works perfectly well the first time, but then fails to refresh the opener on subsequent tries. <% String anchorString = (String) request.getAttribute("anchor"); StringBuffer buf = new StringBuffer(""); if (str!=null) buf.append("#").append(anchorString); System.out.println(buf.toString()); %> I KNOW that anchorString is not null, because I log it and it logs correctly. The first time this page is executed, it correctly refreshes the opener (/some/page#anchor1), but the other attempts all fail to refresh, leaving "/some/page#" in the browser address window, but never refreshing the browser. Any ideas why this might be? Thanks, Jay _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From jwright at once.com Fri Feb 15 14:52:10 2002 From: jwright at once.com (Jay Wright) Date: Fri, 15 Feb 2002 12:52:10 -0800 Subject: [Javascript] dynamic anchor tags, javascript, and JSP Message-ID: That makes sense to me. If thats true, is there a way to force a refresh of the opener location? With the ultimate goal of refreshing to that anchor? -----Original Message----- From: Filipiak, Bob (Contractor) [mailto:filipiab at atsc.army.mil] Sent: Friday, February 15, 2002 12:45 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] dynamic anchor tags, javascript, and JSP Just a thought but it may be that once you go to the Anchor tag the browser doesn't reload because the "#...." incdicates a location on the current page. Bob Filipiak (Contractor) -----Original Message----- From: Jay Wright [ mailto:jwright at once.com ] Sent: Friday, February 15, 2002 3:35 PM To: 'javascript at LaTech.edu' Subject: [Javascript] dynamic anchor tags, javascript, and JSP I have a web application written with jsp and a controller servlet. I have implemented a pop up window, that when completes it's task, uses clientside java script to refresh it's opener and close itself. This works flawlessly. At least it seems to. However, when I add jsp code to this page, to refresh the opener and append a dyanmically generated ANCHOR tag, it works perfectly well the first time, but then fails to refresh the opener on subsequent tries. <% String anchorString = (String) request.getAttribute("anchor"); StringBuffer buf = new StringBuffer(""); if (str!=null) buf.append("#").append(anchorString); System.out.println(buf.toString()); %> I KNOW that anchorString is not null, because I log it and it logs correctly. The first time this page is executed, it correctly refreshes the opener (/some/page#anchor1), but the other attempts all fail to refresh, leaving "/some/page#" in the browser address window, but never refreshing the browser. Any ideas why this might be? Thanks, Jay _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From filipiab at atsc.army.mil Fri Feb 15 15:07:48 2002 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Fri, 15 Feb 2002 16:07:48 -0500 Subject: [Javascript] dynamic anchor tags, javascript, and JSP Message-ID: Try Or you could set a var in the opener page the you could update from the popup before closing. Bob Filipiak (Contractor) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jwright at once.com Fri Feb 15 15:17:56 2002 From: jwright at once.com (Jay Wright) Date: Fri, 15 Feb 2002 13:17:56 -0800 Subject: [Javascript] dynamic anchor tags, javascript, and JSP Message-ID: Yes, now we come to my problem. This is what I do, and it works the first time, but the second time, the opener does not refresh. -----Original Message----- From: Filipiak, Bob (Contractor) [mailto:filipiab at atsc.army.mil] Sent: Friday, February 15, 2002 1:08 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] dynamic anchor tags, javascript, and JSP Try Or you could set a var in the opener page the you could update from the popup before closing. Bob Filipiak (Contractor) -------------- next part -------------- An HTML attachment was scrubbed... URL: From filipiab at atsc.army.mil Fri Feb 15 15:24:53 2002 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Fri, 15 Feb 2002 16:24:53 -0500 Subject: [Javascript] dynamic anchor tags, javascript, and JSP Message-ID: Then try and have the opener parse the querysting. But the more I think about it, why not just redirect to the opener from the server instead of popup and close. Sorry, I don't do JSP. Bob Filipiak (Contractor) -----Original Message----- From: Jay Wright [mailto:jwright at once.com] Sent: Friday, February 15, 2002 4:18 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] dynamic anchor tags, javascript, and JSP Yes, now we come to my problem. This is what I do, and it works the first time, but the second time, the opener does not refresh. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jwright at once.com Fri Feb 15 16:12:03 2002 From: jwright at once.com (Jay Wright) Date: Fri, 15 Feb 2002 14:12:03 -0800 Subject: [Javascript] dynamic anchor tags, javascript, and JSP Message-ID: The server can't control the other browser. The pop up doesn't just open and close, it is used for a period of time, then when someone gets to this page, it refreshes the original browser and closes itself. -----Original Message----- From: Filipiak, Bob (Contractor) [mailto:filipiab at atsc.army.mil] Sent: Friday, February 15, 2002 1:25 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] dynamic anchor tags, javascript, and JSP Then try and have the opener parse the querysting. But the more I think about it, why not just redirect to the opener from the server instead of popup and close. Sorry, I don't do JSP. Bob Filipiak (Contractor) -----Original Message----- From: Jay Wright [mailto:jwright at once.com] Sent: Friday, February 15, 2002 4:18 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] dynamic anchor tags, javascript, and JSP Yes, now we come to my problem. This is what I do, and it works the first time, but the second time, the opener does not refresh. -------------- next part -------------- An HTML attachment was scrubbed... URL: From schemer at cyou.com Sat Feb 16 09:11:55 2002 From: schemer at cyou.com (Dave) Date: Sat, 16 Feb 2002 09:11:55 -0600 Subject: [Javascript] HTML Editor Survey Results References: <3C6A865A.22726FDA@cyou.com> Message-ID: <3C6E76BB.37CEE9B2@cyou.com> Here are the results after 3 days with 28 people voting and casting 50 total votes. The winner is... Notepad (10) Homesite (7) Cold Fusion (4) BBEdit (mac) (4) Interdev (3) Textpad (3) Edit Plus (2) Ultra Edit (2) Emacs (2) VI (2) First Page 2000 (1) Front Page (1) HTML Kit (1) Maguma PHP Editor (1) NoteTab Pro (1) Pepper (mac) (1) Tidy (1) WebExpert (1) Xemacs (1) Dreamweaver (1) Thanks for participating. Its always good to see what other people are using. Dave From msocarras at terra.es Sun Feb 17 16:18:36 2002 From: msocarras at terra.es (Manuel Socarras Reyes) Date: Sun, 17 Feb 2002 23:18:36 +0100 Subject: [Javascript] Javascript/JScript & ASP References: <3C6A865A.22726FDA@cyou.com> <3C6E76BB.37CEE9B2@cyou.com> Message-ID: <3C702C3C.1070002@terra.es> hi: i have a problem whith an ASP page using JavaScript/JScript that give an error whenever i use any ASP object: <%@language="JavaScript"%> <% var us = Request.Form("nombre"); var pw = Request.Form("pasword"); var uscok = Request.Cookies ("usuario"); var pwcok = Request.Cookies ("contrasena"); Response.Write "us=" & us Response.Write ", pw=" & pw Response.Write ", uscok=" & uscok Response.Write ", pwcok=" & pwcok if (us==uscok && pw==pwcok){ Response.Redirect "registrado.htm" } %> error: ==== Error type: Microsoft JScript compilation error (0x800A03EC) waited ';' /DWUD/santi/comprobacion.asp, line 8, column 15 Response.Write "us=" & us --------------^ * no problems when i use VBScript * W2000, IE 5.0, NN 6.2.1 -- Saludos, Manuel Socarr?s Reyes Barcelona. Spain From fl at flyinglemon.com Sun Feb 17 18:11:53 2002 From: fl at flyinglemon.com (FL) Date: Sun, 17 Feb 2002 19:11:53 -0500 Subject: [Javascript] Javascript/JScript & ASP References: <3C6A865A.22726FDA@cyou.com> <3C6E76BB.37CEE9B2@cyou.com> <3C702C3C.1070002@terra.es> Message-ID: <00ac01c1b810$f33af780$6701a8c0@ym.phub.net.cable.rogers.com> I wonder if it's because Javascript uses "document.write" and not "response.write"? N ----- Original Message ----- From: "Manuel Socarras Reyes" To: Sent: Sunday, February 17, 2002 5:18 PM Subject: [Javascript] Javascript/JScript & ASP : hi: : : i have a problem whith an ASP page using JavaScript/JScript that give an : error whenever i use any ASP object: : : <%@language="JavaScript"%> : <% : var us = Request.Form("nombre"); : var pw = Request.Form("pasword"); : var uscok = Request.Cookies ("usuario"); : var pwcok = Request.Cookies ("contrasena"); : : Response.Write "us=" & us : Response.Write ", pw=" & pw : Response.Write ", uscok=" & uscok : Response.Write ", pwcok=" & pwcok : : if (us==uscok && pw==pwcok){ : Response.Redirect "registrado.htm" : } : %> : : error: : ==== : Error type: : Microsoft JScript compilation error (0x800A03EC) : waited ';' : /DWUD/santi/comprobacion.asp, line 8, column 15 : Response.Write "us=" & us : --------------^ : : * no problems when i use VBScript : * W2000, IE 5.0, NN 6.2.1 : : -- : Saludos, : : Manuel Socarr?s Reyes : Barcelona. Spain : : : : : _______________________________________________ : Javascript mailing list : Javascript at LaTech.edu : https://lists.LaTech.edu/mailman/listinfo/javascript From msocarras at terra.es Sun Feb 17 18:34:51 2002 From: msocarras at terra.es (Manuel Socarras Reyes) Date: Mon, 18 Feb 2002 01:34:51 +0100 Subject: [Javascript] Javascript/JScript & ASP References: <3C6A865A.22726FDA@cyou.com> <3C6E76BB.37CEE9B2@cyou.com> <3C702C3C.1070002@terra.es> <00ac01c1b810$f33af780$6701a8c0@ym.phub.net.cable.rogers.com> Message-ID: <3C704C2B.5080004@terra.es> hi FL: no, remember this code is executing in the server not in the browser. the problem: I was using VBScript syntax Response.Write "us=" & us instead of JS syntax Response.Write("us=" + us) thanks anyway for your suggestion. -- Saludos, Manuel Socarr?s Reyes Barcelona. Spain FL wrote: >I wonder if it's because Javascript uses "document.write" and not >"response.write"? > >N >----- Original Message ----- >From: "Manuel Socarras Reyes" >To: >Sent: Sunday, February 17, 2002 5:18 PM >Subject: [Javascript] Javascript/JScript & ASP > > >: hi: >: >: i have a problem whith an ASP page using JavaScript/JScript that give an >: error whenever i use any ASP object: >: >: <%@language="JavaScript"%> >: <% >: var us = Request.Form("nombre"); >: var pw = Request.Form("pasword"); >: var uscok = Request.Cookies ("usuario"); >: var pwcok = Request.Cookies ("contrasena"); >: >: Response.Write "us=" & us >: Response.Write ", pw=" & pw >: Response.Write ", uscok=" & uscok >: Response.Write ", pwcok=" & pwcok >: >: if (us==uscok && pw==pwcok){ >: Response.Redirect "registrado.htm" >: } >: %> >: >: error: >: ==== >: Error type: >: Microsoft JScript compilation error (0x800A03EC) >: waited ';' >: /DWUD/santi/comprobacion.asp, line 8, column 15 >: Response.Write "us=" & us >: --------------^ >: >: * no problems when i use VBScript >: * W2000, IE 5.0, NN 6.2.1 >: >: -- >: Saludos, >: >: Manuel Socarr?s Reyes >: Barcelona. Spain > From andrew at d2k.com.au Sun Feb 17 22:57:36 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Mon, 18 Feb 2002 14:57:36 +1000 Subject: [Javascript] open two new windows Message-ID: <1D0255E75622D51185DB00D0B7E3FF4409AA83@chimaera.d2k.com.au> Hi, (This may sound confusing)I have a browser window that will open a new window when the user first comes to it. On the base window (the first window opened) there is a link that will open a new window, but I want this link to open in a third window, I'm using this function: function openwindow(window_name) { var new_window; new_window = window.open(window_name,"contact","menubar=no,toolbar=yes,width= 200,height=505,top=100,left=250"); } When I click the link on the base window, I'ts not opening in a third window but opening in the second window that was originally opened when the user first comes to the site. Does anyone know a way to open a third window up? Regards, Andrew From costea at ssi-schaefer-noell.com Mon Feb 18 01:49:32 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Mon, 18 Feb 2002 08:49:32 +0100 Subject: [Javascript] open two new windows References: <1D0255E75622D51185DB00D0B7E3FF4409AA83@chimaera.d2k.com.au> Message-ID: <004d01c1b850$cd51d030$7a051aac@92GrunAnca> Any window has an ID (the second parameter of the window.open). If you want to always open a NEW window, you can use: window.open(window_name,"_blank","menubar=no,toolbar=yes,width=200,height=50 5,top=100,left=250"); If you want to open an link over an already opened window, you can use the ID of the window already opened (you used the "concat" ID). Try http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref erence/methods/open_0.asp to see more about window.open. Dan. > Hi, > (This may sound confusing)I have a browser window that will open a new > window when the user first comes to it. On the base window (the first window > opened) there is a link that will open a new window, but I want this link to > open in a third window, I'm using this function: > > function openwindow(window_name) { > var new_window; > new_window = > window.open(window_name,"contact","menubar=no,toolbar=yes,width= > 200,height=505,top=100,left=250"); > } > > When I click the link on the base window, I'ts not opening in a third window > but opening in the second window that was originally opened when the user > first comes to the site. Does anyone know a way to open a third window up? > > Regards, > Andrew From phumes1 at rogers.com Mon Feb 18 07:32:27 2002 From: phumes1 at rogers.com (phumes1) Date: Mon, 18 Feb 2002 08:32:27 -0500 Subject: [Javascript] Re: Screen refresh Message-ID: <5.1.0.14.0.20020218083134.00b3be30@pop.wlfdle.phub.net.cable.rogers.com> How can I execute a screen refresh by clicking on a link or image? From craig at focusblue.com Mon Feb 18 07:44:25 2002 From: craig at focusblue.com (Craig Wallace) Date: Mon, 18 Feb 2002 13:44:25 +0000 Subject: [Javascript] HTML Editor survey References: <3C6A865A.22726FDA@cyou.com> Message-ID: <3C710539.5050706@focusblue.com> UltraEdit Craig Dave wrote: >What HTML Editor do you currently use: > >___Frontpage >___Homesite >___Firstpage >___Notepad >___Other, please name. > >Thanks, >Dave > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > From alan.easton at unn.ac.uk Mon Feb 18 07:51:39 2002 From: alan.easton at unn.ac.uk (Alan Easton) Date: Mon, 18 Feb 2002 13:51:39 -0000 Subject: [Javascript] Re: Screen refresh Message-ID: <8CB72D8EAD84D411B3D600508BCF7B6C023C5FBF@colorado.unn.ac.uk> Check out http://grizzlyweb.com/webmaster/javascripts/refresh.asp -----Original Message----- From: phumes1 [mailto:phumes1 at rogers.com] Sent: Monday, February 18, 2002 1:32 PM To: javascript at LaTech.edu Subject: [Javascript] Re: Screen refresh How can I execute a screen refresh by clicking on a link or image? _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From merchant at LATECH.EDU Mon Feb 18 10:43:59 2002 From: merchant at LATECH.EDU (David Merchant) Date: Mon, 18 Feb 2002 10:43:59 -0600 Subject: [Javascript] JavaScript List Unsubscirbe, Subscribe & Posting Info. Message-ID: <5.1.0.14.2.20020218103651.026c9b08@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. 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 Head, Systems Dept, Louisiana Tech University merchant at latech.edu JavaScript List Administrator (www.mountaindragon.com/javascript/) Webmaster, HTML Encyclopedia (www.mountaindragon.com/html/) Webmaster, Memorial Day Page: (www.usmemorialday.org/) From pbignell at mb.sympatico.ca Mon Feb 18 13:02:30 2002 From: pbignell at mb.sympatico.ca (::OurNorth.ca::) Date: Mon, 18 Feb 2002 13:02:30 -0600 Subject: [Javascript] Problem with script Message-ID: <000d01c1b8ae$d1997540$bc22c8cd@u5v3k4> I copied a script from DynamicDrive.com, which offers lots of free, great DHTML scripts. I found a script for a splash page (given below) thinking, apparently wrongly, that I could use this to have a brief message appear, while two images downloaded for the first page of the actual website. For some reason, no matter how I try and fill in the array...nothing downloads until all the messaging is finished which really defeats the purpose of the whole thing. Can anybody help here? (I am on digest so cc my email address if you can help) code follows as copied from DirectDrive Intro Screen...
Pauline (who is usually scared to death to post on these things!) visit us at our new domain http://www.ournorth.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From andyg at ihug.co.nz Mon Feb 18 14:54:58 2002 From: andyg at ihug.co.nz (andyg at ihug.co.nz) Date: Mon, 18 Feb 2002 20:54:58 GMT Subject: [Javascript] Javascript/JScript & ASP Message-ID: <200202182054.JAA18217@smtp4.ihug.co.nz> > hi: > > i have a problem whith an ASP page using JavaScript/JScript that give an > error whenever i use any ASP object: > > <%@language="JavaScript"%> > <% > var us = Request.Form("nombre"); > var pw = Request.Form("pasword"); > var uscok = Request.Cookies ("usuario"); > var pwcok = Request.Cookies ("contrasena"); > Are you trying to write asp variables into a client side script? Then would this work? var us = '<%=request.form("nombre")%>'; From filipiab at atsc.army.mil Tue Feb 19 07:05:52 2002 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Tue, 19 Feb 2002 08:05:52 -0500 Subject: [Javascript] dynamic anchor tags, javascript, and JSP Message-ID: Sorry, my Polish brain can't follow what you mean by 'the server can't control the other browser' AFAIK the client side process is what is opening and closing the "windows." Try a different approach and only use one browser window; e.g. have the first page link to the page that you now have in the pop up and when that page is finished processing have it link to the first page with the "#..." anchor appended. Bob Filipiak (Contractor) -----Original Message----- From: Jay Wright [mailto:jwright at once.com] Sent: Friday, February 15, 2002 5:12 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] dynamic anchor tags, javascript, and JSP The server can't control the other browser. The pop up doesn't just open and close, it is used for a period of time, then when someone gets to this page, it refreshes the original browser and closes itself. -------------- next part -------------- An HTML attachment was scrubbed... URL: From FERONMA at cic-i.com Tue Feb 19 11:09:24 2002 From: FERONMA at cic-i.com (FERON Matthieu) Date: Tue, 19 Feb 2002 18:09:24 +0100 Subject: [Javascript] file upload dynamicaly Message-ID: <8384BC6ECC36EF42A8CAC21C8ECC63463CF61D@gcmcina1.cic-na.cm-cic.fr> Hello, I want to set the value of an input type file by javascript and not by selecting it on the disk. So I set the value property. But when I submit the form, it consider the the input is empty and so don't upload the file. If anyone could have an idea. The purpose is to build localy a web page and upload it at the end with all it's components in a database. Matthieu F?ron mferon at adeuza.fr http://ffwnet.phpnet.org From gassinaumasis at hotmail.com Tue Feb 19 11:18:00 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Tue, 19 Feb 2002 17:18:00 +0000 Subject: [Javascript] file upload dynamicaly Message-ID: >I want to set the value of an input type file by javascript and not by >selecting it on the disk. >So I set the value property. For security reasons this is not allowed. document.forms[0].uploadfield.value = '/your/password/file'; document.forms[0].submit(); ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From angie at angiegeelan.com Tue Feb 19 12:31:37 2002 From: angie at angiegeelan.com (Angie Geelan) Date: Tue, 19 Feb 2002 12:31:37 -0600 Subject: [Javascript] rollover/cascading menu problem Message-ID: To begin, I am a novice JavaScripter who mainly modifies existing scripts to meet my needs. These particular questions address some problems I am having with a site redesign at work. I have replicated a functioning script on our server so that I can simply modify it with our information. I have been fairly fortunate getting that to happen except that the original images do not restore. I know that there is probably a quick fix, but I can't seem to find it, and I've been staring at the code for two days!!! Functioning Menu - This is how I want mine to work... http://www.insession.com/bea/ Same scripts with my images, etc. - Note the images don't restore http://www.insession.com/TestAngie/Insession_new_web/index2.html And the second issue is that the page will have Flash components near the top and the menus drop down BEHIND the Flash stuff. How do I stop this? Can I do something with layers? http://www.insession.com/TestAngie/Insession_new_web/index_nav.html Any suggestions or insights on any of these issues would be appreciated. Thanks in advance! Angie From iztokp at amis.net Tue Feb 19 13:12:40 2002 From: iztokp at amis.net (Iztok Polanic) Date: Tue, 19 Feb 2002 20:12:40 +0100 Subject: [Javascript] Stretching.... Message-ID: <004001c1b979$673c9710$a55e1ed4@omega> Hi! I'm building a page with tables. The page is made for 800x600 resolution. And now the customer wants to stretch the right to the end of the screen if the user is using higher resolution. I tried with "%" but it doesn't work. Any ideas? Please..... Bye, Iztok From Bob.Filipiak at aspaces.net Tue Feb 19 13:41:49 2002 From: Bob.Filipiak at aspaces.net (Bob Filipiak) Date: Tue, 19 Feb 2002 14:41:49 -0500 Subject: [Javascript] RE: Stretching.... Message-ID: <000b01c1b97d$79b12e70$9c35d99b@filipiab> Please explain what you mean by stretching the right ....... You can use to make your table use all available browser real estate but I'm not sure that is what you are talking about. From iztokp at amis.net Tue Feb 19 17:25:47 2002 From: iztokp at amis.net (Iztok Polanic) Date: Wed, 20 Feb 2002 00:25:47 +0100 Subject: [Javascript] RE: Stretching.... References: <000b01c1b97d$79b12e70$9c35d99b@filipiab> Message-ID: <002901c1b99c$c33ce830$24451ed4@omega> Hi! The outer right column should stretch to the end of the screen. I tried placing in the most outer
another table with attribute 'width="100%"'. The fun part is that it doesn't work :( Bye, Iztok ----- Original Message ----- From: "Bob Filipiak" To: "Javascript" Sent: Tuesday, February 19, 2002 20:41 Subject: [Javascript] RE: Stretching.... > Please explain what you mean by stretching the right ....... You can > use to make your table use all available browser > real estate but I'm not sure that is what you are talking about. > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Tue Feb 19 19:02:57 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Tue, 19 Feb 2002 17:02:57 -0800 Subject: [Javascript] Re: Screen refresh Message-ID: href# javascript:some code here something like this... can anyone elab on this -----Original Message----- From: phumes1 [mailto:phumes1 at rogers.com] Sent: Monday, February 18, 2002 5:32 AM To: javascript at LaTech.edu Subject: [Javascript] Re: Screen refresh How can I execute a screen refresh by clicking on a link or image? _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Tue Feb 19 20:35:48 2002 From: peter at brunone.com (Peter Brunone) Date: Tue, 19 Feb 2002 20:35:48 -0600 Subject: [Javascript] Re: Screen refresh In-Reply-To: Message-ID: Click Here Cheers, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman |Sent: Tuesday, February 19, 2002 7:03 PM |To: 'javascript at LaTech.edu' |Subject: RE: [Javascript] Re: Screen refresh | | |href# javascript:some code here | |something like this... | |can anyone elab on this | |-----Original Message----- |From: phumes1 [mailto:phumes1 at rogers.com] |Sent: Monday, February 18, 2002 5:32 AM |To: javascript at LaTech.edu |Subject: [Javascript] Re: Screen refresh | | | |How can I execute a screen refresh by clicking on a link or image? | |_______________________________________________ |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 cutterbl at hotmail.com Tue Feb 19 22:08:03 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Tue, 19 Feb 2002 23:08:03 -0500 Subject: [Javascript] RE: Stretching.... Message-ID: If you already have the table width set to 100% then the table is probably nested within another element (div or another table). This other element apparently has its' width specified. Cutter http://www.falcon-knives.com ----Original Message Follows---- From: "Iztok Polanic" Reply-To: javascript at LaTech.edu To: Subject: Re: [Javascript] RE: Stretching.... Date: Wed, 20 Feb 2002 00:25:47 +0100 Hi! The outer right column should stretch to the end of the screen. I tried placing in the most outer
another table with attribute 'width="100%"'. The fun part is that it doesn't work :( Bye, Iztok ----- Original Message ----- From: "Bob Filipiak" To: "Javascript" Sent: Tuesday, February 19, 2002 20:41 Subject: [Javascript] RE: Stretching.... > Please explain what you mean by stretching the right ....... You can > use to make your table use all available browser > real estate but I'm not sure that is what you are talking about. > > > _______________________________________________ > 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 _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From Mark.Drozd at walgreens.com Wed Feb 20 09:57:10 2002 From: Mark.Drozd at walgreens.com (Mark.Drozd at walgreens.com) Date: Wed, 20 Feb 2002 09:57:10 -0600 Subject: [Javascript] TextBox Properties Message-ID: Hello, I am new to your Javascript list and did not find the following question in your archives. Any help would be greatly appreciated. Summary ======== I am trying to find a way using javascript to enable a textbox so the user can type into it. Details ======== I am running IE 5.0 and am trying to find a way using javascript to enable a textbox so the user can type into it. Initially the textbox is set to disabled so the user cannot edit it. I would like them to first click a button which (onclick) will call a function and enable the textbox for user input. Can anyone tell me how I can do this? Textbox is initially set to disabled ============================
onetwothree
-----Original Message----- From: Iztok Polanic [mailto:iztokp at amis.net] Sent: Tuesday, February 19, 2002 5:26 PM To: javascript at LaTech.edu Subject: Re: [Javascript] RE: Stretching.... Hi! The outer right column should stretch to the end of the screen. I tried placing in the most outer
another table with attribute 'width="100%"'. The fun part is that it doesn't work :( Bye, Iztok ----- Original Message ----- From: "Bob Filipiak" To: "Javascript" Sent: Tuesday, February 19, 2002 20:41 Subject: [Javascript] RE: Stretching.... > Please explain what you mean by stretching the right ....... You can > use to make your table use all available browser > real estate but I'm not sure that is what you are talking about. > > > _______________________________________________ > 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 costea at ssi-schaefer-noell.com Wed Feb 20 13:24:33 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Wed, 20 Feb 2002 20:24:33 +0100 Subject: [Javascript] make CGI not respond to Enter References: <1E2ED34C-2365-11B2-8D7B-0003934A576A@lowebroadway.com> Message-ID: <001101c1ba44$3a3ec820$7a051aac@92GrunAnca> > Is there anything in JavaScript to prevent a form being submitted on > pressing Enter on a text entry? > > TIA > > Garry > I can give you a solution, but just for all text entry (not just for one): you don't provide an "submit" type button, but a "button" type button. For example: Dan. From SnarfLT at aol.com Wed Feb 20 15:17:45 2002 From: SnarfLT at aol.com (SnarfLT at aol.com) Date: Wed, 20 Feb 2002 16:17:45 EST Subject: [Javascript] TextBox Properties Message-ID: <170.928830a.29a56c79@aol.com> document.form.textbox.disabled=false; works in IE5.5 -Scott From news1 at eserviceslink.com Wed Feb 20 18:00:00 2002 From: news1 at eserviceslink.com (eServicesLink) Date: Thu, 21 Feb 2002 00:00:00 +0000 Subject: [Javascript] eSL Newsletter Message-ID: <20020221222911.31585308B64@smtp.LaTech.edu> February, 2002 Issue No. 001 We are proud to announce a new and exciting service that is now available to you! Welcome to the Launch of ....www.eServicesLink.com -The Contract Marketplace! eSL is for ...Businesses to successfully locate Professionals for contract opportunities("Outsourcers") Most businesses who invariably have short term projects that frequently need addressing....anything from website design, to accounts assistance, to secretarial services, to computer doctoring, etc, etc....! How often have you struggled to find the right expertise you need, when you need it and at a price you can afford?! Now, you can simply use eSL to locate the resource. We serve as the link to allow freelancers/contractors to bid to undertake your project. Professionals with the skills you require can bid for your business - like an auction. All you need to do is open an account today FREE and submit your project(s)! Visit www.eServicesLink.com now! eSL is for ... Freelancers/ Contractors to successfully locate contract opportunities ("Professionals") Freelancers/contractors in every field... How often have you wondered how and where to find the next contract/project? Well, this is the site for you! Sign up for FREE with eSL, and establish the best and easiest link for your skill with those that need it! Once registered, you can visit our site regularly to either locate your next opportunity or, even easier, allow us to automatically email you when a project is posted that fits your skill set.Visit www.eServicesLink.com now! If you feel that this newsletter was sent to you in error, is not of use and would rather we didn't copy them to you in future firstly let us apologise for any inconvenience we caused you. To unsubscribe, simply visit www.eServicesLink.com, enter your address in the text box and select the'unsubscribe' option or send a reply eMail to unsubscribe at eserviceslink.com. We are not spam mailers and will endeavour to refrain from any further mailings to your address. -------------- next part -------------- An HTML attachment was scrubbed... URL: From iztokp at amis.net Wed Feb 20 18:37:17 2002 From: iztokp at amis.net (Iztok Polanic) Date: Thu, 21 Feb 2002 01:37:17 +0100 Subject: [Javascript] Building menus Message-ID: <003801c1ba6f$ead10e70$5c05fad5@omega> Hi! I have a problem with a menu I'm building. I've built it with
and 'visibility' and 'hidden' property is triggered by Javascript. But I want the menu to disappear if the user clicks outside the menu. Anyone? Bye, Iztok From andyg at ihug.co.nz Wed Feb 20 19:33:46 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Thu, 21 Feb 2002 14:33:46 +1300 Subject: [Javascript] Building menus References: <003801c1ba6f$ead10e70$5c05fad5@omega> Message-ID: <009901c1ba77$d4811b30$22cbadcb@k1n8i8> > I have a problem with a menu I'm building. I've built it with
style="visibility: hidden/visible;"> and 'visibility' and 'hidden' property > is triggered by Javascript. But I want the menu to disappear if the user > clicks outside the menu. Anyone? The way I did one, was to set up variables holding the top, left, bottom, top coordinates of where the menu is, then when the user's mouse moves outside those regions the menu disappears. Andrew Gibson From flex at interport.net Wed Feb 20 21:34:01 2002 From: flex at interport.net (bill myers) Date: Wed, 20 Feb 2002 22:34:01 -0500 Subject: [Javascript] I.E. link border Message-ID: I know there is a way to shift the focus off of the border box in links in I.E. I just forgot the simplest way to do it. thanks bill From costea at ssi-schaefer-noell.com Thu Feb 21 01:37:23 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Thu, 21 Feb 2002 08:37:23 +0100 Subject: [Javascript] Building menus References: <003801c1ba6f$ead10e70$5c05fad5@omega> Message-ID: <001101c1baaa$99f3c160$7a051aac@92GrunAnca> > Hi! > > I have a problem with a menu I'm building. I've built it with
style="visibility: hidden/visible;"> and 'visibility' and 'hidden' property > is triggered by Javascript. But I want the menu to disappear if the user > clicks outside the menu. Anyone? > > Bye, > > Iztok Use: style="display: none/block". (see: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref erence/properties/display.asp) Dan. From iztokp at amis.net Thu Feb 21 02:48:52 2002 From: iztokp at amis.net (Iztok Polanic) Date: Thu, 21 Feb 2002 09:48:52 +0100 Subject: [Javascript] Building menus References: <003801c1ba6f$ead10e70$5c05fad5@omega> <001101c1baaa$99f3c160$7a051aac@92GrunAnca> Message-ID: <000401c1bab8$4158ec20$57b6bdc1@omega> Hi! I tried it but it doesn't work as I hope it would. If I click outside the menu it is still open. Bye, Iztok ----- Original Message ----- From: "Dan Costea" To: Sent: Thursday, February 21, 2002 08:37 Subject: Re: [Javascript] Building menus > > > Hi! > > > > I have a problem with a menu I'm building. I've built it with
> style="visibility: hidden/visible;"> and 'visibility' and 'hidden' > property > > is triggered by Javascript. But I want the menu to disappear if the user > > clicks outside the menu. Anyone? > > > > Bye, > > > > Iztok > > > Use: style="display: none/block". > (see: > http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref > erence/properties/display.asp) > > > Dan. > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From costea at ssi-schaefer-noell.com Thu Feb 21 03:46:50 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Thu, 21 Feb 2002 10:46:50 +0100 Subject: [Javascript] Building menus References: <003801c1ba6f$ead10e70$5c05fad5@omega> <001101c1baaa$99f3c160$7a051aac@92GrunAnca> <000401c1bab8$4158ec20$57b6bdc1@omega> Message-ID: <006201c1babc$af8a02c0$7a051aac@92GrunAnca> I write an example for you. It is working like this: on right click, the div is dislpayed; on left click outside of the div, it is hidden. I made this example working with IE 5.5 (I didn't test it with other browser). display:none test > Hi! > > I tried it but it doesn't work as I hope it would. If I click outside the > menu it is still open. > > > Bye, > > Iztok > > > > > Hi! > > > > > > I have a problem with a menu I'm building. I've built it with
> > style="visibility: hidden/visible;"> and 'visibility' and 'hidden' > > property > > > is triggered by Javascript. But I want the menu to disappear if the user > > > clicks outside the menu. Anyone? > > > > > > Bye, > > > > > > Iztok > > > > > > Use: style="display: none/block". > > (see: > > > http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref > > erence/properties/display.asp) > > > > > > Dan. > > From Joe.Karau at Kingland.com Thu Feb 21 08:57:42 2002 From: Joe.Karau at Kingland.com (Karau, Joe) Date: Thu, 21 Feb 2002 08:57:42 -0600 Subject: [Javascript] Building menus Message-ID: <88A2C82DD1E1D411A5500050DAC471292E272E@KSCLSRVMAILA> I've used an onClick event on the element containing the menu, in my case the body tag. When the even is fired I hide the menu. Joseph Karau Kingland Systems joe.karau at kingland.com 507-536-3629 AIM: jkara3629 -----Original Message----- From: Iztok Polanic [mailto:iztokp at amis.net] Sent: Thursday, February 21, 2002 2:49 AM To: javascript at LaTech.edu Subject: Re: [Javascript] Building menus Hi! I tried it but it doesn't work as I hope it would. If I click outside the menu it is still open. Bye, Iztok ----- Original Message ----- From: "Dan Costea" To: Sent: Thursday, February 21, 2002 08:37 Subject: Re: [Javascript] Building menus > > > Hi! > > > > I have a problem with a menu I'm building. I've built it with
> style="visibility: hidden/visible;"> and 'visibility' and 'hidden' > property > > is triggered by Javascript. But I want the menu to disappear if the user > > clicks outside the menu. Anyone? > > > > Bye, > > > > Iztok > > > Use: style="display: none/block". > (see: > http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref > erence/properties/display.asp) > > > Dan. > > _______________________________________________ > 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 olivier.marie at ulysse.u-bordeaux.fr Thu Feb 21 09:04:22 2002 From: olivier.marie at ulysse.u-bordeaux.fr (Olivier Marie) Date: Thu, 21 Feb 2002 16:04:22 +0100 Subject: [Javascript] including javascript from client Message-ID: <01a701c1bae9$0b922d00$389dd293@hercule> Hi I need to get some parametres from a client which is using a data CD package from me. I put on the cd a javascript file "cdpackage.js" which contains : var package_id=5; I get it with the following command : It works greet with Internet explorer 5 and 6 but not with Netscape 4 or 6. Do you have a way to make it works on Netscape ? I tried src:file:///d:/cdpackage.js, it works only if the page is local file too. Thanks for your ideas Olivier From costea at ssi-schaefer-noell.com Thu Feb 21 09:42:23 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Thu, 21 Feb 2002 16:42:23 +0100 Subject: [Javascript] css attribute for
width Message-ID: <014f01c1baee$5af12360$7a051aac@92GrunAnca> Hi, I have a table like this:
asldkjf alsdk jfalsk asldas afja a
asldkjf alsdk jfalsk aslsa as ddfja a
asldkjf alsdk jfalskasdf asdf asldfja a
asldkjf alsdk jfalsk aasdsldfja a
asldkjf alsk asldfja a
How can I set ALL columns (including the third) to be of the minimum width? (to not let empty space in the left) Thanks, Dan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andyg at ihug.co.nz Thu Feb 21 16:37:55 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Fri, 22 Feb 2002 11:37:55 +1300 Subject: [Javascript] Building menus References: <003801c1ba6f$ead10e70$5c05fad5@omega> <001101c1baaa$99f3c160$7a051aac@92GrunAnca> <000401c1bab8$4158ec20$57b6bdc1@omega> Message-ID: <00e901c1bb28$689389b0$6dcaadcb@k1n8i8> I'd say what you have to do is work out where the mouse is, if it's outside the menu, block, use your display:none or visibility='hidden' then. Use a document.onmousemove event to track the position of the cursor. Andrew Gibson Subject: Re: [Javascript] Building menus > Hi! > > I tried it but it doesn't work as I hope it would. If I click outside the > menu it is still open. > > > Bye, > > Iztok > ----- Original Message ----- > From: "Dan Costea" > To: > Sent: Thursday, February 21, 2002 08:37 > Subject: Re: [Javascript] Building menus > > > > > > > Hi! > > > > > > I have a problem with a menu I'm building. I've built it with
> > style="visibility: hidden/visible;"> and 'visibility' and 'hidden' > > property > > > is triggered by Javascript. But I want the menu to disappear if the user > > > clicks outside the menu. Anyone? > > > > > > Bye, > > > > > > Iztok > > > > > > Use: style="display: none/block". > > (see: > > > http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref > > erence/properties/display.asp) > > > > > > Dan. > > > > _______________________________________________ > > 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 FERONMA at cic-i.com Fri Feb 22 07:07:42 2002 From: FERONMA at cic-i.com (FERON Matthieu) Date: Fri, 22 Feb 2002 14:07:42 +0100 Subject: [Javascript] Hiding url in status bar Message-ID: <8384BC6ECC36EF42A8CAC21C8ECC63463CF622@gcmcina1.cic-na.cm-cic.fr> Sorry if it's a newbie question but I tried with status and defaultstatus but it never works. The url of the link always replace the message I set in the status bar. Is there a way to solve this ? Matthieu F?ron mferon at adeuza.fr http://ffwnet.phpnet.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Filipiak at aspaces.net Fri Feb 22 07:14:59 2002 From: Bob.Filipiak at aspaces.net (Bob Filipiak) Date: Fri, 22 Feb 2002 08:14:59 -0500 Subject: [Javascript] RE: Hiding URL..... Message-ID: <000501c1bba2$ee0537e0$9c35d99b@filipiab> You didn't provide any code so try: function ShowStatus(msg){ window.status = msg; return true; } Somewhere I think you probably are forgetting the return. HTH From FERONMA at cic-i.com Fri Feb 22 07:32:20 2002 From: FERONMA at cic-i.com (FERON Matthieu) Date: Fri, 22 Feb 2002 14:32:20 +0100 Subject: [Javascript] RE: Hiding URL..... Message-ID: <8384BC6ECC36EF42A8CAC21C8ECC63463CF623@gcmcina1.cic-na.cm-cic.fr> Thanks, I didn't forgot the return, but I was returning false; Now it works ! -----Message d'origine----- De : Bob Filipiak [mailto:Bob.Filipiak at aspaces.net] Envoy? : vendredi 22 f?vrier 2002 14:15 ? : Javascript Objet : [Javascript] RE: Hiding URL..... You didn't provide any code so try: function ShowStatus(msg){ window.status = msg; return true; } Somewhere I think you probably are forgetting the return. HTH _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From costea at ssi-schaefer-noell.com Sun Feb 24 06:20:29 2002 From: costea at ssi-schaefer-noell.com (Dan Costea) Date: Sun, 24 Feb 2002 13:20:29 +0100 Subject: [Javascript] Windows Toolbar in left side of the screen Message-ID: <002001c1bd2d$a5ff1420$7a051aac@92GrunAnca> Hi, When I open a window I resize it at screen available width and screen available height, and I want to move it on the top left corner: window.moveTo (0,0); window.resizeTo (screen.availWidth, screen.availHeight); The problem is when the user have the Windows toolbar on the left side of the screen or on the top of the screen, because window.moveTo (0,0) method move the window related to the screen and doesn't care about win. toolbar. How can I move the window on the top left corner counting the Windows toolbar too? Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at d2k.com.au Mon Feb 25 00:50:20 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Mon, 25 Feb 2002 16:50:20 +1000 Subject: [Javascript] what's wrong with this code? Message-ID: <1D0255E75622D51185DB00D0B7E3FF4409AA9B@chimaera.d2k.com.au> Hi, Can anyone please tell me what's wrong with this code? It comes up with an error of "object expected". Function called from hyperlink: Function: function opennew() { var new_window; new_window = window.open("contact.htm","_blank","menubar=no,toolbar=yes,width=200,height= 505,top=100,left=250,alwaysRaised"); } Regards, Andrew From cutterbl at hotmail.com Mon Feb 25 07:40:04 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Mon, 25 Feb 2002 08:40:04 -0500 Subject: [Javascript] what's wrong with this code? Message-ID: What's the var for? Is this supposed to be the window name? Try it like this: Function: function opennew() { window.open("contact.htm","new_window","menubar=no,toolbar=yes,width=200,height= 505,top=100,left=250,alwaysRaised"); } Cutter http://www.falcon-knives.com ----Original Message Follows---- From: Andrew Dunn Reply-To: javascript at LaTech.edu To: "'javascript at LaTech.edu'" Subject: [Javascript] what's wrong with this code? Date: Mon, 25 Feb 2002 16:50:20 +1000 Hi, Can anyone please tell me what's wrong with this code? It comes up with an error of "object expected". Function called from hyperlink: Function: function opennew() { var new_window; new_window = window.open("contact.htm","_blank","menubar=no,toolbar=yes,width=200,height= 505,top=100,left=250,alwaysRaised"); } Regards, Andrew _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From gtaylor at lowebroadway.com Tue Feb 12 04:46:12 2002 From: gtaylor at lowebroadway.com (garry taylor) Date: Tue, 12 Feb 2002 04:46:12 -0600 Subject: [Javascript] submit a form with Javascript Message-ID: Hi, This may seem a bit of a dumb question, but how can I submit a form using Javascript? Right now I am using onSubmit="myform.cgi" in my form tag. This works fine, but now I want to check a few form elements beofre it gets submitted, so presumably, I make myself a Javascript function which gets called by onSubmit(). But when inside onSubmit(), and I have verified my form elements, how do I then call myform.cgi? I suppose it's obvious to you guys, but I can't find how to do it! Thanks Garry From gtaylor at lowebroadway.com Tue Feb 12 08:15:24 2002 From: gtaylor at lowebroadway.com (garry taylor) Date: Tue, 12 Feb 2002 08:15:24 -0600 Subject: [Javascript] submit a form with Javascript In-Reply-To: <004301c1b3b7$b607dc00$18cbadcb@k1n8i8> Message-ID: On Tuesday, February 12, 2002, at 11:23 AM, Andrew Gibson wrote: >> This may seem a bit of a dumb question, but how can I submit a form >> using Javascript? Right now I am using onSubmit="myform.cgi" in my form >> tag. This works fine, but now I want to check a few form elements >> beofre >> it gets submitted, so presumably, I make myself a Javascript function >> which gets called by onSubmit(). But when inside onSubmit(), and I have >> verified my form elements, how do I then call myform.cgi? > > Assuming your form is named "myform" how about this: > > document.myform.submit() > > I don't think that is exactly what I want, as I think that this would require the CGI script to be stated within the form, meaning that it would be run if I hit Enter on any of the entry fields on the form, the CGI would be run. What I need is to seperate the form and the CGI script, so that I can choose what to do in Javascript before I choose whether to run the CGI or not. I think what is required is to call a Javascript function in the onSubmit tag on the form, which then calls say 'myfunction', and within myfunction, I can call the CGI. Is this feasible? Thanks Garry From gtaylor at lowebroadway.com Wed Feb 20 11:20:23 2002 From: gtaylor at lowebroadway.com (garry taylor) Date: Wed, 20 Feb 2002 11:20:23 -0600 Subject: [Javascript] make CGI not respond to Enter In-Reply-To: Message-ID: <1E2ED34C-2365-11B2-8D7B-0003934A576A@lowebroadway.com> Is there anything in JavaScript to prevent a form being submitted on pressing Enter on a text entry? TIA Garry