From cutterbl at hotmail.com Wed May 1 05:35:40 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Wed, 01 May 2002 06:35:40 -0400 Subject: [Javascript] color of hyperlink Message-ID: You could create a function to change the image if a boolean variable is false, then set that variable to true once the image is changed. If the variable is true then it does nothing. Call the function from the onclick event of the link. Cutter http://www.falcon-knives.com ----Original Message Follows---- From: Andrew Dunn Reply-To: javascript at LaTech.edu To: "'javascript at LaTech.edu'" Subject: [Javascript] color of hyperlink Date: Wed, 1 May 2002 14:14:56 +1000 Hi, Is it possible to tell whether a hyperlink has been visited? I have a picture that I wish to change whether a hyperlink has been visited. Thanks. _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From rodney at aflyingstart.net Wed May 1 08:27:23 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Wed, 01 May 2002 14:27:23 +0100 Subject: [Javascript] color of hyperlink References: <1D0255E75622D51185DB00D0B7E3FF44057D1F@chimaera.d2k.com.au> Message-ID: <3CCFED3B.B924CE35@aflyingstart.net> I was intrigued by this question and wanted to investigate properties of a link to see if there was one that indicated visited status. I was surprised at how much came up and looked at many of the lower echelons of objects that shown in the listing generated. Did I find a visited attribute or anything similar? No sir! For the record I was using IE6.0 for my investigations. Rodney

myfile.htm


