From gassinaumasis at hotmail.com Thu Aug 1 05:07:25 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Thu, 01 Aug 2002 10:07:25 +0000 Subject: [Javascript] Dynamically create & populate a hidden form field... Message-ID: >I understand your changes to the function, but it doesn't get rid of the >need to define the hidden field in the html, which is the goal. The problem is that HTML works this way. If you want to send a name/value pair to the server and you don't want the user to see it, you use a hidden field. What you want can theoretically be done, but it's difficult. You can dynamically generate the input field through the W3C DOM (see http://www.xs4all.nl/~ppk/js/booktest.html for an example), but this will only work in the highest browsers (IE5+, NN6+). Besides there are some bugs even in these browsers. So if you don't mind restricting yourself to the highest browsers, use the W3C DOM. If you do mind, use hidden fields. ppk _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From gassinaumasis at hotmail.com Thu Aug 1 05:21:31 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Thu, 01 Aug 2002 10:21:31 +0000 Subject: [Javascript] Javascript Compatibility Chart Message-ID: >Does anyone know where I can find a Javascript compatibility chart? There is no such thing, at least, not a really good one. The reason is that there are just too bloody many JavaScript compatibility problems. I try to keep track of a lot of them on my own site (http://www.xs4all.nl/~ppk/js/). I want >to know what browsers support what objects, properties and methods. >I am testing my site in Opera 6.01 and I am finding the following: > >If I set > document.forms["frmProfile"].txtStep1.options[ 01 ].selected = >true; >then > alert( document.forms["frmProfile"].txtStep1.options[ 01 >].selected ); >gives me false. > >Any ideas? Does Opera not support the .selected property to be settable? >I am finding the same thing with the .checked property? Please help! Opera should support this. See http://www.xs4all.nl/~ppk/js/index.html?transfer.html for a script that sets the selected property in Opera 6.\ ppk _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From bruce at astound.net Thu Aug 1 11:12:36 2002 From: bruce at astound.net (BRUCE) Date: Thu, 01 Aug 2002 09:12:36 -0700 Subject: [Javascript] "is not defined" error Message-ID: Hi, I am looking for a little help with a javascript error i am getting on a form. What I am trying to do is check to see if a form field is correctly filled in. If the field has 0 or 8 characters it is ok, and the form should be submitted to the cgi. If it has between 1-7 characters it gets the alert message, At the moment the alert works, but if the field has 0 or 8 characters I get a javascript error : "temp is not defned" and the line number referes to the " temp.submit()" line Below is the coding snippets In the HEAD sectin I have the following: In the BODY I have a form:
the FIELD is set up as: and at the SUBMIT button I have the following: Any input would be greatly appreciated, Thanks, Bruce From peter at brunone.com Thu Aug 1 11:24:15 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 1 Aug 2002 11:24:15 -0500 Subject: [Javascript] "is not defined" error References: Message-ID: <0cbd01c23977$e2056110$2791210a@pbrunone> Have you tried document.temp.submit() ? ----- Original Message ----- From: "BRUCE" | Hi, I am looking for a little help with a javascript error i am getting on a | form. | What I am trying to do is check to see if a form field is correctly filled | in. | If the field has 0 or 8 characters it is ok, and the form should be | submitted to the cgi. | If it has between 1-7 characters it gets the alert message, | At the moment the alert works, but if the field has 0 or 8 characters I get | a javascript error : "temp is not defned" and the line number referes to the | " | temp.submit()" line | | Below is the coding snippets | | In the HEAD sectin I have the following: | | | | In the BODY I have a form: | | | the FIELD is set up as: | | | and at the SUBMIT button I have the following: | | | Any input would be greatly appreciated, | Thanks, | Bruce | From rodney at aflyingstart.net Thu Aug 1 11:26:18 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Thu, 01 Aug 2002 17:26:18 +0100 Subject: [Javascript] "is not defined" error References: Message-ID: <3D49612A.4BA1C1F9@aflyingstart.net> That would be document.temp.submit() Rodney BRUCE wrote: > Hi, I am looking for a little help with a javascript error i am getting on a > form. > What I am trying to do is check to see if a form field is correctly filled > in. > If the field has 0 or 8 characters it is ok, and the form should be > submitted to the cgi. > If it has between 1-7 characters it gets the alert message, > At the moment the alert works, but if the field has 0 or 8 characters I get > a javascript error : "temp is not defned" and the line number referes to the > " > temp.submit()" line > > Below is the coding snippets > > In the HEAD sectin I have the following: > > > > In the BODY I have a form: > action="https://w1305.securedweb.net/~redhot/cgi-bin/bnbform.cgi" > name="temp"> > > the FIELD is set up as: > > > and at the SUBMIT button I have the following: > onClick="javascript:checkChars()"> > > Any input would be greatly appreciated, > Thanks, > Bruce > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From bruce at alldomains.com Thu Aug 1 12:28:32 2002 From: bruce at alldomains.com (Bruce) Date: Thu, 01 Aug 2002 10:28:32 -0700 Subject: [Javascript] "is not defined" error Message-ID: <3D496FBF.DC4A109F@alldomains.com> First off thank you for helping. So i added the document, and now it is giving me: JavaScript Error: document.temp.submit is not a function. I am testing this in Nav 4.7 -- Bruce Lamborn ___________________________ A L L D O M A I N S . C O M Ph: +1.925.685.9600 Fx: +1.925.685.9620 bruce at alldomains.com www.alldomains.com From peter at brunone.com Thu Aug 1 12:34:49 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 1 Aug 2002 12:34:49 -0500 Subject: [Javascript] "is not defined" error References: <3D496FBF.DC4A109F@alldomains.com> Message-ID: <0dda01c23981$bd3a1560$2791210a@pbrunone> I don't have the original message anymore, but try document.forms.temp.submit() (since temp is subordinate to the forms collection). ----- Original Message ----- From: "Bruce" | First off thank you for helping. | | So i added the document, and now it is giving me: | JavaScript Error: document.temp.submit is not a function. | | I am testing this in Nav 4.7 | | -- | Bruce Lamborn From compjma at hotmail.com Thu Aug 1 12:45:41 2002 From: compjma at hotmail.com (Chris Berry) Date: Thu, 01 Aug 2002 10:45:41 -0700 Subject: [Javascript] "is not defined" error Message-ID: An HTML attachment was scrubbed... URL: From peter at brunone.com Thu Aug 1 12:51:59 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 1 Aug 2002 12:51:59 -0500 Subject: [Javascript] "is not defined" error References: <3D496FBF.DC4A109F@alldomains.com> <0dda01c23981$bd3a1560$2791210a@pbrunone> Message-ID: <0e1201c23984$22bfd9e0$2791210a@pbrunone> Oh, and you might make that SUBMIT type into just a BUTTON, since you're performing the submit in the script. ----- Original Message ----- From: "Peter Brunone" | | I don't have the original message anymore, but try | document.forms.temp.submit() (since temp is subordinate to the forms | collection). | | ----- Original Message ----- | From: "Bruce" -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at brunone.com Thu Aug 1 13:21:02 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 1 Aug 2002 13:21:02 -0500 Subject: [Javascript] ot: any good job boards References: Message-ID: <0ea701c23988$31c38d70$2791210a@pbrunone> Boy, you really *are* quiet :) I usually check ComputerJobs.com, Monster, and Dice occasionally for full-time stuff. Guru.com sometimes has interesting part-time or remote opportunities, but I rarely hear from anyone (probably because of the current supply bloat). -Peter ----- Original Message ----- From: QuietGraceInLA From Esther_Strom at hmco.com Thu Aug 1 15:52:03 2002 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Thu, 1 Aug 2002 15:52:03 -0500 Subject: [Javascript] what if I don't name the form Message-ID: If you don't want to name the form, and you have only one form on the document (or you know which form this is), you can do this: document.forms[0].submit(); (If there's more than one form on your page, and the one to submit isn't the first one, replace the [0] with whatever number form it is - the 2nd one would be [1], etc.) "doug nash" otmail.com> cc: Sent by: Subject: [Javascript] what if I don't name the form javascript-admin@ LaTech.edu 08/01/2002 04:24 PM Please respond to javascript how can I use this here or should I just name it this function request me to use From bruce at astound.net Thu Aug 1 16:01:33 2002 From: bruce at astound.net (BRUCE) Date: Thu, 01 Aug 2002 14:01:33 -0700 Subject: [Javascript] "is not defined" error Message-ID: Ok, so I did that (document.temp.submit(), and the error is still appearing. is it possibly that I have the code in the wrong spot? It is currently in the As I mentioned eariler, the first part of the equation (if...) works I have tried a variety of different incarnations, and it just won't go. Am I nuts? I m feeling that way... :-) CODE: From peter at brunone.com Thu Aug 1 16:17:01 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 1 Aug 2002 16:17:01 -0500 Subject: [Javascript] "is not defined" error References: Message-ID: <004901c239a0$c703a290$2791210a@pbrunone> I'd suggest being a bit more explicit about your conditional blocks, i.e. (I assume you meant document.temp.submit() on that last line) The only other thing I can think to recommend is that you rename your form to something else, like tempForm. It's possible that (a) temp is some sort of reserved word in the scripting engine, or (b) temp is the name of some other element... of course if either of these were true, you'd think none of this would work, but with the information we have, I don't know what else to tell you. Any chance your case is messed up in that last statement? IE may forgive, but Netscape will force you to get it right. Again, just a thought... -Peter ----- Original Message ----- From: "BRUCE" | Ok, so I did that (document.temp.submit(), and the error is still appearing. | is it possibly that I have the code in the wrong spot? It is currently in | the | As I mentioned eariler, the first part of the equation (if...) works | | I have tried a variety of different incarnations, and it just won't go. | Am I nuts? I m feeling that way... | :-) | | CODE: | | | From quietgraceinla at hotmail.com Thu Aug 1 16:24:57 2002 From: quietgraceinla at hotmail.com (doug nash) Date: Thu, 1 Aug 2002 14:24:57 -0700 Subject: [Javascript] what if I don't name the form Message-ID: how can I use this here or should I just name it this function request me to use -------------- next part -------------- An HTML attachment was scrubbed... URL: From CNafziger at sauder.com Fri Aug 2 10:16:26 2002 From: CNafziger at sauder.com (Chris Nafziger) Date: Fri, 2 Aug 2002 11:16:26 -0400 Subject: SOLVED: [Javascript] Dynamically create & populate a hidden form field... Message-ID: <622A954DD517D411B20C00508BCF23B00BF0CC4C@mail> The goal was essentially to produce a generic JavaScript function that would allow me to use the displayed text of the selected option in a in the form. Note that this function will work with any number of form ' is in the form, it will not break this function; if anyone wants the version of this function that works with select types of 'select-one' AND 'select-multiple', simply ask, and I'll mail it to you, or post it to the list. I know very little JavaScript, so don't ask me about browser compatibility, but my guess is .InnerHTML is the least common denominator here, so I'd have to guess it works in IE4+, & NN6. If anyone has suggestions for improvement, please don't hesitate to let to let me know. Thanks to the people who responded; you kept me believing it couldn't be that difficult.



In 'Whatever.asp': <% Response.Write "1To3 Value: " & Request.Form("1To3") & "
" Response.Write "1To3 Text: " & Request.Form("1To3Text") & "
" Response.Write "4To6 Value: " & Request.Form("4To6") & "
" Response.Write "4To6 Text: " & Request.Form("4To6Text") & "
" Response.Write "7To9 Value: " & Request.Form("7To9") & "
" Response.Write "7To9 Text: " & Request.Form("7To9Text") & "
" %> From skolly1 at mail.lvmetals.com Fri Aug 2 13:09:18 2002 From: skolly1 at mail.lvmetals.com (Don Hyden) Date: Fri, 2 Aug 2002 12:09:18 -0600 Subject: [Javascript] prevent refresh from submitting info to server Message-ID: <200208021209.AA263061836@mail.lvmetals.com> Is there a way to trap the refresh button in ie? What I'm tring to do is prevent a form from resubmiting information to the server on refresh. Can you also prevent this by changing the window history? Thanks, Skolly From rodney at aflyingstart.net Fri Aug 2 15:26:26 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Fri, 02 Aug 2002 21:26:26 +0100 Subject: [Javascript] prevent refresh from submitting info to server References: <200208021209.AA263061836@mail.lvmetals.com> Message-ID: <3D4AEAF2.758CD7F7@aflyingstart.net> Don, Sounds like you have a script which submits a form onLoad of the file? A cookie with appropriate expiry could be - examined prior to any submission - created on submission hth Rodney Don Hyden wrote: > Is there a way to trap the refresh button in ie? > > What I'm tring to do is prevent a form from resubmiting > information to the server on refresh. > Can you also prevent this by changing the window history? > > Thanks, > Skolly > From iztokp at amis.net Sat Aug 3 06:56:11 2002 From: iztokp at amis.net (Iztok Polanic) Date: Sat, 3 Aug 2002 13:56:11 +0200 Subject: [Javascript] Retrieving height Message-ID: <000501c23ae4$d3665a10$e02512d4@omega> Hi! Help! I'm trying to retrieve height of an
tag. Is this possible? Bye, Iztok From peter at brunone.com Sat Aug 3 10:45:35 2002 From: peter at brunone.com (Peter Brunone) Date: Sat, 3 Aug 2002 10:45:35 -0500 Subject: [Javascript] Retrieving height In-Reply-To: <000501c23ae4$d3665a10$e02512d4@omega> Message-ID: document.all.divName.style.height But I believe you have to set the value first; I've never had any success retrieving it before I set it. |-----Original Message----- |From: javascript-admin at LaTech.edu |[mailto:javascript-admin at LaTech.edu]On Behalf Of Iztok Polanic |Sent: Saturday, August 03, 2002 6:56 AM |To: javascript at LaTech.edu |Subject: [Javascript] Retrieving height | | |Hi! | |Help! |I'm trying to retrieve height of an
tag. Is this possible? | |Bye, | |Iztok | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | From iztokp at amis.net Sun Aug 4 05:43:10 2002 From: iztokp at amis.net (Iztok Polanic) Date: Sun, 4 Aug 2002 12:43:10 +0200 Subject: [Javascript] Scrolling text Message-ID: <000501c23ba3$baf48410$4c2512d4@omega> Hi! I've written a code which scrolls text vertically. But now when a user triggers OnmouseOut event the scroller should stop where it is. How to do this? Here is the code: function moveUp() { if (tblSize >= size) { if (tblSize_2 >= counter1) { counter1 += 10; document.getElementById('scrollIt').style.top = -counter1; setTimeout("moveUp()",200); } } } Bye, Iztok From iztokp at amis.net Sun Aug 4 07:27:05 2002 From: iztokp at amis.net (Iztok Polanic) Date: Sun, 4 Aug 2002 14:27:05 +0200 Subject: [Javascript] Retrieving height References: <002d01c23c57$77b028d0$18cbadcb@k1n8i8> Message-ID: <000901c23bb2$3ef953e0$e22212d4@omega> Hi! I tried this and it works: document.getElementById('idtag').clientHeight. Lep pozdrav, Iztok ----- Original Message ----- From: "Andrew Gibson" To: Sent: Monday, August 05, 2002 10:09 Subject: Re: [Javascript] Retrieving height > you can also try > > document.getElementById(divName).offsetHeight > > but is read only I think > > > > > document.all.divName.style.height > > > > But I believe you have to set the value first; I've never had any success > > retrieving it before I set it. > > > > |-----Original Message----- > > |Help! > > |I'm trying to retrieve height of an
tag. Is this possible? > > | > > |Bye, > > | > > |Iztok > > | > > |_______________________________________________ > > |Javascript mailing list > > |Javascript at LaTech.edu > > |https://lists.LaTech.edu/mailman/listinfo/javascript > > | > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From maciej.kaniewski at lido.net Sun Aug 4 23:34:52 2002 From: maciej.kaniewski at lido.net (maciej.kaniewski at lido.net) Date: Mon, 5 Aug 2002 12:34:52 +0800 Subject: [Javascript] submit a form from another frame Message-ID: Hi all, I'm aware that there were a lot of topics on this list regarding submit problem, but unfortunately I couldn't find a solution for my problem. My webpage has a few frames. One of them is called "contentFrame". I've got another one which is a menu frame. Let's assume I want to have a hyperlink in my menu frame, which submits the current page in the contentFrame (don't ask me why I want to have like this. It a bit more complicated.) My page which is loaded into the contentFrame has only one form, called 'contentForm'. How can I do that? My menu file is very simple SUBMIT The reason why I have additional doSubmit method is to check if the form has been changed or not (in fact to check if I need to submit or not). Once I enter some value in the text input field in the contentForm, my formChanged flag is set to true. THen if I click on SUBMIT hyperlink in the menu frame, I can see the alert window with the text "contentForm is going to be submitted" and then I have an JS error: "Object doesn't support this property or method" Why???????? Any suggestions are welcome thanks in advance Maciek From peter at brunone.com Mon Aug 5 01:23:15 2002 From: peter at brunone.com (Peter Brunone) Date: Mon, 5 Aug 2002 01:23:15 -0500 Subject: [Javascript] submit a form from another frame In-Reply-To: Message-ID: Try using the form name instead, as well as the collection names. top.frames.contentFrame.document.forms.formName.submit(); When in doubt, be as explicit as possible. If it still doesn't work, we'll look at some more code. Cheers, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of maciej.kaniewski at lido.net | |Hi all, | |I'm aware that there were a lot of topics on this list regarding submit |problem, but unfortunately I couldn't find a solution for my problem. | |My webpage has a few frames. One of them is called "contentFrame". I've got |another one which is a menu frame. |Let's assume I want to have a hyperlink in my menu frame, which submits the |current page in the contentFrame (don't ask me why I want to have like |this. It a bit more complicated.) |My page which is loaded into the contentFrame has only one form, called |'contentForm'. |How can I do that? | |My menu file is very simple | | | | | | |SUBMIT | | | |The reason why I have additional doSubmit method is to check if the form |has been changed or not (in fact to check if I need to submit or not). |Once I enter some value in the text input field in the contentForm, my |formChanged flag is set to true. THen if I click on SUBMIT hyperlink in the |menu frame, I can see the alert window with the text "contentForm is going |to be submitted" and then I have an JS error: "Object doesn't support this |property or method" |Why???????? | |Any suggestions are welcome |thanks in advance | |Maciek | From maciej.kaniewski at lido.net Mon Aug 5 02:53:37 2002 From: maciej.kaniewski at lido.net (maciej.kaniewski at lido.net) Date: Mon, 5 Aug 2002 15:53:37 +0800 Subject: [Javascript] submit a form from another frame Message-ID: Peter, thanks for your responce, but it still doesn't work. I put alert(top.frames.contentFrame.document.forms.AirportDetailsForm.name); to see if I have the same as alert(parent.contentFrame.document.forms[0].name); or alert(parent.contentFrame.document.AirportDetailsForm.name); and all the time I've got "AirportDetailsForm" so it refers still to the same object. Any more ideas? Thank you in advance Maciek >Try using the form name instead, as well as the collection names. >top.frames.contentFrame.document.forms.formName.submit(); >When in doubt, be as explicit as possible. If it still doesn't work, we'll look at some >more code. >Cheers, >Peter From andyg at ihug.co.nz Mon Aug 5 03:09:46 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Mon, 5 Aug 2002 20:09:46 +1200 Subject: [Javascript] Retrieving height References: Message-ID: <002d01c23c57$77b028d0$18cbadcb@k1n8i8> you can also try document.getElementById(divName).offsetHeight but is read only I think > > document.all.divName.style.height > > But I believe you have to set the value first; I've never had any success > retrieving it before I set it. > > |-----Original Message----- > |Help! > |I'm trying to retrieve height of an
tag. Is this possible? > | > |Bye, > | > |Iztok > | > |_______________________________________________ > |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 anandkan at vsnl.net Mon Aug 5 09:44:14 2002 From: anandkan at vsnl.net (anand) Date: Mon, 5 Aug 2002 20:14:14 +0530 Subject: [Javascript] submit a form from another frame In-Reply-To: Message-ID: hi pl use the following in your menuFrame SUBMIT and this one in your contentFrame
HTH Mohan From maciej.kaniewski at lido.net Tue Aug 6 04:03:05 2002 From: maciej.kaniewski at lido.net (maciej.kaniewski at lido.net) Date: Tue, 6 Aug 2002 17:03:05 +0800 Subject: [Javascript] submit a form from another frame - it works Message-ID: Mohan, thank you for your full example - it works. now I'm trying to extend this example to my application regards Maciek From maciej.kaniewski at lido.net Tue Aug 6 21:29:21 2002 From: maciej.kaniewski at lido.net (maciej.kaniewski at lido.net) Date: Wed, 7 Aug 2002 10:29:21 +0800 Subject: [Javascript] submit a form .... final conclusion - why it didn't work Message-ID: Hi all, As you may be interested, I'd like to tell you, why I couldn't submit form from another frame and what is the solution: I TRIED TO SUBMIT A FORM FROM ANOTHER FRAME. BUT MY FORM (WHICH I TRIED TO SUBMIT) CONTAINED SUBMIT BUTTON(s). AND THAT WAS THE REASON. ONCE I REMOVED SUBMIT BUTTONS (I CONVERTED THEM TO THE NORMAL BUTTONS AND I HANDLE AN EVENT ONCLICK, WHERE I CALL SUBMIT FUNCTION EXPLICETELY) THE SUBMITTING FROM ANOTHER FRAME WORKS FINE!!!!!!!!!!!!!!!!!! thanks for help, and hope it'll help someone else too Maciek From sudesai at cisco.com Wed Aug 7 00:14:15 2002 From: sudesai at cisco.com (sunita desai) Date: Wed, 7 Aug 2002 10:44:15 +0530 Subject: [Javascript] XMP tag related problem Message-ID: Hi, Actually I have this particular problem with the Web based Application that is being developed. Your answers, and any pointers will be very helpful. In one particular JSP, a socket connection is being established at the backend, and data is continously pushed from there, and the need is to read the Strings line by line and display/dump on the browser screen. If the String is enclosed between XMP tag %=data% where data has the one text line content read from the Socket output stream. the formatings information coming from the backend (the white space, tabs etc) are retained and display is proper, but the problem is an extra line is inserted by the tag which is not required by the customer. But if we don't use the <XMP> tag and just use %=data% the formatting info is lost, because the HTML does not interpret the tabs, spaces etc, and even if some HTML specific tags are part of the text coming from backend, it will not be displayed as it is. Even I have tried using <div> and <PRE> tags, but the formatting info is lost. So the question is there any other way to dump pure text on browser without loosing the formatting information? DOes using an applet for real time display purposes would be a better way? Thanks in advance, Regards, Sunita The code snippet without XMP tag: String data=""; while ((str = rd.readLine()) != null) { data = data + str + "<BR>"; //increment the total lines counter by one count = count + 1; <%=data%> //flush the out buffer out.flush() // re-initialise the data string data=""; Display without <XMP> tag: ---------------------- MGCP MESSAGES DISPLAY ---------------------- Time stamp Orig IP address Dest IP address Prot Msg Data ---------------------------------------------------------------------------- --------------------------- First packet received - 08/06/2002 20:37:51.607341 10.10.99.106:2427 10.10.99.41:2427 MGCP...... -> 200 4100052 OK v=0 c=IN IP4 10.10.99.106 m=audio 49288 RTP/AVP 0 20:37:53.384690 10.10.99.41:2427 10.10.99.106:2427 MGCP...... -> CRCX 4100054 vism/t1-6/21 at mgxc101-13 MGCP 0.1 C: A6DF1 L: e:off M: inactive R: X: D67D S: The code snippet with XMP tag: String data=""; while ((str = rd.readLine()) != null) { data = data + str; //increment the total lines counter by one count = count + 1; <XMP><%=data%> //flush the out buffer out.flush() // re-initialise the data string data=""; Display with XMP tag: ---------------------- MGCP MESSAGES DISPLAY ---------------------- Time stamp Orig IP address Dest IP address Prot Msg Data ---------------------------------------------------------------------------- --------------------------- First packet received - 08/06/2002 20:44:03.193352 10.10.99.41:2427 10.10.99.106:2427 MGCP...... -> CRCX 4100098 vism/t1-6/16 at mgxc101-13 MGCP 0.1 C: A6DF9 L: e:off M: inactive R: X: D68D S: View source gives this: ---------------------- MGCP MESSAGES DISPLAY ---------------------- Time stamp Orig IP address Dest IP address Prot Msg Data ----------------------------------------------------------------------- -------------------------------- First packet received - 08/06/2002 20:50:39.575409 10.10.99.41:2427 10.10.99.190:2427 MGCP...... -> CRCX 4100079 vism/t1-8/8 at mgxc201-10 MGCP 0.1 C: A6DF5 From iztokp at amis.net Wed Aug 7 02:47:04 2002 From: iztokp at amis.net (Iztok Polanic) Date: Wed, 7 Aug 2002 09:47:04 +0200 Subject: [Javascript] Scrolling text Message-ID: <000201c23de6$ba5c51a0$472212d4@omega> Hi! I've written a code which scrolls text vertically. But now when a user triggers OnmouseOut event the scroller should stop where it is. How to do this? Here is the code for scrolling: function moveUp() { if (tblSize >= size) { if (tblSize_2 >= counter1) { counter1 += 10; document.getElementById('scrollIt').style.top = -counter1; setTimeout("moveUp()",200); } } } Bye, Iztok From pcarubbi at libero.it Wed Aug 7 05:19:03 2002 From: pcarubbi at libero.it (=?iso-8859-1?Q?pcarubbi@libero.it?=) Date: Wed, 7 Aug 2002 12:19:03 +0200 Subject: [Javascript] =?iso-8859-1?Q?Mouse:_Different_Menus_on_Right_Click?= Message-ID: Hallo, I have a script that let me manage pictures on the page so that onMouseOver in another place of the page a text-description of the picture is visualized. I would like also that when right-click on the particular picture a specific menu related to the picture is displaied. Is this possible? I do not mean a new menu on right click that replaces the one of Window in the *whole* page, as e.g. the one at http://www.dynamicdrive.com/dynamicindex1/contextmenu.htm , but rather *more* different menus when right-click on *different* pictures in the page. Can you please help me? Thank you, Bye, Pietro From denzil.pereira at iflexsolutions.com Wed Aug 7 05:57:33 2002 From: denzil.pereira at iflexsolutions.com (denzil.pereira at iflexsolutions.com) Date: Wed, 7 Aug 2002 16:27:33 +0530 Subject: Solution....RE: [javascript] Digest Number 773 Message-ID: Hi Iztok, Well you could call the clearTimeout Method (what this method will do is that it will cancel the time-out that was set with the setTimeout method earlier) when the user triggers the OnmouseOut event. intID = setTimeout("moveUp()",200); Syntax will be window.clearTimeout(intID) where intID=Integer that specifies the time-out setting returned by a previous call to the setTimeout method. Hope this helps !!! Best regards, Denzil -----Original Message----- From: javascript at yahoogroups.com Subject: [javascript] Digest Number 773 3. Scrolling text From: "Iztok Polanic" ________________________________________________________________________ ________________________________________________________________________ Message: 3 Date: Wed, 7 Aug 2002 09:47:04 +0200 From: "Iztok Polanic" Subject: Scrolling text Hi! I've written a code which scrolls text vertically. But now when a user triggers OnmouseOut event the scroller should stop where it is. How to do this? Here is the code for scrolling: function moveUp() { if (tblSize >= size) { if (tblSize_2 >= counter1) { counter1 += 10; document.getElementById('scrollIt').style.top = -counter1; setTimeout("moveUp()",200); } } } Bye, Iztok ---------------------------------------------------------------------------- This message contains privileged and confidential information and is intended only for the individual named. If you are not the intended recepient you should not disseminate, distribute, store, print, copy or deliver this message. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and immediately delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -------------------------------------------------------------------------- From sebastian.lahajnar at pris-inz.si Thu Aug 8 02:53:28 2002 From: sebastian.lahajnar at pris-inz.si (sebastian) Date: Thu, 8 Aug 2002 09:53:28 +0200 Subject: [Javascript] new window on submit Message-ID: Hi. I have a form with username and password calling a main.asp page. I wont that main.asp opens in a new window. One solution could be:
.. ..
but calling the next page with " main.asp?username=test&password=test " shows parameters username an password in the client's Address. Instead I tried to use post method, but the parameters doesnt pass. How can I achive this? Thanks, Sebastian From HSenior at twii.net Thu Aug 8 03:31:34 2002 From: HSenior at twii.net (Senior, Henry (TWIi London)) Date: Thu, 8 Aug 2002 09:31:34 +0100 Subject: [Javascript] XMP tag related problem (sunita desai) Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03B8247E@lon.webmail.twii.net> Sunita, You could try not closing the tag until the end of the document(if it does end!) or You could also try the following style declaration: <style> xmp {display:inline} </style> using this method you will have to use a <br> to cause a line break. This doesn't work in Netscape 4 or if you're going for the pure text approach you could send a header of Content-type: text/plain but this will mean you have no formatting control. cant you replace the tabs and carriage return characters with html formatting in the JSP? -----Original Message----- From: javascript-request at LaTech.edu [mailto:javascript-request at LaTech.edu] Sent: 07 August 2002 18:01 To: javascript at LaTech.edu Subject: Javascript digest, Vol 1 #719 - 5 msgs Send Javascript mailing list submissions to javascript at LaTech.edu To subscribe or unsubscribe via the World Wide Web, visit https://lists.LaTech.edu/mailman/listinfo/javascript or, via email, send a message with subject or body 'help' to javascript-request at LaTech.edu You can reach the person managing the list at javascript-admin at LaTech.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Javascript digest..." Today's Topics: 1. submit a form .... final conclusion - why it didn't work (maciej.kaniewski at lido.net) 2. XMP tag related problem (sunita desai) 3. Scrolling text (Iztok Polanic) 4. =?iso-8859-1?Q?Mouse:_Different_Menus_on_Right_Click?= (=?iso-8859-1?Q?pcarubbi at libero.it?=) 5. Solution....RE: [javascript] Digest Number 773 (denzil.pereira at iflexsolutions.com) --__--__-- Message: 1 To: javascript at LaTech.edu From: maciej.kaniewski at lido.net Date: Wed, 7 Aug 2002 10:29:21 +0800 Subject: [Javascript] submit a form .... final conclusion - why it didn't work Reply-To: javascript at LaTech.edu Hi all, As you may be interested, I'd like to tell you, why I couldn't submit form from another frame and what is the solution: I TRIED TO SUBMIT A FORM FROM ANOTHER FRAME. BUT MY FORM (WHICH I TRIED TO SUBMIT) CONTAINED SUBMIT BUTTON(s). AND THAT WAS THE REASON. ONCE I REMOVED SUBMIT BUTTONS (I CONVERTED THEM TO THE NORMAL BUTTONS AND I HANDLE AN EVENT ONCLICK, WHERE I CALL SUBMIT FUNCTION EXPLICETELY) THE SUBMITTING FROM ANOTHER FRAME WORKS FINE!!!!!!!!!!!!!!!!!! thanks for help, and hope it'll help someone else too Maciek --__--__-- Message: 2 From: "sunita desai" <sudesai at cisco.com> To: <javascript at LaTech.edu> Date: Wed, 7 Aug 2002 10:44:15 +0530 Subject: [Javascript] XMP tag related problem Reply-To: javascript at LaTech.edu Hi, Actually I have this particular problem with the Web based Application that is being developed. Your answers, and any pointers will be very helpful. In one particular JSP, a socket connection is being established at the backend, and data is continously pushed from there, and the need is to read the Strings line by line and display/dump on the browser screen. If the String is enclosed between XMP tag <XMP>%=data% where data has the one text line content read from the Socket output stream. the formatings information coming from the backend (the white space, tabs etc) are retained and display is proper, but the problem is an extra line is inserted by the tag which is not required by the customer. But if we don't use the <XMP> tag and just use %=data% the formatting info is lost, because the HTML does not interpret the tabs, spaces etc, and even if some HTML specific tags are part of the text coming from backend, it will not be displayed as it is. Even I have tried using <div> and <PRE> tags, but the formatting info is lost. So the question is there any other way to dump pure text on browser without loosing the formatting information? DOes using an applet for real time display purposes would be a better way? Thanks in advance, Regards, Sunita The code snippet without XMP tag: String data=""; while ((str = rd.readLine()) != null) { data = data + str + "<BR>"; //increment the total lines counter by one count = count + 1; <%=data%> //flush the out buffer out.flush() // re-initialise the data string data=""; Display without <XMP> tag: ---------------------- MGCP MESSAGES DISPLAY ---------------------- Time stamp Orig IP address Dest IP address Prot Msg Data ---------------------------------------------------------------------------- --------------------------- First packet received - 08/06/2002 20:37:51.607341 10.10.99.106:2427 10.10.99.41:2427 MGCP...... -> 200 4100052 OK v=0 c=IN IP4 10.10.99.106 m=audio 49288 RTP/AVP 0 20:37:53.384690 10.10.99.41:2427 10.10.99.106:2427 MGCP...... -> CRCX 4100054 vism/t1-6/21 at mgxc101-13 MGCP 0.1 C: A6DF1 L: e:off M: inactive R: X: D67D S: The code snippet with XMP tag: String data=""; while ((str = rd.readLine()) != null) { data = data + str; //increment the total lines counter by one count = count + 1; <XMP><%=data%> //flush the out buffer out.flush() // re-initialise the data string data=""; Display with XMP tag: ---------------------- MGCP MESSAGES DISPLAY ---------------------- Time stamp Orig IP address Dest IP address Prot Msg Data ---------------------------------------------------------------------------- --------------------------- First packet received - 08/06/2002 20:44:03.193352 10.10.99.41:2427 10.10.99.106:2427 MGCP...... -> CRCX 4100098 vism/t1-6/16 at mgxc101-13 MGCP 0.1 C: A6DF9 L: e:off M: inactive R: X: D68D S: View source gives this: ---------------------- MGCP MESSAGES DISPLAY ---------------------- Time stamp Orig IP address Dest IP address Prot Msg Data ----------------------------------------------------------------------- -------------------------------- First packet received - 08/06/2002 20:50:39.575409 10.10.99.41:2427 10.10.99.190:2427 MGCP...... -> CRCX 4100079 vism/t1-8/8 at mgxc201-10 MGCP 0.1 C: A6DF5 --__--__-- Message: 3 From: "Iztok Polanic" To: Date: Wed, 7 Aug 2002 09:47:04 +0200 Subject: [Javascript] Scrolling text Reply-To: javascript at LaTech.edu Hi! I've written a code which scrolls text vertically. But now when a user triggers OnmouseOut event the scroller should stop where it is. How to do this? Here is the code for scrolling: function moveUp() { if (tblSize >= size) { if (tblSize_2 >= counter1) { counter1 += 10; document.getElementById('scrollIt').style.top = -counter1; setTimeout("moveUp()",200); } } } Bye, Iztok --__--__-- Message: 4 Date: Wed, 7 Aug 2002 12:19:03 +0200 From: "=?iso-8859-1?Q?pcarubbi at libero.it?=" To: javascript at LaTech.edu Subject: [Javascript] =?iso-8859-1?Q?Mouse:_Different_Menus_on_Right_Click?= Reply-To: javascript at LaTech.edu SGFsbG8sDQoNCkkgaGF2ZSBhIHNjcmlwdCB0aGF0IGxldCBtZSBtYW5hZ2UgcGljdHVyZXMg b24gdGhlIHBhZ2Ugc28gdGhhdCANCm9uTW91c2VPdmVyIGluIGFub3RoZXIgcGxhY2Ugb2Yg dGhlIHBhZ2UgYSB0ZXh0LWRlc2NyaXB0aW9uIG9mIHRoZSANCnBpY3R1cmUgaXMgdmlzdWFs aXplZC4NCg0KSSB3b3VsZCBsaWtlIGFsc28gdGhhdCB3aGVuIHJpZ2h0LWNsaWNrIG9uIHRo ZSBwYXJ0aWN1bGFyIHBpY3R1cmUgYSANCnNwZWNpZmljIG1lbnUgcmVsYXRlZCB0byB0aGUg cGljdHVyZSBpcyBkaXNwbGFpZWQuDQoNCklzIHRoaXMgcG9zc2libGU/IEkgZG8gbm90IG1l YW4gYSBuZXcgbWVudSBvbiByaWdodCBjbGljayB0aGF0IA0KcmVwbGFjZXMgdGhlIG9uZSBv ZiBXaW5kb3cgaW4gdGhlICp3aG9sZSogcGFnZSwgYXMgZS5nLiB0aGUgb25lIGF0IA0KaHR0 cDovL3d3dy5keW5hbWljZHJpdmUuY29tL2R5bmFtaWNpbmRleDEvY29udGV4dG1lbnUuaHRt ICwgYnV0IHJhdGhlciANCiptb3JlKiBkaWZmZXJlbnQgbWVudXMgd2hlbiByaWdodC1jbGlj ayBvbiAqZGlmZmVyZW50KiBwaWN0dXJlcyBpbiB0aGUgDQpwYWdlLg0KDQpDYW4geW91IHBs ZWFzZSBoZWxwIG1lPw0KDQpUaGFuayB5b3UsDQpCeWUsDQpQaWV0cm8= --__--__-- Message: 5 From: denzil.pereira at iflexsolutions.com To: Javascript at LaTech.edu Cc: iztokp at amis.net Subject: Solution....RE: [javascript] Digest Number 773 Date: Wed, 7 Aug 2002 16:27:33 +0530 Reply-To: javascript at LaTech.edu Hi Iztok, Well you could call the clearTimeout Method (what this method will do is that it will cancel the time-out that was set with the setTimeout method earlier) when the user triggers the OnmouseOut event. intID = setTimeout("moveUp()",200); Syntax will be window.clearTimeout(intID) where intID=Integer that specifies the time-out setting returned by a previous call to the setTimeout method. Hope this helps !!! Best regards, Denzil -----Original Message----- From: javascript at yahoogroups.com Subject: [javascript] Digest Number 773 3. Scrolling text From: "Iztok Polanic" ________________________________________________________________________ ________________________________________________________________________ Message: 3 Date: Wed, 7 Aug 2002 09:47:04 +0200 From: "Iztok Polanic" Subject: Scrolling text Hi! I've written a code which scrolls text vertically. But now when a user triggers OnmouseOut event the scroller should stop where it is. How to do this? Here is the code for scrolling: function moveUp() { if (tblSize >= size) { if (tblSize_2 >= counter1) { counter1 += 10; document.getElementById('scrollIt').style.top = -counter1; setTimeout("moveUp()",200); } } } Bye, Iztok ---------------------------------------------------------------------------- This message contains privileged and confidential information and is intended only for the individual named. If you are not the intended recepient you should not disseminate, distribute, store, print, copy or deliver this message. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and immediately delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -------------------------------------------------------------------------- --__--__-- _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript End of Javascript Digest DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From rodney at aflyingstart.net Thu Aug 8 04:03:44 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Thu, 08 Aug 2002 10:03:44 +0100 Subject: [Javascript] new window on submit References: Message-ID: <3D5233F0.9CDE235B@aflyingstart.net> Try this. onSubmit in form tag calls code which opens a named (newWindow) popup window to your specification. That spec might include suppressing the URL window so any get query string is not visible. Also in the form tag TARGET="newWindow" and METHOD="get" Then when you submit the form it will use the window called newWindow hth Rodney sebastian wrote: > Hi. > > I have a form with username and password calling a main.asp page. > I wont that main.asp opens in a new window. > > One solution could be: > >
> .. > onclick="NewWindow('main.asp?username=test&password=test','okno','760','465' > ,'yes');return false;" > > .. >
> > but calling the next page with " main.asp?username=test&password=test " > shows parameters username an password in the client's Address. > > Instead I tried to use post method, but the parameters doesnt pass. > > How can I achive this? > > Thanks, Sebastian > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Thu Aug 8 12:25:57 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 8 Aug 2002 10:25:57 -0700 Subject: [Javascript] ONUNLOAD...is there a way to tell if the user press the X button Message-ID: or just left the site.. I want to be able to write something to the sessionID table and exit the user from the application From swiseman at remax-cahi.com Thu Aug 8 17:04:27 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 8 Aug 2002 15:04:27 -0700 Subject: [Javascript] TEST Message-ID: IS THE LIST WORKING???? From iztokp at amis.net Thu Aug 8 17:45:56 2002 From: iztokp at amis.net (Iztok Polanic) Date: Fri, 9 Aug 2002 00:45:56 +0200 Subject: [Javascript] HELP Message-ID: <000501c23f2d$5cac2920$322212d4@omega> Hi! Some strange things are going on in javascript world...... :( I have this function: function vnos(id) { for (var j = 1; j == stPoglavij; j++) { var temp1 = 'arrayPoglavja'+j; temp1 = eval(temp1); temp1 = temp1[0].indexOf(id,1); if (temp1 != '-1') { document.forms["Forma"].elements["poglavje"+id].value = 'on'; } } } And javascript wont and wont go into this for loop. WHY THE HELL NOT? :( One more thing....what is the correct expression to turn on the checkbox (bellow)? document.forms["Forma"].elements["poglavje"].value = 'on' Please help me! Bye, Iztok From iztokp at amis.net Thu Aug 8 17:48:32 2002 From: iztokp at amis.net (Iztok Polanic) Date: Fri, 9 Aug 2002 00:48:32 +0200 Subject: [Javascript] strange things in javascript world Message-ID: <000d01c23f2d$b94fd410$322212d4@omega> Hi! Some strange things are going on in javascript world...... :( I have this function: function vnos(id) { for (var j = 1; j == stPoglavij; j++) { var temp1 = 'arrayPoglavja'+j; temp1 = eval(temp1); temp1 = temp1[0].indexOf(id,1); if (temp1 != '-1') { document.forms["Forma"].elements["poglavje"+id].value = 'on'; } } } And javascript wont and wont go into this for loop. WHY THE HELL NOT? :( One more thing....what is the correct expression to turn on the checkbox (bellow)? document.forms["Forma"].elements["poglavje"].value = 'on' Please help me! Bye, Iztok From anandkan at vsnl.net Thu Aug 8 21:02:26 2002 From: anandkan at vsnl.net (anand) Date: Fri, 9 Aug 2002 07:32:26 +0530 Subject: [Javascript] strange things in javascript world In-Reply-To: <000d01c23f2d$b94fd410$322212d4@omega> Message-ID: hi pl change "==" in the for loop with "=" ie j==stPoglavi to j=stPoglavi. for checkbox on/off use document.formname.elementname[index].checked=true (or false) HTH mohan Hi! Some strange things are going on in javascript world...... :( I have this function: function vnos(id) { for (var j = 1; j == stPoglavij; j++) { var temp1 = 'arrayPoglavja'+j; temp1 = eval(temp1); temp1 = temp1[0].indexOf(id,1); if (temp1 != '-1') { document.forms["Forma"].elements["poglavje"+id].value = 'on'; } } } And javascript wont and wont go into this for loop. WHY THE HELL NOT? :( One more thing....what is the correct expression to turn on the checkbox (bellow)? document.forms["Forma"].elements["poglavje"].value = 'on' Please help me! Bye, Iztok _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From costea.dan at ssi-schaefer.ro Fri Aug 9 00:37:13 2002 From: costea.dan at ssi-schaefer.ro (Dan Costea) Date: Fri, 9 Aug 2002 08:37:13 +0300 Subject: [Javascript] HELP References: <000501c23f2d$5cac2920$322212d4@omega> Message-ID: <002101c23f66$d05969d0$dfdea8c0@PCCostea> 1. for checking your checkbox, use this: document.forms["Forma"].elements["poglavje"].checked = true; 2. if you want to go in that "for" loop, your variable stPoglavij should be set to 1. And then the "loop" will have just one step, because after the first step j will be incremented and will be no longer equal with 1, so the "for" condition: j == stPoglavij will be false. ----- Original Message ----- From: "Iztok Polanic" To: Sent: Friday, August 09, 2002 1:45 AM Subject: [Javascript] HELP > Hi! > > Some strange things are going on in javascript world...... :( > I have this function: > > function vnos(id) { > for (var j = 1; j == stPoglavij; j++) { > > var temp1 = 'arrayPoglavja'+j; > temp1 = eval(temp1); > > temp1 = temp1[0].indexOf(id,1); > > if (temp1 != '-1') { > document.forms["Forma"].elements["poglavje"+id].value = 'on'; > } > } > } > > And javascript wont and wont go into this for loop. WHY THE HELL NOT? :( > One more thing....what is the correct expression to turn on the checkbox > (bellow)? > > document.forms["Forma"].elements["poglavje"].value = 'on' > > Please help me! > > Bye, > > Iztok > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From gogastefan at yahoo.com Fri Aug 9 00:59:31 2002 From: gogastefan at yahoo.com (Goga Stefan) Date: Thu, 8 Aug 2002 22:59:31 -0700 (PDT) Subject: [Javascript] Disable controls In-Reply-To: <000d01c23f2d$b94fd410$322212d4@omega> Message-ID: <20020809055931.44007.qmail@web40209.mail.yahoo.com> Hi! I have some controls on a page (input, anchor, select,etc). I don't know how many (They are selected from database). How do I disable all, and I make them enable after the page is loading. Stefan Goga. __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From alex.yap at str.com.au Fri Aug 9 01:21:53 2002 From: alex.yap at str.com.au (Alexander Yap) Date: Fri, 9 Aug 2002 16:21:53 +1000 Subject: [Javascript] Disable controls In-Reply-To: <20020809055931.44007.qmail@web40209.mail.yahoo.com> References: <20020809055931.44007.qmail@web40209.mail.yahoo.com> Message-ID: <20020809062011.4BE10308DCD@LaTech.edu> Hi, If the purpose is just to stop people clicking on the controls before the page is ready, you can try this: 1. Create a DIV big enough to cover all your controls, or even the entire page. This DIV may simply have a "Loading..." message. 2. Make this DIV visible and position it in front of your controls, with large z-index. 3. When your page has finished loading, make this DIV invisible. I tried this before and it seemed to work ok. -- Alexander Yap Melbourne, Australia From costea.dan at ssi-schaefer.ro Fri Aug 9 01:23:37 2002 From: costea.dan at ssi-schaefer.ro (Dan Costea) Date: Fri, 9 Aug 2002 09:23:37 +0300 Subject: [Javascript] Disable controls References: <20020809055931.44007.qmail@web40209.mail.yahoo.com> Message-ID: <004101c23f6d$4bf27040$dfdea8c0@PCCostea> I don't know how is your page generated, but can't you writte them disabled in the first place? And on "onload" event of the "body" tag, you can call a function that enables all your elements (for IE, this will do: for (i in document.all) document.all[i].disabled = false;) Dan. ----- Original Message ----- From: "Goga Stefan" To: Sent: Friday, August 09, 2002 8:59 AM Subject: [Javascript] Disable controls > Hi! > I have some controls on a page (input, anchor, > select,etc). I don't know how many (They are selected > from database). > How do I disable all, and I make them enable after the > page is loading. > Stefan Goga. > > > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From rhernandez at datadec.es Fri Aug 9 01:54:42 2002 From: rhernandez at datadec.es (=?iso-8859-1?Q?Rafael_Hern=E1ndez?=) Date: Fri, 9 Aug 2002 08:54:42 +0200 Subject: [Javascript] Print window Message-ID: <8C987B8472B8A84FB42BD34E6C8A58CA2443C9@srv-w2k-exchang.datadec2000.es> Hi! Somebody knows how disable the printer dialog window when i send the command window.print. Sorry for my english. ____________________________________________________________ D A T A D E C ebussines solutions / Oracle solutions Rafael Hernandez Lluch rhernandez at datadec.es C/Sureres, n? 1,planta 1? tel :+ 34- 902 48 10 48 46014 Valencia, Spain fax:+ 34- 96- 350 05 55 www.datadec.es ____________________________________________________________ From hobbes_tiger at gmx.de Fri Aug 9 05:06:27 2002 From: hobbes_tiger at gmx.de (Michael Ledig) Date: Fri, 09 Aug 2002 12:06:27 +0200 Subject: [Javascript] strange things in javascript world Message-ID: <3D539423.3040001@gmx.de> Hi anand, anand schrieb: > > hi > > pl change "==" in the for loop with "=" ie > j==stPoglavi to j=stPoglavi. you better don't do that. his says to JavaScript, that with every loop, the variable j is set to stPoglavi! If you have this condition in your for, your for loop while run forever. I think you need something like j<=stPoglavi or j>=stPoglavi. You count the variable j from 1 so i think you need "j<=stPoglavi" HTH and greetings Mike. -- Training und Projekte http://www.gidel.de From iztokp at amis.net Fri Aug 9 09:02:03 2002 From: iztokp at amis.net (Iztok Polanic) Date: Fri, 9 Aug 2002 16:02:03 +0200 Subject: [Javascript] strange things in javascript world References: <3D539423.3040001@gmx.de> Message-ID: <000901c23fad$5784d390$932512d4@omega> Hi! I was doing this at 1am and I didn't notice it. :( Bye, Iztok ----- Original Message ----- From: "Michael Ledig" To: Sent: Friday, August 09, 2002 12:06 Subject: Re: [Javascript] strange things in javascript world > Hi anand, > > anand schrieb: > > > > hi > > > > pl change "==" in the for loop with "=" ie > > j==stPoglavi to j=stPoglavi. > > you better don't do that. his says to JavaScript, that with every loop, > the variable j is set to stPoglavi! > > If you have this condition in your for, your for loop while run forever. > > > I think you need something like j<=stPoglavi or j>=stPoglavi. > > You count the variable j from 1 so i think you need "j<=stPoglavi" > > HTH and greetings > Mike. > > -- > Training und Projekte > http://www.gidel.de > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From CGardner at JohnBurnham.com Fri Aug 9 17:35:59 2002 From: CGardner at JohnBurnham.com (Craig Gardner) Date: Fri, 9 Aug 2002 15:35:59 -0700 Subject: [Javascript] Question Message-ID: <67B06D59C5D2614B8DFF46A8AF4D6E460384C2@Exchange> Hello there, Here's what I'm trying to do: I want a form, where there are multiple date fields, but if the user enters the date unformatted, I want to have the field automatically formatted to be in MM/DD/YY format. Here's what I have: ----snip----
----snip---- Here's my problem: It works great, except that it won't work for more than one single field. How can I make it work for multiple fields. Or if I'm going about this completely wrong, please direct me to a better method. Thanks, Craig ====================================== Confidentiality Notice: The information contained in this electronic document is considered a confidential and/or privileged communication between John Burnham Insurance Services and the addressee(s). If the recipient(s) of this email communication is not the addressee(s), such recipient(s) is strictly prohibited from photocopying, distributing or otherwise using this email or its contents and/or attachment(s) in any way. If you received this message in error, please contact the sender listed above by any contact means listed. Thank you! From SoitPP at aol.com Sat Aug 10 10:37:43 2002 From: SoitPP at aol.com (SoitPP at aol.com) Date: Sat, 10 Aug 2002 11:37:43 EDT Subject: [Javascript] Problem with IE downloading using top.location Message-ID: <128.15bde3d9.2a868d47@aol.com> Hi All, I just wrote a new website for my music online. I've got it scripted so that when you click a button it edits the top.location so that it goes directly to an mp3 file. This isn't working out quite as I planned. When the user clicks on it the download window does not appear unless you first click away to another application and back to IE again or if you hit the ALT key. Is there a better way to set this up so that it won't cause this problem? Such as perhaps some type of ftp function? Sincerely, Aaron S From SoitPP at aol.com Sat Aug 10 11:20:08 2002 From: SoitPP at aol.com (SoitPP at aol.com) Date: Sat, 10 Aug 2002 12:20:08 EDT Subject: [Javascript] Problem with IE downloading using top.location Message-ID: <1bf.a6907ec.2a869738@aol.com> by the way if you would like to see this in action the URL to my site is ofviolets.net/~sanspalm peace, Aaron From merchant at latech.edu Sat Aug 10 17:52:05 2002 From: merchant at latech.edu (David Merchant) Date: Sat, 10 Aug 2002 17:52:05 -0500 Subject: [Javascript] JavaScript List Unsubscirbe, Subscribe & Posting Info. Message-ID: <5.1.0.14.2.20020810174838.0278c3c0@mail.latech.edu> There are two sets of instructions, first for those who joined the list directly and second for those who joined the list via egroups (at present I cannot manually unsubscribe anyone who joined via Yahoo Groups or eGroups). 1. If you wish to subscribe or unsubscribe, visit https://lists.LaTech.edu/mailman/listinfo/javascript or send a message with the word `help' in it to the request address, javascript-request at LaTech.edu, for further instructions. To post to the list, send your posts to javascript at latech.edu 2. For those who subscribed to the Javascript list via Yahoo Groups (formally eGroups), here is how to unsubscribe: To unsubscribe via email: From your email program, send a blank message to: javascript-unsubscribe at yahoogroups.com To unsubscribe via the Web: * Sign in to Yahoo! Groups and go to the My Groups page. * Click on the Edit Message Settings link at the top of the page. * Look for the group you wish to unsubscribe from, and select Unsubscribe from the pull-down list on the right. * Click Update to save your changes. The group will no longer be listed on the My Groups page, and you will no longer receive messages. Note: If you own a group, you must first give up your ownership in the Members section of your group before you can unsubscribe on the My Groups page. *** I CANNOT manually unsubscribe you if you subscribed to the list via eGroups or Yahoo Groups. *** I have complained _repeatedly_ about this to the folks at Yahoo Groups, but to no avail. I can only manually unsubscribe those who joined via https://lists.LaTech.edu/mailman/listinfo/javascript. TTFN, David Systems Librarian, Louisiana Tech University merchant at latech.edu JavaScript List Administrator (www.mountaindragon.com/javascript/) HTML Encyclopedia (www.mountaindragon.com/html/) Midori Ito (www.mountaindragon.com/midori/) US Memorial Day (www.mountaindragon.com/memorial/) From scifi_lullabyes at yahoo.co.uk Sat Aug 10 20:43:28 2002 From: scifi_lullabyes at yahoo.co.uk (=?iso-8859-1?q?Eva=20Skye?=) Date: Sun, 11 Aug 2002 02:43:28 +0100 (BST) Subject: [Javascript] Link problems... Help desperate needed! Message-ID: <20020811014328.34401.qmail@web20809.mail.yahoo.com> Okay... I need a script which on a mouse-over a bit of text or an image will open a given link in a new window. I got it to work to where on mouse-over it would open the page within the frame... but, as I'm using absolutely positioned scrollable areas throughout my website, that doesn't work, due to the lack of scroll- bars, not to mention that the links don't view right when set within my frames... and, for some reason, traditional links don't seem to work properly within the scrollable areas... When done like that, only half of the links on my links page actually function.... I'm driving myself crazy trying to get this to work right..... ~_~ Any help would be *greatly* appreciated! -- Eva Skye "Like mindless lovers With empty dreams As they dance with others Through the machines....." AIM: lips like pain Yahoo: SciFi_Lullabyes http://uk.geocities.com/SciFi_Lullabyes/ --------------------------------- Get a bigger mailbox -- choose a size that fits your needs. http://uk.docs.yahoo.com/mail_storage.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at brunone.com Sat Aug 10 21:54:02 2002 From: peter at brunone.com (Peter Brunone) Date: Sat, 10 Aug 2002 21:54:02 -0500 Subject: [Javascript] Link problems... Help desperate needed! In-Reply-To: <20020811014328.34401.qmail@web20809.mail.yahoo.com> Message-ID: Eva, What do you have so far? It seems like you'd need something like this: Element can be a div, link, or whatever. Then you just need a script with your function, a la Let me know if I've misunderstood the source of your problem. Cheers, Peter -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Eva Skye Okay... I need a script which on a mouse-over a bit of text or an image will open a given link in a new window. I got it to work to where on mouse-over it would open the page within the frame... but, as I'm using absolutely positioned scrollable areas throughout my website, that doesn't work, due to the lack of scroll- bars, not to mention that the links don't view right when set within my frames... and, for some reason, traditional links don't seem to work properly within the scrollable areas... When done like that, only half of the links on my links page actually function.... I'm driving myself crazy trying to get this to work right..... ~_~ Any help would be *greatly* appreciated! -- Eva Skye From LMuchacho at twii.net Mon Aug 12 05:53:51 2002 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Mon, 12 Aug 2002 11:53:51 +0100 Subject: [Javascript] Problem with IE downloading using top.location Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03C5D0DC@lon.webmail.twii.net> Your stuff doesn't seems to work any where else then Internet Explorer. Just change your ISP whe can tell AOL is pretty shit. It work fine for me on Internet Explorer. Laurent -----Original Message----- From: SoitPP at aol.com [mailto:SoitPP at aol.com] Sent: 10 August 2002 17:20 To: javascript at LaTech.edu Subject: [Javascript] Problem with IE downloading using top.location by the way if you would like to see this in action the URL to my site is ofviolets.net/~sanspalm peace, Aaron _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From Robert.Fernando at anitetelecoms.com Tue Aug 13 08:22:14 2002 From: Robert.Fernando at anitetelecoms.com (Fernando, Robert) Date: Tue, 13 Aug 2002 14:22:14 +0100 Subject: [Javascript] Detecting that a page is accessible Message-ID: Hi all, Is it possible in JavaScript to detect a page / server not being accessible. I am, aiming to do this so that I can redirect user to either my webserver if active and connected to the internet or to a free WebPages server, which mirrors my webserver. In other words a failure and redirect script. thanks Robert Fernando Personal views not necessarily those of Anite Telecoms Ltd, Registered in England No. 1721900 Registered Office: 100 Longwater Avenue, GreenPark, Reading, Berkshire RG2 6GP, United Kingdom From Esther_Strom at hmco.com Tue Aug 13 08:32:58 2002 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Tue, 13 Aug 2002 08:32:58 -0500 Subject: [Javascript] Detecting that a page is accessible Message-ID: I don't know about detecting that in javascript, and I don't know if you can detect a server being down (the code would be sitting on that server, wouldn't it?), but for page inaccessability (on a working server), you could create a custom 404 (or other error) page that has the redirect code in its onLoad event. Here's a site with lots of info on custom error pages: http://www.plinko.net/404/ "Fernando, Robert" lecoms.com> cc: Sent by: Subject: [Javascript] Detecting that a page is accessible javascript-admin at LaTech. edu 08/13/2002 08:22 AM Please respond to javascript Hi all, Is it possible in JavaScript to detect a page / server not being accessible. I am, aiming to do this so that I can redirect user to either my webserver if active and connected to the internet or to a free WebPages server, which mirrors my webserver. In other words a failure and redirect script. thanks Robert Fernando Personal views not necessarily those of Anite Telecoms Ltd, Registered in England No. 1721900 Registered Office: 100 Longwater Avenue, GreenPark, Reading, Berkshire RG2 6GP, United Kingdom _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From LMuchacho at twii.net Tue Aug 13 09:30:46 2002 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Tue, 13 Aug 2002 15:30:46 +0100 Subject: [Javascript] Detecting that a page is accessible Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03C5D0E9@lon.webmail.twii.net> Hi I think I got a solution for you You could create a page with a frameset on the top frame you will have a function who launch the seconde frame now the trick in your top frame you create a variable and you only populate that variable when the seconde frame load with the page from your server, and you just have a setTimeout on the top frame who gonna check the value of that variable if the value stay false after 10 or 15 seconde you will redirect to your free page Laurent -----Original Message----- From: Fernando, Robert [mailto:Robert.Fernando at anitetelecoms.com] Sent: 13 August 2002 14:22 To: 'javascript at LaTech.edu' Subject: [Javascript] Detecting that a page is accessible Hi all, Is it possible in JavaScript to detect a page / server not being accessible. I am, aiming to do this so that I can redirect user to either my webserver if active and connected to the internet or to a free WebPages server, which mirrors my webserver. In other words a failure and redirect script. thanks Robert Fernando Personal views not necessarily those of Anite Telecoms Ltd, Registered in England No. 1721900 Registered Office: 100 Longwater Avenue, GreenPark, Reading, Berkshire RG2 6GP, United Kingdom _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From hlove at u.washington.edu Wed Aug 14 14:36:12 2002 From: hlove at u.washington.edu (Harry Love) Date: Wed, 14 Aug 2002 12:36:12 -0700 Subject: [Javascript] Disappearing breadcrumbs? Message-ID: <000501c243c9$d9236c20$467a5f80@hsl.washington.edu> Site: http://healthlinks.washington.edu:8080/uitest/uitest2/ JS file: http://healthlinks.washington.edu:8080/uitest/uitest2/healthlinks.js Problem: JavaScript breadcrumbs not appearing on a few browsers. The breadcrumbs appear just fine on WinXP IE6, Moz1, NN6, and MacOS 9.2 Moz1, NN6. The breadcrumbs do not appear in WinXP NN4.78 and MacOS 9.2 IE5.1. Could someone confirm these observations? How can I fix this? Thanks much, Harry From rodney at aflyingstart.net Wed Aug 14 15:59:34 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Wed, 14 Aug 2002 21:59:34 +0100 Subject: [Javascript] Disappearing breadcrumbs? References: <000501c243c9$d9236c20$467a5f80@hsl.washington.edu> Message-ID: <3D5AC4B6.EBE14C0@aflyingstart.net> I tried your page in XP IE6 and as you say it worked well. Then I tried it with NN4.6 and no links were produced. The error message was unusual to say the least: JavaScript Error: file:///C|/Documents and Settings/Rodney Myers/My Documents/tests/healthlinks.js, line 1: illegal character. ?// Get the URL of the current document and store it ^ In the console the illegal character did not show up. Here it has become "?" after cut and paste. I tried adding some blank lines and deleting but that did not work. Then I tried cutting and pasting the text of healthlinks.js into a new file and calling it healthlinks2.js This worked in both browsers, also in NN7 and Opera 6.03 My test file : BC Test I never came across this type of error before and would be interested to know what it was at the start of that file that upset Netscape. I do know that if the Netscape error message tells you something in the console you are wise to believe it, even if it seems incredible. hth Rodney PS is it OK to use the breadcrumbs file? Harry Love wrote: > Site: http://healthlinks.washington.edu:8080/uitest/uitest2/ > JS file: > http://healthlinks.washington.edu:8080/uitest/uitest2/healthlinks.js > > Problem: JavaScript breadcrumbs not appearing on a few browsers. The > breadcrumbs appear just fine on WinXP IE6, Moz1, NN6, and MacOS 9.2 > Moz1, NN6. The breadcrumbs do not appear in WinXP NN4.78 and MacOS 9.2 > IE5.1. Could someone confirm these observations? > > How can I fix this? > > Thanks much, > Harry From hlove at u.washington.edu Wed Aug 14 17:16:44 2002 From: hlove at u.washington.edu (Harry Love) Date: Wed, 14 Aug 2002 15:16:44 -0700 Subject: [Javascript] Disappearing breadcrumbs? In-Reply-To: <3D5AC4B6.EBE14C0@aflyingstart.net> Message-ID: <000101c243e0$4618a230$467a5f80@hsl.washington.edu> >>The error message was unusual to say the least: >> >>JavaScript Error: file:///C|/Documents and Settings/Rodney Myers/My Documents/tests/healthlinks.js, line 1: >> >>illegal character. >> >>?// Get the URL of the current document and store it >>^ Thanks, Rodney. I didn't think to open the javascript: console. Upon further examination, opening the file in Notepad revealed that it was trying to use UTF-8 encoding instead of ANSI. I resaved the file and it appears to be working now. >>PS is it OK to use the breadcrumbs file? Of course! It's free for the taking. You may have to customize it a bit, but it should work on just about any web site. I'm not sure how much longer this URL will remain valid, but for now I have stored the file here: http://healthlinks.washington.edu/scripts/healthlinks.js Thanks again, Harry From matthewcollins at cfl.rr.com Thu Aug 15 08:11:05 2002 From: matthewcollins at cfl.rr.com (Matthew Collins) Date: Thu, 15 Aug 2002 09:11:05 -0400 Subject: [Javascript] newbie function question Message-ID: hi all, i'm trying to write a function to validate a form. problem is, i want the function to be reusable on many pages, so one of the variables passed to the function is the form name, while the other variable is the name of the fields to be checked. problem is, i'm getting an error that the "'document.FormName.formArray' does not exist" here's the javascript: *and the html of the form*
thanks in advance, From rodney at aflyingstart.net Thu Aug 15 08:31:46 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Thu, 15 Aug 2002 14:31:46 +0100 Subject: [Javascript] newbie function question References: Message-ID: <3D5BAD42.BEF028A0@aflyingstart.net> Matthew, for a reuseable function of this sort I would recommend that you just pass the form object. Within the function all element names and types can be found from the form.elements array The first element in the array is form.elements[0] Its name is form.elements[0].name Its type is form.elements[0].type Its value is form.elements[0].value If you create an associative array based on actual element names you can create data which can control your function. e,g on the matter of required fields, required input lengths even formats. But what is most important is to have something simple, that works and on which you can later build, perhaps along lines of my suggestion. hth Rodney Matthew Collins wrote: > hi all, > > i'm trying to write a function to validate a form. problem is, i want the > function to be reusable on many pages, so one of the variables passed to the > function is the form name, while the other variable is the name of the > fields to be checked. > > problem is, i'm getting an error that the "'document.FormName.formArray' > does not exist" > > here's the javascript: > > > > *and the html of the form* > onsubmit="IsFormComplete('form','T1,S1,C1');"> > > thanks in advance, > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From merchant at LATECH.EDU Thu Aug 15 09:31:15 2002 From: merchant at LATECH.EDU (David Merchant) Date: Thu, 15 Aug 2002 09:31:15 -0500 Subject: [Javascript] JavaScript List Unsubscirbe, Subscribe & Posting Info. Message-ID: <5.1.0.14.2.20020815093049.027b5730@mail.latech.edu> There are two sets of instructions, first for those who joined the list directly and second for those who joined the list via egroups (at present I cannot manually unsubscribe anyone who joined via Yahoo Groups or eGroups). 1. If you wish to subscribe or unsubscribe, visit https://lists.LaTech.edu/mailman/listinfo/javascript or send a message with the word `help' in it to the request address, javascript-request at LaTech.edu, for further instructions. To post to the list, send your posts to javascript at latech.edu 2. For those who subscribed to the Javascript list via Yahoo Groups (formally eGroups), here is how to unsubscribe: To unsubscribe via email: From your email program, send a blank message to: javascript-unsubscribe at yahoogroups.com To unsubscribe via the Web: * Sign in to Yahoo! Groups and go to the My Groups page. * Click on the Edit Message Settings link at the top of the page. * Look for the group you wish to unsubscribe from, and select Unsubscribe from the pull-down list on the right. * Click Update to save your changes. The group will no longer be listed on the My Groups page, and you will no longer receive messages. Note: If you own a group, you must first give up your ownership in the Members section of your group before you can unsubscribe on the My Groups page. *** I CANNOT manually unsubscribe you if you subscribed to the list via eGroups or Yahoo Groups. *** I have complained _repeatedly_ about this to the folks at Yahoo Groups, but to no avail. I can only manually unsubscribe those who joined via https://lists.LaTech.edu/mailman/listinfo/javascript. TTFN, David Systems Librarian, 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/) Webmaster, Midori Ito Site (www.mountaindragon.com/midori/) From bliss322 at cfl.rr.com Fri Aug 16 11:54:40 2002 From: bliss322 at cfl.rr.com (Katrina Geevers-Collins) Date: Fri, 16 Aug 2002 12:54:40 -0400 Subject: [Javascript] newbie function question In-Reply-To: <3D5BAD42.BEF028A0@aflyingstart.net> Message-ID: rodney, thanks for the advice, but how do i tell the function what form to use, in case there is more than one form on the page? (i told you i was a newbie) -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Rodney Myers Sent: Thursday, August 15, 2002 9:32 AM To: javascript at LaTech.edu Subject: Re: [Javascript] newbie function question Matthew, for a reuseable function of this sort I would recommend that you just pass the form object. Within the function all element names and types can be found from the form.elements array The first element in the array is form.elements[0] Its name is form.elements[0].name Its type is form.elements[0].type Its value is form.elements[0].value If you create an associative array based on actual element names you can create data which can control your function. e,g on the matter of required fields, required input lengths even formats. But what is most important is to have something simple, that works and on which you can later build, perhaps along lines of my suggestion. hth Rodney Matthew Collins wrote: > hi all, > > i'm trying to write a function to validate a form. problem is, i want the > function to be reusable on many pages, so one of the variables passed to the > function is the form name, while the other variable is the name of the > fields to be checked. > > problem is, i'm getting an error that the "'document.FormName.formArray' > does not exist" > > here's the javascript: > > > > *and the html of the form* > onsubmit="IsFormComplete('form','T1,S1,C1');"> > > thanks in advance, > > _______________________________________________ > 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 rodney at aflyingstart.net Fri Aug 16 13:30:50 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Fri, 16 Aug 2002 19:30:50 +0100 Subject: [Javascript] newbie function question References: Message-ID: <3D5D44DA.40398D98@aflyingstart.net> Katrina, Then in your script function myFunction(form){ .... } Note that the parameter 'form' is just a name, but an obviously convenient one. What matters is that the function was passed the form object If you wanted to invoke the function from a button rodney, > > thanks for the advice, but how do i tell the function what form to use, in > case there is more than one form on the page? > > (i told you i was a newbie) > > -----Original Message----- > From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On > Behalf Of Rodney Myers > Sent: Thursday, August 15, 2002 9:32 AM > To: javascript at LaTech.edu > Subject: Re: [Javascript] newbie function question > > Matthew, for a reuseable function of this sort I would recommend that you > just > pass the form object. > > Within the function all element names and types can be found from the > form.elements array > > The first element in the array is form.elements[0] > Its name is form.elements[0].name > Its type is form.elements[0].type > Its value is form.elements[0].value > > If you create an associative array based on actual element names you can > create > data which can control your function. e,g on the matter of required fields, > required input lengths even formats. > > But what is most important is to have something simple, that works and on > which > you can later build, perhaps along lines of my suggestion. > > hth > > Rodney > > Matthew Collins wrote: > > > hi all, > > > > i'm trying to write a function to validate a form. problem is, i want the > > function to be reusable on many pages, so one of the variables passed to > the > > function is the form name, while the other variable is the name of the > > fields to be checked. > > > > problem is, i'm getting an error that the "'document.FormName.formArray' > > does not exist" > > > > here's the javascript: > > > > > > > > *and the html of the form* > > > onsubmit="IsFormComplete('form','T1,S1,C1');"> > > > > thanks in advance, > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From bliss322 at cfl.rr.com Fri Aug 16 13:50:31 2002 From: bliss322 at cfl.rr.com (Katrina Geevers-Collins) Date: Fri, 16 Aug 2002 14:50:31 -0400 Subject: [Javascript] newbie function question In-Reply-To: <3D5D44DA.40398D98@aflyingstart.net> Message-ID: rodney, thanks for you help. great resource! -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Rodney Myers Sent: Friday, August 16, 2002 2:31 PM To: javascript at LaTech.edu Subject: Re: [Javascript] newbie function question Katrina, Then in your script function myFunction(form){ .... } Note that the parameter 'form' is just a name, but an obviously convenient one. What matters is that the function was passed the form object If you wanted to invoke the function from a button rodney, > > thanks for the advice, but how do i tell the function what form to use, in > case there is more than one form on the page? > > (i told you i was a newbie) > > -----Original Message----- > From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On > Behalf Of Rodney Myers > Sent: Thursday, August 15, 2002 9:32 AM > To: javascript at LaTech.edu > Subject: Re: [Javascript] newbie function question > > Matthew, for a reuseable function of this sort I would recommend that you > just > pass the form object. > > Within the function all element names and types can be found from the > form.elements array > > The first element in the array is form.elements[0] > Its name is form.elements[0].name > Its type is form.elements[0].type > Its value is form.elements[0].value > > If you create an associative array based on actual element names you can > create > data which can control your function. e,g on the matter of required fields, > required input lengths even formats. > > But what is most important is to have something simple, that works and on > which > you can later build, perhaps along lines of my suggestion. > > hth > > Rodney > > Matthew Collins wrote: > > > hi all, > > > > i'm trying to write a function to validate a form. problem is, i want the > > function to be reusable on many pages, so one of the variables passed to > the > > function is the form name, while the other variable is the name of the > > fields to be checked. > > > > problem is, i'm getting an error that the "'document.FormName.formArray' > > does not exist" > > > > here's the javascript: > > > > > > > > *and the html of the form* > > > onsubmit="IsFormComplete('form','T1,S1,C1');"> > > > > thanks in advance, > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From killjoyce at yahoo.com Fri Aug 16 15:04:05 2002 From: killjoyce at yahoo.com (Miss Amy) Date: Fri, 16 Aug 2002 13:04:05 -0700 (PDT) Subject: [Javascript] function not defined only in Netscape 6 Message-ID: <20020816200405.49987.qmail@web11604.mail.yahoo.com> Hey there. I've got a little script that when you mouseover a person's name, it changes the picture and description of that person.Runs great in IE 5+, and even in NN4, but just will not work in NN6.Javascript console only tells me : "flip is not defined" Any ideas? Below is the function and here is an example of when it is called:ONMOUSEOVER="flip(0)">Marlow Anderson ####### function flip(personNum) { if(document.layers) { //thisbrowser="NN4"; document.FacultyLayer.document["FacImage"].src=personimage[personNum].src; document.FacultyLayer.document.InfoForm["FacInfo"].value=persontext[personNum]; } if(document.all) { //thisbrowser="ie" document.FacImage.src=personimage[personNum].src; document.InfoForm.FacInfo.value=persontext[personNum]; } if(!document.all && document.getElementById) { //thisbrowser="NN6"; document.getElementByName("FacImage").src=personimage[personNum].src; document.getElementByName("FacInfo").value=persontext[personNum]; } } ####### Thanks,Amy __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From hlove at u.washington.edu Fri Aug 16 15:50:25 2002 From: hlove at u.washington.edu (Harry Love) Date: Fri, 16 Aug 2002 13:50:25 -0700 Subject: [Javascript] function not defined only in Netscape 6 In-Reply-To: <20020816200405.49987.qmail@web11604.mail.yahoo.com> Message-ID: <000001c24566$8c196350$467a5f80@hsl.washington.edu> -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of Miss Amy Sent: Friday, August 16, 2002 1:04 PM To: javascript at LaTech.edu Subject: [Javascript] function not defined only in Netscape 6 Hey there. I've got a little script that when you mouseover a person's name, it changes the picture and description of that person.Runs great in IE 5+, and even in NN4, but just will not work in NN6.Javascript console only tells me : "flip is not defined" Any ideas? ...(script) ---------------------------- Amy, Could you send a URL associated with the script? Harry From hlove at u.washington.edu Fri Aug 16 21:59:17 2002 From: hlove at u.washington.edu (Harry Love) Date: Fri, 16 Aug 2002 19:59:17 -0700 Subject: [Javascript] Dynamic breadcrumbs script Message-ID: <000001c2459a$13be8b90$467a5f80@hsl.washington.edu> I've had some questions, so FYI, I've updated the breadcrumb script to make it (hopefully) more useful to others. I make no claim that this is the best or cleanest way to create breadrumbs. It's simply the way I do it, and I've found it to be very portable from site to site. It also requires little server overhead because it runs completely client-side. The other upside is that you never have to change breadcrumb links manually again. Here's the file: http://healthlinks.washington.edu/scripts/dynacrumbs.js (feel free to rename my cheesy file) Updates: 1) Comments have been added to show you exactly how to customize the opening link in the breadcrumb chain. The previous version took the first segment of the URL and used that for the first link. Reason: the first segment of our URL is the name of the web site. The new version shows you exactly how and where to change this. For example, if your URL begins with "www.mycompany.com," you can customize the script so that "Www" will not appear as the first link in the chain. You can have it say "MyCompany" or "Home" or any text you choose. 2) I added opening/closing tags to the lines that create the last link in the chain. This is based on a recommendation I read in Don't Make Me Think! by Steve Krug. If you don't like it, simply go down the script and remove any or tags you see. To test the script in your site, you can do three things: 1) Copy and paste the script into your web page in between the head tags by adding to the beginning and ending of the script, respectively. It would look like this: my title 2) *Recommended*--You can save the .js file (and rename it if you like) to the directory of your choosing and link to it from your web page like so: my title Or, if you already link to an external js file 3) You can paste the script into that javascript file, if you don't want multiple That's it! You can style the breadcrumbs (always separate style from content) any way you choose by wrapping the

Status

Completed Date

Regards, Harry From peter at brunone.com Mon Aug 19 12:03:25 2002 From: peter at brunone.com (Peter Brunone) Date: Mon, 19 Aug 2002 12:03:25 -0500 Subject: [Javascript] Disabled property for input References: <67B06D59C5D2614B8DFF46A8AF4D6E46870E0F@Exchange> Message-ID: <142801c247a2$55763740$3995210a@pbrunonePC> According to the MSDN docs, that should work. Also, as of IE5, you can use an expression in place of the boolean value. -Peter ----- Original Message ----- From: "Craig Gardner" | So if I were to use "document.form.input.disabled = true;" it will work | in | internet explorer? This form will be used internally, so I don't need | to | worry about compatibility. | | Thanks, | Craig | | | -----Original Message----- | | From: Peter Brunone [mailto:peter at brunone.com] | | | | Craig, | | | | You only have the disabled option in Internet Explorer. | | A slightly more universal solution (works for Netscape, | | anyway) is to change the background color style attribute and | | use the onFocus() event handler to set | | window.focus() (or focus on whatever else you like to get | | emphasis off the input field). | | | | -Peter | | | | ----- Original Message ----- | | From: "Craig Gardner" | | | | | I'm trying to set up a field that is disabled/enabled | | depending on the | | | value of another field, but I can't seem to find a disabled/enabled | | | property for | | | the fields. Is there one? Or do I have to go about this in another | | | way? | | | | | | Thanks, | | | Craig | | From hlove at u.washington.edu Mon Aug 19 12:07:23 2002 From: hlove at u.washington.edu (Harry Love) Date: Mon, 19 Aug 2002 10:07:23 -0700 Subject: [Javascript] Disabled property for input In-Reply-To: <000001c247a1$9c1ba780$467a5f80@hsl.washington.edu> Message-ID: <000401c247a2$e3131d70$467a5f80@hsl.washington.edu> Oops, meant to say that when the option is "Done" the box is enabled, anything else is disabled. Sorry for the confusion, Harry -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of Harry Love Sent: Monday, August 19, 2002 9:58 AM To: javascript at LaTech.edu Subject: RE: [Javascript] Disabled property for input Is this what you're talking about? The following works in d.getElementById() capable browsers. Alternatively, you could use the document.forms[] array. In the version below, when a user changes the select box to "Done," the "Completed Date" input is disabled. If the user selects any other option, the input box is enabled. I also added a style change for an added visual cue that the box is enabled or disabled.

Status

Completed Date

Regards, Harry _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From killjoyce at yahoo.com Mon Aug 19 12:15:26 2002 From: killjoyce at yahoo.com (Miss Amy) Date: Mon, 19 Aug 2002 10:15:26 -0700 (PDT) Subject: [Javascript] RE: function not defined only in Netscape 6 Message-ID: <20020819171526.79749.qmail@web11604.mail.yahoo.com> You can see the script in action at this link. If you view it with IE or NN4, it works perfectly. But if you view it with NN6, nothing. http://faculty1.coloradocollege.edu/~apacheco/math/Faculty/welcome.html __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From hassan at webtuitive.com Mon Aug 19 12:27:57 2002 From: hassan at webtuitive.com (Hassan Schroeder) Date: Mon, 19 Aug 2002 10:27:57 -0700 Subject: [Javascript] RE: function not defined only in Netscape 6 References: <20020819171526.79749.qmail@web11604.mail.yahoo.com> Message-ID: <3D612A9D.7080100@webtuitive.com> Miss Amy wrote: > You can see the script in action at this link. If you view it with > IE or NN4, it works perfectly. But if you view it with NN6, nothing. > > http://faculty1.coloradocollege.edu/~apacheco/math/Faculty/welcome.html if(!document.all && document.getElementById) { //thisbrowser="NN6"; document.getElementByName("FacImage").src=personimage[personNum].src; document.getElementByName("FacInfo").value=persontext[personNum]; } ... because there *is* no function getElementByName() -- there's a getElementsByName() [ Element*s* plural ] that returns an array -- but the appropriate function to use here is getElementById. FWIW! -- 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 hlove at u.washington.edu Mon Aug 19 12:31:32 2002 From: hlove at u.washington.edu (Harry Love) Date: Mon, 19 Aug 2002 10:31:32 -0700 Subject: [Javascript] RE: function not defined only in Netscape 6 In-Reply-To: <20020819171526.79749.qmail@web11604.mail.yahoo.com> Message-ID: <000601c247a6$42549d60$467a5f80@hsl.washington.edu> -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of Miss Amy Sent: Monday, August 19, 2002 10:15 AM To: javascript at LaTech.edu Subject: [Javascript] RE: function not defined only in Netscape 6 You can see the script in action at this link. If you view it with IE or NN4, it works perfectly. But if you view it with NN6, nothing. http://faculty1.coloradocollege.edu/~apacheco/math/Faculty/welcome.html -------------------------- Amy, For the NN6 portion of your script, try changing d.getElementByName to d.getElementById("yourID") and replace each name="FacImage"/name="FacInfo" to id="FacImage"/id="FacInfo." I'm not an expert, but I think d.getElementByName can be used in IE5 only, and therefore, should be avoided. Better to use ID since it is a valid DOM method. Regards, Harry From bradjoss at yahoo.com Mon Aug 19 13:26:46 2002 From: bradjoss at yahoo.com (Brad Joss) Date: Mon, 19 Aug 2002 11:26:46 -0700 (PDT) Subject: [Javascript] Removing toolbar from a browser after the window has opened? Message-ID: <20020819182646.7964.qmail@web21402.mail.yahoo.com> I noticed you had the same question last October. Did you ever find an answer? Any help is appreciated. Thanks, Brad Joss __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From peter at brunone.com Mon Aug 19 13:32:19 2002 From: peter at brunone.com (Peter Brunone) Date: Mon, 19 Aug 2002 13:32:19 -0500 Subject: [Javascript] Removing toolbar from a browser after the window has opened? References: <20020819182646.7964.qmail@web21402.mail.yahoo.com> Message-ID: <166c01c247ae$c0643730$3995210a@pbrunonePC> I don't know who you mean, but I and others have asked similar questions lately, and the answer seems to be "you can't". Of course, you can't programmatically close a window that the user opened either, but Dan Costea brought up an interesting approach that proves you can... perhaps you could pop up a new window and then close the old one. -Peter ----- Original Message ----- From: "Brad Joss" | I noticed you had the same question last October. Did you ever find an | answer? | | Any help is appreciated. | | Thanks, | Brad Joss | From compjma at hotmail.com Mon Aug 19 13:41:27 2002 From: compjma at hotmail.com (Chris Berry) Date: Mon, 19 Aug 2002 11:41:27 -0700 Subject: [Javascript] (no subject) Message-ID: Chris Berry compjma at hotmail.com Systems Administrator JM Associates "Ask me for the impossible and I'll do it immediately, miracles take a little longer." _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From msocarras at terra.es Mon Aug 19 17:33:45 2002 From: msocarras at terra.es (Manuel Socarras Reyes) Date: Tue, 20 Aug 2002 00:33:45 +0200 Subject: [Javascript] show-hide layers in NN 6 References: Message-ID: <3D617249.2050401@terra.es> hi: wich is the equivalent in NN6 (JS 1.5) for the property visibility = show/hide? TIA, -- Saludos, Manuel Socarr?s Reyes Barcelona. Spain From hlove at u.washington.edu Mon Aug 19 18:53:58 2002 From: hlove at u.washington.edu (Harry Love) Date: Mon, 19 Aug 2002 16:53:58 -0700 Subject: [Javascript] show-hide layers in NN 6 In-Reply-To: <3D617249.2050401@terra.es> Message-ID: <000a01c247db$afa8a430$467a5f80@hsl.washington.edu> Manuel, Can you provide an example, preferably a URL? Regards, Harry -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of Manuel Socarras Reyes Sent: Monday, August 19, 2002 3:34 PM To: javascript at LaTech.edu Subject: [Javascript] show-hide layers in NN 6 hi: wich is the equivalent in NN6 (JS 1.5) for the property visibility = show/hide? TIA, -- Saludos, Manuel Socarr?s Reyes Barcelona. Spain _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Mon Aug 19 23:18:00 2002 From: peter at brunone.com (Peter Brunone) Date: Mon, 19 Aug 2002 23:18:00 -0500 Subject: [Javascript] Please help with a window closing problme In-Reply-To: Message-ID: I suppose you could try the body's onUnload event handler, like this: although people have reported varying degrees of success using that. |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Roland Dong | |Thanks for your reply. | |Basically, I have a login page, a popup page and a menu page. When a user |logins, a small window will pop up with a announcement(popup |page). If the |user clicks the "continue" button inside the popup window, the popup window |will close and a new page--menu page--will open. | |Since the login page is a jsp. That is why it goes blank |if user click the "cross" to close the window instead of the "continue" |button. | |I am wondering how I could code that action, mouse clicking the cross to |close window, with javascript so that if a mouse clicking on the cross is |detected, the popup window should close and a new page should open. | |Thanks again for your reply. | |Roland | |On 8/17/02 10:25 PM, "Peter Brunone" wrote: | |> Roland, |> |> I don't understand. You want to close the window, and *then* redirect to |> another page? Is there another window involved, and if so, which is the |> parent and which is the child? |> |> Cheers, |> |> Peter |> |> |-----Original Message----- |> |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |> |Behalf Of Roland Dong |> | |> |How can I have the user redirected to another page after the user |> |closes the |> |window by clicking he cross on the upper right corner or upper |left corner |> |of a browser? |> | |> |Of course I could add javascript close() to close the window. But |> |sometimes |> |users like to click that little cross to close the window. When |> |that happens |> |I want the user be redirected to a new page. How can I do it? |> | |> |Thanks |> | |> |Roland From gassinaumasis at hotmail.com Tue Aug 20 04:33:52 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Tue, 20 Aug 2002 09:33:52 +0000 Subject: [Javascript] show-hide layers in NN 6 Message-ID: >wich is the equivalent in NN6 (JS 1.5) for the property visibility = >show/hide? visible/hidden . It has nothing to do with the JavaScript version, BTW, only with NN4's strange implementation of CSS1. ppk _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From peter at brunone.com Tue Aug 20 16:03:08 2002 From: peter at brunone.com (Peter Brunone) Date: Tue, 20 Aug 2002 16:03:08 -0500 Subject: [Javascript] DHTML overlapping SELECT and .ocx controls Message-ID: <1d4c01c2488c$fc6c1c00$3995210a@pbrunonePC> Friends, I know this has been discussed before, but I've never seen any definitive answers other than "you can't"... so I figured I'd check once more. The application in question needs some hierarchical menus that, due to their size and the screen layout, are going to overlap (1) SELECT boxes and (2) a client-side ActiveX control (the Farpoint Spread grid, for what it's worth). Of course both of these things show right through the menus, and I'm wondering if anybody has found a way around it... other than making the offending object momentarily disappear. Any and all constructive thoughts are welcome. Cheers, Peter From msocarras at terra.es Tue Aug 20 16:05:42 2002 From: msocarras at terra.es (Manuel Socarras Reyes) Date: Tue, 20 Aug 2002 23:05:42 +0200 Subject: [Javascript] show-hide layers in NN 6 References: <000a01c247db$afa8a430$467a5f80@hsl.washington.edu> Message-ID: <3D62AF26.3050202@terra.es> it works fine in W'2000: IE 6.0, NN 4.7 MacOS 9.0.4: IE 5.0, IE 5.1, NN 4.78 it doesn't work in NN 6.2.1, neither in Windows nor in Mac. i guess it has something to do with the new DOM in NN 6. TIA, ---------------------------------------------------------------------------- -- Saludos, Manuel Socarr?s Reyes Barcelona. Spain > wich is the equivalent in NN6 (JS 1.5) for the property visibility = > show/hide? Harry Love wrote: >Manuel, >Can you provide an example, preferably a URL? > >Regards, >Harry > Peter-Paul Koch wrote: > visible/hidden . It has nothing to do with the JavaScript version, > BTW, only with NN4's strange implementation of CSS1. > > ppk From SoitPP at aol.com Tue Aug 20 19:38:02 2002 From: SoitPP at aol.com (SoitPP at aol.com) Date: Tue, 20 Aug 2002 20:38:02 EDT Subject: [Javascript] Re: Problem with IE downloading using top.location Message-ID: <16d.1273bd90.2a943aea@aol.com> it works only halve the time, in IE 5.5 , WITHOUT AOL Can anyone suggest a different mode of causing a download to occur other than simply editing the top.location ? Perhaps there is an ftp mode that would be more suitable? Check the code on my site, ofviolets.net/~sanspalm it's fairly simple. Sincerely, Aaron --- In javascript at y..., "Muchacho, Laurent (TWIi London)" wrote: > Your stuff doesn't seems to work any where else then Internet Explorer. > Just change your ISP whe can tell AOL is pretty shit. > It work fine for me on Internet Explorer. > > Laurent > > -----Original Message----- > From: SoitPP at a... [mailto:SoitPP at a...] > Sent: 10 August 2002 17:20 > To: javascript at L... > Subject: [Javascript] Problem with IE downloading using top.location > > > by the way if you would like to see this in action the URL to my site is > ofviolets.net/~sanspalm > > peace, > Aaron > _______________________________________________ > Javascript mailing list > Javascript at L... > https://lists.LaTech.edu/mailman/listinfo/javascript > > > DISCLAIMER - The preceding e-mail message (including any attachments) > contains information that may be confidential, may be protected by the > attorney-client or other applicable privileges, or may constitute non-public > information. It is intended to be conveyed only to the designated > recipient(s) named above. If you are not an intended recipient of this > message, or have otherwise received it in error, please notify the sender by > replying to this message and then delete all copies of it from your computer > system. Any use, dissemination, distribution, or reproduction of this > message by unintended recipients is not authorized and may be unlawful. The > contents of this communication do not necessarily represent the views of > this company. > _______________________________________________ > Javascript mailing list > Javascript at L... > https://lists.LaTech.edu/mailman/listinfo/javascript From hlove at u.washington.edu Wed Aug 21 01:18:15 2002 From: hlove at u.washington.edu (HARRY W LOVE) Date: Tue, 20 Aug 2002 23:18:15 -0700 (PDT) Subject: [Javascript] show-hide layers in NN 6 In-Reply-To: <3d62af26.3050202@terra.es> Message-ID: On Tue, 20 Aug 2002, Manuel Socarras Reyes wrote: > it works fine in > W'2000: IE 6.0, NN 4.7 > MacOS 9.0.4: IE 5.0, IE 5.1, NN 4.78 > > it doesn't work in NN 6.2.1, neither in Windows nor in Mac. i guess it > has something to do with the new DOM in NN 6. TIA, > > ---------------------------------------------------------------------------- Manuel, Please provide a URL that we can test. The error usually jumps out when the script is attached to an actual page. Regards, Harry From hlove at u.washington.edu Wed Aug 21 01:30:37 2002 From: hlove at u.washington.edu (HARRY W LOVE) Date: Tue, 20 Aug 2002 23:30:37 -0700 (PDT) Subject: [Javascript] Re: Problem with IE downloading using top.location In-Reply-To: <16d.1273bd90.2a943aea@aol.com> Message-ID: On Tue, 20 Aug 2002 SoitPP at aol.com wrote: > > it works only halve the time, in IE 5.5 , WITHOUT AOL > > Can anyone suggest a different mode of causing a download to occur other than > simply editing the top.location ? Perhaps there is an ftp mode that would > be more suitable? > Check the code on my site, ofviolets.net/~sanspalm it's fairly simple. > > Sincerely, > Aaron > Aaron, I took a quick look at your site. I'm not sure I understand the problem. Please write back with the following: 1) What you expect to happen when the page loads 2) What actually happens when you load the page 3) The OS and browsers in which the error occurs Regards, Harry From Anthonywebster at venda.com Wed Aug 21 02:54:36 2002 From: Anthonywebster at venda.com (Anthony Webster) Date: Wed, 21 Aug 2002 08:54:36 +0100 Subject: [Javascript] show-hide layers in NN 6 Message-ID: <2BA3903C0E9C284F9AA18B2E123CF5ED1C594D@VENDAC01.uk.venda> // if Netscape 6 if (document.getElementById) { layer.style.visibility = "visible"; } this works in netscape 6 you can view the source on this page for an example: www.aversion.tv anthony -----Original Message----- From: HARRY W LOVE [mailto:hlove at u.washington.edu] Sent: 21 August 2002 07:18 To: javascript at LaTech.edu Subject: Re: [Javascript] show-hide layers in NN 6 On Tue, 20 Aug 2002, Manuel Socarras Reyes wrote: > it works fine in > W'2000: IE 6.0, NN 4.7 > MacOS 9.0.4: IE 5.0, IE 5.1, NN 4.78 > > it doesn't work in NN 6.2.1, neither in Windows nor in Mac. i guess it > has something to do with the new DOM in NN 6. TIA, > > ---------------------------------------------------------------------------- Manuel, Please provide a URL that we can test. The error usually jumps out when the script is attached to an actual page. Regards, Harry _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From LMuchacho at twii.net Wed Aug 21 04:17:06 2002 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Wed, 21 Aug 2002 10:17:06 +0100 Subject: [Javascript] DHTML overlapping SELECT and .ocx controls Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03C5D108@lon.webmail.twii.net> Hi Peter There is an other way for you probleme but involve a lot of development if you include your form (I mean the whole form into a div or it will not work really well in ns4) in a div you can play with the clip (visible area of that div) by doing so you will be able to only hide the half of your select and not have to hide the whole select Laurent ps: I don't have the example I built anymore but I garanty that work -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: 20 August 2002 22:03 To: javascript at LaTech.edu Subject: [Javascript] DHTML overlapping SELECT and .ocx controls Friends, I know this has been discussed before, but I've never seen any definitive answers other than "you can't"... so I figured I'd check once more. The application in question needs some hierarchical menus that, due to their size and the screen layout, are going to overlap (1) SELECT boxes and (2) a client-side ActiveX control (the Farpoint Spread grid, for what it's worth). Of course both of these things show right through the menus, and I'm wondering if anybody has found a way around it... other than making the offending object momentarily disappear. Any and all constructive thoughts are welcome. Cheers, Peter _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From bill.marriott at optusnet.com.au Wed Aug 21 07:32:04 2002 From: bill.marriott at optusnet.com.au (Bill Marriott) Date: Wed, 21 Aug 2002 22:32:04 +1000 Subject: [Javascript] Arrays References: <76A6F0FCCA27D4119DEF00805F5700AC03C5D108@lon.webmail.twii.net> Message-ID: <000d01c2490e$c275b920$46b48ec6@desk> Hi Everyone, I am having trouble finding a way to work through a 2 member array and search for rows that have identical values. MyArray [0][0] = 2000, MyArray [0][1] = "t" MyArray [1][0] = 2000, MyArray [1][1] = "f" MyArray [2][0] = 2001, MyArray [2][1] = "t" MyArray [3][0] = 2001, MyArray [3][1] = "t" I want to find out that rows 3 and 4 in the above array have identical values. Does anyone know an easy way? thanks Bill Marriott From hlove at u.washington.edu Wed Aug 21 16:57:25 2002 From: hlove at u.washington.edu (Harry Love) Date: Wed, 21 Aug 2002 14:57:25 -0700 Subject: [Javascript] Arrays In-Reply-To: <000d01c2490e$c275b920$46b48ec6@desk> Message-ID: <000401c2495d$bbd35290$467a5f80@hsl.washington.edu> -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of Bill Marriott Sent: Wednesday, August 21, 2002 5:32 AM To: javascript at LaTech.edu Subject: [Javascript] Arrays Hi Everyone, I am having trouble finding a way to work through a 2 member array and search for rows that have identical values. MyArray [0][0] = 2000, MyArray [0][1] = "t" MyArray [1][0] = 2000, MyArray [1][1] = "f" MyArray [2][0] = 2001, MyArray [2][1] = "t" MyArray [3][0] = 2001, MyArray [3][1] = "t" I want to find out that rows 3 and 4 in the above array have identical values. --------------------------- Bill, I'm not sure if this is what you're looking for: HTH, Harry From bill.marriott at optusnet.com.au Thu Aug 22 05:06:49 2002 From: bill.marriott at optusnet.com.au (Bill Marriott) Date: Thu, 22 Aug 2002 20:06:49 +1000 Subject: [Javascript] Arrays References: <000401c2495d$bbd35290$467a5f80@hsl.washington.edu> Message-ID: <007401c249c3$a231d3a0$61b48ec6@desk> Thanks Harry, However your suggestion looked a bit complicated so I came up with the following function that iterates throught the array twice in a nested fashion: (The intriging thing about this code is that the iterations start through the array from 1 and not 0.) { var r = "t"; var i; for (i = 1; i < oneWinter.length; i++) { var cpfk; var cpwinter; cpfk = oneWinter[i][0]; cpwinter = oneWinter[i][1]; var j; for (j = 1; j < oneWinter.length; j++) { if (cpfk == oneWinter[j][0] && i != j && cpwinter == oneWinter[j][1]) { var r = "f"; } } } if (r=="f") { return false; } else { return true; } } thanks for your input though Bill ----- Original Message ----- From: "Harry Love" To: Sent: Thursday, August 22, 2002 7:57 AM Subject: RE: [Javascript] Arrays > > -----Original Message----- > From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] > On Behalf Of Bill Marriott > Sent: Wednesday, August 21, 2002 5:32 AM > To: javascript at LaTech.edu > Subject: [Javascript] Arrays > > > Hi Everyone, > > I am having trouble finding a way to work through a 2 member array and > search for rows that have identical values. > > MyArray [0][0] = 2000, MyArray [0][1] = "t" > MyArray [1][0] = 2000, MyArray [1][1] = "f" > MyArray [2][0] = 2001, MyArray [2][1] = "t" > MyArray [3][0] = 2001, MyArray [3][1] = "t" > > I want to find out that rows 3 and 4 in the above array have identical > values. > --------------------------- > > > Bill, I'm not sure if this is what you're looking for: > > > > > HTH, > Harry > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From javascript at theblades-family.com Fri Aug 23 09:58:32 2002 From: javascript at theblades-family.com (Cutter (javascript list)) Date: Fri, 23 Aug 2002 10:58:32 -0400 Subject: [Javascript] Re: Dynamic breadcrumbs script In-Reply-To: <000001c2459a$13be8b90$467a5f80@hsl.washington.edu> References: <000001c2459a$13be8b90$467a5f80@hsl.washington.edu> Message-ID: <20020823145832.62103.qmail@vpop.dmv.com> Harry, I love this breadcrumbs script. Works great, and the annotation is very helpful (you should submit it to the annotated list, ask David for details). I modified it slightly to attach the class wrapper directly to the anchor tags, this helped in controlling my styles. For the final level link I also use the document.title attribute instead of the system parsing out "index", although I haven't yet figured a way to remove the folder name behind it if it is the index file (seems redundant to link to the page you're on). For your company name issue (bottom of the script), could the user define a variable in the head of their documents if they wish to use this feature, then have the script check to see if the variable exists, and if so implement it? Cutter Harry Love writes: > I've had some questions, so FYI, > I've updated the breadcrumb script to make it (hopefully) more useful to > others. I make no claim that this is the best or cleanest way to create > breadrumbs. It's simply the way I do it, and I've found it to be very > portable from site to site. It also requires little server overhead > because it runs completely client-side. The other upside is that you > never have to change breadcrumb links manually again. > > Here's the file: http://healthlinks.washington.edu/scripts/dynacrumbs.js > (feel free to rename my cheesy file) > > Updates: > 1) Comments have been added to show you exactly how to customize the > opening link in the breadcrumb chain. The previous version took the > first segment of the URL and used that for the first link. Reason: the > first segment of our URL is the name of the web site. The new version > shows you exactly how and where to change this. For example, if your > URL begins with "www.mycompany.com," you can customize the script so > that "Www" will not appear as the first link in the chain. You can have > it say "MyCompany" or "Home" or any text you choose. > > 2) I added opening/closing tags to the lines that create the > last link in the chain. This is based on a recommendation I read in > Don't Make Me Think! by Steve Krug. If you don't like it, simply > go down the script and remove any or tags you see. > > To test the script in your site, you can do three things: > 1) Copy and paste the script into your web page in between the head tags > by adding to the beginning > and ending of the script, respectively. It would look like this: > > my title > > > > 2) *Recommended*--You can save the .js file (and rename it if you like) > to the directory of your choosing and link to it from your web page like > so: > > my title > > > > Or, if you already link to an external js file > 3) You can paste the script into that javascript file, if you don't want > multiple > > That's it! You can style the breadcrumbs (always separate style from > content) any way you choose by wrapping the /**************************************************************************/ /**************************************************************************/ If you need submenus (one or more levels) I can send you an example made with htc. Dan. ----- Original Message ----- From: "Peter Brunone" To: Sent: Monday, August 26, 2002 9:37 PM Subject: [Javascript] IE popup object > > Does anybody have any code (or experience) working with the popup object > in IE? I've been trying to use it in a dynamic menu implementation that > isn't broken by SELECT boxes or ActiveX objects, but as soon as I do > anything more complex than a piddly example from MSDN, the little buggers > forget about their relative positioning and just sit in the upper left > corner of the screen! > Any help would be appreciated. > > Cheers, > > Peter > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From pcarubbi at libero.it Tue Aug 27 13:07:33 2002 From: pcarubbi at libero.it (Pietro Carubbi) Date: Tue, 27 Aug 2002 20:07:33 +0200 Subject: [Javascript] Specific areas for the action of the mouse Message-ID: <00d401c24df4$9dd97b70$64fea8c0@PIETRO> Hallo, I have a page where a customized menu is displayed on right click. This menu can be closed by a 'close' button within it. After this right menu appears, I want that the user can only: - select an item from the list; - close the menu by clicking the button; - utilize the scrollbar which controls a text-field in the page. Any other action of the mouse should be prevented while the right menu is still opened. Is this possible? How? Bye, Pietro From hlove at u.washington.edu Tue Aug 27 14:14:02 2002 From: hlove at u.washington.edu (Harry Love) Date: Tue, 27 Aug 2002 12:14:02 -0700 Subject: [Javascript] Press enter submits form Message-ID: <000501c24dfd$e753f920$467a5f80@hsl.washington.edu> Yeah but that's why I want to use Javascript to prevent that- I'm pretty sure it's possible. Something like on key press submit() or something. But maybe it's not possible? Ah, preventing! Well, if the purpose is to prevent people from prematurely submitting the form, you could also use the onsubmit event handler to validate the forms. Roughly, onsubmit, if a form field is incomplete, alert the user to complete the form, put focus on the empty text field, etc. Or, confirm a submission using onsubmit="confirm('Do you want to submit the form?')". And you're right, you can use onkeydown, onkeypress, and onkeyup to pass the event object to a function from a text input or textarea. The [enter] key is captured by the event object (Decimal Character Code 13). I've never tried it myself, but a Google search appears to produce favorable results. A search for "javascript enter key" produced this (sorry if the URL wraps): http://www.google.com/search?sourceid=navclient&q=javascript+enter+key The second link looks like a winner. Regards, Harry From siddharthroy at yahoo.com Wed Aug 28 01:58:23 2002 From: siddharthroy at yahoo.com (=?iso-8859-1?q?Siddharth=20Roy?=) Date: Wed, 28 Aug 2002 07:58:23 +0100 (BST) Subject: [Javascript] HTML Form-Based file upload problem.... Message-ID: <20020828065823.74766.qmail@web10103.mail.yahoo.com> hello, i'm stuck with a problem related to HTML form-based file upload. The FORM looks like:
The problem is that i want to display a message on the SAME browser window, REPLACING the browser window contents.... telling the user that File Upload has started as soon as a user clicks on the "Upload" Submit button. Every time i try a document.write(""); using the onClick() or the onSubmit() methods of JavaScript, file upload fails Also, if i have a "print" statement embedded within the "upload.pl" perl script to be returned to the browser before i capture the HTTP packets and write my data to disk, it is displayed only AFTER the upload has finished and not as soon as the user has clicked on the Upload button.... Anybody with any suggestion, comments ??? TIA, Asid. ===== =========================================================== Hard Work has a future payoff. Laziness pays off NOW ! =========================================================== Allison: What's your power ? Emma: I don't have any powers. Allison: Ah, the power of denial.(from Mutant X - Episode 1) =========================================================== ________________________________________________________________________ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com From mallard at serv.net Wed Aug 28 08:09:34 2002 From: mallard at serv.net (TomMallard) Date: Wed, 28 Aug 2002 06:09:34 -0700 Subject: [Javascript] HTML Form-Based file upload problem.... In-Reply-To: <20020828065823.74766.qmail@web10103.mail.yahoo.com> Message-ID: Have you tried iframes? IOW, you only change css visibility before submitting. tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Siddharth Roy Sent: Tuesday, August 27, 2002 11:58 PM To: javascript at LaTech.edu Subject: [Javascript] HTML Form-Based file upload problem.... hello, i'm stuck with a problem related to HTML form-based file upload. The FORM looks like:
The problem is that i want to display a message on the SAME browser window, REPLACING the browser window contents.... telling the user that File Upload has started as soon as a user clicks on the "Upload" Submit button. Every time i try a document.write(""); using the onClick() or the onSubmit() methods of JavaScript, file upload fails Also, if i have a "print" statement embedded within the "upload.pl" perl script to be returned to the browser before i capture the HTTP packets and write my data to disk, it is displayed only AFTER the upload has finished and not as soon as the user has clicked on the Upload button.... Anybody with any suggestion, comments ??? TIA, Asid. ===== =========================================================== Hard Work has a future payoff. Laziness pays off NOW ! =========================================================== Allison: What's your power ? Emma: I don't have any powers. Allison: Ah, the power of denial.(from Mutant X - Episode 1) =========================================================== ________________________________________________________________________ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From javascript at theblades-family.com Wed Aug 28 10:29:13 2002 From: javascript at theblades-family.com (Cutter (javascript list)) Date: Wed, 28 Aug 2002 11:29:13 -0400 Subject: [Javascript] Browser History Message-ID: <20020828152913.27216.qmail@vpop.dmv.com> 1) Is it possible to determine whether back or forward should exist? if back history exists then display back button if forward history exists then display forward button 2) Is it possible to determine whether a page has a background image? if bacground-image exists then perform some action Cutter From hlove at u.washington.edu Wed Aug 28 11:02:40 2002 From: hlove at u.washington.edu (Harry Love) Date: Wed, 28 Aug 2002 09:02:40 -0700 Subject: [Javascript] Browser History In-Reply-To: <20020828152913.27216.qmail@vpop.dmv.com> Message-ID: <000b01c24eac$561feef0$467a5f80@hsl.washington.edu> -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of Cutter (javascript list) Sent: Wednesday, August 28, 2002 8:29 AM To: javascript Subject: [Javascript] Browser History 1) Is it possible to determine whether back or forward should exist? if back history exists then display back button if forward history exists then display forward button 2) Is it possible to determine whether a page has a background image? if bacground-image exists then perform some action Cutter ---------------------------- I haven't tested this, but could you say: if(document.history.go(-1)) { execute some code; } else if(document.history.go(1)) { execute some other code; } ??? I'm not sure about the second part, except to check for the presence of *any* images using document.images.length. Regards, Harry From lkmckinn at ingr.com Wed Aug 28 11:10:56 2002 From: lkmckinn at ingr.com (Mckinney, Lori K) Date: Wed, 28 Aug 2002 11:10:56 -0500 Subject: [Javascript] Browser History Message-ID: <3206D8FDDF2F2541A7715A825228937701F247B8@hq2.pcmail.ingr.com> Cutter, Will this work for you to determine the background image question? if ( document.body.style.backgroundImage == "" ) alert ( "No image" ); else alert ( "Image is " + document.body.style.backgroundImage ); -----Original Message----- From: Cutter (javascript list) [mailto:javascript at theblades-family.com] Sent: Wednesday, August 28, 2002 10:29 AM To: javascript Subject: [Javascript] Browser History 1) Is it possible to determine whether back or forward should exist? if back history exists then display back button if forward history exists then display forward button 2) Is it possible to determine whether a page has a background image? if bacground-image exists then perform some action Cutter _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Wed Aug 28 12:11:09 2002 From: peter at brunone.com (Peter Brunone) Date: Wed, 28 Aug 2002 12:11:09 -0500 Subject: [Javascript] Menu4 from WebFX -- snafu with implementation Message-ID: <01bf01c24eb5$e7f16800$3995210a@pbrunonePC> Well, I found a great solution to my popup menu problem; the guys at WebFX have already built a complete solution ( see http://webfx.eae.net/dhtml/dhtmlmenu4/menu4.html ) . I've been experimenting with it, and I don't mind telling you it works pretty darn well. I now have a problem, though; my prototype menu looks fine, but when I put all the relevant code into one of the already-existing ASP.NET pages, the menu doesn't display! There were errors at first, but they've all been corrected; now I just get nothing when I try to render. The menu bar style's display property is set to inline-block; does anybody know if this might have anything to do with it? I can post the code, but it's kind of long, so I was wondering if anyone had any initial thoughts. There are lots of absolutely positioned DIV tags on the page, as well as some objects and an ActiveX control (Farpoint Spread). Any and all ideas are welcome. Cheers, Peter From hassan at webtuitive.com Wed Aug 28 12:39:33 2002 From: hassan at webtuitive.com (Hassan Schroeder) Date: Wed, 28 Aug 2002 10:39:33 -0700 Subject: [Javascript] Menu4 from WebFX -- snafu with implementation References: <01bf01c24eb5$e7f16800$3995210a@pbrunonePC> Message-ID: <3D6D0AD5.8010400@webtuitive.com> Peter Brunone wrote: > I now have a problem, though; my prototype menu looks fine, but when I > put all the relevant code into one of the already-existing ASP.NET pages, > the menu doesn't display! > The menu bar style's display property is set to inline-block; does > anybody know if this might have anything to do with it? There is no such CSS property as inline-block (inline and block are both valid on their own). All valid CSS2 properties are listed at: HTH! -- 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 Aug 28 13:47:33 2002 From: peter at brunone.com (Peter Brunone) Date: Wed, 28 Aug 2002 13:47:33 -0500 Subject: [Javascript] Menu4 from WebFX -- snafu with implementation References: <01bf01c24eb5$e7f16800$3995210a@pbrunonePC> <3D6D0AD5.8010400@webtuitive.com> Message-ID: <01d701c24ec3$5eda4fb0$3995210a@pbrunonePC> Ah, but this is Internet Explorer, home of the "standards and then some". The inline-block value does indeed exist for display in IE: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref erence/properties/display.asp Thanks for the thought, though; I'm going to play around with the style sheets some more. -Peter ----- Original Message ----- From: "Hassan Schroeder" | Peter Brunone wrote: | | > I now have a problem, though; my prototype menu looks fine, but when I | > put all the relevant code into one of the already-existing ASP.NET pages, | > the menu doesn't display! | | > The menu bar style's display property is set to inline-block; does | > anybody know if this might have anything to do with it? | | There is no such CSS property as inline-block (inline and block are | both valid on their own). All valid CSS2 properties are listed at: | | | | HTH! | -- | H* | Hassan Schroeder ----------------------------- hassan at webtuitive.com | Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com | From rdong at cait.org Wed Aug 28 15:08:12 2002 From: rdong at cait.org (Roland Dong) Date: Wed, 28 Aug 2002 15:08:12 -0500 Subject: [Javascript] Browser History In-Reply-To: <3206D8FDDF2F2541A7715A825228937701F247B8@hq2.pcmail.ingr.com> Message-ID: I have a jsp page displaying the data retrieved from database. When database records are updated. I want to click 'refresh' button to update the jsp page. Unfortunately, I get no pointer errors when I do that. This happens only on IE5. It works fine in Netscape and IE5.1. Is there a work around? Is it possible use javascript to redirect the users to another page when they click 'refresh' button? Or have refresh disabled? Thanks a lot! RD From rdong at cait.org Wed Aug 28 15:09:58 2002 From: rdong at cait.org (Roland Dong) Date: Wed, 28 Aug 2002 15:09:58 -0500 Subject: [Javascript] IE5 refresh problem Message-ID: I have a jsp page displaying the data retrieved from database. When database records are updated. I want to click 'refresh' button to update the jsp page. Unfortunately, I get no pointer errors when I do that. This happens only on IE5. It works fine in Netscape and IE5.1. Is there a work around? Is it possible use javascript to redirect the users to another page when they click 'refresh' button? Or have refresh disabled? Thanks a lot! RD From IsabelEstramil at hotmail.com Wed Aug 28 21:50:56 2002 From: IsabelEstramil at hotmail.com (Isabel Estramil Puga) Date: Thu, 29 Aug 2002 04:50:56 +0200 Subject: [Javascript] (no subject) Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcarubbi at libero.it Sat Aug 31 12:00:37 2002 From: pcarubbi at libero.it (Pietro Carubbi) Date: Sat, 31 Aug 2002 19:00:37 +0200 Subject: [Javascript] Linked text in layers onMouseOver Message-ID: <004101c2510f$eda1abf0$64fea8c0@PIETRO> Hallo, I have some images, that, onMouseOver, let appear texts within layers. I want these texts displayed in the layers contain images and links, but... I receive an 'unknown run-time error' from IE. The page is built so: 1) In the HEAD I have: 2) In the BODY I have this kind of tables where the layers are contained: 3) There are then the images, that, onMouseOver, have to display the descriptions (1) in the layers (2): How do I have to optimize this code? What is wrong in the HEAD's description strings??? Thank you in advance, Cheers, Pietro From john at jwarner.com Sat Aug 31 15:13:36 2002 From: john at jwarner.com (John) Date: Sat, 31 Aug 2002 16:13:36 -0400 Subject: [Javascript] Linked text in layers onMouseOver In-Reply-To: <004101c2510f$eda1abf0$64fea8c0@PIETRO> Message-ID: I am way not an expert on JavaScript or IE, but I thought IE did not support layers. I think to achieve the same effect you have to code two routines, one for IE and one for Netscape. John Warner address: mailto:john at jwarner.com > -----Original Message----- > From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On > Behalf Of Pietro Carubbi > Sent: Saturday, August 31, 2002 1:01 PM > To: javascript at latech.edu > Subject: [Javascript] Linked text in layers onMouseOver > > > Hallo, > > I have some images, that, onMouseOver, let appear texts within layers. > > I want these texts displayed in the layers contain images and > links, but... > I receive an 'unknown run-time error' from IE. > > The page is built so: > > 1) In the HEAD I have: > > > > 2) In the BODY I have this kind of tables where the layers are contained: > > > > 3) There are then the images, that, onMouseOver, have to display the > descriptions (1) in the layers (2): > > src="..."> > > > How do I have to optimize this code? What is wrong in the HEAD's > description > strings??? > > Thank you in advance,