Andrew Dunn wrote: > Is it possible to tell whether a hyperlink has been visited? From andrew at d2k.com.au Wed May 1 21:06:41 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Thu, 2 May 2002 12:06:41 +1000 Subject: [Javascript] onchange Message-ID: <1D0255E75622D51185DB00D0B7E3FF44057D24@chimaera.d2k.com.au> Hi, Is there a javascript onchange or similar event when a text box value has changed? Thanks. From SnarfLT at aol.com Wed May 1 23:59:32 2002 From: SnarfLT at aol.com (SnarfLT at aol.com) Date: Thu, 2 May 2002 00:59:32 EDT Subject: [Javascript] onchange Message-ID: "onChange='...' Occurs when a visitor modifies a field and moves the input focus to a different control. This handler works with INPUT, SELECT, and TEXTAREA tags." (Mastering HTML 4 second edition, Sybex) -------------- next part -------------- An HTML attachment was scrubbed... URL: From victorpapp at yahoo.com Thu May 2 00:07:40 2002 From: victorpapp at yahoo.com (Victor Papp) Date: Thu, 2 May 2002 08:07:40 +0300 Subject: [Javascript] Offtopic: Subscribing/unsubscribing Message-ID: <004a01c1f197$4c9d56a0$760e05c3@vp> Does anybody know how to subscribe/unsubscribe to this list? My email address is changed from victorpapp at yahoo.com to victor at vpapp.com and I want to update the list server. TIA, Victor Papp -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodney at aflyingstart.net Thu May 2 04:10:39 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Thu, 02 May 2002 10:10:39 +0100 Subject: [Javascript] Retrieving cookies and redirecting to another page References: <200205021625.QAA03838@qpbd999.quickpages.net.au> Message-ID: <3CD1028F.A9BF0597@aflyingstart.net> var url=window.location.href; var urlSplit=url.split("/"); Assuming the URL is "http://www.yourdomain.com/12345678" then urlSplit is an Array with these element values: 0 http: 1 2 www.yourdomain.com 3 12345678 so you would use a setCookie function to save the value of urlSplit[3] Then redirect to the index page window.location="http://www.yourdomain.com/"; And in that page pick up the cookie writing this code in a function that is invoked by the onLoad event in var rfr = getCookie(cookiename); document.formName.referrer.value=rfr; You will need to test for the case where no cookie is set and adapt the code. setCookie / getCookie functions you can find in many books/websites. hth Rodney Phillip Morgan wrote: > Hi, > > I would like to grab part of a URL and write it to a cookie. Then go to > another page. > > Eg. the incoming url might be http://www.yourdomain.com/12345678 > > I want to grab the 12345678 and write that to a cookie, then I want to > redirect the client to the main index.html page (equivelant of > http://www.yourdomain.com). > > Or would the javascript to do this have to be on the index.html page, > and the call the new page be to (eg), index2.html? > > I then want to read the cookie back later on a web page with a form and > place the value (12345678), into a formfield called 'referrer' > > How would I do all this? There are no frames involved. > > -- > Phillip > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From greg at krieser.com Thu May 2 05:41:54 2002 From: greg at krieser.com (Greg Krieser) Date: Thu, 02 May 2002 05:41:54 -0500 Subject: [Javascript] Pop Under Message-ID: <200205021041.FAA27931@ppk.siteprotect.com> ? The following message was sent by "Phillip Morgan" on Thu, 2 May 2002 16:26:10 GMT. > How do I create a pop under? > > -- > Phill > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From cutterbl at hotmail.com Thu May 2 07:40:53 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 02 May 2002 08:40:53 -0400 Subject: [Javascript] onchange Message-ID: Yes, according to my O'Reilly reference. Cutter http://www.falcon-knives.com ----Original Message Follows---- From: Andrew Dunn Reply-To: javascript at LaTech.edu To: "'javascript at LaTech.edu'" Subject: [Javascript] onchange Date: Thu, 2 May 2002 12:06:41 +1000 Hi, Is there a javascript onchange or similar event when a text box value has changed? Thanks. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From cutterbl at hotmail.com Thu May 2 07:44:49 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 02 May 2002 08:44:49 -0400 Subject: [Javascript] Pop Under Message-ID: Phill, I wouldn't suggest it, they're annoying as hell. If you really want to do it there is a free utility you can download that can write the code for you. I found it at hotscripts.com, I think it's called the Ace Pop-Up Generator. Cutter http://www.falcon-knives.com ----Original Message Follows---- From: "Phillip Morgan" Reply-To: javascript at LaTech.edu To: javascript at LaTech.edu Subject: [Javascript] Pop Under Date: Thu, 2 May 2002 16:26:10 GMT How do I create a pop under? -- Phill _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From alan.easton at unn.ac.uk Thu May 2 09:10:44 2002 From: alan.easton at unn.ac.uk (Alan Easton) Date: Thu, 2 May 2002 15:10:44 +0100 Subject: [Javascript] formatting textarea Message-ID: <8CB72D8EAD84D411B3D600508BCF7B6C023C629E@colorado.unn.ac.uk> Hello People, I am wanting users to format text in a textarea clientside before submitting it, namely just bold, italics, underline, line and paragraph breaks. I don't want them to have to know any html tags to do this. Is there a way, using Javascript, they could just highlight the text in the textarea they wished formatting, and pressed the appropriate button which would insert the tags at the beginning and end of the highlighted text. Or is there a better alternative to accomplishing this than the way I am currently thinking. Any help would be appreciated. Many Thanks, Alan... -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3376 bytes Desc: not available URL: From peter at brunone.com Thu May 2 10:57:58 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 2 May 2002 10:57:58 -0500 Subject: [Javascript] RE: formatting textarea In-Reply-To: <8CB72D8EAD84D411B3D600508BCF7B6C023C629E@colorado.unn.ac.uk> Message-ID: Alan, If you want some hints and examples, I suggest looking at Yahoo! Mail and/or www.richtextbox.com . They aren't going to be cross-browser pretty, but then no formatting solution is. Cheers, Peter -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Alan Easton Sent: Thursday, May 02, 2002 9:11 AM To: 'Java-List' Subject: formatting textarea Hello People, I am wanting users to format text in a textarea clientside before submitting it, namely just bold, italics, underline, line and paragraph breaks. I don't want them to have to know any html tags to do this. Is there a way, using Javascript, they could just highlight the text in the textarea they wished formatting, and pressed the appropriate button which would insert the tags at the beginning and end of the highlighted text. Or is there a better alternative to accomplishing this than the way I am currently thinking. Any help would be appreciated. Many Thanks, Alan... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 1232 bytes Desc: not available URL: From alan.easton at unn.ac.uk Thu May 2 11:00:24 2002 From: alan.easton at unn.ac.uk (Alan Easton) Date: Thu, 2 May 2002 17:00:24 +0100 Subject: [Javascript] RE: formatting textarea Message-ID: <8CB72D8EAD84D411B3D600508BCF7B6C023C62A2@colorado.unn.ac.uk> Thanks Peter, I'll have a look. -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Thursday, May 02, 2002 4:58 PM To: javascript Subject: [Javascript] RE: formatting textarea Alan, If you want some hints and examples, I suggest looking at Yahoo! Mail and/or www.richtextbox.com . They aren't going to be cross-browser pretty, but then no formatting solution is. Cheers, Peter -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Alan Easton Sent: Thursday, May 02, 2002 9:11 AM To: 'Java-List' Subject: formatting textarea Hello People, I am wanting users to format text in a textarea clientside before submitting it, namely just bold, italics, underline, line and paragraph breaks. I don't want them to have to know any html tags to do this. Is there a way, using Javascript, they could just highlight the text in the textarea they wished formatting, and pressed the appropriate button which would insert the tags at the beginning and end of the highlighted text. Or is there a better alternative to accomplishing this than the way I am currently thinking. Any help would be appreciated. Many Thanks, Alan... -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmorgan at qpbd999.quickpages.net.au Thu May 2 11:25:33 2002 From: pmorgan at qpbd999.quickpages.net.au (Phillip Morgan) Date: Thu, 2 May 2002 16:25:33 GMT Subject: [Javascript] Retrieving cookies and redirecting to another page Message-ID: <200205021625.QAA03838@qpbd999.quickpages.net.au> Hi, I would like to grab part of a URL and write it to a cookie. Then go to another page. Eg. the incoming url might be http://www.yourdomain.com/12345678 I want to grab the 12345678 and write that to a cookie, then I want to redirect the client to the main index.html page (equivelant of http://www.yourdomain.com). Or would the javascript to do this have to be on the index.html page, and the call the new page be to (eg), index2.html? I then want to read the cookie back later on a web page with a form and place the value (12345678), into a formfield called 'referrer' How would I do all this? There are no frames involved. -- Phillip From pmorgan at qpbd999.quickpages.net.au Thu May 2 11:26:10 2002 From: pmorgan at qpbd999.quickpages.net.au (Phillip Morgan) Date: Thu, 2 May 2002 16:26:10 GMT Subject: [Javascript] Pop Under Message-ID: <200205021626.QAA03847@qpbd999.quickpages.net.au> How do I create a pop under? -- Phill From PJACOBY at PARTNERS.ORG Thu May 2 12:05:48 2002 From: PJACOBY at PARTNERS.ORG (Jacoby, Peter R.) Date: Thu, 2 May 2002 13:05:48 -0400 Subject: [Javascript] RE: formatting textarea Message-ID: <098FF7AF9BBDD511B09500508BE393C5BE9591@phsexch23.mgh.harvard.edu> Alan, Here's a page that I put together for a similar project. It allows the user to either press the "B" button and enter the text they want to be bold, or highlight their text and then press the button and it puts the HTML tags around it (i.e. their text). The "Preview" button displays their input as HTML and attempts to validate their text as XHTML if they have the MSXML DLL installed. One of the things that I don't like about my solution (and the one that RichTextBox.com uses) is it uses the old and formatting tags instead of the CSS style tags. It would be much better written if it could use those tags (i.e. ...), but that makes it much less clear to a novice user, and probably a little harder to implement. This code is highly IE specific (I am using IE 5.5) and I have not even looked into making it portable, but it seems to work well for IE. Feel free to use the code if you want, and let me know if you have any questions about it. http://www.redsoxnews.com/extra/textbox.html -Peter > -----Original Message----- > From: Alan Easton [SMTP:alan.easton at unn.ac.uk] > Sent: Thursday, May 02, 2002 10:11 AM > To: 'Java-List' > Subject: formatting textarea > > Hello People, > > I am wanting users to format text in a textarea clientside before > submitting it, namely just bold, italics, underline, line and paragraph > breaks. I don't want them to have to know any html tags to do this. > > Is there a way, using Javascript, they could just highlight the text in > the textarea they wished formatting, and pressed the appropriate button > which would insert the tags at the beginning and end of the highlighted > text. > > Or is there a better alternative to accomplishing this than the way I am > currently thinking. > > Any help would be appreciated. > > Many Thanks, > > Alan... From merchant at LATECH.EDU Thu May 2 12:33:56 2002 From: merchant at LATECH.EDU (David Merchant) Date: Thu, 02 May 2002 12:33:56 -0500 Subject: [Javascript] JavaScript List Unsubscirbe, Subscribe & Posting Info. Message-ID: <5.1.0.14.2.20020502123340.02761880@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 andrew at d2k.com.au Thu May 2 18:32:25 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Fri, 3 May 2002 09:32:25 +1000 Subject: [Javascript] "Object Expected" Error Message-ID: <1D0255E75622D51185DB00D0B7E3FF44057D27@chimaera.d2k.com.au> I normally get this error when the function you have calling does not exist or you have misspelled the function. Your robot line may require that the () tags be up against the function call like: 'robot()' not 'robot ()' -----Original Message----- From: SoitPP at aol.com [mailto:SoitPP at aol.com] Sent: Friday, 3 May 2002 9:36 AM To: javascript at LaTech.edu Subject: [Javascript] "Object Expected" Error Dear JavaScript list, I am getting an "Object Expected" Error when trying to call a certain function in a program. I don't quite understand what is causing this error. The program flow seems simple enough. What am I missing? Here is a duplication of the error in a cut down version: Function Testing
Very simple right? So how come I get "Objected Expected" at line 17? Patiently, Aaron _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From SoitPP at aol.com Thu May 2 18:35:46 2002 From: SoitPP at aol.com (SoitPP at aol.com) Date: Thu, 2 May 2002 19:35:46 EDT Subject: [Javascript] "Object Expected" Error Message-ID: <9c.1f590f7b.2a032752@aol.com> Dear JavaScript list, I am getting an "Object Expected" Error when trying to call a certain function in a program. I don't quite understand what is causing this error. The program flow seems simple enough. What am I missing? Here is a duplication of the error in a cut down version: Function Testing
Very simple right? So how come I get "Objected Expected" at line 17? Patiently, Aaron From extstarrfam at cox-internet.com Thu May 2 20:18:59 2002 From: extstarrfam at cox-internet.com (Steve) Date: Thu, 2 May 2002 20:18:59 -0500 Subject: [Javascript] formName? Message-ID: <000701c1f240$816fc8a0$242be942@coxinternet.com> I am using IE 5.5 version 4. I am having a hard time working my way down throught the form objects. To discover the reason why, I have tried to get the form name. I have used the formName property and some other useless code to get what the browser thinks the name of the form is. Here is the form tag information (
). Here is some of what I have tried: var Pname = window.parent.name; //worked var Wname = window.name; // worked var Fname = window.document.formName; and var Fname = window.form (with and without .name); and var Fname = window.document.forms[0]; I am try to work my way down the objects path one object at a time. Does any one have an idea? From tutwabee at hotmail.com Thu May 2 20:30:22 2002 From: tutwabee at hotmail.com (Trey H) Date: Fri, 03 May 2002 01:30:22 +0000 Subject: [Javascript] formName? Message-ID: Steve, You can use window.document.forms[0].name to find the name of your form. Also, make sure your javascript code that uses this is written to the document AFTER the form itself. I make that mistake very often with javascript and forms because I usually put the javascript in the head command. ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: "Steve" >Reply-To: javascript at LaTech.edu >To: >Subject: [Javascript] formName? >Date: Thu, 2 May 2002 20:18:59 -0500 > >I am using IE 5.5 version 4. I am having a hard time >working my way down throught the form objects. To >discover the reason why, I have tried to get the form >name. I have used the formName property and some other >useless code to get what the browser thinks the name of >the form is. Here is the form tag information (id="choices" name="choices">). Here is some of what I >have tried: > >var Pname = window.parent.name; //worked >var Wname = window.name; // worked >var Fname = window.document.formName; and var Fname = >window.form (with and without .name); and var Fname = >window.document.forms[0]; > >I am try to work my way down the objects path one >object at a time. Does any one have an idea? > > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From mallard at serv.net Thu May 2 20:35:55 2002 From: mallard at serv.net (TomMallard) Date: Thu, 2 May 2002 18:35:55 -0700 Subject: [Javascript] formName? In-Reply-To: <000701c1f240$816fc8a0$242be942@coxinternet.com> Message-ID: Elements collection is what you want, I think... for(i=0;i). Here is some of what I have tried: var Pname = window.parent.name; //worked var Wname = window.name; // worked var Fname = window.document.formName; and var Fname = window.form (with and without .name); and var Fname = window.document.forms[0]; I am try to work my way down the objects path one object at a time. Does any one have an idea? _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From andyg at ihug.co.nz Thu May 2 21:33:56 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Fri, 3 May 2002 14:33:56 +1200 Subject: [Javascript] formName? References: <000701c1f240$816fc8a0$242be942@coxinternet.com> Message-ID: <001501c1f24a$fa22f060$36f7adcb@k1n8i8> How about: var f=document.forms['choices'] or var f=document.getElementById['choices'] > I am using IE 5.5 version 4. I am having a hard time > working my way down throught the form objects. To > discover the reason why, I have tried to get the form > name. I have used the formName property and some other > useless code to get what the browser thinks the name of > the form is. Here is the form tag information ( id="choices" name="choices">). Here is some of what I > have tried: > > var Pname = window.parent.name; //worked > var Wname = window.name; // worked > var Fname = window.document.formName; and var Fname = > window.form (with and without .name); and var Fname = > window.document.forms[0]; > From alan.easton at unn.ac.uk Fri May 3 02:27:58 2002 From: alan.easton at unn.ac.uk (Alan Easton) Date: Fri, 3 May 2002 08:27:58 +0100 Subject: [Javascript] RE: formatting textarea Message-ID: <8CB72D8EAD84D411B3D600508BCF7B6C023C62A4@colorado.unn.ac.uk> Thanks Peter, I'll have a good look at it. -----Original Message----- From: Jacoby, Peter R. [mailto:PJACOBY at PARTNERS.ORG] Sent: Thursday, May 02, 2002 6:06 PM To: 'javascript at LaTech.edu' Subject: [Javascript] RE: formatting textarea Alan, Here's a page that I put together for a similar project. It allows the user to either press the "B" button and enter the text they want to be bold, or highlight their text and then press the button and it puts the HTML tags around it (i.e. their text). The "Preview" button displays their input as HTML and attempts to validate their text as XHTML if they have the MSXML DLL installed. One of the things that I don't like about my solution (and the one that RichTextBox.com uses) is it uses the old and formatting tags instead of the CSS style tags. It would be much better written if it could use those tags (i.e. ...), but that makes it much less clear to a novice user, and probably a little harder to implement. This code is highly IE specific (I am using IE 5.5) and I have not even looked into making it portable, but it seems to work well for IE. Feel free to use the code if you want, and let me know if you have any questions about it. http://www.redsoxnews.com/extra/textbox.html -Peter > -----Original Message----- > From: Alan Easton [SMTP:alan.easton at unn.ac.uk] > Sent: Thursday, May 02, 2002 10:11 AM > To: 'Java-List' > Subject: formatting textarea > > Hello People, > > I am wanting users to format text in a textarea clientside before > submitting it, namely just bold, italics, underline, line and paragraph > breaks. I don't want them to have to know any html tags to do this. > > Is there a way, using Javascript, they could just highlight the text in > the textarea they wished formatting, and pressed the appropriate button > which would insert the tags at the beginning and end of the highlighted > text. > > Or is there a better alternative to accomplishing this than the way I am > currently thinking. > > Any help would be appreciated. > > Many Thanks, > > Alan... _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From rodney at aflyingstart.net Fri May 3 03:06:47 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Fri, 03 May 2002 09:06:47 +0100 Subject: [Javascript] "Object Expected" Error References: <9c.1f590f7b.2a032752@aol.com> Message-ID: <3CD24517.7DF41E03@aflyingstart.net> Try if (string.indexOf("-1) Your current expression string.indexOf(" Dear JavaScript list, > I am getting an "Object Expected" Error when trying to > call a certain function in a program. I don't quite understand > what is causing this error. The program flow seems simple enough. > What am I missing? > Here is a duplication of the error in a cut down version: > > > > Function Testing > > > > > > > > > > Very simple right? So how come I get "Objected Expected" at line 17? > Patiently, > Aaron > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From SoitPP at aol.com Fri May 3 08:03:36 2002 From: SoitPP at aol.com (SoitPP at aol.com) Date: Fri, 3 May 2002 09:03:36 EDT Subject: [Javascript] Syntax Error Message-ID: <104.15052f1c.2a03e4a8@aol.com> and why does this come out to a syntax error at char 1, line 13. You aren't allowed to assign eval()'s to variables directly? Btw, that last one was supposed to be char 17, line 7, the following produces syntax error char 1, line 13 Function Testing
From rodney at aflyingstart.net Fri May 3 08:49:04 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Fri, 03 May 2002 14:49:04 +0100 Subject: [Javascript] Syntax Error References: <104.15052f1c.2a03e4a8@aol.com> Message-ID: <3CD29550.57E7462E@aflyingstart.net> preSTRvariable = eval(document.body.innerHTML) This use of eval is ill advised since the innerHTML is never likely to evaluate to any object definition or variable from which eval can extract a value, and if it did it would be meaningless. I notice you have not yet amended the indexOf line. Rodney SoitPP at aol.com wrote: > and why does this come out to a syntax error at char 1, line 13. > You aren't allowed to assign eval()'s to variables directly? > Btw, that last one was supposed to be char 17, line 7, > > the following produces syntax error char 1, line 13 > > > > Function Testing > > > >
> >
> > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From mpearce at digitas.com Fri May 3 11:43:44 2002 From: mpearce at digitas.com (Matthew Pearce) Date: Fri, 3 May 2002 17:43:44 +0100 Subject: [Javascript] posting multi-record forms Message-ID: <7F8085BE0784364084B15C45C1F92B0A047C03@EXLON1.digitas.com> Using http post, I want to handle a form with multiple records. The client requests a page from the server with contains the following information id title flag1 flag2 id title flag1 flag2 id title flag1 flag2 .. etc .. The title is visible in the page as text and the flags are shown as checkboxes (either checked or unchecked). The id does not need to be visible, however it represents a database id, and needs to be sent back to the server. The ids are not sequential. Each record represents a different news article. I want to do something ever so simple which is to allow the flag elements to be changed on the client end, and then the form will be posted to the server. I would like to do the minimum of processing on the server side when this posted data is received. Therefore if 200 articles are sent to the client, but only one flag is changed, I don't want to send 200.x strings back to the server, I just want to send: i) one id and ii) identify which flag has changed and iii) what value it has changed to. The only workable solution I can think of is to use posted data like: id20_flag1=true&id20_flag2=false and then, on the server side, scan the strings in the entity body with an indexOf style statement. Does anybody have any suggestion of how, using javascript on the client side, I can send "just enough and no more" information back to the server. Is there an established pattern for this. Matt Pearce From extstarrfam at cox-internet.com Fri May 3 12:21:58 2002 From: extstarrfam at cox-internet.com (Steve) Date: Fri, 3 May 2002 12:21:58 -0500 Subject: [Javascript] Object Expected Message-ID: <000901c1f2c7$0819b240$242be942@coxinternet.com> I am curious about the correctness of the code entries using textarea, (". Should it read ("",string.length)) return string } return string } function robot() { preSTRvariable = document.body.innerHTML preSTRvariable = removeValue(preSTRvariable) }
From Bludshogun at aol.com Fri May 3 19:23:57 2002 From: Bludshogun at aol.com (Bludshogun at aol.com) Date: Fri, 3 May 2002 20:23:57 EDT Subject: [Javascript] Re: "Object Expected" Error Message-ID: --- In javascript at y..., Rodney Myers wrote: > preSTRvariable = eval(document.body.innerHTML) > This use of eval is ill advised since the innerHTML is never likely to > evaluate to any object definition or variable from which eval can extract a > value, and if it did it would be meaningless. yep, I was pretty stoned on that one. But I noticed that preSTRvariable = eval("document.body.innerHTML") successfully loads the innerHTML. But I can still not find a solution to my object expected error. I do not understand why it is looking for an object at the call of string . Peace, Aaron From Bludshogun at aol.com Fri May 3 19:33:36 2002 From: Bludshogun at aol.com (Bludshogun at aol.com) Date: Fri, 3 May 2002 20:33:36 EDT Subject: [Javascript] Re: Object Expected Message-ID: <149.df89584.2a048660@aol.com> > I am curious about the correctness of the code entries > using textarea, (" missing >. Should it read ("",string.length)) produces object expected because indexOf requires a string object. indexOf is a string method. I forgot to include the string. part of string.indexOf(. . .) Thanks for your attention. peace, Aaron From louisjin at yahoo.com Sun May 5 16:40:46 2002 From: louisjin at yahoo.com (Louis L. Jin) Date: Sun, 5 May 2002 14:40:46 -0700 (PDT) Subject: [Javascript] javascript focus method In-Reply-To: <1020591721.996.7833.m12@yahoogroups.com> Message-ID: <20020505214046.55430.qmail@web14002.mail.yahoo.com> Why am I getting an run-time object required error when using javascript focus method, I have all the form names and first form field names all defined under body onload section. __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From walter at torres.ws Sun May 5 16:57:05 2002 From: walter at torres.ws (Walter Torres) Date: Sun, 5 May 2002 16:57:05 -0500 Subject: [Javascript] Table Cell Q in NN4 Message-ID: <003001c1f47f$cc3b0b10$2a65a8c0@ELOY01499A> Anyone have any idea on how I can know that a table cell (in NN4) was clicked and which cell it was? Thanks Walter From tutwabee at hotmail.com Sun May 5 17:20:37 2002 From: tutwabee at hotmail.com (Trey H) Date: Sun, 05 May 2002 22:20:37 +0000 Subject: [Javascript] Table Cell Q in NN4 Message-ID: You could put this command in each cell: Replace the 1 with a different number for every cell. The clickCheck function would look similar to this: function clickCheck(x) { if(x==1) alert("cell 1 was clicked!") if(x==2) alert("cell 2 was clicked") } I am not sure what you are making this for, so I just used alerts as an example for the function :) ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: "Walter Torres" >Reply-To: javascript at LaTech.edu >To: >Subject: [Javascript] Table Cell Q in NN4 >Date: Sun, 5 May 2002 16:57:05 -0500 > >Anyone have any idea on how I can know that a table cell (in NN4) was >clicked and which cell it was? > >Thanks > >Walter > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From walter at torres.ws Sun May 5 18:11:08 2002 From: walter at torres.ws (Walter Torres) Date: Sun, 5 May 2002 18:11:08 -0500 Subject: [Javascript] Table Cell Q in NN4 In-Reply-To: Message-ID: <003801c1f48a$24811cb0$2a65a8c0@ELOY01499A> Thanks, but this does not work in NN4. I'm looking for an NN4 solution. Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Trey H > Sent: Sunday, May 05, 2002 5:21 PM > To: javascript at LaTech.edu > Subject: Re: [Javascript] Table Cell Q in NN4 > > > You could put this command in each cell: > > Replace the 1 with a different number for every cell. > The clickCheck function would look similar to this: > function clickCheck(x) { > if(x==1) > alert("cell 1 was clicked!") > if(x==2) > alert("cell 2 was clicked") > } > > I am not sure what you are making this for, so I just used > alerts as an > example for the function :) > > ==================================== > Trey: tutwabee at hotmail.com > Get free JavaScripts at the Blue Dragon! > Just go to: > http://www.websiter.biz > ==================================== > Make money by being online: > http://www.degoo.com/index.php?refid=tutwabee > =================================== > Earn free traffic for your website easily: > http://tools.addme.com/servlet/popview?id=52260 > ==================================== > > > >From: "Walter Torres" > >Reply-To: javascript at LaTech.edu > >To: > >Subject: [Javascript] Table Cell Q in NN4 > >Date: Sun, 5 May 2002 16:57:05 -0500 > > > >Anyone have any idea on how I can know that a table cell (in NN4) was > >clicked and which cell it was? > > > >Thanks > > > >Walter > > > >_______________________________________________ > >Javascript mailing list > >Javascript at LaTech.edu > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From mallard at serv.net Sun May 5 18:29:01 2002 From: mallard at serv.net (TomMallard) Date: Sun, 5 May 2002 16:29:01 -0700 Subject: [Javascript] Table Cell Q in NN4 In-Reply-To: <003801c1f48a$24811cb0$2a65a8c0@ELOY01499A> Message-ID: cell 1 contents. tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Walter Torres Sent: Sunday, May 05, 2002 4:11 PM To: javascript at LaTech.edu Subject: RE: [Javascript] Table Cell Q in NN4 Thanks, but this does not work in NN4. I'm looking for an NN4 solution. Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Trey H > Sent: Sunday, May 05, 2002 5:21 PM > To: javascript at LaTech.edu > Subject: Re: [Javascript] Table Cell Q in NN4 > > > You could put this command in each cell: > > Replace the 1 with a different number for every cell. > The clickCheck function would look similar to this: > function clickCheck(x) { > if(x==1) > alert("cell 1 was clicked!") > if(x==2) > alert("cell 2 was clicked") > } > > I am not sure what you are making this for, so I just used > alerts as an > example for the function :) > > ==================================== > Trey: tutwabee at hotmail.com > Get free JavaScripts at the Blue Dragon! > Just go to: > http://www.websiter.biz > ==================================== > Make money by being online: > http://www.degoo.com/index.php?refid=tutwabee > =================================== > Earn free traffic for your website easily: > http://tools.addme.com/servlet/popview?id=52260 > ==================================== > > > >From: "Walter Torres" > >Reply-To: javascript at LaTech.edu > >To: > >Subject: [Javascript] Table Cell Q in NN4 > >Date: Sun, 5 May 2002 16:57:05 -0500 > > > >Anyone have any idea on how I can know that a table cell (in NN4) was > >clicked and which cell it was? > > > >Thanks > > > >Walter > > > >_______________________________________________ > >Javascript mailing list > >Javascript at LaTech.edu > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > _______________________________________________ > 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 walter at torres.ws Sun May 5 18:55:37 2002 From: walter at torres.ws (Walter Torres) Date: Sun, 5 May 2002 18:55:37 -0500 Subject: [Javascript] Table Cell Q in NN4 In-Reply-To: Message-ID: <003c01c1f490$5b1f2400$2a65a8c0@ELOY01499A> Yea, I was afraid you were going to say that! :( I was hoping I was missing something obvious. Thanks Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of TomMallard > Sent: Sunday, May 05, 2002 6:29 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > cell 1 contents. > > tom mallard > seattle > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Walter Torres > Sent: Sunday, May 05, 2002 4:11 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > Thanks, but this does not work in NN4. > > I'm looking for an NN4 solution. > > Walter > > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of Trey H > > Sent: Sunday, May 05, 2002 5:21 PM > > To: javascript at LaTech.edu > > Subject: Re: [Javascript] Table Cell Q in NN4 > > > > > > You could put this command in each cell: > > > > Replace the 1 with a different number for every cell. > > The clickCheck function would look similar to this: > > function clickCheck(x) { > > if(x==1) > > alert("cell 1 was clicked!") > > if(x==2) > > alert("cell 2 was clicked") > > } > > > > I am not sure what you are making this for, so I just used > > alerts as an > > example for the function :) > > > > ==================================== > > Trey: tutwabee at hotmail.com > > Get free JavaScripts at the Blue Dragon! > > Just go to: > > http://www.websiter.biz > > ==================================== > > Make money by being online: > > http://www.degoo.com/index.php?refid=tutwabee > > =================================== > > Earn free traffic for your website easily: > > http://tools.addme.com/servlet/popview?id=52260 > > ==================================== > > > > > > >From: "Walter Torres" > > >Reply-To: javascript at LaTech.edu > > >To: > > >Subject: [Javascript] Table Cell Q in NN4 > > >Date: Sun, 5 May 2002 16:57:05 -0500 > > > > > >Anyone have any idea on how I can know that a table cell > (in NN4) was > > >clicked and which cell it was? > > > > > >Thanks > > > > > >Walter > > > > > >_______________________________________________ > > >Javascript mailing list > > >Javascript at LaTech.edu > > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > > > > > > > > _________________________________________________________________ > > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > _______________________________________________ > 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 mallard at serv.net Sun May 5 19:15:35 2002 From: mallard at serv.net (TomMallard) Date: Sun, 5 May 2002 17:15:35 -0700 Subject: [Javascript] Table Cell Q in NN4 In-Reply-To: <003c01c1f490$5b1f2400$2a65a8c0@ELOY01499A> Message-ID: Well, there are other ways, but why complicate things for an unsupported version? tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Walter Torres Sent: Sunday, May 05, 2002 4:56 PM To: javascript at LaTech.edu Subject: RE: [Javascript] Table Cell Q in NN4 Yea, I was afraid you were going to say that! :( I was hoping I was missing something obvious. Thanks Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of TomMallard > Sent: Sunday, May 05, 2002 6:29 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > cell 1 contents. > > tom mallard > seattle > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Walter Torres > Sent: Sunday, May 05, 2002 4:11 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > Thanks, but this does not work in NN4. > > I'm looking for an NN4 solution. > > Walter > > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of Trey H > > Sent: Sunday, May 05, 2002 5:21 PM > > To: javascript at LaTech.edu > > Subject: Re: [Javascript] Table Cell Q in NN4 > > > > > > You could put this command in each cell: > > > > Replace the 1 with a different number for every cell. > > The clickCheck function would look similar to this: > > function clickCheck(x) { > > if(x==1) > > alert("cell 1 was clicked!") > > if(x==2) > > alert("cell 2 was clicked") > > } > > > > I am not sure what you are making this for, so I just used > > alerts as an > > example for the function :) > > > > ==================================== > > Trey: tutwabee at hotmail.com > > Get free JavaScripts at the Blue Dragon! > > Just go to: > > http://www.websiter.biz > > ==================================== > > Make money by being online: > > http://www.degoo.com/index.php?refid=tutwabee > > =================================== > > Earn free traffic for your website easily: > > http://tools.addme.com/servlet/popview?id=52260 > > ==================================== > > > > > > >From: "Walter Torres" > > >Reply-To: javascript at LaTech.edu > > >To: > > >Subject: [Javascript] Table Cell Q in NN4 > > >Date: Sun, 5 May 2002 16:57:05 -0500 > > > > > >Anyone have any idea on how I can know that a table cell > (in NN4) was > > >clicked and which cell it was? > > > > > >Thanks > > > > > >Walter > > > > > >_______________________________________________ > > >Javascript mailing list > > >Javascript at LaTech.edu > > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > > > > > > > > _________________________________________________________________ > > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > _______________________________________________ > 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 walter at torres.ws Sun May 5 19:33:18 2002 From: walter at torres.ws (Walter Torres) Date: Sun, 5 May 2002 19:33:18 -0500 Subject: [Javascript] Table Cell Q in NN4 In-Reply-To: Message-ID: <004401c1f495$9ebe2350$2a65a8c0@ELOY01499A> Because the clients server logs tell us that they are getting 48% NN4.x hits. So we have to support it. Can you elaborate on "other ways"? Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of TomMallard > Sent: Sunday, May 05, 2002 7:16 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > Well, there are other ways, but why complicate things for an > unsupported > version? > > tom > > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Walter Torres > Sent: Sunday, May 05, 2002 4:56 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > Yea, I was afraid you were going to say that! :( > > I was hoping I was missing something obvious. > > Thanks > > Walter > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of TomMallard > > Sent: Sunday, May 05, 2002 6:29 PM > > To: javascript at LaTech.edu > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > cell 1 contents. > > > > tom mallard > > seattle > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of Walter Torres > > Sent: Sunday, May 05, 2002 4:11 PM > > To: javascript at LaTech.edu > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > Thanks, but this does not work in NN4. > > > > I'm looking for an NN4 solution. > > > > Walter > > > > > > > -----Original Message----- > > > From: javascript-admin at LaTech.edu > > > [mailto:javascript-admin at LaTech.edu]On > > > Behalf Of Trey H > > > Sent: Sunday, May 05, 2002 5:21 PM > > > To: javascript at LaTech.edu > > > Subject: Re: [Javascript] Table Cell Q in NN4 > > > > > > > > > You could put this command in each cell: > > > > > > Replace the 1 with a different number for every cell. > > > The clickCheck function would look similar to this: > > > function clickCheck(x) { > > > if(x==1) > > > alert("cell 1 was clicked!") > > > if(x==2) > > > alert("cell 2 was clicked") > > > } > > > > > > I am not sure what you are making this for, so I just used > > > alerts as an > > > example for the function :) > > > > > > ==================================== > > > Trey: tutwabee at hotmail.com > > > Get free JavaScripts at the Blue Dragon! > > > Just go to: > > > http://www.websiter.biz > > > ==================================== > > > Make money by being online: > > > http://www.degoo.com/index.php?refid=tutwabee > > > =================================== > > > Earn free traffic for your website easily: > > > http://tools.addme.com/servlet/popview?id=52260 > > > ==================================== > > > > > > > > > >From: "Walter Torres" > > > >Reply-To: javascript at LaTech.edu > > > >To: > > > >Subject: [Javascript] Table Cell Q in NN4 > > > >Date: Sun, 5 May 2002 16:57:05 -0500 > > > > > > > >Anyone have any idea on how I can know that a table cell > > (in NN4) was > > > >clicked and which cell it was? > > > > > > > >Thanks > > > > > > > >Walter > > > > > > > >_______________________________________________ > > > >Javascript mailing list > > > >Javascript at LaTech.edu > > > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________ > > > Send and receive Hotmail on your mobile device: > http://mobile.msn.com > > > > _______________________________________________ > > 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 > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From mallard at serv.net Sun May 5 20:24:28 2002 From: mallard at serv.net (TomMallard) Date: Sun, 5 May 2002 18:24:28 -0700 Subject: [Javascript] Table Cell Q in NN4 In-Reply-To: <004401c1f495$9ebe2350$2a65a8c0@ELOY01499A> Message-ID: ...could be using onKeyPress, onKeyUp if you don't like anchor tags...I'd avoid form elements, NN4 is a mess for those inside of tables. tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Walter Torres Sent: Sunday, May 05, 2002 5:33 PM To: javascript at LaTech.edu Subject: RE: [Javascript] Table Cell Q in NN4 Because the clients server logs tell us that they are getting 48% NN4.x hits. So we have to support it. Can you elaborate on "other ways"? Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of TomMallard > Sent: Sunday, May 05, 2002 7:16 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > Well, there are other ways, but why complicate things for an > unsupported > version? > > tom > > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Walter Torres > Sent: Sunday, May 05, 2002 4:56 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > Yea, I was afraid you were going to say that! :( > > I was hoping I was missing something obvious. > > Thanks > > Walter > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of TomMallard > > Sent: Sunday, May 05, 2002 6:29 PM > > To: javascript at LaTech.edu > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > cell 1 contents. > > > > tom mallard > > seattle > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of Walter Torres > > Sent: Sunday, May 05, 2002 4:11 PM > > To: javascript at LaTech.edu > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > Thanks, but this does not work in NN4. > > > > I'm looking for an NN4 solution. > > > > Walter > > > > > > > -----Original Message----- > > > From: javascript-admin at LaTech.edu > > > [mailto:javascript-admin at LaTech.edu]On > > > Behalf Of Trey H > > > Sent: Sunday, May 05, 2002 5:21 PM > > > To: javascript at LaTech.edu > > > Subject: Re: [Javascript] Table Cell Q in NN4 > > > > > > > > > You could put this command in each cell: > > > > > > Replace the 1 with a different number for every cell. > > > The clickCheck function would look similar to this: > > > function clickCheck(x) { > > > if(x==1) > > > alert("cell 1 was clicked!") > > > if(x==2) > > > alert("cell 2 was clicked") > > > } > > > > > > I am not sure what you are making this for, so I just used > > > alerts as an > > > example for the function :) > > > > > > ==================================== > > > Trey: tutwabee at hotmail.com > > > Get free JavaScripts at the Blue Dragon! > > > Just go to: > > > http://www.websiter.biz > > > ==================================== > > > Make money by being online: > > > http://www.degoo.com/index.php?refid=tutwabee > > > =================================== > > > Earn free traffic for your website easily: > > > http://tools.addme.com/servlet/popview?id=52260 > > > ==================================== > > > > > > > > > >From: "Walter Torres" > > > >Reply-To: javascript at LaTech.edu > > > >To: > > > >Subject: [Javascript] Table Cell Q in NN4 > > > >Date: Sun, 5 May 2002 16:57:05 -0500 > > > > > > > >Anyone have any idea on how I can know that a table cell > > (in NN4) was > > > >clicked and which cell it was? > > > > > > > >Thanks > > > > > > > >Walter > > > > > > > >_______________________________________________ > > > >Javascript mailing list > > > >Javascript at LaTech.edu > > > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________ > > > Send and receive Hotmail on your mobile device: > http://mobile.msn.com > > > > _______________________________________________ > > 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 > > _______________________________________________ > 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 walter at torres.ws Mon May 6 11:19:22 2002 From: walter at torres.ws (Walter Torres) Date: Mon, 6 May 2002 11:19:22 -0500 Subject: [Javascript] Table Cell Q in NN4 In-Reply-To: Message-ID: <002301c1f519$c8c648b0$2a65a8c0@ELOY01499A> This in not a FORM. I am not using FOrm Objects in this context. All I'm trying to do is make a dynamiclly generated TAB-like nav bar. - I create a single row table - Place a 12 x 6 pixel image (it looks ike a corner cut out of a rectangle - Text is placed in the same cell as image (one cell per img/text) - Then I fill the background with a color. Since the image is mostly transparent it look slike the corner cut out of the tab with text on top of the color. The STYLES have a padding-right of 4 pixles, this makes TAB look proper proportions regardless of the length of Text in the Cell. Out TAB nav row changes from time to time and I really didn't want to create images for all Titles. The only way I could get this to work was to make the text LINKS. It works, but not really like I would like. But, beggers can't be choosers. Thanks for your advise. Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of TomMallard > Sent: Sunday, May 05, 2002 8:24 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > ...could be using onKeyPress, onKeyUp if you don't like anchor > tags...I'd avoid form elements, NN4 is a mess for those > inside of tables. > > tom > > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Walter Torres > Sent: Sunday, May 05, 2002 5:33 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > Because the clients server logs tell us that they are getting > 48% NN4.x > hits. > > So we have to support it. > > Can you elaborate on "other ways"? > > Walter > > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of TomMallard > > Sent: Sunday, May 05, 2002 7:16 PM > > To: javascript at LaTech.edu > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > Well, there are other ways, but why complicate things for an > > unsupported > > version? > > > > tom > > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of Walter Torres > > Sent: Sunday, May 05, 2002 4:56 PM > > To: javascript at LaTech.edu > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > Yea, I was afraid you were going to say that! :( > > > > I was hoping I was missing something obvious. > > > > Thanks > > > > Walter > > > > > -----Original Message----- > > > From: javascript-admin at LaTech.edu > > > [mailto:javascript-admin at LaTech.edu]On > > > Behalf Of TomMallard > > > Sent: Sunday, May 05, 2002 6:29 PM > > > To: javascript at LaTech.edu > > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > > > > cell 1 contents. > > > > > > tom mallard > > > seattle > > > -----Original Message----- > > > From: javascript-admin at LaTech.edu > > > [mailto:javascript-admin at LaTech.edu]On > > > Behalf Of Walter Torres > > > Sent: Sunday, May 05, 2002 4:11 PM > > > To: javascript at LaTech.edu > > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > > > > Thanks, but this does not work in NN4. > > > > > > I'm looking for an NN4 solution. > > > > > > Walter > > > > > > > > > > -----Original Message----- > > > > From: javascript-admin at LaTech.edu > > > > [mailto:javascript-admin at LaTech.edu]On > > > > Behalf Of Trey H > > > > Sent: Sunday, May 05, 2002 5:21 PM > > > > To: javascript at LaTech.edu > > > > Subject: Re: [Javascript] Table Cell Q in NN4 > > > > > > > > > > > > You could put this command in each cell: > > > > > > > > Replace the 1 with a different number for every cell. > > > > The clickCheck function would look similar to this: > > > > function clickCheck(x) { > > > > if(x==1) > > > > alert("cell 1 was clicked!") > > > > if(x==2) > > > > alert("cell 2 was clicked") > > > > } > > > > > > > > I am not sure what you are making this for, so I just used > > > > alerts as an > > > > example for the function :) > > > > > > > > ==================================== > > > > Trey: tutwabee at hotmail.com > > > > Get free JavaScripts at the Blue Dragon! > > > > Just go to: > > > > http://www.websiter.biz > > > > ==================================== > > > > Make money by being online: > > > > http://www.degoo.com/index.php?refid=tutwabee > > > > =================================== > > > > Earn free traffic for your website easily: > > > > http://tools.addme.com/servlet/popview?id=52260 > > > > ==================================== > > > > > > > > > > > > >From: "Walter Torres" > > > > >Reply-To: javascript at LaTech.edu > > > > >To: > > > > >Subject: [Javascript] Table Cell Q in NN4 > > > > >Date: Sun, 5 May 2002 16:57:05 -0500 > > > > > > > > > >Anyone have any idea on how I can know that a table cell > > > (in NN4) was > > > > >clicked and which cell it was? > > > > > > > > > >Thanks > > > > > > > > > >Walter > > > > > > > > > >_______________________________________________ > > > > >Javascript mailing list > > > > >Javascript at LaTech.edu > > > > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________ > > > > Send and receive Hotmail on your mobile device: > > http://mobile.msn.com > > > > > > _______________________________________________ > > > 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 > > > > _______________________________________________ > > 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 phumes1 at rogers.com Mon May 6 11:53:31 2002 From: phumes1 at rogers.com (phumes1) Date: Mon, 06 May 2002 12:53:31 -0400 Subject: [Javascript] Re: redirect Message-ID: <5.1.0.14.0.20020506125014.00b3dfc0@pop.wlfdle.phub.net.cable.rogers.com> Hi, When I click on one of my links I open another template. WIthin that template I would like to be redirected to another URL and then have the previous window closed. Can this be done? If so, how?? +-----------------------------------------------------------------------------------+ Philip Humeniuk phumes1 at rogers.com phil.humeniuk at rogers.com +------------------------------------------------------------------------------------+ From cutterbl at hotmail.com Mon May 6 12:45:22 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Mon, 06 May 2002 13:45:22 -0400 Subject: [Javascript] Table Cell Q in NN4 Message-ID: I had a similar issue (God I hate Netscape...) My solution was to use my z-index. The bottom layer(0) was my "button" image, the next up(1) was the drop shadow of the text(2), and above that a transparent image(3) which was the link. Eventually I removed the "button" image. You can see this at work at http://polaris.umuc.edu/~sblades/ Cutter http://www.falcon-knives.com ----Original Message Follows---- From: "Walter Torres" Reply-To: javascript at LaTech.edu To: Subject: RE: [Javascript] Table Cell Q in NN4 Date: Mon, 6 May 2002 11:19:22 -0500 This in not a FORM. I am not using FOrm Objects in this context. All I'm trying to do is make a dynamiclly generated TAB-like nav bar. - I create a single row table - Place a 12 x 6 pixel image (it looks ike a corner cut out of a rectangle - Text is placed in the same cell as image (one cell per img/text) - Then I fill the background with a color. Since the image is mostly transparent it look slike the corner cut out of the tab with text on top of the color. The STYLES have a padding-right of 4 pixles, this makes TAB look proper proportions regardless of the length of Text in the Cell. Out TAB nav row changes from time to time and I really didn't want to create images for all Titles. The only way I could get this to work was to make the text LINKS. It works, but not really like I would like. But, beggers can't be choosers. Thanks for your advise. Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of TomMallard > Sent: Sunday, May 05, 2002 8:24 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > ...could be using onKeyPress, onKeyUp if you don't like anchor > tags...I'd avoid form elements, NN4 is a mess for those > inside of tables. > > tom > > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Walter Torres > Sent: Sunday, May 05, 2002 5:33 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > Because the clients server logs tell us that they are getting > 48% NN4.x > hits. > > So we have to support it. > > Can you elaborate on "other ways"? > > Walter > > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of TomMallard > > Sent: Sunday, May 05, 2002 7:16 PM > > To: javascript at LaTech.edu > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > Well, there are other ways, but why complicate things for an > > unsupported > > version? > > > > tom > > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of Walter Torres > > Sent: Sunday, May 05, 2002 4:56 PM > > To: javascript at LaTech.edu > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > Yea, I was afraid you were going to say that! :( > > > > I was hoping I was missing something obvious. > > > > Thanks > > > > Walter > > > > > -----Original Message----- > > > From: javascript-admin at LaTech.edu > > > [mailto:javascript-admin at LaTech.edu]On > > > Behalf Of TomMallard > > > Sent: Sunday, May 05, 2002 6:29 PM > > > To: javascript at LaTech.edu > > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > > > > cell 1 contents. > > > > > > tom mallard > > > seattle > > > -----Original Message----- > > > From: javascript-admin at LaTech.edu > > > [mailto:javascript-admin at LaTech.edu]On > > > Behalf Of Walter Torres > > > Sent: Sunday, May 05, 2002 4:11 PM > > > To: javascript at LaTech.edu > > > Subject: RE: [Javascript] Table Cell Q in NN4 > > > > > > > > > Thanks, but this does not work in NN4. > > > > > > I'm looking for an NN4 solution. > > > > > > Walter > > > > > > > > > > -----Original Message----- > > > > From: javascript-admin at LaTech.edu > > > > [mailto:javascript-admin at LaTech.edu]On > > > > Behalf Of Trey H > > > > Sent: Sunday, May 05, 2002 5:21 PM > > > > To: javascript at LaTech.edu > > > > Subject: Re: [Javascript] Table Cell Q in NN4 > > > > > > > > > > > > You could put this command in each cell: > > > > > > > > Replace the 1 with a different number for every cell. > > > > The clickCheck function would look similar to this: > > > > function clickCheck(x) { > > > > if(x==1) > > > > alert("cell 1 was clicked!") > > > > if(x==2) > > > > alert("cell 2 was clicked") > > > > } > > > > > > > > I am not sure what you are making this for, so I just used > > > > alerts as an > > > > example for the function :) > > > > > > > > ==================================== > > > > Trey: tutwabee at hotmail.com > > > > Get free JavaScripts at the Blue Dragon! > > > > Just go to: > > > > http://www.websiter.biz > > > > ==================================== > > > > Make money by being online: > > > > http://www.degoo.com/index.php?refid=tutwabee > > > > =================================== > > > > Earn free traffic for your website easily: > > > > http://tools.addme.com/servlet/popview?id=52260 > > > > ==================================== > > > > > > > > > > > > >From: "Walter Torres" > > > > >Reply-To: javascript at LaTech.edu > > > > >To: > > > > >Subject: [Javascript] Table Cell Q in NN4 > > > > >Date: Sun, 5 May 2002 16:57:05 -0500 > > > > > > > > > >Anyone have any idea on how I can know that a table cell > > > (in NN4) was > > > > >clicked and which cell it was? > > > > > > > > > >Thanks > > > > > > > > > >Walter > > > > > > > > > >_______________________________________________ > > > > >Javascript mailing list > > > > >Javascript at LaTech.edu > > > > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________ > > > > Send and receive Hotmail on your mobile device: > > http://mobile.msn.com > > > > > > _______________________________________________ > > > 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 > > > > _______________________________________________ > > 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 _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From peter at brunone.com Mon May 6 12:53:36 2002 From: peter at brunone.com (Peter Brunone) Date: Mon, 6 May 2002 12:53:36 -0500 Subject: [Javascript] Table Cell Q in NN4 In-Reply-To: <002301c1f519$c8c648b0$2a65a8c0@ELOY01499A> Message-ID: Walter, Why does the link approach not do what you want? What would you change if you could about using an anchor tag? Perhaps there is another way around your problem. Peter |-----Original Message----- |Behalf Of Walter Torres | |This in not a FORM. | |I am not using FOrm Objects in this context. | |All I'm trying to do is make a dynamiclly generated TAB-like nav bar. | | - I create a single row table | - Place a 12 x 6 pixel image (it looks ike a corner cut out of a | rectangle | - Text is placed in the same cell as image (one cell per img/text) | - Then I fill the background with a color. | Since the image is mostly transparent it look slike the corner cut | out of the tab with text on top of the color. | The STYLES have a padding-right of 4 pixles, this makes TAB look | proper proportions regardless of the length of Text in the Cell. | |Out TAB nav row changes from time to time and I really didn't want |to create |images for all Titles. | |The only way I could get this to work was to make the text LINKS. It works, |but not really like I would like. | |But, beggers can't be choosers. | |Thanks for your advise. | |Walter | |> -----Original Message----- |> From: javascript-admin at LaTech.edu |> [mailto:javascript-admin at LaTech.edu]On |> Behalf Of TomMallard |> |> ...could be using onKeyPress, onKeyUp if you don't like anchor |> tags...I'd avoid form elements, NN4 is a mess for those |> inside of tables. |> |> tom |> |> -----Original Message----- |> From: javascript-admin at LaTech.edu |> [mailto:javascript-admin at LaTech.edu]On |> Behalf Of Walter Torres |> |> Because the clients server logs tell us that they are getting |> 48% NN4.x |> hits. |> |> So we have to support it. |> |> Can you elaborate on "other ways"? |> |> Walter |> |> |> > -----Original Message----- |> > From: javascript-admin at LaTech.edu |> > [mailto:javascript-admin at LaTech.edu]On |> > Behalf Of TomMallard |> > |> > Well, there are other ways, but why complicate things for an |> > unsupported |> > version? |> > |> > tom |> > |> > -----Original Message----- |> > From: javascript-admin at LaTech.edu |> > [mailto:javascript-admin at LaTech.edu]On |> > Behalf Of Walter Torres |> > |> > Yea, I was afraid you were going to say that! :( |> > |> > I was hoping I was missing something obvious. |> > |> > Thanks |> > |> > Walter |> > |> > > -----Original Message----- |> > > From: javascript-admin at LaTech.edu |> > > [mailto:javascript-admin at LaTech.edu]On |> > > Behalf Of TomMallard |> > > Sent: Sunday, May 05, 2002 6:29 PM |> > > To: javascript at LaTech.edu |> > > Subject: RE: [Javascript] Table Cell Q in NN4 |> > > |> > > |> > > cell 1 contents. |> > > |> > > tom mallard |> > > seattle From walter at torres.ws Mon May 6 13:02:32 2002 From: walter at torres.ws (Walter Torres) Date: Mon, 6 May 2002 13:02:32 -0500 Subject: [Javascript] Table Cell Q in NN4 In-Reply-To: Message-ID: <003701c1f528$3271f2b0$2a65a8c0@ELOY01499A> > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Peter Brunone > Sent: Monday, May 06, 2002 12:54 PM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Table Cell Q in NN4 > > > Walter, > > Why does the link approach not do what you want? What > would you change if you could about using an anchor tag? > Perhaps there is another way around your problem. Well, as far as I can tell the LINK object... Try this. text function doThis(objButton) { alert ( objButton ); } This alert does not give me OBJECT, it gives me the URL I would like the Object itself so I can apend eval (objButton+'Tab') so I can change the back ground image of the Cell. For one... For another, the cursor only changes to a finger when over the text, not the entire cell region. I guess I'm just being picky. Walter From peter at brunone.com Mon May 6 13:42:23 2002 From: peter at brunone.com (Peter Brunone) Date: Mon, 6 May 2002 13:42:23 -0500 Subject: [Javascript] Table Cell Q in NN4 In-Reply-To: <003701c1f528$3271f2b0$2a65a8c0@ELOY01499A> Message-ID: |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Walter Torres | |> -----Original Message----- |> From: javascript-admin at LaTech.edu |> [mailto:javascript-admin at LaTech.edu]On |> Behalf Of Peter Brunone |> |> Walter, |> |> Why does the link approach not do what you want? What |> would you change if you could about using an anchor tag? |> Perhaps there is another way around your problem. | |Well, as far as I can tell the LINK object... | |Try this. | |text | |function doThis(objButton) |{ | alert ( objButton ); |} | |This alert does not give me OBJECT, it gives me the URL How about text ? It returns an object, although perhaps not the object you want. What if you used Cutter's suggestion and named the background (i.e. z-index=0) image so you could change its source attribute? Also, are you limited to client-side solutions or can you code this server-side? The options would be a bit more varied if you can. |I would like the Object itself so I can apend eval (objButton+'Tab') so I |can change the back ground image of the Cell. | |For one... | |For another, the cursor only changes to a finger when over the |text, not the |entire cell region. Again, Cutter's idea of the transparent image overlay with link would work well; it's kludgey, but of course most things are in Netscape 4. I'm sure everybody on this list feels your pain :) Regards, Peter From tutwabee at hotmail.com Mon May 6 19:21:42 2002 From: tutwabee at hotmail.com (Trey H) Date: Tue, 07 May 2002 00:21:42 +0000 Subject: [Javascript] Re: redirect Message-ID: First, you need to name the main window. I am naming it win1 as an example: window.name = "win1"; I think you are making it so when a user goes to a new page or clicks on your links in the new window the main window closes, so write this in your links: You can then make a link in the new window that closes the first like this: I know there is another way to do this, but I am not sure how. I hope you can make it work :) ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: phumes1 >Reply-To: javascript at LaTech.edu >To: javascript at LaTech.edu >Subject: [Javascript] Re: redirect >Date: Mon, 06 May 2002 12:53:31 -0400 > > > >Hi, > >When I click on one of my links I open another template. WIthin that >template I would like to be redirected to another URL and then have the >previous window closed. > >Can this be done? If so, how?? > > > >+-----------------------------------------------------------------------------------+ > >Philip Humeniuk >phumes1 at rogers.com >phil.humeniuk at rogers.com >+------------------------------------------------------------------------------------+ > > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From mpearce at digitas.com Tue May 7 05:02:20 2002 From: mpearce at digitas.com (Matthew Pearce) Date: Tue, 7 May 2002 11:02:20 +0100 Subject: [Javascript] access to HTTP request entity body Message-ID: <7F8085BE0784364084B15C45C1F92B0A047C04@EXLON1.digitas.com> How do you use Javascript to get access to the HTTP request's entity body before a POST. I know you can submit form with: document.submit(); I also know you can write something like: document.write(""); And I guess if you already have a named node like : you can write code like function assign(s) { document.id5 = s; } But can you get access to an array of variables that will be POSTed to the server before they are submitted? Are they stored in the document object model anywhere. Inotherwords can you write code like this? foreach s in document.hiddenvars.names {} or this: document.request.append(name, value); Thanks, Matt Pearce From NAVMSE-PPA_NT2 at ppa.gc.ca Tue May 7 07:58:34 2002 From: NAVMSE-PPA_NT2 at ppa.gc.ca (NAV for Microsoft Exchange-PPA_NT2) Date: Tue, 7 May 2002 05:58:34 -0700 Subject: [Javascript] Norton AntiVirus detected a virus in a message you sent. The inf ected attachment was deleted. Message-ID: <821958E28B027D478F0FEE34A204F21301B49D@ppa_nt2.ppa.gc.ca> Recipient of the infected attachment: Diane Street\Inbox Subject of the message: Boy, gameboy, pc, cheat codes, cheats, codes, One or more attachments were deleted Attachment capable.pif was Deleted for the following reasons: Virus W32.Klez.gen at mm was found. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 1823 bytes Desc: not available URL: From piet at vanderkamp.nl Tue May 7 11:09:49 2002 From: piet at vanderkamp.nl (Piet van der Kamp) Date: Tue, 07 May 2002 18:09:49 +0200 Subject: [Javascript] Table Cell Q in NN4 Message-ID: <5.1.0.14.0.20020507180752.009f5c60@pop.hccnet.nl> Do you mean something like this: http://www.kongkoan.org/ HTH Piet >From: "Walter Torres" >To: >Subject: RE: [Javascript] Table Cell Q in NN4 >Date: Mon, 6 May 2002 11:19:22 -0500 >Reply-To: javascript at LaTech.edu > >This in not a FORM. > >I am not using FOrm Objects in this context. > >All I'm trying to do is make a dynamiclly generated >TAB-like nav bar. > > - I create a single row table > - Place a 12 x 6 pixel image (it looks ike a corner cut > out of a > rectangle > - Text is placed in the same cell as image (one cell per > img/text) > - Then I fill the background with a color. > Since the image is mostly transparent it look slike > the corner cut > out of the tab with text on top of the color. > The STYLES have a padding-right of 4 pixles, this > makes TAB look > proper proportions regardless of the length of Text in > the Cell. > >Out TAB nav row changes from time to time and I really >didn't want to create >images for all Titles. > >The only way I could get this to work was to make the text >LINKS. It works, >but not really like I would like. > >But, beggers can't be choosers. > >Thanks for your advise. > >Walter P.J.T. van der Kamp, tel: +31 70 355 10 48 piet at vanderkamp.nl ~~~ http://www.cepis.org/ ~~~ http://www.ec-pop.org ----- The opinions expressed are those of the author and do not represent the position of any organisation. If you have received this electronic transmission in error, dear reader, please notify me by telephone or by electronic mail immediately. Thanks in advance. From phumes1 at rogers.com Tue May 7 11:32:58 2002 From: phumes1 at rogers.com (phumes1) Date: Tue, 07 May 2002 12:32:58 -0400 Subject: [Javascript] Re: onload Message-ID: <5.1.0.14.0.20020507123131.00b84fe0@pop.wlfdle.phub.net.cable.rogers.com> Hi, Why won't this load? I have a link that loads a template with the following code below. +-----------------------------------------------------------------------------------+ Philip Humeniuk phumes1 at rogers.com phil.humeniuk at rogers.com +------------------------------------------------------------------------------------+ From mallard at serv.net Tue May 7 11:43:58 2002 From: mallard at serv.net (TomMallard) Date: Tue, 7 May 2002 09:43:58 -0700 Subject: [Javascript] Re: onload In-Reply-To: <5.1.0.14.0.20020507123131.00b84fe0@pop.wlfdle.phub.net.cable.rogers.com> Message-ID: Were you meaning... window.location.href = "http://127.0.0.1/index.cfm"; or... window.location.replace("http://127.0.0.1/index.cfm"); tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of phumes1 Sent: Tuesday, May 07, 2002 9:33 AM To: javascript at LaTech.edu Subject: [Javascript] Re: onload Hi, Why won't this load? I have a link that loads a template with the following code below. +--------------------------------------------------------------------------- --------+ Philip Humeniuk phumes1 at rogers.com phil.humeniuk at rogers.com +--------------------------------------------------------------------------- ---------+ _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From extstarrfam at cox-internet.com Wed May 8 16:19:51 2002 From: extstarrfam at cox-internet.com (Steve) Date: Wed, 8 May 2002 16:19:51 -0500 Subject: [Javascript] alert message proble with Netscape Message-ID: <000701c1f6d6$17d42d60$242be942@coxinternet.com> Does any one know why this does not work in Netscape 6.2?
From tsimmons at employmentlawadvisors.com Wed May 8 17:48:04 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Wed, 8 May 2002 17:48:04 -0500 Subject: [Javascript] alert message proble with Netscape References: <000701c1f6d6$17d42d60$242be942@coxinternet.com> Message-ID: <001a01c1f6e2$6aa9a8b0$0000a398@sndmgr122> Steve, I believe the problem is the reference to JavaScript 1.3. If you omit the 1.3, the code works, at least on my system (WinXP Pro, NS 6.2). I also added a space between the button value and the "onClick" part, and deleted the spaces between the parantheses in the function names. I hope this code displays correctly on your e-mail client - let me know if it doesn't.
The above code works if put into a test HTML file and opened with NS 6.2. HTH, Tommy Simmons Employment Law Advisory Network www.employmentlawadvisors.com ----- Original Message ----- From: "Steve" To: Sent: Wednesday, May 08, 2002 4:19 PM Subject: [Javascript] alert message proble with Netscape > Does any one know why this does not work in Netscape > 6.2? > > "http://www.w3.org/TR/Rec-html4/loose.dtd"> > > > > > >
> onClick="displayWindowInfo( )"> >
> > From register.autoresponder at irt.org Fri May 10 09:32:58 2002 From: register.autoresponder at irt.org (register.autoresponder at irt.org) Date: Fri, 10 May 2002 09:32:58 -0500 Subject: [Javascript] register Message-ID: <200205101432.g4AEWwv05954@pegasus.host4u.net> Thank you for registering for the free irt.org newsletter. If you ever wish to unregister, just complete the unregister form at http://www.irt.org/utility/register.htm#unregister -- Regards Martin Webb Internet Related Technologies http://www.irt.org/ From aspmailbox at yahoo.com Fri May 10 15:50:32 2002 From: aspmailbox at yahoo.com (dont worry) Date: Fri, 10 May 2002 13:50:32 -0700 (PDT) Subject: [Javascript] radio button, check box check all or none Message-ID: <20020510205032.97424.qmail@web9903.mail.yahoo.com> I have because by default radio buttons can't be "unchecked" I will use checkboxes, but i need javascript that will check ALL the checkboxes with the same id. If I have 3 checkboxes with the same Id when any one is checked all should get checked. Thanks __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From peter at brunone.com Fri May 10 17:26:39 2002 From: peter at brunone.com (Peter Brunone) Date: Fri, 10 May 2002 17:26:39 -0500 Subject: [Javascript] radio button, check box check all or none In-Reply-To: <20020510205032.97424.qmail@web9903.mail.yahoo.com> Message-ID: Here's the basic syntax: function selectAll() { var i = 0; while(i I believe he's wanting to set all checkboxes with a single ID for all elements. This is not possible. You can use an ID for only one element on a webpage. So in order to use Peter's suggestion you'll need to set each to have a different id. -Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at brunone.com Fri May 10 17:51:58 2002 From: peter at brunone.com (Peter Brunone) Date: Fri, 10 May 2002 17:51:58 -0500 Subject: [Javascript] radio button, check box check all or none In-Reply-To: <71.1f481a83.2a0da3bc@aol.com> Message-ID: Yeah, that probably bears some clarification; thanks, Scott, for bringing it up. If by ID he means NAME attribute, then my function will work. If he means VALUE attribute, then no, there's no easy way to blanket-check, all of them. If he actually means ID, then... well, I've not seen a situation where ID is necessary for form elements, but issue them a common NAME as well and you should be fine. Let me know if you (not Scott) still have questions or problems. -Peter -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of SnarfLT at aol.com Sent: Friday, May 10, 2002 5:29 PM To: javascript at LaTech.edu Subject: [Javascript] radio button, check box check all or none I believe he's wanting to set all checkboxes with a single ID for all elements. This is not possible. You can use an ID for only one element on a webpage.. So in order to use Peter's suggestion you'll need to set each to have a different id. -Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From aspmailbox at yahoo.com Mon May 13 09:40:08 2002 From: aspmailbox at yahoo.com (dont worry) Date: Mon, 13 May 2002 07:40:08 -0700 (PDT) Subject: [Javascript] radio button, check box check all or none In-Reply-To: Message-ID: <20020513144008.54541.qmail@web9902.mail.yahoo.com> Thanks guys, I do mean ID as in name. All of them will be named the same. So I will have 3 checkboxes with the same name, and 2 that have the same name and 4 with the same name and so forward. I just want all in the same 'group' named the same to be checked when one is checked. thanks again --- Peter Brunone wrote: > Yeah, that probably bears some clarification; > thanks, Scott, for bringing it > up. > > If by ID he means NAME attribute, then my > function will work. If he > means VALUE attribute, then no, there's no easy way > to blanket-check, all of > them. If he actually means ID, then... well, I've > not seen a situation > where ID is necessary for form elements, but issue > them a common NAME as > well and you should be fine. > > Let me know if you (not Scott) still have questions > or problems. > > -Peter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of SnarfLT at aol.com > Sent: Friday, May 10, 2002 5:29 PM > To: javascript at LaTech.edu > Subject: [Javascript] radio button, check box > check all or none > > > I believe he's wanting to set all checkboxes with > a single ID for all > elements. This is not possible. You can use an ID > for only one element on > a webpage.. So in order to use Peter's suggestion > you'll need to set each > to have a different id. > > -Scott > __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com From greg at krieser.com Mon May 13 10:20:10 2002 From: greg at krieser.com (Greg Krieser) Date: Mon, 13 May 2002 10:20:10 -0500 Subject: [Javascript] Flash That Takes Over Screen Message-ID: <200205131520.KAA25892@ppk.siteprotect.com> On several occasions I've visited sites where the entire screen was temporarily taken over by a brief flash presentation. This has occurred to me on yahoo.com and about.com. How do they do that? Thanks, Greg From Murugan.Selvaraj at geind.ge.com Mon May 13 10:34:04 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Mon, 13 May 2002 21:04:04 +0530 Subject: [Javascript] Help required. Message-ID: <05C613689F01D611AC820002A54177C00153BEC0@GIAHYDMSX2.SGE.INDSYS.GE.COM> I am calling the applet class file in the html file using the applet tag.To view the file in the applet , i am calling the applet class inside the javascript. Basically this javascript is being called at the end of the html file.While accessing the html file,the applet is downloaded.But the file is not displaying.Beacuse the script is calling before the applet is downloaded.I want to find out the applet download completion using the javascript.So that i can call the javascript after the applet is downloaded. I set the time out in the javascript function to wait the script until the applet is downloaded. It doesn't solve the problem completly.Beauce time out of the applet download varies depend up on the place. Basically i want to find out the applet download using JavaScript.Can you give me valid solution? "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From grillo at lazzuri.com.br Mon May 13 14:32:55 2002 From: grillo at lazzuri.com.br (Marcelo Simon) Date: Mon, 13 May 2002 16:32:55 -0300 Subject: [Javascript] Changing 2 attributes onClick Message-ID: <00f201c1fab4$fc621c30$c30cb8c8@motta> Hi, I'm trying to change 2 attributes of 2 diferent tags when I click on an image. I've came with this code: and the blahbutton functions as this: function blahbutton() { if (action='icon') { set action='box'; document.blahicon.src ='images/bt_blahbox.gif'; document.blahref.href ='i_blahbox.cfm'; } if (action='box') { set action ='icon'; document.blahicon.src ='images/bt_emoticons.gif'; document.blahref.href ='i_emoticons.cfm'; } } can someone point me out why this isn't working? it's for IE only. TIA Marcelo Simon -------------- next part -------------- An HTML attachment was scrubbed... URL: From tutwabee at hotmail.com Mon May 13 16:58:38 2002 From: tutwabee at hotmail.com (Trey H) Date: Mon, 13 May 2002 21:58:38 +0000 Subject: [Javascript] Changing 2 attributes onClick Message-ID: Marcelo, One small mistake can make the whole program wrong. You forgot to put a double equals (==) instead of single equals (=) in your if statment. you put: if (action='icon') { and you should have put if (action=='icon') { Also, I am not sure what the 'set' statement is. Did you mean 'var' or does the set statement actually exist? ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: "Marcelo Simon" >Reply-To: javascript at LaTech.edu >To: >Subject: [Javascript] Changing 2 attributes onClick >Date: Mon, 13 May 2002 16:32:55 -0300 > >Hi, I'm trying to change 2 attributes of 2 diferent tags when I click on an >image. I've came with this code: > >target="blahbox">id="blahicon" width="18" height="16" border="0" >onClick="blahbutton();"> > >and the blahbutton functions as this: > >function blahbutton() { > if (action='icon') { > set action='box'; > document.blahicon.src ='images/bt_blahbox.gif'; > document.blahref.href ='i_blahbox.cfm'; > } > if (action='box') { > set action ='icon'; > document.blahicon.src ='images/bt_emoticons.gif'; > document.blahref.href ='i_emoticons.cfm'; > } >} > >can someone point me out why this isn't working? it's for IE only. > >TIA >Marcelo Simon ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From extstarrfam at cox-internet.com Mon May 13 17:42:49 2002 From: extstarrfam at cox-internet.com (Steve) Date: Mon, 13 May 2002 17:42:49 -0500 Subject: [Javascript] Netscape 6.2 Issue Message-ID: <000701c1facf$82b10ca0$242be942@coxinternet.com> I wrote a script that examines the window that Calls it for information and then writes the information on another document. The window and it's document Call the script by the insertion of an onLoad= in it's body tag; I have no trouble getting it to work in IE5.5 version 4, but all I can get from Netscape 6.2 is a blank page. The exception is if I insert code outside of the function that Calls the function; if (navigator.appName.toLowerCase( )=="netscape") {displayWindowInfo(document);} I can then get an Alert message from the function but nothing else occurs if I use the code above. Here is the function's statement: function displayWindowInfo(document) { Does any one have some thought's on this that will help me acess the function using Netscape? From Murugan.Selvaraj at geind.ge.com Tue May 14 00:20:33 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Tue, 14 May 2002 10:50:33 +0530 Subject: [Javascript] Changing 2 attributes onClick Message-ID: <05C613689F01D611AC820002A54177C00153C4A3@GIAHYDMSX2.SGE.INDSYS.GE.COM> Hi Marcelo For comparing the string you should use "==".You should not use "=". In your javascript code you have used action='icon'.Change this code as action =="icon" It will work -----Original Message----- From: Marcelo Simon [mailto:grillo at lazzuri.com.br] Sent: Tuesday, May 14, 2002 1:03 AM To: javascript at LaTech.edu Subject: [Javascript] Changing 2 attributes onClick Hi, I'm trying to change 2 attributes of 2 diferent tags when I click on an image. I've came with this code: and the blahbutton functions as this: function blahbutton() { if (action='icon') { set action='box'; document.blahicon.src ='images/bt_blahbox.gif'; document.blahref.href ='i_blahbox.cfm'; } if (action='box') { set action ='icon'; document.blahicon.src ='images/bt_emoticons.gif'; document.blahref.href ='i_emoticons.cfm'; } } can someone point me out why this isn't working? it's for IE only. TIA Marcelo Simon "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." -------------- next part -------------- An HTML attachment was scrubbed... URL: From grillo at lazzuri.com.br Tue May 14 02:13:41 2002 From: grillo at lazzuri.com.br (Marcelo Simon) Date: Tue, 14 May 2002 04:13:41 -0300 Subject: [Javascript] Changing 2 attributes onClick References: <00f201c1fab4$fc621c30$c30cb8c8@motta> Message-ID: <004a01c1fb16$e1824db0$210cb8c8@motta> thanks Trey and Murugan. I've done what you said ( adding an extra =, and changig set to var ) an it didn't work either. So I went to flash and did it there :) Marcelo Simon ----- Original Message ----- From: Marcelo Simon To: javascript at LaTech.edu Sent: Monday, May 13, 2002 4:32 PM Subject: [Javascript] Changing 2 attributes onClick Hi, I'm trying to change 2 attributes of 2 diferent tags when I click on an image. I've came with this code: and the blahbutton functions as this: function blahbutton() { if (action='icon') { set action='box'; document.blahicon.src ='images/bt_blahbox.gif'; document.blahref.href ='i_blahbox.cfm'; } if (action='box') { set action ='icon'; document.blahicon.src ='images/bt_emoticons.gif'; document.blahref.href ='i_emoticons.cfm'; } } can someone point me out why this isn't working? it's for IE only. TIA Marcelo Simon -------------- next part -------------- An HTML attachment was scrubbed... URL: From phumes1 at rogers.com Tue May 14 13:32:34 2002 From: phumes1 at rogers.com (phumes1) Date: Tue, 14 May 2002 14:32:34 -0400 Subject: [Javascript] Re: Windows Message-ID: <5.1.0.14.0.20020514142914.00b31260@pop.wlfdle.phub.net.cable.rogers.com> Hi, I have a index.htm file that I want to open without all the toolbars and menubars etc.etc... I' can't seem to get it to work. I have a "load.htm" which has some JS that loads my index.htm file into another window without all the toolbar crud at the top. I can't seem to get the previous window (load.htm) file to close. Whats the best way of going about this? Help Please! load.htm ------------ index.htm -------------

This is a test

+-----------------------------------------------------------------------------------+ Philip Humeniuk phumes1 at rogers.com phil.humeniuk at rogers.com +------------------------------------------------------------------------------------+ From rodney at aflyingstart.net Tue May 14 13:48:02 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Tue, 14 May 2002 19:48:02 +0100 Subject: [Javascript] Re: Windows References: <5.1.0.14.0.20020514142914.00b31260@pop.wlfdle.phub.net.cable.rogers.com> Message-ID: <3CE15BE2.59076717@aflyingstart.net> The script to close a window is window.close() or self.close() But this will only work immediately on windows that were opened by javascript. The user's default window can only be closed after an OK/Cancel dialog is displayed - which the browser arranges for you. You do not have to script it and nor can you prevent it from appearing. You might try resizing the window, and putting a message in it to explain. Or just create a blank coloured screen. hth Rodney phumes1 wrote: > Hi, > > I have a index.htm file that I want to open without all the toolbars and > menubars etc.etc... > > I' can't seem to get it to work. I have a "load.htm" which has some JS that > loads my index.htm file into another window without all the toolbar crud at > the top. I can't seem to get the previous window (load.htm) file to close. > > Whats the best way of going about this? > > Help Please! > > load.htm > ------------ > > > > > > > > > > > > > index.htm > ------------- > > > > > > > >

This is a test

> > > > +-----------------------------------------------------------------------------------+ > > Philip Humeniuk > phumes1 at rogers.com > phil.humeniuk at rogers.com > +------------------------------------------------------------------------------------+ > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From lists at imladris.com Tue May 14 13:50:37 2002 From: lists at imladris.com (Amanda Birmingham) Date: Tue, 14 May 2002 12:50:37 -0600 Subject: [Javascript] Re: Windows In-Reply-To: <5.1.0.14.0.20020514142914.00b31260@pop.wlfdle.phub.net.cab le.rogers.com> Message-ID: <5.1.0.14.0.20020514124346.036beab8@mail.imladris.com> Philip, Generally browsers either will not allow a page to close the window that opened it, or will require the user to confirm that close (something along the lines of "This page is trying to close the current window. Allow this action? Yes/No"). This impediment is there for obvious reasons--otherwise, malicious web pages could wreak some small havoc. Additionally, for similar reasons, browsers generally do not allow a page to alter the chrome (presence of scroll bars, title bars, etc) on the window that opened it, instead allowing that only on windows the page opens itself. IE has a full-screen mode with no chrome, but I'm not sure whether basic non-Flash pages can programmatically demand the window switch into it .... Once again, the difference between design limitations that are appropriate for the web generally and those that are appropriate for web applications rears its ugly head! Good luck ;) Amanda Birmingham Web Application Developer At 02:32 PM 5/14/2002 -0400, you wrote: >Hi, > >I have a index.htm file that I want to open without all the toolbars and >menubars etc.etc... > >I' can't seem to get it to work. I have a "load.htm" which has some JS >that loads my index.htm file into another window without all the toolbar >crud at the top. I can't seem to get the previous window (load.htm) file >to close. > >Whats the best way of going about this? > >Help Please! > >load.htm >------------ > > > > > > > > > > > > > > > >index.htm >------------- > > > > > > > >

This is a test

> > > > > > >+-----------------------------------------------------------------------------------+ > >Philip Humeniuk >phumes1 at rogers.com >phil.humeniuk at rogers.com >+------------------------------------------------------------------------------------+ > > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > > From extstarrfam at cox-internet.com Tue May 14 16:52:10 2002 From: extstarrfam at cox-internet.com (Steve) Date: Tue, 14 May 2002 16:52:10 -0500 Subject: [Javascript] Re; Netscape 6.2 Issue Message-ID: <000901c1fb91$99ed9b00$242be942@coxinternet.com> I found my problems. It was always accepting the variable (this.document) when the page was opened from the body tag of the calling program. The problems were with the variables being used in the secondary program. I had to stop Netscape from accessing certain variables by using an If statement.. function displayWindowInfo(document) { anObject=document; var the_appName = navigator.appName.toLowerCase( ); var winInfo=""; var docInfo=""; var objInfo=""; var formCount = document.forms.length; if (the_appName=="microsoft internet explorer") {var frameCount = document.frames.length; var allCount = document.all.length;} var formName=""; var frameName=""; var docElement=""; This continues to be an interesting learning challenge/project. From extstarrfam at cox-internet.com Tue May 14 17:11:07 2002 From: extstarrfam at cox-internet.com (Steve) Date: Tue, 14 May 2002 17:11:07 -0500 Subject: [Javascript] Netscape Editor Message-ID: <000c01c1fb94$3f1ecfc0$242be942@coxinternet.com> Is there a way of using the Netscape Editor to work on a program without it putting in all those, for lack of the correct term, chicken tracks and removing any tabs inserted using Ms NotePad? It would be helpful to use the Netscape Editor to find out why a program does not work in a Netscape browser but I don't like what happens to the program's readability when it inserts the chicken tracks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From extstarrfam at cox-internet.com Tue May 14 17:17:18 2002 From: extstarrfam at cox-internet.com (Steve) Date: Tue, 14 May 2002 17:17:18 -0500 Subject: [Javascript] Please Use the Plain Text selection Message-ID: <001601c1fb95$1c6d2b60$242be942@coxinternet.com> It would help a lot if submission were sent in Plain Text. The Plain Text selection is found under Format in OutLook Express. The Plain Text setting makes reading the submission so much easier for us novices. Thank you very much! Have a nice day! From andrew at d2k.com.au Tue May 14 17:23:53 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Wed, 15 May 2002 08:23:53 +1000 Subject: [Javascript] how many can open access Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151DBC@CHIMAERA> Hi, I think I remember reading that only 2 people can open an access db at one time, is this true? How many can have it open? Thanks. From andrew at d2k.com.au Tue May 14 17:26:33 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Wed, 15 May 2002 08:26:33 +1000 Subject: [Javascript] how many can open access Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151DBE@CHIMAERA> Sorry, wrong list. -----Original Message----- From: Andrew Dunn [mailto:andrew at d2k.com.au] Sent: Wednesday, 15 May 2002 8:24 AM To: 'javascript at LaTech.edu' Subject: [Javascript] how many can open access Hi, I think I remember reading that only 2 people can open an access db at one time, is this true? How many can have it open? Thanks. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From mallard at serv.net Tue May 14 17:29:00 2002 From: mallard at serv.net (TomMallard) Date: Tue, 14 May 2002 15:29:00 -0700 Subject: [Javascript] Netscape Editor In-Reply-To: <000c01c1fb94$3f1ecfc0$242be942@coxinternet.com> Message-ID: There's a checkbox to keep the existing html coding instead of editing the layout of the code in preferences. That may do what you want. tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Steve Sent: Tuesday, May 14, 2002 3:11 PM To: javascript at LaTech.edu Subject: [Javascript] Netscape Editor Is there a way of using the Netscape Editor to work on a program without it putting in all those, for lack of the correct term, chicken tracks and removing any tabs inserted using Ms NotePad? It would be helpful to use the Netscape Editor to find out why a program does not work in a Netscape browser but I don't like what happens to the program's readability when it inserts the chicken tracks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jamesjackson73 at aol.com Wed May 15 03:39:33 2002 From: Jamesjackson73 at aol.com (Jamesjackson73 at aol.com) Date: Wed, 15 May 2002 04:39:33 EDT Subject: [Javascript] Select legal dates from forms....javascript? How? Message-ID: Experts.... I need some javascript that only allows legal dates to be selected from selection fields in a form. i.e. the user cannot possibly choose Feb 30 as an option. I know how to return a warning check once say Feb 30 has been selected, but I would prefer that the user doesn't even get the opportunity. Also it would be even better if Feb 29th were only selectable when a leap year was selected. Do you know exactly where I can get some javascript that does this? Cheers jamesjackson73 at aol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From phumes1 at rogers.com Wed May 15 08:04:10 2002 From: phumes1 at rogers.com (phumes1) Date: Wed, 15 May 2002 09:04:10 -0400 Subject: [Javascript] Re: Portable Menu Message-ID: <5.1.0.14.0.20020515090151.00b7f920@pop.wlfdle.phub.net.cable.rogers.com> Hi, I downloaded the javascript from http://javascript.internet.com/navigation/portable-menu.html As the visitor scrolls up and down your site, the menu moves up and down with them. The problem is it looks like it can only be top/left aligned. I want a bottom/right postion. Any scripts out there that can do this? +-----------------------------------------------------------------------------------+ Philip Humeniuk phumes1 at rogers.com phil.humeniuk at rogers.com +------------------------------------------------------------------------------------+ From merchant at LATECH.EDU Wed May 15 09:22:42 2002 From: merchant at LATECH.EDU (David Merchant) Date: Wed, 15 May 2002 09:22:42 -0500 Subject: How to call JS from applet (Re: [Javascript] Help required.) In-Reply-To: <05C613689F01D611AC820002A54177C00153BEC0@GIAHYDMSX2.SGE.IN DSYS.GE.COM> Message-ID: <5.1.0.14.2.20020515091734.026f7648@mail.latech.edu> I changed the subject line to hopefully increase response to this. This is a good question, I have not been able to figure out how to have a JavaScript be called AFTER a particular Java applet is _fully_ downloaded. Suprisingly, using the onLoad to call the JavaScript in question in the does not work, and apparently onLoad in the doesn't work either. The applet takes varying times to fully download, the onLoad in the seems to ignore the applet, as long as the rest of the web page is loaded it considers the page loaded enough to trigger the onLoad. Murugan: posting your code in question (not as an attachment, the list is not set up to easily take attachments because of too many viruses), will help people answer your question. At 09:04 PM 5/13/2002 +0530, you wrote: >I am calling the applet class file in the html file using the applet tag.To >view the file in the applet , i am calling the applet class inside the >javascript. >Basically this javascript is being called at the end of the html file.While >accessing the html file,the applet is downloaded.But the file is not >displaying.Beacuse the script is calling before the applet is downloaded.I >want to find >out the applet download completion using the javascript.So that i can call >the javascript after the applet is downloaded. >I set the time out in the javascript function to wait the script until the >applet is downloaded. It doesn't solve the problem completly.Beauce time out >of the applet download varies depend up on the place. >Basically i want to find out the applet download using JavaScript.Can you >give me valid solution? > > >"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE >ADDRESSEE and may contain confidential and privileged information. >If the reader of this message is not the intended recipient, >you are notified that any dissemination, distribution or copy of this >communication is strictly Prohibited. >If you have received this message by error, please notify us >immediately, return the original mail to the sender and delete the >message from your system." > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript 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 mallard at serv.net Wed May 15 10:00:00 2002 From: mallard at serv.net (TomMallard) Date: Wed, 15 May 2002 08:00:00 -0700 Subject: How to call JS from applet (Re: [Javascript] Help required.) In-Reply-To: <5.1.0.14.2.20020515091734.026f7648@mail.latech.edu> Message-ID: Have the onload event call a settimeout() function that keeps checking whether the applets collection has members every second or so. function checkApplets(){ if(document.applets.length > 0){ ...code to execute... }else{ checkLoading(); } } function checkLoading(){ var timer = settimeout(checkApplets(), 2000) } HTH, tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of David Merchant Sent: Wednesday, May 15, 2002 7:23 AM To: javascript at LaTech.edu Subject: How to call JS from applet (Re: [Javascript] Help required.) I changed the subject line to hopefully increase response to this. This is a good question, I have not been able to figure out how to have a JavaScript be called AFTER a particular Java applet is _fully_ downloaded. Suprisingly, using the onLoad to call the JavaScript in question in the does not work, and apparently onLoad in the doesn't work either. The applet takes varying times to fully download, the onLoad in the seems to ignore the applet, as long as the rest of the web page is loaded it considers the page loaded enough to trigger the onLoad. Murugan: posting your code in question (not as an attachment, the list is not set up to easily take attachments because of too many viruses), will help people answer your question. At 09:04 PM 5/13/2002 +0530, you wrote: >I am calling the applet class file in the html file using the applet tag.To >view the file in the applet , i am calling the applet class inside the >javascript. >Basically this javascript is being called at the end of the html file.While >accessing the html file,the applet is downloaded.But the file is not >displaying.Beacuse the script is calling before the applet is downloaded.I >want to find >out the applet download completion using the javascript.So that i can call >the javascript after the applet is downloaded. >I set the time out in the javascript function to wait the script until the >applet is downloaded. It doesn't solve the problem completly.Beauce time out >of the applet download varies depend up on the place. >Basically i want to find out the applet download using JavaScript.Can you >give me valid solution? > > >"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE >ADDRESSEE and may contain confidential and privileged information. >If the reader of this message is not the intended recipient, >you are notified that any dissemination, distribution or copy of this >communication is strictly Prohibited. >If you have received this message by error, please notify us >immediately, return the original mail to the sender and delete the >message from your system." > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript 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/) _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From yna54 at hotmail.com Wed May 15 14:17:53 2002 From: yna54 at hotmail.com (Dijam majiD) Date: Wed, 15 May 2002 19:17:53 +0000 Subject: [Javascript] how to pass var to a popup window ? Message-ID: Hi, I am trying to pass a varaible from main window to a popup window, could you please help, thanks _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From apwebdesign at yahoo.com Wed May 15 14:28:27 2002 From: apwebdesign at yahoo.com (Anthony E.) Date: Wed, 15 May 2002 12:28:27 -0700 (PDT) Subject: [Javascript] how to pass var to a popup window ? In-Reply-To: Message-ID: <20020515192827.64715.qmail@web14507.mail.yahoo.com> you should name your popup window ... you can also "pull" data from the opener window by: window.opener --- Dijam majiD wrote: > > Hi, > I am trying to pass a varaible from main window to a > popup window, could you > please help, > thanks > > > _________________________________________________________________ > Join the world?s largest e-mail service with MSN > Hotmail. > http://www.hotmail.com > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com From andyg at ihug.co.nz Wed May 15 16:14:57 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Thu, 16 May 2002 09:14:57 +1200 Subject: [Javascript] Re: Portable Menu References: <5.1.0.14.0.20020515090151.00b7f920@pop.wlfdle.phub.net.cable.rogers.com> Message-ID: <008101c1fc55$92067140$14f6adcb@k1n8i8> > I downloaded the javascript from > http://javascript.internet.com/navigation/portable-menu.html > > As the visitor scrolls up and down your site, the menu moves up and down > with them. > > The problem is it looks like it can only be top/left aligned. I want a > bottom/right postion. > > Any scripts out there that can do this? You'd need to calculate where you want the new menu postioned after a scroll. Right, would be straightforward I guess? something like var menuWidth=100 //menu width var scrWidth=document.body.offsetWidth document.getElementById("myMenu").style.left=scrWidth-menuWidth The Bottom bit is a bit more tricky I think. You'd need to look into something like document.body.scrollTop which only works for IE I think. to get the height of the scroll. Andrew From tutwabee at hotmail.com Wed May 15 19:39:00 2002 From: tutwabee at hotmail.com (Trey H) Date: Thu, 16 May 2002 00:39:00 +0000 Subject: [Javascript] Select legal dates from forms....javascript? How? Message-ID: James, I have heard this question asked so many times. Geocities uses this script on their sign-up form. I have taken their script and made it into what you need. The file should be attached. If it is not, then go here: http://www.geocities.com/websiterman/eval_register2.html You may want to change the script a bit so it doesn't resemble Geocities' script :) ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: Jamesjackson73 at aol.com >Reply-To: javascript at LaTech.edu >To: javascript at LaTech.edu >Subject: [Javascript] Select legal dates from forms....javascript? How? >Date: Wed, 15 May 2002 04:39:33 EDT > >Experts.... >I need some javascript that only allows legal dates to be selected from >selection fields in a form. i.e. the user cannot possibly choose Feb 30 as >an >option. I know how to return a warning check once say Feb 30 has been >selected, but I would prefer that the user doesn't even get the >opportunity. >Also it would be even better if Feb 29th were only selectable when a leap >year was selected. >Do you know exactly where I can get some javascript that does this? >Cheers >jamesjackson73 at aol.com _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chriz at basken.com Thu May 16 11:12:22 2002 From: chriz at basken.com (Christopher Basken) Date: Thu, 16 May 2002 12:12:22 -0400 Subject: [Javascript] setTimeout madness Message-ID: <5.1.0.14.0.20020516120250.02f14cc0@mail.basken.com> I should be able to get this, but for some reason it's not working. All I want to do is call a function after 3 seconds. I'm doing it like this: var timeID = setTimeout("miniHide()",3000,navDivID); If I test for the validity of navDivID just before the setTimeout call (with an alert()) it comes up fine (it's just a string). But miniHide can't seem to understand it. Right now, miniHide() is just an echo function: function miniHide(navDivID) { alert(navDivID); } But when I run this, I get "undefined". navDivID is not a global value. I've tried a number of permutations on this, like passing navDivID inside the parens in the setTimeout call (setTimeout("miniHide(navDivID)",3000);) and actually cycling through the arguments array in miniHide(), neither with any success. If I pass the actual string in as an argument, it works. What's the deal with setTimout() and arguments? From peter at brunone.com Thu May 16 11:24:27 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 16 May 2002 11:24:27 -0500 Subject: [Javascript] setTimeout madness In-Reply-To: <5.1.0.14.0.20020516120250.02f14cc0@mail.basken.com> Message-ID: Christopher, I don't think there's a third parameter for setTimeout, and even if there were, it looks like you want to pass the parameter to miniHide(). Try this (making sure that navDivID is the correct name of the variable, of course): setTimeout("miniHide('" + navDivID + "')", 3000); See, the first param of setTimeout is a string which evaluates to a function call, so you have to build the string to include the correct variable. If it's not a string but an integer or object reference, then you can remove the single quotes. Cheers, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Christopher Basken | |I should be able to get this, but for some reason it's not working. All I |want to do is call a function after 3 seconds. I'm doing it like this: | |var timeID = setTimeout("miniHide()",3000,navDivID); | |If I test for the validity of navDivID just before the setTimeout call |(with an alert()) it comes up fine (it's just a string). But miniHide |can't seem to understand it. Right now, miniHide() is just an |echo function: | |function miniHide(navDivID) { | alert(navDivID); |} | |But when I run this, I get "undefined". navDivID is not a global value. | |I've tried a number of permutations on this, like passing navDivID inside |the parens in the setTimeout call (setTimeout("miniHide(navDivID)",3000);) |and actually cycling through the arguments array in miniHide(), neither |with any success. If I pass the actual string in as an argument, it works. | |What's the deal with setTimout() and arguments? | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | From chriz at basken.com Thu May 16 11:29:24 2002 From: chriz at basken.com (Christopher Basken) Date: Thu, 16 May 2002 12:29:24 -0400 Subject: [Javascript] setTimeout madness In-Reply-To: References: <5.1.0.14.0.20020516120250.02f14cc0@mail.basken.com> Message-ID: <5.1.0.14.0.20020516122631.02f9f678@mail.basken.com> At 11:24 AM 5/16/2002 -0500, you wrote: >Christopher, > > I don't think there's a third parameter for setTimeout, and even > if there >were, it looks like you want to pass the parameter to miniHide(). Try this >(making sure that navDivID is the correct name of the variable, of course): > >setTimeout("miniHide('" + navDivID + "')", 3000); > > See, the first param of setTimeout is a string which evaluates to a >function call, so you have to build the string to include the correct >variable. If it's not a string but an integer or object reference, then you >can remove the single quotes. > >Cheers, > >Peter Thanks, I tried that, actually, and got a syntax error. I finally gave up and assigned navDivID to a global and just referenced that inside miniHide() without passing any args. Galls me, but I can't seem to get it to work any other way. Oh, the third setTimeout parameter is listed on Netscape's devedge site (http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#1203758). This is likely horribly outdated. I get the feeling setTimeout was stuck in as an afterthought. Thanks again! From yna54 at hotmail.com Thu May 16 13:45:33 2002 From: yna54 at hotmail.com (Dijam majiD) Date: Thu, 16 May 2002 18:45:33 +0000 Subject: [Javascript] two submit buttons in a form ?? Message-ID: Hi, I have a form in a jsp file that has : 1)Drop down list (for names) 2)textarea ( for comment) I want to have two submit buttons (chekin, checkout), who to do it please ? thanks _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From tutwabee at hotmail.com Thu May 16 17:02:02 2002 From: tutwabee at hotmail.com (Trey H) Date: Thu, 16 May 2002 22:02:02 +0000 Subject: [Javascript] two submit buttons in a form ?? Message-ID: To do this you probably want to make two different forms, one which has hidden objects. When you click one button it will submit the first form. When you click the second button, it will take all of the values from the first form and move them to the second. It will then submit the second form. The code is in the attached file. Here is also a copy of the code:

Select Box:
==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: "Dijam majiD" >Reply-To: javascript at LaTech.edu >To: javascript at LaTech.edu >Subject: [Javascript] two submit buttons in a form ?? >Date: Thu, 16 May 2002 18:45:33 +0000 > > >Hi, > >I have a form in a jsp file that has : > >1)Drop down list (for names) >2)textarea ( for comment) > > >I want to have two submit buttons (chekin, checkout), who to do it please ? >thanks > > > >_________________________________________________________________ >Chat with friends online, try MSN Messenger: http://messenger.msn.com > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: form.html URL: From extstarrfam at cox-internet.com Thu May 16 19:07:03 2002 From: extstarrfam at cox-internet.com (Steve) Date: Thu, 16 May 2002 19:07:03 -0500 Subject: [Javascript] language attribute or type attribute in Navigator? Message-ID: <000701c1fd36$c67e1ea0$242be942@coxinternet.com> I created a page with a function in it's body that is called from the body tag of another page: The function examines the contents of the opener window and then displays the information gathered in it's own document body. Every thing works without additional code when IE 5.5 is used. For Netscape 6.2 I had to add a line of code to access the function in the body of the child page: if (navigator.appName.toLowerCase( )=='netscape') displayInformation( ); function displayInformation(document) { However I can not get Netscape Navigator 4.72 to access the function on the child page unless I remove the type attribute from the script tag (
-----Original Message----- From: Dijam majiD [mailto:yna54 at hotmail.com] Sent: Friday, May 17, 2002 12:16 AM To: javascript at LaTech.edu Subject: [Javascript] two submit buttons in a form ?? Hi, I have a form in a jsp file that has : 1)Drop down list (for names) 2)textarea ( for comment) I want to have two submit buttons (chekin, checkout), who to do it please ? thanks _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From Murugan.Selvaraj at geind.ge.com Fri May 17 00:40:51 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Fri, 17 May 2002 11:10:51 +0530 Subject: [Javascript] two submit buttons in a form ?? Message-ID: <05C613689F01D611AC820002A54177C0015CF928@GIAHYDMSX2.SGE.INDSYS.GE.COM> Hi trey Hope you have received me mail.I have given the solutin to use the single form. Pls check my suggestion also. Regards Murugan -----Original Message----- From: Trey H [mailto:tutwabee at hotmail.com] Sent: Friday, May 17, 2002 3:32 AM To: javascript at LaTech.edu Subject: Re: [Javascript] two submit buttons in a form ?? To do this you probably want to make two different forms, one which has hidden objects. When you click one button it will submit the first form. When you click the second button, it will take all of the values from the first form and move them to the second. It will then submit the second form. The code is in the attached file. Here is also a copy of the code:

Select Box:
==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: "Dijam majiD" >Reply-To: javascript at LaTech.edu >To: javascript at LaTech.edu >Subject: [Javascript] two submit buttons in a form ?? >Date: Thu, 16 May 2002 18:45:33 +0000 > > >Hi, > >I have a form in a jsp file that has : > >1)Drop down list (for names) >2)textarea ( for comment) > > >I want to have two submit buttons (chekin, checkout), who to do it please ? >thanks > > > >_________________________________________________________________ >Chat with friends online, try MSN Messenger: http://messenger.msn.com > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From Murugan.Selvaraj at geind.ge.com Fri May 17 00:52:02 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Fri, 17 May 2002 11:22:02 +0530 Subject: [Javascript] How to pop up the same window again Message-ID: <05C613689F01D611AC820002A54177C0015CF989@GIAHYDMSX2.SGE.INDSYS.GE.COM> Hi all I have table with data in the jsp file.There is a hyperlink called FILE in each row of the table.When the user click on the file hyperlink , it opens the new window . When the user click on the file hyperlink again,the same window which was opened by the user previously should popup.I mean whenever the user click on the file hyper link,it should be link opening the new window.But it should open the same window.I am using the normal javascript code to open the window. window.open("" "" "");When the use click the file hyper link again , it is opening the same window.but it doesn't popup. How to popup the same window,when the user click the file hyper link again. > g India Business Center > --------------------------------------------------------------- > Murugan Selvaraj > Software Engineer, > Satyam GE Software Services Private Limited, > 1-8-359, S P Road, Near HUDA Office, > Begumpet, Secunderabad-500 003 > Tel : 91-40-788-1902 > Email: murugan.selvaraj at geind.ge.com > > > > > "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From gmorris at sct.com Fri May 17 13:57:54 2002 From: gmorris at sct.com (Glenn Morris) Date: Fri, 17 May 2002 14:57:54 -0400 Subject: [Javascript] Inherit data Message-ID: Hello, I am new to Javascript (and this group). What I am trying to do is as follows: Page1.html - has 2 fields, LName and FName they are input type text. What I am trying to do is when a person submits their name a new document (Page2.html) comes up with both the LName field and the FName field inherited from Page1. The thing is I want both those fields to be editable (input type="text") on the new form so a person could change them. (There will be other fields on the new form but they will not inherit so there is no problem with them). Some script I was working on below: Page1.html

Page2.html

From walter at torres.ws Fri May 17 14:16:21 2002 From: walter at torres.ws (Walter Torres) Date: Fri, 17 May 2002 14:16:21 -0500 Subject: [Javascript] Inherit data In-Reply-To: Message-ID: <006b01c1fdd7$550ebdf0$994d94ce@ELOY01499A> I see 2 solutions... 1) his is done on the server. It accepts the data, and then populates the new page as it sends it. 2) If this is in a sub frame, you can place these as varialbes in the TOP level and commit the values to these variable (top.fName) and then have the second page pull the data out. Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Glenn Morris > Sent: Friday, May 17, 2002 1:58 PM > To: javascript at LaTech.edu > Subject: [Javascript] Inherit data > > > Hello, I am new to Javascript (and this group). What I am trying to do > is as follows: > Page1.html - has 2 fields, LName and FName they are input type text. > What I am trying to do is when a person submits their name a new > document (Page2.html) > comes up with both the LName field and the FName field inherited from > Page1. The thing is I want both those fields to > be editable (input type="text") on the new form so a person could > change them. (There will be other fields on the new form but they will > not > inherit so there is no problem with them). > > Some script I was working on below: > > Page1.html >
>
> > > > Page2.html >
>
> > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Fri May 17 14:35:54 2002 From: peter at brunone.com (Peter Brunone) Date: Fri, 17 May 2002 14:35:54 -0500 Subject: [Javascript] Inherit data In-Reply-To: Message-ID: Glenn, First off, I should mention that this is easier with a server-side language to populate the boxes. That said, here's what you can do with client-side Javascript. By the way, you should always enclose your form elements in a form as shown here.


Before you open Page 2, build a URL that includes the LName and FName parameters, like this (watch for wrapping): var myURL = "Page2.html?LName=" + document.mainForm.LName.value + "&FName=" + document.mainForm.FName.value; Then you just feed this variable to the window.open function. On the other side, you'll have to parse the URL, either with window.location.href or a more sophisticated function for getting querystring variables (somebody else on the list probably has just the thing). Alternatively you could set cookies and pick them up on the next page... but that's for another email. Cheers, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Glenn Morris | |Hello, I am new to Javascript (and this group). What I am trying to do |is as follows: |Page1.html - has 2 fields, LName and FName they are input type text. |What I am trying to do is when a person submits their name a new |document (Page2.html) |comes up with both the LName field and the FName field inherited from |Page1. The thing is I want both those fields to |be editable (input type="text") on the new form so a person could |change them. (There will be other fields on the new form but they will |not |inherit so there is no problem with them). | |Some script I was working on below: | |Page1.html |
|
| | | |Page2.html |
|
| From tutwabee at hotmail.com Fri May 17 17:14:39 2002 From: tutwabee at hotmail.com (Trey H) Date: Fri, 17 May 2002 22:14:39 +0000 Subject: [Javascript] How to pop up the same window again Message-ID: Murugan, I have not found a javascript code to make sure the page opens in a new separate window. I did however find a way to do this in HTML. I made a code like this: FILE
FILE
FILE
FILE
FILE
FILE
FILE
FILE
FILE
Just make the links target different window names. I hope this is good enough for your script. :) ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: "Selvaraj, Murugan (Indsys)" >Reply-To: javascript at LaTech.edu >To: javascript at LaTech.edu >Subject: [Javascript] How to pop up the same window again >Date: Fri, 17 May 2002 11:22:02 +0530 > > >Hi all > >I have table with data in the jsp file.There is a hyperlink called FILE in >each row of the table.When the user click on the file hyperlink , it opens >the new window . >When the user click on the file hyperlink again,the same window which was >opened by the user previously should popup.I mean whenever the user click >on >the file hyper link,it should be link opening the new window.But it should >open the same window.I am using the normal javascript code to open the >window. >window.open("" "" "");When the use click the file hyper link again , it is >opening the same window.but it doesn't popup. >How to popup the same window,when the user click the file hyper link again. > > > > > > g India Business Center > > --------------------------------------------------------------- > > Murugan Selvaraj > > Software Engineer, > > Satyam GE Software Services Private Limited, > > 1-8-359, S P Road, Near HUDA Office, > > Begumpet, Secunderabad-500 003 > > Tel : 91-40-788-1902 > > Email: murugan.selvaraj at geind.ge.com > > > > > > > > > > >"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE >ADDRESSEE and may contain confidential and privileged information. >If the reader of this message is not the intended recipient, >you are notified that any dissemination, distribution or copy of this >communication is strictly Prohibited. >If you have received this message by error, please notify us >immediately, return the original mail to the sender and delete the >message from your system." > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From yna54 at hotmail.com Fri May 17 18:10:32 2002 From: yna54 at hotmail.com (Dijam majiD) Date: Fri, 17 May 2002 23:10:32 +0000 Subject: [Javascript] form with two submit buttons ?? Message-ID: Hi, it's me again, thanks for all people that replied to my question, but it looks like I did not explain well my question , what I am looking for is : an HTMl or jsp page that has a form : dropdown list ( employees names) textarea ( for comment) three buttons ( checkin, checkout, close) this form is used in my company library, so when someone borrow a book, the person working in the library highlight the name of the borrower in the dropdown list, write a comment, and press the button checkout, this action will insert employee_name, comment and ckeckout_date. when the employee returns the book, the samething will happend by pressing now checkin button ( insert employee_name, comment and ckeckin_date). Your help is appreciated. thanks _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From javascript at dreamsplash.com Fri May 17 18:58:13 2002 From: javascript at dreamsplash.com (John Vercelletto) Date: Fri, 17 May 2002 19:58:13 -0400 Subject: [Javascript] form with two submit buttons ?? In-Reply-To: Message-ID: <002101c1fdfe$b541e680$6901a8c0@16jhm> I believe (not 100% sure) you can put 2 submit buttons with different values. Both would process the form with the same action (posting to the "processing page") but each button would have a different "value" passed in the form assigned to the button. The value of check out button might be checkout, the check in button might be checkin. Your processing page can then take that value and do the appropriate processing. John -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of Dijam majiD Sent: Friday, May 17, 2002 7:11 PM To: javascript at LaTech.edu Subject: [Javascript] form with two submit buttons ?? Hi, it's me again, thanks for all people that replied to my question, but it looks like I did not explain well my question , what I am looking for is : an HTMl or jsp page that has a form : dropdown list ( employees names) textarea ( for comment) three buttons ( checkin, checkout, close) this form is used in my company library, so when someone borrow a book, the person working in the library highlight the name of the borrower in the dropdown list, write a comment, and press the button checkout, this action will insert employee_name, comment and ckeckout_date. when the employee returns the book, the samething will happend by pressing now checkin button ( insert employee_name, comment and ckeckin_date). Your help is appreciated. thanks _________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From akbot at narod.ru Sat May 18 08:49:27 2002 From: akbot at narod.ru (Kvasov Dmitriy) Date: Sat, 18 May 2002 17:49:27 +0400 Subject: [Javascript] How to pop up the same window again In-Reply-To: References: Message-ID: <806820365.20020518174927@narod.ru> Hello Trey, If you write FILE you can have as many new windows opened, as you wish. -- Best regards, Kvasov Dmitriy mailto:akbot at narod.ru From andrew at d2k.com.au Sun May 19 20:02:38 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Mon, 20 May 2002 11:02:38 +1000 Subject: [Javascript] Extract portion of URL and place in form field Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151DD0@CHIMAERA> Use the location.search property and use a split() funtion or some other string function that will give you the text after the string. -----Original Message----- From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] Sent: Monday, 20 May 2002 11:22 AM To: javascript at latech.edu Subject: [Javascript] Extract portion of URL and place in form field Sensitivity: Confidential Hi, I would like to grab the text after the '=' and place it in the form field 'ticket'. This is a form with only one field, the formname is 'sverify' This is the string... http://www.mysite.com/thanks.html?cbreceipt=Z54HKPT7 I'm after the Z54HKPT7. How would I do this? Regards, Phillip Morgan Chief Information Offier Quickpages Business Directories ---------------------------------------------------------------------------- ------------ This email is intended for the above named recipient only, and may contain priveledged information. If you are not the intended recipient please delete this email immediately and notify Quickpages of the problem. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From andrew at d2k.com.au Sun May 19 20:18:52 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Mon, 20 May 2002 11:18:52 +1000 Subject: [Javascript] Extract portion of URL and place in form field Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151DD1@CHIMAERA> If you want to learn you have to do a bit of research. -----Original Message----- From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] Sent: Monday, 20 May 2002 11:40 AM To: javascript at LaTech.edu Subject: RE: [Javascript] Extract portion of URL and place in form field Sensitivity: Confidential Hi Andrew, Thanks for that tip. I was hoping for something a little more verbose.. Like the actual javascript.. > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Andrew Dunn > Sent: Monday, 20 May 2002 11:03 AM > To: 'javascript at LaTech.edu' > Subject: RE: [Javascript] Extract portion of URL and place in form > field > Sensitivity: Confidential > > > Use the location.search property and use a split() funtion or some > other string function that will give you the text after the string. > > -----Original Message----- > From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] > Sent: Monday, 20 May 2002 11:22 AM > To: javascript at latech.edu > Subject: [Javascript] Extract portion of URL and place in form field > Sensitivity: Confidential > > > Hi, I would like to grab the text after the '=' and place it in the > form field 'ticket'. This is a form with only one field, the formname > is 'sverify' > > This is the string... http://www.mysite.com/thanks.html?cbreceipt=Z54HKPT7 I'm after the Z54HKPT7. How would I do this? Regards, Phillip Morgan Chief Information Offier Quickpages Business Directories ---------------------------------------------------------------------------- ------------ This email is intended for the above named recipient only, and may contain priveledged information. If you are not the intended recipient please delete this email immediately and notify Quickpages of the problem. _______________________________________________ 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 pmorgan at quickpages.net.au Sun May 19 20:22:24 2002 From: pmorgan at quickpages.net.au (Phillp Morgan) Date: Mon, 20 May 2002 11:22:24 +1000 Subject: [Javascript] Extract portion of URL and place in form field Message-ID: <003d01c1ff9c$cc727a00$0c00a8c0@qpbd103> Hi, I would like to grab the text after the '=' and place it in the form field 'ticket'. This is a form with only one field, the formname is 'sverify' This is the string... http://www.mysite.com/thanks.html?cbreceipt=Z54HKPT7 I'm after the Z54HKPT7. How would I do this? Regards, Phillip Morgan Chief Information Offier Quickpages Business Directories ---------------------------------------------------------------------------- ------------ This email is intended for the above named recipient only, and may contain priveledged information. If you are not the intended recipient please delete this email immediately and notify Quickpages of the problem. From pmorgan at quickpages.net.au Sun May 19 20:40:24 2002 From: pmorgan at quickpages.net.au (Phillp Morgan) Date: Mon, 20 May 2002 11:40:24 +1000 Subject: [Javascript] Extract portion of URL and place in form field In-Reply-To: <1D0255E75622D51185DB00D0B7E3FF44151DD0@CHIMAERA> Message-ID: <004001c1ff9f$503ea410$0c00a8c0@qpbd103> Hi Andrew, Thanks for that tip. I was hoping for something a little more verbose.. Like the actual javascript.. > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Andrew Dunn > Sent: Monday, 20 May 2002 11:03 AM > To: 'javascript at LaTech.edu' > Subject: RE: [Javascript] Extract portion of URL and place in > form field > Sensitivity: Confidential > > > Use the location.search property and use a split() funtion or > some other > string function that will give you the text after the string. > > -----Original Message----- > From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] > Sent: Monday, 20 May 2002 11:22 AM > To: javascript at latech.edu > Subject: [Javascript] Extract portion of URL and place in form field > Sensitivity: Confidential > > > Hi, I would like to grab the text after the '=' and place it > in the form > field 'ticket'. This is a form with only one field, the formname is > 'sverify' > > This is the string... http://www.mysite.com/thanks.html?cbreceipt=Z54HKPT7 I'm after the Z54HKPT7. How would I do this? Regards, Phillip Morgan Chief Information Offier Quickpages Business Directories ---------------------------------------------------------------------------- ------------ This email is intended for the above named recipient only, and may contain priveledged information. If you are not the intended recipient please delete this email immediately and notify Quickpages of the problem. _______________________________________________ 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 andrew at d2k.com.au Sun May 19 20:40:41 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Mon, 20 May 2002 11:40:41 +1000 Subject: [Javascript] Extract portion of URL and place in form field Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151DD3@CHIMAERA> Try this (forgive the variable names): var thestring; var otherstring; var locofequal; thestring = window.location.search; locofequal = thestring.indexOf("="); otherstring = thestring.substring((locofequal + 1),thestring.length); alert(otherstring); -----Original Message----- From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] Sent: Monday, 20 May 2002 11:51 AM To: 'Andrew Dunn' Subject: RE: [Javascript] Extract portion of URL and place in form field Sensitivity: Confidential I couldn't agree more. Unfortunately, I'm under a ittle pressure to get this done for a promo we are running, and much as I would love to spend the time learning, I simply just don't have the opportunity right now. But thanks anyway. phill > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Andrew Dunn > Sent: Monday, 20 May 2002 11:19 AM > To: 'javascript at LaTech.edu' > Subject: RE: [Javascript] Extract portion of URL and place in form > field > Sensitivity: Confidential > > > If you want to learn you have to do a bit of research. > > -----Original Message----- > From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] > Sent: Monday, 20 May 2002 11:40 AM > To: javascript at LaTech.edu > Subject: RE: [Javascript] Extract portion of URL and place in form > field > Sensitivity: Confidential > > > Hi Andrew, > > Thanks for that tip. I was hoping for something a little more > verbose.. Like the actual javascript.. > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of Andrew Dunn > > Sent: Monday, 20 May 2002 11:03 AM > > To: 'javascript at LaTech.edu' > > Subject: RE: [Javascript] Extract portion of URL and place in form > > field > > Sensitivity: Confidential > > > > > > Use the location.search property and use a split() funtion or some > > other string function that will give you the text after the string. > > > > -----Original Message----- > > From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] > > Sent: Monday, 20 May 2002 11:22 AM > > To: javascript at latech.edu > > Subject: [Javascript] Extract portion of URL and place in form field > > Sensitivity: Confidential > > > > > > Hi, I would like to grab the text after the '=' and place it in the > > form field 'ticket'. This is a form with only one field, > the formname > > is 'sverify' > > > > This is the string... > http://www.mysite.com/thanks.html?cbreceipt=Z54HKPT7 > > I'm after the Z54HKPT7. > > How would I do this? > > Regards, > > Phillip Morgan > Chief Information Offier > Quickpages Business Directories > -------------------------------------------------------------- > -------------- > ------------ > This email is intended for the above named recipient only, and may > contain priveledged information. If you are not the intended > recipient please delete > this email immediately and notify Quickpages of the problem. > > _______________________________________________ > 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 tsimmons at employmentlawadvisors.com Sun May 19 21:30:25 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Sun, 19 May 2002 21:30:25 -0500 Subject: [Javascript] Extract portion of URL and place in form field References: <1D0255E75622D51185DB00D0B7E3FF44151DD3@CHIMAERA> Message-ID: <002a01c1ffa6$4d99bea0$0000a398@sndmgr122> Andrew, I'm not Phillip, but thanks for posting the straightforward example script. I've read about those string methods before, but this is the first time I feel I've really understood them! Thanks, Tommy Simmons Employment Law Advisory Network www.employmentlawadvisors.com ----- Original Message ----- From: "Andrew Dunn" To: Sent: Sunday, May 19, 2002 8:40 PM Subject: [Javascript] Extract portion of URL and place in form field > Try this (forgive the variable names): > > var thestring; > var otherstring; > var locofequal; > > thestring = window.location.search; > locofequal = thestring.indexOf("="); > otherstring = thestring.substring((locofequal + 1),thestring.length); > alert(otherstring); > > -----Original Message----- > From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] > Sent: Monday, 20 May 2002 11:51 AM > To: 'Andrew Dunn' > Subject: RE: [Javascript] Extract portion of URL and place in form field > Sensitivity: Confidential > > I couldn't agree more. > > Unfortunately, I'm under a ittle pressure to get this done for a promo we > are running, and much as I would love to spend the time learning, I simply > just don't have the opportunity right now. > > But thanks anyway. > > phill > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of Andrew Dunn > > Sent: Monday, 20 May 2002 11:19 AM > > To: 'javascript at LaTech.edu' > > Subject: RE: [Javascript] Extract portion of URL and place in form > > field > > Sensitivity: Confidential > > > > If you want to learn you have to do a bit of research. > > > > -----Original Message----- > > From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] > > Sent: Monday, 20 May 2002 11:40 AM > > To: javascript at LaTech.edu > > Subject: RE: [Javascript] Extract portion of URL and place in form > > field > > Sensitivity: Confidential > > > > Hi Andrew, > > > > Thanks for that tip. I was hoping for something a little more > > verbose.. Like the actual javascript.. > > > > > -----Original Message----- > > > From: javascript-admin at LaTech.edu > > > [mailto:javascript-admin at LaTech.edu]On > > > Behalf Of Andrew Dunn > > > Sent: Monday, 20 May 2002 11:03 AM > > > To: 'javascript at LaTech.edu' > > > Subject: RE: [Javascript] Extract portion of URL and place in form > > > field > > > Sensitivity: Confidential > > > > > > Use the location.search property and use a split() funtion or some > > > other string function that will give you the text after the string. > > > > > > -----Original Message----- > > > From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] > > > Sent: Monday, 20 May 2002 11:22 AM > > > To: javascript at latech.edu > > > Subject: [Javascript] Extract portion of URL and place in form field > > > Sensitivity: Confidential > > > > > > Hi, I would like to grab the text after the '=' and place it in the > > > form field 'ticket'. This is a form with only one field, > > the formname > > > is 'sverify' > > > > > > This is the string... > > http://www.mysite.com/thanks.html?cbreceipt=Z54HKPT7 > > > > I'm after the Z54HKPT7. > > > > How would I do this? > > > > Regards, > > > > Phillip Morgan > > Chief Information Offier > > Quickpages Business Directories From lau at goldenweb.com.au Sun May 19 21:54:17 2002 From: lau at goldenweb.com.au (Lau) Date: Mon, 20 May 2002 12:54:17 +1000 Subject: [Javascript] What's the equivalent of vbscript URLEncode in javascript? References: <1D0255E75622D51185DB00D0B7E3FF44151DD3@CHIMAERA> Message-ID: <000b01c1ffa9$a2816730$6700a8c0@laubox> How do I encode a URL in javascript? I can't find a function that is equivalent to vbxcripts URLencode. Thanks in advance Lau From pmorgan at quickpages.net.au Sun May 19 22:03:48 2002 From: pmorgan at quickpages.net.au (Phillp Morgan) Date: Mon, 20 May 2002 13:03:48 +1000 Subject: [Javascript] Extract portion of URL and place in form field In-Reply-To: <1D0255E75622D51185DB00D0B7E3FF44151DD3@CHIMAERA> Message-ID: <004401c1ffaa$f6da2820$0c00a8c0@qpbd103> thanks Andrew, This works great. phill > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Andrew Dunn > Sent: Monday, 20 May 2002 11:41 AM > To: 'javascript at LaTech.edu' > Subject: [Javascript] Extract portion of URL and place in form field > Sensitivity: Confidential > > > Try this (forgive the variable names): > > var thestring; > var otherstring; > var locofequal; > > thestring = window.location.search; > locofequal = thestring.indexOf("="); > otherstring = thestring.substring((locofequal + 1),thestring.length); > alert(otherstring); > > > -----Original Message----- > From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] > Sent: Monday, 20 May 2002 11:51 AM > To: 'Andrew Dunn' > Subject: RE: [Javascript] Extract portion of URL and place in > form field > Sensitivity: Confidential > > > I couldn't agree more. > > Unfortunately, I'm under a ittle pressure to get this done > for a promo we > are running, and much as I would love to spend the time > learning, I simply > just don't have the opportunity right now. > > But thanks anyway. > > phill > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of Andrew Dunn > > Sent: Monday, 20 May 2002 11:19 AM > > To: 'javascript at LaTech.edu' > > Subject: RE: [Javascript] Extract portion of URL and place in form > > field > > Sensitivity: Confidential > > > > > > If you want to learn you have to do a bit of research. > > > > -----Original Message----- > > From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] > > Sent: Monday, 20 May 2002 11:40 AM > > To: javascript at LaTech.edu > > Subject: RE: [Javascript] Extract portion of URL and place in form > > field > > Sensitivity: Confidential > > > > > > Hi Andrew, > > > > Thanks for that tip. I was hoping for something a little more > > verbose.. Like the actual javascript.. > > > > > -----Original Message----- > > > From: javascript-admin at LaTech.edu > > > [mailto:javascript-admin at LaTech.edu]On > > > Behalf Of Andrew Dunn > > > Sent: Monday, 20 May 2002 11:03 AM > > > To: 'javascript at LaTech.edu' > > > Subject: RE: [Javascript] Extract portion of URL and > place in form > > > field > > > Sensitivity: Confidential > > > > > > > > > Use the location.search property and use a split() funtion or some > > > other string function that will give you the text after > the string. > > > > > > -----Original Message----- > > > From: Phillp Morgan [mailto:pmorgan at quickpages.net.au] > > > Sent: Monday, 20 May 2002 11:22 AM > > > To: javascript at latech.edu > > > Subject: [Javascript] Extract portion of URL and place in > form field > > > Sensitivity: Confidential > > > > > > > > > Hi, I would like to grab the text after the '=' and place > it in the > > > form field 'ticket'. This is a form with only one field, > > the formname > > > is 'sverify' > > > > > > This is the string... > > http://www.mysite.com/thanks.html?cbreceipt=Z54HKPT7 > > > > I'm after the Z54HKPT7. > > > > How would I do this? > > > > Regards, > > > > Phillip Morgan > > Chief Information Offier > > Quickpages Business Directories > > -------------------------------------------------------------- > > -------------- > > ------------ > > This email is intended for the above named recipient only, and may > > contain priveledged information. If you are not the intended > > recipient please delete > > this email immediately and notify Quickpages of the problem. > > > > _______________________________________________ > > 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 > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From andrew at d2k.com.au Sun May 19 22:07:32 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Mon, 20 May 2002 13:07:32 +1000 Subject: [Javascript] What's the equivalent of vbscript URLEncode in j avascript? Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151DD5@CHIMAERA> I think you'll find that URLEncode is a method of the Server object. Which a client side script will not have. -----Original Message----- From: Lau [mailto:lau at goldenweb.com.au] Sent: Monday, 20 May 2002 12:54 PM To: javascript at LaTech.edu Subject: [Javascript] What's the equivalent of vbscript URLEncode in javascript? How do I encode a URL in javascript? I can't find a function that is equivalent to vbxcripts URLencode. Thanks in advance Lau _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From alex.yap at str.com.au Sun May 19 22:53:43 2002 From: alex.yap at str.com.au (Alexander Yap) Date: Mon, 20 May 2002 13:53:43 +1000 Subject: [Javascript] How to disable entire page when busy? Message-ID: <20020520035553.3395D308A09@LaTech.edu> Hi all, Does anyone know how to easily disable a page such that it doesn't accept user input (and preferably also grey out the page if possible)? I have a page with many controls, all submitting to Java servlets. Some of the servlet processing can take a long time, and I do not want the user to submit anything else while the servlet is busy. I thought of putting this restriction on the server side, but that is not enough because my page also has lots of Javascript objects that maintain states on client-side. If the user clicks on something, and the server ignores the request, the Javascript states will be out of synch with server-side session state. Currently, I'm blocking user interaction by making visible a huge blank
block that covers the whole page when busy. The problem is that my users think that this suddenly appearing blank
is UGLY, because they're used to desktop apps that nicely grey-out the controls when disabled. Individually controlling the controls' event handlers (using a global flag) is not practical because they are lots of them (some forms, some
s with onclick function, and there are also a few subframes). What I need is to be able to enable/disable user input at the window, document or body level. I need to support IE5+ and Netscape 6.2, so I can't rely on Netscape's captureEvents() either. Any ideas??? Hope someone can help me here. I'm stuck. Thanks in advance. -- Alexander Yap Melbourne, Australia From yna54 at hotmail.com Mon May 20 09:00:55 2002 From: yna54 at hotmail.com (Dijam majiD) Date: Mon, 20 May 2002 14:00:55 +0000 Subject: [Javascript] (no subject) Message-ID: How to call a function in a function in javascripts : Here is what I did, but it does not work : _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From LMuchacho at twii.net Mon May 20 09:10:18 2002 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Mon, 20 May 2002 15:10:18 +0100 Subject: [Javascript] What's the equivalent of vbscript URLEncode in j avascript? Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03C5CFEE@lon.webmail.twii.net> Hi Lau You can use escape("string") and unescape("string") to bring it back to normal formating Laurent -----Original Message----- From: Lau [mailto:lau at goldenweb.com.au] Sent: 20 May 2002 03:54 To: javascript at LaTech.edu Subject: [Javascript] What's the equivalent of vbscript URLEncode in javascript? How do I encode a URL in javascript? I can't find a function that is equivalent to vbxcripts URLencode. Thanks in advance Lau _______________________________________________ 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 lester at denhaag.org Mon May 20 11:13:11 2002 From: lester at denhaag.org (J. Lester Novros II) Date: Mon, 20 May 2002 18:13:11 +0200 Subject: [Javascript] How to disable entire page when busy? References: <20020520035553.3395D308A09@LaTech.edu> Message-ID: <3CE92097.8070508@denhaag.org> Dear Alexander, On 05/20/2002 05:53 AM, Alexander Yap wrote: > Does anyone know how to easily disable a page such that it doesn't accept > user input (and preferably also grey out the page if possible)? [...] > I need to support IE5+ and Netscape 6.2, so I can't rely on Netscape's > captureEvents() either. Try using style settings of 'background-color: black;' and '-moz-opacity: .15;' on the 'huge DIV'. The opacity thing is a Mozilla addition to the CSS spec they needed for their chrome stuff. The combination of the bgColor and the .15 value should give you a partly transparent DIV which sort of 'grays out' the underlying page. I'm fairly sure Mozilla 0.9.4 [on which Netscape is based] supports it. m$ has a similar kind of thing for xPloder called an 'alpha filter', more info to be found here: http://msdn.microsoft.com/workshop/author/filter/reference/filters/alpha.asp I assume this capacity is built in and not some sort of plug-in, which would rather defeat its purpose. If you combine this with statements which set 'window.onkeypress' and 'window.onclick' to point to a function which cancels the event and returns nothing, you should be home free, i.e. 'window.onkeypress = keypressHandler;' where 'keypressHandler' would be something like 'function keypressHandler(e) { e.stopPropagation(); return; }'. For xPloder the 'e.stopPropagation()' equivalent would be something like 'window.event.returnValue = false' if I'm not mistaken. Be sure to restore mouse and keyboard input when you're done by setting the click and keypress handlers to a 'null' value [i.e. 'window.onclick = null;']. I tested this on Mozilla 1.0rc2 and it works fine. I'm afraid I can't check xPloder since I'm running Linux. Hope this helps anyway. l8R lES -- Attacks by Bill Gates on the General Public License have been driven by the fear that the GPL creates a domain of software that m$ cannot privatize and control. ZDNet http://open.denhaag.nu http://www.denhaag.org From extstarrfam at cox-internet.com Mon May 20 14:10:35 2002 From: extstarrfam at cox-internet.com (Steve) Date: Mon, 20 May 2002 14:10:35 -0500 Subject: [Javascript] Re: How to disable entire page when busy? Message-ID: <000b01c20032$054ea480$242be942@coxinternet.com> Some one may have already suggested this but you can also use the HTML input, option & select tags' disable attribute to disable individual tags and then using javascript enable them when desired. From extstarrfam at cox-internet.com Mon May 20 14:45:22 2002 From: extstarrfam at cox-internet.com (Steve) Date: Mon, 20 May 2002 14:45:22 -0500 Subject: [Javascript] no subject "calling a function on another page" Message-ID: <001b01c20036$e1419200$242be942@coxinternet.com> This is a duplicate of what I sent directly to the original subject sender. You need to remember that different browser will responsed in a different manure to this code. It works as is in IE 5.5 but NS 6.2 needs some help to open the function. I had to use this in the page "Display Window Info.htm" in order to access the function on the same page. if (navigator.appName.toLowerCase( )=='netscape') displayInformation( ); function displayInformation(document) { anObject=window.opener.document; var the_appName = navigator.appName.toLowerCase( ); var winInfo=""; var docInfo=""; var objInfo=""; var formCount = window.opener.document.forms.length; I hope that this is of some help. From r-warnes at paradise.net.nz Tue May 21 02:52:29 2002 From: r-warnes at paradise.net.nz (Robin Warnes) Date: Tue, 21 May 2002 19:52:29 +1200 Subject: [Javascript]
tag in Netcape Message-ID: <001f01c2009c$abeb06c0$38464fcb@robinwarnes> Dear List, Could anyone please tell me how I can get the attached page, containing
and CSS layers creating pulldown menus; to work in Netscape as well as Internet Explorer.. Your help would be appreciated. Robin New Zealand. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From akbot at narod.ru Tue May 21 06:21:00 2002 From: akbot at narod.ru (Kvasov Dmitriy) Date: Tue, 21 May 2002 15:21:00 +0400 Subject: [Javascript]
tag in Netcape In-Reply-To: <001f01c2009c$abeb06c0$38464fcb@robinwarnes> References: <001f01c2009c$abeb06c0$38464fcb@robinwarnes> Message-ID: <1891755301.20020521152100@narod.ru> Hello Robin, RW> ...
... in Netscape as well as Internet Explorer.. You should use tag. But it's syntax is a bit differ from
, so search for manual. -- Best regards, Kvasov Dmitriy mailto:akbot at narod.ru From andrew at d2k.com.au Tue May 21 06:58:41 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Tue, 21 May 2002 21:58:41 +1000 Subject: [Javascript] scrolling divs Message-ID: <1D0255E75622D51185DB00D0B7E3FF44122EE6@CHIMAERA> Hi, anyone have any ideas which browsers support scrolling divs (layers), I have a site (http://d2kmail.no-ip.com/qcbricks/template.htm) that i wish to use scrolling for just one section (the white section)? I'm not sure how to do it. I could use frames but the pic on the left is a random pic and usign frames might defeat the purpose of this a bit. Thanks. From cutterbl at hotmail.com Tue May 21 07:20:16 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Tue, 21 May 2002 08:20:16 -0400 Subject: [Javascript] scrolling divs Message-ID: If this were an IE solution only I might suggest an inline frame