From hormuz.maloo at kotak.com Wed Aug 1 01:35:28 2001 From: hormuz.maloo at kotak.com (hormuz maloo) Date: Wed, 1 Aug 2001 12:05:28 +0530 Subject: [Javascript] tables with headings that do not scroll Message-ID: <0A0F9ADC3617D411BEB50004ACD36C58029E57B1@KSNTBOMBKH02> Peter, Thanks for the link. Check this one out too, just in case you're interested. http://www.elementkjournals.com/wdv/0107/wdv0171.htm Rgds, Hormuz From: "Peter-Paul Koch" To: javascript at LaTech.edu Subject: Re: [Javascript] tables with headings that do not scroll Date: Tue, 31 Jul 2001 15:10:24 +0000 Reply-To: javascript at LaTech.edu >I just joined this list and have a query that may not be strictly >javascript. Yes, this is a strictly JavaScript question. >Is it possible in some way (without using frames) to make a table in html > >css where the table heading remains fixed on the page and only the >contents of the table can be scrolled. Any ideas would be welcome. See http://www.xs4all.nl/~ppk/js/index.html?fixedhead.html for the script you need. ppk -------------- next part -------------- An HTML attachment was scrubbed... URL: From gassinaumasis at hotmail.com Wed Aug 1 02:41:48 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Wed, 01 Aug 2001 07:41:48 +0000 Subject: [Javascript] Class and ID Message-ID: >I am attempting to get (from a popup) the ID of a class from an image >on >an opening page. I'm not having any luck. I'm looking for something >that >will work in IE 4+ and NS 4+....Any suggestions? ID on IMG tag does not work in NN4 at all. Besides, what is 'clsItemPic' exactly? Should be the NAME of the image to work properly, so you already have the NAME/ID. Or is it a class? Then it won't work. >//This does not work >varImgSrc = eval('window.opener.document.images.clsItemPic.style.id'); Generally, to get the ID of an item you're almost correct: varImgSrc = opener.document.images.clsItemPic.id; You don't need the eval and id is a property of the object itself, not of the style. 'window.' is not necessary but won't hurt either. But I don't think this is going to work on images in NN4. ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -------------- next part -------------- An embedded message was scrubbed... From: unknown sender Subject: no subject Date: no date Size: 38 URL: From mrees at twii.net Wed Aug 1 04:52:12 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Wed, 1 Aug 2001 10:52:12 +0100 Subject: [Javascript] find folder Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC021110D7@lonmail.twii.net> Hello (before you pay too much attention to this, I'm OK with vbscript but know very little of jscript) Well, you haven't specified the path :-) obj_fso.GetFolder("quotes") try something like obj_fso.GetFolder("/mypath/quotes") vbscript has server.mappath for this very purpose, but I think (correct me if I'm wrong) that only works within a website, i.e it knows the path of the root and works things out from there. I hope this is of some help Mark -----Original Message----- From: Andrew Dunn [mailto:adunn at mail.interworx.com.au] Sent: 01 August 2001 01:29 To: javascript at LaTech.edu Subject: [Javascript] find folder Hi, I'm trying a few things with this ActiveX filescripting object. I have code that displays all the files in a set folder (quotes). This code works fine when it is just on the desktop but when I move both the quotes folder and the code to another directory (they are still in the same folder) I have an error occuring saying it can not find the path. Can anyone see the error in my code below? Thanks, Andrew _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From filipiab at atsc.army.mil Wed Aug 1 06:40:30 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Wed, 1 Aug 2001 07:40:30 -0400 Subject: [Javascript] make button background clear (invisible) Message-ID: What do you mean by 'clear?' By default, a table cell has no color unless you assign one to it therefore the page background is what you see as the background 'color' of the cell. Bob Filipiak (Contractor) MCP -----Original Message----- From: Andrew Dunn [mailto:adunn at mail.interworx.com.au] Sent: Wednesday, August 01, 2001 12:46 AM To: javascript at LaTech.edu Subject: [Javascript] make button background clear (invisible) Hi, How is it possible to make the button background clear? You can change it to all sorts of colours and pictures, but does anyone know how to make it so it is clear (invisible)? This only has to work in IE5+ Andrew _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From phumes1 at home.com Wed Aug 1 07:07:13 2001 From: phumes1 at home.com (phumes1 at home.com) Date: Wed, 01 Aug 2001 08:07:13 -0400 Subject: [Javascript] Re: Changing text with dropdown menu "poptext" Message-ID: <5.1.0.14.0.20010801080357.00a4a7a0@mail.wlfdle1.on.wave.home.com> Hi, Does anyone know where I can find a script the changes the paragraph text by selecting an item from a drop down menu without refreshing the page? MSNBC has one but I can find the script on www.javascriptsource.com. By looking at the source it's called "poptext" but that could have been written in-house. Below is the URL for the example. Just scroll down and look for "Comparing the Consoles". Any help would be greatly appreciated. http://www.msnbc.com/news/606012.asp?0dm=T22AT#BODY From adunn at mail.interworx.com.au Wed Aug 1 07:50:18 2001 From: adunn at mail.interworx.com.au (Andrew Dunn) Date: Wed, 1 Aug 2001 22:50:18 +1000 Subject: [Javascript] make button background clear (invisible) In-Reply-To: Message-ID: RE: [Javascript] make button background clear (invisible)sorry, I mean like from the normal grey color of a button (reset,submit), so that you can see through the button? -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Filipiak, Bob (Contractor) Sent: Wednesday, 1 August 2001 9:41 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] make button background clear (invisible) What do you mean by 'clear?' By default, a table cell has no color unless you assign one to it therefore the page background is what you see as the background 'color' of the cell. Bob Filipiak (Contractor) MCP -----Original Message----- From: Andrew Dunn [mailto:adunn at mail.interworx.com.au] Sent: Wednesday, August 01, 2001 12:46 AM To: javascript at LaTech.edu Subject: [Javascript] make button background clear (invisible) Hi, How is it possible to make the button background clear? You can change it to all sorts of colours and pictures, but does anyone know how to make it so it is clear (invisible)? This only has to work in IE5+ Andrew _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From filipiab at atsc.army.mil Wed Aug 1 08:00:56 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Wed, 1 Aug 2001 09:00:56 -0400 Subject: [Javascript] make button background clear (invisible) Message-ID: There are ways to change the color of a button, but if you want it transparent, suggest you create your own .gif image to use as a button and make it transparent. Then use it in an As for changing the color of the standard button, try searching the archives. Bob Filipiak (Contractor) MCP -----Original Message----- From: Andrew Dunn [mailto:adunn at mail.interworx.com.au] Sent: Wednesday, August 01, 2001 8:50 AM To: javascript at LaTech.edu Subject: RE: [Javascript] make button background clear (invisible) sorry, I mean like from the normal grey color of a button (reset,submit), so that you can see through the button? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlevy at lancer-ins.com Wed Aug 1 10:02:08 2001 From: dlevy at lancer-ins.com (David Levy) Date: Wed, 1 Aug 2001 11:02:08 -0400 Subject: [Javascript] strings into variables References: Message-ID: <001b01c11a9a$efde65e0$5d0110ac@lancerins.com> Hi, I'm trying to turn a string into a variable name. In other words, suppose I get input from a user, and want to convert that string into a name of a variable and use it in a function. The reason I have for doing this is that the input I get from the user will be an actual preexisting variable name in the script, but there are very many of these variables and I'd like to refer to them without using switches. I hope this was clear and please tell me if you need clarification. David Levy. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hassan at webtuitive.com Wed Aug 1 10:21:31 2001 From: hassan at webtuitive.com (Hassan Schroeder) Date: Wed, 01 Aug 2001 08:21:31 -0700 Subject: [Javascript] make button background clear (invisible) References: Message-ID: <3B681E7B.4D5379CF@webtuitive.com> Andrew Dunn wrote: > How is it possible to make the button background clear? tested: IE5,5.5/Win, NS6.1/Win HTH! -- H* Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design ---(+1) 408-938-0567 --- http://www.webtuitive.com -- creating dynamic Web sites and applications since 1994 -- From peter at brunone.com Wed Aug 1 10:41:05 2001 From: peter at brunone.com (Peter Brunone) Date: Wed, 1 Aug 2001 10:41:05 -0500 Subject: [Javascript] strings into variables References: <001b01c11a9a$efde65e0$5d0110ac@lancerins.com> Message-ID: <124a01c11aa0$7675b680$e22d200a@PMBRUNON> David, Read up on the eval() function. It can take a string and turn it into the appropriate object reference, e.g. var myPointer = eval("document.all.myDiv.style.color"); Should be what you're looking for. Cheers, Peter ----- Original Message ----- From: David Levy To: javascript at LaTech.edu Sent: Wednesday, August 01, 2001 10:02 AM Subject: [Javascript] strings into variables Hi, I'm trying to turn a string into a variable name. In other words, suppose I get input from a user, and want to convert that string into a name of a variable and use it in a function. The reason I have for doing this is that the input I get from the user will be an actual preexisting variable name in the script, but there are very many of these variables and I'd like to refer to them without using switches. I hope this was clear and please tell me if you need clarification. David Levy. -------------- next part -------------- An HTML attachment was scrubbed... URL: From filipiab at atsc.army.mil Wed Aug 1 10:50:43 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Wed, 1 Aug 2001 11:50:43 -0400 Subject: FW: [Javascript] strings into variables Message-ID: ??
This is to test characterset. Sorry for the repost.
 

Bob Filipiak (Contractor)
MCP

-----Original Message-----
From: Peter Brunone [mailto:peter at brunone.com]
Sent: Wednesday, August 01, 2001 11:41 AM
To: javascript at LaTech.edu
Subject: Re: [Javascript] strings into variables

David, Read up on the eval() function. It can take a string and turn it into the appropriate object reference, e.g. var myPointer = eval("document.all.myDiv.style.color"); Should be what you're looking for. Cheers, Peter ----- Original Message ----- From: David Levy To: javascript at LaTech.edu Sent: Wednesday, August 01, 2001 10:02 AM Subject: [Javascript] strings into variables Hi, I'm trying to turn a string into a variable name. In other words, suppose I get input from a user, and want to convert that string into a name of a variable and use it in a function. The reason I have for doing this is that the input I get from the user will be an actual preexisting variable name in the script, but there are very many of these variables and I'd like to refer to them without using switches. I hope this was clear and please tell me if you need clarification. David Levy. -------------- next part -------------- An HTML attachment was scrubbed... URL: From filipiab at atsc.army.mil Wed Aug 1 10:56:05 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Wed, 1 Aug 2001 11:56:05 -0400 Subject: [Javascript] strings into variables Message-ID: For some reason any mail from Dave Levy as well as Peter's response have all Japanese/Chinese characters/symbols in them. But if I forward the messages to another email account or back to the list, the character set get fixed. Any ideas? Bob Filipiak (Contractor) MCP -----Original Message----- From: Filipiak, Bob (Contractor) Sent: Wednesday, August 01, 2001 11:51 AM To: Javascript (E-mail) Subject: FW: [Javascript] strings into variables ?? This is to test characterset. Sorry for the repost. Bob Filipiak (Contractor) MCP -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at brunone.com Wed Aug 1 11:06:26 2001 From: peter at brunone.com (Peter Brunone) Date: Wed, 1 Aug 2001 11:06:26 -0500 Subject: [Javascript] strings into variables References: Message-ID: <131201c11aa3$eb961ec0$e22d200a@PMBRUNON> It's probably just my current fixation with the adventures of Buckaroo Banzai; it'll pass :) ----- Original Message ----- From: Filipiak, Bob (Contractor) To: 'javascript at LaTech.edu' Sent: Wednesday, August 01, 2001 10:56 AM Subject: RE: [Javascript] strings into variables For some reason any mail from Dave Levy as well as Peter's response have all Japanese/Chinese characters/symbols in them. But if I forward the messages to another email account or back to the list, the character set get fixed. Any ideas? Bob Filipiak (Contractor) MCP -----Original Message----- From: Filipiak, Bob (Contractor) Sent: Wednesday, August 01, 2001 11:51 AM To: Javascript (E-mail) Subject: FW: [Javascript] strings into variables ?? This is to test characterset. Sorry for the repost. Bob Filipiak (Contractor) MCP -------------- next part -------------- An HTML attachment was scrubbed... URL: From TMccoy at city.newport-beach.ca.us Wed Aug 1 12:35:32 2001 From: TMccoy at city.newport-beach.ca.us (McCoy, Thomas) Date: Wed, 1 Aug 2001 10:35:32 -0700 Subject: [Javascript] strings into variables Message-ID: <69DB2122006FD511AE44009027406B240127E0@EXCHANGE_LIB> The Hong Kong Cavaliers strike again! Sincerely, Thomas McCoy Web Development Specialist www.newportbeachlibrary.com -----Original Message----- It's probably just my current fixation with the adventures of Buckaroo Banzai; it'll pass :) Japanese/Chinese characters/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From cutterbl at hotmail.com Wed Aug 1 19:46:40 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Wed, 01 Aug 2001 20:46:40 -0400 Subject: [Javascript] Class and ID Message-ID: An HTML attachment was scrubbed... URL: From adunn at mail.interworx.com.au Wed Aug 1 20:43:45 2001 From: adunn at mail.interworx.com.au (Andrew Dunn) Date: Thu, 2 Aug 2001 11:43:45 +1000 Subject: [Javascript] path of file In-Reply-To: Message-ID: Hi, I'm trying to specifiy a path name of a folder that is one folder above the current one. Normally I would use "../thefolder" to specify it. But for some reason this is not working. I'm using ActiveX object (file system object) in conjuction with Jscript. The line is: folder_spec = obj_fso.GetAbsolutePathName("../quotes"); But this returns "C:/windows/quotes" which is not the folder location. Can anyone help me with this? Thanks. Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From gassinaumasis at hotmail.com Thu Aug 2 01:51:53 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Thu, 02 Aug 2001 06:51:53 +0000 Subject: [Javascript] Class and ID Message-ID: >onClick="javascript:window.open('itempic.html','ItemPic','')" > >Could I pass the image name as the second variable of this statement, >then >call an onload function to apply that as the image source? Yes, I think so. But I'm not sure how to refer to the second variable. It would be window.name, but I recall something was wrong with it. Anyway, you can try. ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -------------- next part -------------- An embedded message was scrubbed... From: unknown sender Subject: no subject Date: no date Size: 38 URL: From cutterbl at hotmail.com Wed Aug 1 19:46:40 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Wed, 01 Aug 2001 20:46:40 -0400 Subject: [Javascript] Class and ID Message-ID: An HTML attachment was scrubbed... URL: From filipiab at atsc.army.mil Thu Aug 2 06:46:48 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Thu, 2 Aug 2001 07:46:48 -0400 Subject: [Javascript] Class and ID Message-ID: You might try onClick="javascript:window.open('itempic.html?Picture=ItemPic','','')" Then in your itempic.html onload function capture the value for the 'Picture' Bob Filipiak (Contractor) MCP -----Original Message----- From: Cutter Bl [mailto:cutterbl at hotmail.com] Sent: Wednesday, August 01, 2001 8:47 PM To: javascript at LaTech.edu Subject: Re: [Javascript] Class and ID varImgSrc = opener.document.images.clsItemPic.id; If this will not work in NN4, is it possible to pass the image name variable to the new window through a function? can I do that with the window.open event? The current code is: onClick="javascript:window.open('itempic.html','ItemPic','')" Could I pass the image name as the second variable of this statement, then call an onload function to apply that as the image source? Cutter _____ Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at brunone.com Thu Aug 2 10:01:25 2001 From: peter at brunone.com (Peter Brunone) Date: Thu, 2 Aug 2001 10:01:25 -0500 Subject: [Javascript] path of file References: Message-ID: <18fd01c11b64$1e99a5b0$e22d200a@PMBRUNON> Andrew, If you have a directory defined as currentDir = obj_fso.GetFolder(foldername) -- where foldername is an absolute path -- then you should be able to access the parent directory via the currentDir.ParentFolder property. ----- Original Message ----- From: "Andrew Dunn" To: Sent: Wednesday, August 01, 2001 8:43 PM Subject: [Javascript] path of file | Hi, | I'm trying to specifiy a path name of a folder that is one folder above | the current one. Normally I would use "../thefolder" to specify it. But for | some reason this is not working. I'm using ActiveX object (file system | object) in conjuction with Jscript. The line is: | | | folder_spec = obj_fso.GetAbsolutePathName("../quotes"); | | | But this returns "C:/windows/quotes" which is not the folder location. | | Can anyone help me with this? | | | Thanks. | Andrew | From peter at brunone.com Thu Aug 2 11:59:05 2001 From: peter at brunone.com (Peter Brunone) Date: Thu, 2 Aug 2001 11:59:05 -0500 Subject: [Javascript] A cool bit of DHTML Message-ID: <1e2e01c11b74$706ea420$e22d200a@PMBRUNON> http://www.kellie-rasberry.com/ From cburgess at converse.com Thu Aug 2 12:36:09 2001 From: cburgess at converse.com (Burgess, Chris) Date: Thu, 2 Aug 2001 13:36:09 -0400 Subject: [Javascript] A cool bit of DHTML Message-ID: <91B30638DAA9D41193710008C733FE567641FA@MAIL> No, it's obnoxious. -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Thursday, August 02, 2001 12:59 PM To: javascript at LaTech.edu Subject: [Javascript] A cool bit of DHTML http://www.kellie-rasberry.com/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From alps33 at yahoo.com Thu Aug 2 12:36:24 2001 From: alps33 at yahoo.com (Andrea Poulimenos) Date: Thu, 2 Aug 2001 10:36:24 -0700 (PDT) Subject: [Javascript] pop up window works only once, but works again with reload Message-ID: <20010802173624.68681.qmail@web14001.mail.yahoo.com> Hi :) First off, I am really new to javascript (3 days), but I'm not new to programming languages/logic. (Thought I'd just warn you.) ;) Want: little popup window, no options except to close(no scrolling, etc.), presized, showing up at a certain location on the screen My solution: . . . function lil_window() {lil_window=window.open("BlockBaseSR.htm", "plain", "width=340,height=220,screenX=450,screenY=220,left=450,top=220"); } . . . Click here for System Requirements . . . Problem: Link works only once. You need to refresh the page to view the popup window again. I have no idea what's going wrong. What's your solution? Thanks -Andrea __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ From peter at brunone.com Thu Aug 2 12:40:40 2001 From: peter at brunone.com (Peter Brunone) Date: Thu, 2 Aug 2001 12:40:40 -0500 Subject: [Javascript] A cool bit of DHTML References: <91B30638DAA9D41193710008C733FE567641FA@MAIL> Message-ID: <1ef301c11b7a$3fcb1b40$e22d200a@PMBRUNON> Well, sure, because you can't turn it off. The *effect*, though, of linking an array and the physics modeling behind it (spring constants, etc.) struck me as well thought-out. ----- Original Message ----- From: "Burgess, Chris" To: Sent: Thursday, August 02, 2001 12:36 PM Subject: RE: [Javascript] A cool bit of DHTML | No, it's obnoxious. | | -----Original Message----- | From: Peter Brunone [mailto:peter at brunone.com] | Sent: Thursday, August 02, 2001 12:59 PM | To: javascript at LaTech.edu | Subject: [Javascript] A cool bit of DHTML | | | http://www.kellie-rasberry.com/ From Quixote at LaMancha.org Thu Aug 2 12:41:26 2001 From: Quixote at LaMancha.org (Ben Curtis) Date: Thu, 02 Aug 2001 10:41:26 -0700 Subject: [Javascript] Re: event handler protocol tip In-Reply-To: Message-ID: onClick="javascript:window.open('itempic.html?Picture=ItemPic','','')" This construction is common, and works in all browsers (I think), but you don't need to specify "javascript:" inside an event handler. Everything between the quotes after an event handler is interpreted as javascript anyway. This line should be written as: onclick="window.open('itempic.html?Picture=ItemPic','','');" -- +Ben Curtis "On the other side of the screen, it all looks so easy." -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrees at twii.net Thu Aug 2 12:47:47 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Thu, 2 Aug 2001 18:47:47 +0100 Subject: [Javascript] pop up window works only once, but works again w ith reload Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC021110F9@lonmail.twii.net> Hello when you say view the window again, do you mean have 2 popups with the same content on the screen at the same time? If so then give them different names, so instead of "plain", use "plain" + uniquevar Try using a date (defined in milliseconds I think) for the uniquestring maybe if there's nothing else to hand, something like: var uniquevar=new Date(); If you haven't already seen it this is a good set of docs http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm Cheers Mark -----Original Message----- From: Andrea Poulimenos [mailto:alps33 at yahoo.com] Sent: 02 August 2001 18:36 To: javascript at LaTech.edu Subject: [Javascript] pop up window works only once, but works again with reload Hi :) First off, I am really new to javascript (3 days), but I'm not new to programming languages/logic. (Thought I'd just warn you.) ;) Want: little popup window, no options except to close(no scrolling, etc.), presized, showing up at a certain location on the screen My solution: . . . function lil_window() {lil_window=window.open("BlockBaseSR.htm", "plain", "width=340,height=220,screenX=450,screenY=220,left=450,top=220"); } . . . Click here for System Requirements . . . Problem: Link works only once. You need to refresh the page to view the popup window again. I have no idea what's going wrong. What's your solution? Thanks -Andrea __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From filipiab at atsc.army.mil Thu Aug 2 12:47:52 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Thu, 2 Aug 2001 13:47:52 -0400 Subject: [Javascript] pop up window works only once, but works again w ith reload Message-ID: What page do you need to refresh? What is the code for BlockBaseSR.htm? Also IMHO you should not use lil_window the var even though it is local to lil_window the function. Try declaring var lil_win as a global andassigning it inside your lil_window() Bob Filipiak (Contractor) MCP -----Original Message----- From: Andrea Poulimenos [mailto:alps33 at yahoo.com] Sent: Thursday, August 02, 2001 1:36 PM To: javascript at LaTech.edu Subject: [Javascript] pop up window works only once, but works again with reload Hi :) First off, I am really new to javascript (3 days), but I'm not new to programming languages/logic. (Thought I'd just warn you.) ;) Want: little popup window, no options except to close(no scrolling, etc.), presized, showing up at a certain location on the screen My solution: . . . function lil_window() {lil_window=window.open("BlockBaseSR.htm", "plain", "width=340,height=220,screenX=450,screenY=220,left=450,top=220"); } . . . Click here for System Requirements . . . Problem: Link works only once. You need to refresh the page to view the popup window again. I have no idea what's going wrong. What's your solution? Thanks -Andrea __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From nvulovic at altamira.com Thu Aug 2 13:13:41 2001 From: nvulovic at altamira.com (Nancy Burton-Vulovic) Date: Thu, 2 Aug 2001 14:13:41 -0400 Subject: [Javascript] pop up window works only once, but works again with reload References: Message-ID: <004a01c11b7e$dc052b00$29181eac@altamira> RE: [Javascript] pop up window works only once, but works again with reloadActually just changing lil_window the variable to lil_win will do it. Nancy ----- Original Message ----- From: Filipiak, Bob (Contractor) To: 'javascript at LaTech.edu' Sent: Thursday, August 02, 2001 1:47 PM Subject: RE: [Javascript] pop up window works only once, but works again with reload What page do you need to refresh? What is the code for BlockBaseSR.htm? Also IMHO you should not use lil_window the var even though it is local to lil_window the function. Try declaring var lil_win as a global andassigning it inside your lil_window() Bob Filipiak (Contractor) MCP -------------- next part -------------- An HTML attachment was scrubbed... URL: From alps33 at yahoo.com Thu Aug 2 13:35:38 2001 From: alps33 at yahoo.com (Andrea Poulimenos) Date: Thu, 2 Aug 2001 11:35:38 -0700 (PDT) Subject: [Javascript] pop up window works only once, but works again with reload In-Reply-To: <004a01c11b7e$dc052b00$29181eac@altamira> Message-ID: <20010802183538.97647.qmail@web14004.mail.yahoo.com> lol, I'm a dork I was reading the posts and thought...hmmm, did I declare that variable? (I guess not) I just inserted var in front of the variable inside the {}'s and everything works fine now. :) Thanks for all your help. I am glad there is a list like this. It's like a flashlight for those wandering around in the dark... i.e. me Thanks again. -Andrea __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ From emstrom at interaccess.com Thu Aug 2 15:26:21 2001 From: emstrom at interaccess.com (Esther Strom) Date: Thu, 02 Aug 2001 20:26:21 -0000 Subject: [Javascript] Setting default selection in dropdown Message-ID: <9kcd1d+8b6l@eGroups.com> Hi, everyone. I'm new to this group (I was an active member of the list several years ago, but got away from JS for a while.) Anyway, here's the problem. I have several menus (selects) on a form. I save the last used selection to a cookie when the user leaves or shuts down. I need to somehow set the default selected item to the cookie value when the page is opened again. I can read the cookie value back with no problem, but how do I set the default selected value without knowing the selectedIndex of the cookie? (I thought of saving the selectedIndex number to the cookie too, but because the dropdown select is populated from a database, there may be new records added between the time the cookie is saved and when it's accessed. This will make the selectedIndex # wrong.) Any ideas? Thanks, Esther Strom From dlevy at lancer-ins.com Thu Aug 2 15:40:38 2001 From: dlevy at lancer-ins.com (David Levy) Date: Thu, 2 Aug 2001 16:40:38 -0400 Subject: [Javascript] Setting default selection in dropdown References: <9kcd1d+8b6l@eGroups.com> Message-ID: <000801c11b93$63bc1ea0$5d0110ac@lancerins.com> run a loop in the JS which looks at the values of each option until it matches the contents of the cookie? I don't know how much efficiency matters, just an idea. From peter at brunone.com Thu Aug 2 15:49:14 2001 From: peter at brunone.com (Peter Brunone) Date: Thu, 2 Aug 2001 15:49:14 -0500 Subject: [Javascript] Setting default selection in dropdown References: <9kcd1d+8b6l@eGroups.com> Message-ID: <21bc01c11b94$9723cc60$e22d200a@PMBRUNON> Esther, Just iterate through the options until you get to the correct value, e.g. var i = 0; var cookieValue = "boogawooga"; // or whatever var mySelect = document.formName.selectName; while(i < mySelect.options.length) { if(mySelect.options[i].value == cookieValue) { mySelect.options[i].selected = true; } i++; } You can substitute text for value if you want; either one works just fine. Cheers, Peter ----- Original Message ----- From: "Esther Strom" To: Sent: Thursday, August 02, 2001 3:26 PM Subject: [Javascript] Setting default selection in dropdown | Hi, everyone. I'm new to this group (I was an active member of the | list several years ago, but got away from JS for a while.) Anyway, | here's the problem. I have several menus (selects) on a form. I save | the last used selection to a cookie when the user leaves or shuts | down. I need to somehow set the default selected item to the cookie | value when the page is opened again. | | I can read the cookie value back with no problem, but how do I set the | default selected value without knowing the selectedIndex of the | cookie? (I thought of saving the selectedIndex number to the cookie | too, but because the dropdown select is populated from a database, | there may be new records added between the time the cookie is saved | and when it's accessed. This will make the selectedIndex # wrong.) | | Any ideas? | | Thanks, | | Esther Strom | | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | From ben at babelfish.co.uk Thu Aug 2 17:04:03 2001 From: ben at babelfish.co.uk (ben) Date: Thu, 2 Aug 2001 23:04:03 +0100 Subject: [Javascript] A cool bit of DHTML In-Reply-To: <1e2e01c11b74$706ea420$e22d200a@PMBRUNON> Message-ID: heh, excellent :) some clever maths going on there. Well done to the author. .b > -----Original Message----- > From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On > Behalf Of Peter Brunone > Sent: 02 August 2001 17:59 > To: javascript at LaTech.edu > Subject: [Javascript] A cool bit of DHTML > > > http://www.kellie-rasberry.com/ > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > From kspreddy at npi.stpn.soft.net Fri Aug 3 02:58:45 2001 From: kspreddy at npi.stpn.soft.net (Shyam reddy) Date: Fri, 3 Aug 2001 13:28:45 +0530 Subject: [Javascript] (no subject) Message-ID: <045c01c11bf2$1f8f11b0$d1ca09c0@npi.stpn.soft.net> hi iam want to send email as a attachment Html page by using javascript how to do please help me. is it possiable to Bar-cahat's and pie chats by using simple HTML and javasctipt please give some suggestions bye shyam reddy -------------- next part -------------- An HTML attachment was scrubbed... URL: From muthu at jobsearchuk.net Fri Aug 3 03:25:36 2001 From: muthu at jobsearchuk.net (Muthu) Date: Fri, 3 Aug 2001 09:25:36 +0100 Subject: [Javascript] hi Message-ID: hi, This is Muthu from JobSearchUK Ltd., here i need one help that i want to have some idea or sample code for refreshing the frame on any event occur on any object of total page. if u can, pls write me in few words. Muthu From cutterbl at hotmail.com Fri Aug 3 05:20:21 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Fri, 03 Aug 2001 06:20:21 -0400 Subject: [Javascript] (no subject) Message-ID: An HTML attachment was scrubbed... URL: From adunn at mail.interworx.com.au Fri Aug 3 08:00:28 2001 From: adunn at mail.interworx.com.au (Andrew Dunn) Date: Fri, 3 Aug 2001 23:00:28 +1000 Subject: [Javascript] form validation In-Reply-To: Message-ID: Hi, I have a form that contains it is produced dynamically through the .innerHTML method. Does anyone know of a way to validate this? Is there an array of input tags or collection or something that could be of use? All that needs to be done is make sure the text boxes contain something ie. length != 0 regards, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From filipiab at atsc.army.mil Fri Aug 3 08:00:51 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Fri, 3 Aug 2001 09:00:51 -0400 Subject: [Javascript] form validation Message-ID: Try and refer to it' as document.innerHTML.MyInnerHTMLText.value Bob Filipiak (Contractor) MCP -----Original Message----- From: Andrew Dunn [mailto:adunn at mail.interworx.com.au] Sent: Friday, August 03, 2001 9:00 AM To: javascript at LaTech.edu Subject: [Javascript] form validation Hi, I have a form that contains it is produced dynamically through the .innerHTML method. Does anyone know of a way to validate this? Is there an array of input tags or collection or something that could be of use? All that needs to be done is make sure the text boxes contain something ie. length != 0 regards, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From andyg at ihug.co.nz Fri Aug 3 08:03:52 2001 From: andyg at ihug.co.nz (Andrew Gibson) Date: Sat, 4 Aug 2001 01:03:52 +1200 Subject: [Javascript] form validation In-Reply-To: Message-ID: Can't you just validate it as per normal, by giving the input a name in your .innerHTML and refer to it in script via the form?
Andrew GIbson Subject: [Javascript] form validation Hi, I have a form that contains it is produced dynamically through the .innerHTML method. Does anyone know of a way to validate this? Is there an array of input tags or collection or something that could be of use? All that needs to be done is make sure the text boxes contain something ie. length != 0 regards, Andrew From hugo.borges at ve.abb.com Fri Aug 3 09:01:49 2001 From: hugo.borges at ve.abb.com (hugo.borges at ve.abb.com) Date: Fri, 3 Aug 2001 10:01:49 -0400 Subject: [Javascript] request 269167 Message-ID: <85256A9D.0047393B.00@ABB-US01-USMTP2.abb.com> I do not wish to subscribe to this list From hassan at webtuitive.com Fri Aug 3 09:10:26 2001 From: hassan at webtuitive.com (Hassan Schroeder) Date: Fri, 03 Aug 2001 07:10:26 -0700 Subject: [Javascript] hi References: Message-ID: <3B6AB0D2.24820BB6@webtuitive.com> Muthu wrote: > This is Muthu from JobSearchUK Ltd., here i need one help that i want to > have some idea or sample code for refreshing the frame on any event occur on > any object of total page. if u can, pls write me in few words. function reloadfunction(){ window.location.reload(); // takes care of the refresh -- } According to my old JavaScript reference, though, there are 23 types of events available to window.captureEvents(); you sure you want to refresh the frame on *any* event? onFocus? onError? or maybe just on a few specific events? Maybe even just window.captureEvents(Event.CLICK); window.onclick = reloadfunction; FWIW! -- H* Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design ---(+1) 408-938-0567 --- http://www.webtuitive.com -- creating dynamic Web sites and applications since 1994 -- From Esther_Strom at hmco.com Fri Aug 3 09:12:57 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Fri, 3 Aug 2001 09:12:57 -0500 Subject: [Javascript] Setting default selection in dropdown Message-ID: Peter, Thanks for the help. This is the track I need, but, as I said, it's been a while since I've worked with JS, and I'm making stupid mistakes. Because I need to perform this routine on several cookie/select pairs, I wanted to turn your code into a function where I could pass in the cookie and select name. This is what I came up with: function findMatch(cookieName, selectName){ var i = 0; var cookieValue = unescape(getCookieValue(cookieName)); alert("Select Name passed: " + selectName); alert("CookieValue in Match: " + cookieValue); var mySelect = document.forms[0].selectName; alert("mySelect: " + mySelect); while(i < mySelect.options.length) { if(mySelect.options[i].value == cookieValue) { mySelect.options[i].selected = true; } i++; } } It's being called like this: findMatch(cookie1, 'Project'); (cookie1 isn't in quotes because I'm calling this function from within another function, where cookie1 is passed in.) getCookieValue is another function which works correctly. The line that's causing problems is: var mySelect = document.forms[0].selectName; The alert for that one produces "undefined", and I get a javascript error saying "mySelect has no properties". Is there some other way I should be appending the selectName to the document.forms[0]. part? Thanks, Esther "Peter Brunone" m> cc: Sent by: Subject: Re: [Javascript] Setting default selection in dropdown javascript-admin@ LaTech.edu 08/02/01 03:49 PM Please respond to javascript Esther, Just iterate through the options until you get to the correct value, e.g. var i = 0; var cookieValue = "boogawooga"; // or whatever var mySelect = document.formName.selectName; while(i < mySelect.options.length) { if(mySelect.options[i].value == cookieValue) { mySelect.options[i].selected = true; } i++; } You can substitute text for value if you want; either one works just fine. Cheers, Peter ----- Original Message ----- From: "Esther Strom" To: Sent: Thursday, August 02, 2001 3:26 PM Subject: [Javascript] Setting default selection in dropdown | Hi, everyone. I'm new to this group (I was an active member of the | list several years ago, but got away from JS for a while.) Anyway, | here's the problem. I have several menus (selects) on a form. I save | the last used selection to a cookie when the user leaves or shuts | down. I need to somehow set the default selected item to the cookie | value when the page is opened again. | | I can read the cookie value back with no problem, but how do I set the | default selected value without knowing the selectedIndex of the | cookie? (I thought of saving the selectedIndex number to the cookie | too, but because the dropdown select is populated from a database, | there may be new records added between the time the cookie is saved | and when it's accessed. This will make the selectedIndex # wrong.) | | Any ideas? | | Thanks, | | Esther Strom | | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From alps33 at yahoo.com Fri Aug 3 10:17:27 2001 From: alps33 at yahoo.com (Andrea Poulimenos) Date: Fri, 3 Aug 2001 08:17:27 -0700 (PDT) Subject: [Javascript] layout in IE vs. Netscape Message-ID: <20010803151727.39475.qmail@web14002.mail.yahoo.com> Anyone know of some good documentation/tutorials on creating a precise layout with tables that will work on both browsers? (I checked the archives on nested tables, but it didn't seem to help.) I been experimenting with %'s and pixels, but to no avail. A lot of our customers are running slower/older computers, so I can't get "too fancy" with stuff that wouldn't be supported by their browsers. Someone point me in the right direction, pretty please. Thanks a million. -Andrea __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ From peter at brunone.com Fri Aug 3 10:24:14 2001 From: peter at brunone.com (Peter Brunone) Date: Fri, 3 Aug 2001 10:24:14 -0500 Subject: [Javascript] Setting default selection in dropdown References: Message-ID: <23c701c11c30$5e606c70$e22d200a@PMBRUNON> Esther, If you're passing in a name, you'll want to build the object reference and eval() it, e.g. var mySelect = eval('document.forms[0].' + selectName); Otherwise you're telling the JS engine that there is a select dropdown named selectName, which is even more confusing since it's a function parameter :) Cheers, Peter ----- Original Message ----- From: To: Sent: Friday, August 03, 2001 9:12 AM Subject: Re: [Javascript] Setting default selection in dropdown | | Peter, | | Thanks for the help. This is the track I need, but, as I said, it's been a | while since I've worked with JS, and I'm making stupid mistakes. | | Because I need to perform this routine on several cookie/select pairs, I | wanted to turn your code into a function where I could pass in the cookie | and select name. This is what I came up with: | | function findMatch(cookieName, selectName){ | var i = 0; | var cookieValue = unescape(getCookieValue(cookieName)); | alert("Select Name passed: " + selectName); | alert("CookieValue in Match: " + cookieValue); | var mySelect = document.forms[0].selectName; | alert("mySelect: " + mySelect); | while(i < mySelect.options.length) { | if(mySelect.options[i].value == cookieValue) { | mySelect.options[i].selected = true; | } | i++; | } | } | | It's being called like this: | | findMatch(cookie1, 'Project'); | | (cookie1 isn't in quotes because I'm calling this function from within | another function, where cookie1 is passed in.) getCookieValue is another | function which works correctly. The line that's causing problems is: | | var mySelect = document.forms[0].selectName; | | The alert for that one produces "undefined", and I get a javascript error | saying "mySelect has no properties". Is there some other way I should be | appending the selectName to the document.forms[0]. part? | | | Thanks, | | Esther | | | | | | "Peter Brunone" | | m> cc: | Sent by: Subject: Re: [Javascript] Setting default selection in dropdown | javascript-admin@ | LaTech.edu | | | 08/02/01 03:49 PM | Please respond to | javascript | | | | | | | Esther, | | Just iterate through the options until you get to the correct value, | e.g. | | var i = 0; | var cookieValue = "boogawooga"; // or whatever | | var mySelect = document.formName.selectName; | | while(i < mySelect.options.length) { | if(mySelect.options[i].value == cookieValue) { | mySelect.options[i].selected = true; | } | i++; | } | | You can substitute text for value if you want; either one works just | fine. | | Cheers, | | Peter | | | | ----- Original Message ----- | From: "Esther Strom" | To: | Sent: Thursday, August 02, 2001 3:26 PM | Subject: [Javascript] Setting default selection in dropdown | | | | Hi, everyone. I'm new to this group (I was an active member of the | | list several years ago, but got away from JS for a while.) Anyway, | | here's the problem. I have several menus (selects) on a form. I save | | the last used selection to a cookie when the user leaves or shuts | | down. I need to somehow set the default selected item to the cookie | | value when the page is opened again. | | | | I can read the cookie value back with no problem, but how do I set the | | default selected value without knowing the selectedIndex of the | | cookie? (I thought of saving the selectedIndex number to the cookie | | too, but because the dropdown select is populated from a database, | | there may be new records added between the time the cookie is saved | | and when it's accessed. This will make the selectedIndex # wrong.) | | | | Any ideas? | | | | Thanks, | | | | Esther Strom | | | | _______________________________________________ | | Javascript mailing list | | Javascript at LaTech.edu | | http://www.LaTech.edu/mailman/listinfo/javascript | | | | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | | | | | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | From Esther_Strom at hmco.com Fri Aug 3 10:29:43 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Fri, 3 Aug 2001 10:29:43 -0500 Subject: [Javascript] Setting default selection in dropdown Message-ID: Thanks so much! That did it...told you I was rusty! Esther "Peter Brunone" m> cc: Sent by: Subject: Re: [Javascript] Setting default selection in dropdown javascript-admin@ LaTech.edu 08/03/01 10:24 AM Please respond to javascript Esther, If you're passing in a name, you'll want to build the object reference and eval() it, e.g. var mySelect = eval('document.forms[0].' + selectName); Otherwise you're telling the JS engine that there is a select dropdown named selectName, which is even more confusing since it's a function parameter :) Cheers, Peter ----- Original Message ----- From: To: Sent: Friday, August 03, 2001 9:12 AM Subject: Re: [Javascript] Setting default selection in dropdown | | Peter, | | Thanks for the help. This is the track I need, but, as I said, it's been a | while since I've worked with JS, and I'm making stupid mistakes. | | Because I need to perform this routine on several cookie/select pairs, I | wanted to turn your code into a function where I could pass in the cookie | and select name. This is what I came up with: | | function findMatch(cookieName, selectName){ | var i = 0; | var cookieValue = unescape(getCookieValue(cookieName)); | alert("Select Name passed: " + selectName); | alert("CookieValue in Match: " + cookieValue); | var mySelect = document.forms[0].selectName; | alert("mySelect: " + mySelect); | while(i < mySelect.options.length) { | if(mySelect.options[i].value == cookieValue) { | mySelect.options[i].selected = true; | } | i++; | } | } | | It's being called like this: | | findMatch(cookie1, 'Project'); | | (cookie1 isn't in quotes because I'm calling this function from within | another function, where cookie1 is passed in.) getCookieValue is another | function which works correctly. The line that's causing problems is: | | var mySelect = document.forms[0].selectName; | | The alert for that one produces "undefined", and I get a javascript error | saying "mySelect has no properties". Is there some other way I should be | appending the selectName to the document.forms[0]. part? | | | Thanks, | | Esther | | | | | | "Peter Brunone" | | m> cc: | Sent by: Subject: Re: [Javascript] Setting default selection in dropdown | javascript-admin@ | LaTech.edu | | | 08/02/01 03:49 PM | Please respond to | javascript | | | | | | | Esther, | | Just iterate through the options until you get to the correct value, | e.g. | | var i = 0; | var cookieValue = "boogawooga"; // or whatever | | var mySelect = document.formName.selectName; | | while(i < mySelect.options.length) { | if(mySelect.options[i].value == cookieValue) { | mySelect.options[i].selected = true; | } | i++; | } | | You can substitute text for value if you want; either one works just | fine. | | Cheers, | | Peter | | | | ----- Original Message ----- | From: "Esther Strom" | To: | Sent: Thursday, August 02, 2001 3:26 PM | Subject: [Javascript] Setting default selection in dropdown | | | | Hi, everyone. I'm new to this group (I was an active member of the | | list several years ago, but got away from JS for a while.) Anyway, | | here's the problem. I have several menus (selects) on a form. I save | | the last used selection to a cookie when the user leaves or shuts | | down. I need to somehow set the default selected item to the cookie | | value when the page is opened again. | | | | I can read the cookie value back with no problem, but how do I set the | | default selected value without knowing the selectedIndex of the | | cookie? (I thought of saving the selectedIndex number to the cookie | | too, but because the dropdown select is populated from a database, | | there may be new records added between the time the cookie is saved | | and when it's accessed. This will make the selectedIndex # wrong.) | | | | Any ideas? | | | | Thanks, | | | | Esther Strom | | | | _______________________________________________ | | Javascript mailing list | | Javascript at LaTech.edu | | http://www.LaTech.edu/mailman/listinfo/javascript | | | | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | | | | | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From awolansk at fes.uwaterloo.ca Sun Aug 5 16:43:17 2001 From: awolansk at fes.uwaterloo.ca (A Wolanski) Date: Sun, 5 Aug 2001 17:43:17 -0400 (EDT) Subject: [Javascript] Table rollover? Message-ID: Hello. I was wondering if anyone out there knows if it is possible to use javascript to do something like an image rollover, but for tables. What I need to do is change the contents of a table, including all table cells and their image and text contents, using an OnClick event. So far I have written something that in theory works, except that it doesn't work because it is apparently impossible to undo and rewrite stuff once you have used the document.write method. Can anyone help me out? If this is in fact impossible then I will have to resort to the painfully redundant method of creating about 15 rather large documents that are almost exactly identical. Hope to hear from someone. Ali Wol From andyg at ihug.co.nz Sun Aug 5 16:57:51 2001 From: andyg at ihug.co.nz (Andrew Gibson) Date: Mon, 6 Aug 2001 09:57:51 +1200 Subject: [Javascript] Table rollover? In-Reply-To: Message-ID: I guess you can use DHTML for this. Have the table written within a
Then, with your onclick event rewrite the contents of the div using .innerHTML or document.write It will work, but you may need to do some reading on DHTML. Andrew Gibson > Hello. > > I was wondering if anyone out there knows if it is possible to use > javascript to do something like an image rollover, but for tables. What I > need to do is change > the contents of a table, including all table cells and their image and > text contents, using an OnClick event. So far I have written something > that in theory works, > except that it doesn't work because it is apparently impossible to undo > and rewrite stuff once you have used the document.write method. > > Can anyone help me out? If this is in fact impossible then I will have to > resort to the painfully redundant method of creating about 15 > rather large > documents that are almost exactly identical. > > Hope to hear from someone. > > Ali Wol > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > From peter at brunone.com Sun Aug 5 17:01:39 2001 From: peter at brunone.com (Peter Brunone) Date: Sun, 5 Aug 2001 17:01:39 -0500 Subject: [Javascript] Table rollover? In-Reply-To: Message-ID: Ali, Have you tried placing the table inside a DIV? You can then replace the entire table with the DIV's .innerHTML property. |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of A Wolanski |Sent: Sunday, August 05, 2001 4:43 PM |To: javascript at LaTech.edu |Subject: [Javascript] Table rollover? | | | |Hello. | |I was wondering if anyone out there knows if it is possible to use |javascript to do something like an image rollover, but for tables. What I |need to do is change |the contents of a table, including all table cells and their image and |text contents, using an OnClick event. So far I have written something |that in theory works, |except that it doesn't work because it is apparently impossible to undo |and rewrite stuff once you have used the document.write method. | |Can anyone help me out? If this is in fact impossible then I will have to |resort to the painfully redundant method of creating about 15 rather large |documents that are almost exactly identical. | |Hope to hear from someone. | |Ali Wol | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |http://www.LaTech.edu/mailman/listinfo/javascript | From adunn at mail.interworx.com.au Sun Aug 5 21:04:39 2001 From: adunn at mail.interworx.com.au (Andrew Dunn) Date: Mon, 6 Aug 2001 12:04:39 +1000 Subject: [Javascript] button object In-Reply-To: Message-ID: Hi, is there such a thing as a button object in javscript. For example could i define a new button like: var the_button = new button(); I can't find reference to it anywhere on MSDN but i thought i remembered seeing some syntax like that someplace. Does anyone know if you can do this? Regards, Andrew From adunn at mail.interworx.com.au Sun Aug 5 22:52:26 2001 From: adunn at mail.interworx.com.au (Andrew Dunn) Date: Mon, 6 Aug 2001 13:52:26 +1000 Subject: [Javascript] arrays In-Reply-To: Message-ID: Hi, I have an array that is a property of an object. I have a function (method of the object) that sets the values of the array. I don't know how to pass the full array, at the moment I have the following: this.file_names = define_buttons(folder_loc); and in the function define_buttons() I have the line: return page_button; (page_button is the name of the array created) can any one help me ? Andrew From adunn at mail.interworx.com.au Sun Aug 5 22:54:23 2001 From: adunn at mail.interworx.com.au (Andrew Dunn) Date: Mon, 6 Aug 2001 13:54:23 +1000 Subject: [Javascript] arrays - don't worry about it In-Reply-To: Message-ID: Hi, Plz disregard last message, as i realise i should have made a set function for the array - duh. It's been a while since i've done some OOP. Andrew From adunn at mail.interworx.com.au Mon Aug 6 01:34:26 2001 From: adunn at mail.interworx.com.au (Andrew Dunn) Date: Mon, 6 Aug 2001 16:34:26 +1000 Subject: [Javascript] copying a file In-Reply-To: Message-ID: howdy, i'm trying to copy a file using ActiveX file system object. But when I do it gives me an error, "permission denied". I can copy folders with no errors. Does anyone have any ideas why i can't copy files? The line that does the copying is: html_file = obj_fso.CopyFile("C:\\demo\\d2k\\equote\\main.htm",folder_loc,true); Thanks, Andrew From mrees at twii.net Mon Aug 6 05:24:51 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Mon, 6 Aug 2001 11:24:51 +0100 Subject: [Javascript] Add elements to form Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC0211110C@lonmail.twii.net> Hello I'd like to add some elements to a form. I'm creating a dynamic table and I want to be able to save the data in it. At the moment I'm posting a form with lots of hidden inputs, kind of like so: Hello This seems a bit cumbersome. I've tried document.formname.1.value='Hello'; Not surprisingly this doesn't work and I get 'document.formname.1 is null or not an object'. I haven't been able to find anything at developer.netscape.com, irt.org or anywhere else. So is it possible? Thanks in advance Mark Rees HTML Programmer TWI Interactive ext. 7994 From Roland at psyche.net.uk Mon Aug 6 08:24:17 2001 From: Roland at psyche.net.uk (Roland Corbet) Date: Mon, 6 Aug 2001 14:24:17 +0100 Subject: [Javascript] Stem Joining Question Message-ID: I program mainly in Perl, but dabble occasionally in JavaScript. In Perl, the ability to make variable names "on the fly", so to speak is a great function. For example. $RowNum = 1; $STEM = "Row$RowNum" I can then use $$STEM, which is the same as accessing $Row1. - I've made the variable name up while working through the code. I have to write a JavaScript form that will add up rows and then columns. I was wondering if this sort of methodology is possible within JavaScript. (Instead of writing out all of the calculations in full). I have tried the following, but without any luck. onchange="CalcRow(1)"; function CalcRow(rownum) { var unitvar = "unit"+rownum; var qtyvar = "qty"+rownum; var totalvar = "total"+rownum; alert(unitvar); alert(qtyvar); alert(document.orderform.qty1.value); //This alerts OK. alert(document.orderform.qtyvar.value); //No alert on this one. if ((document.orderform.unitvar.value != "") && (document.orderform.qtyvar.value != "")) { document.orderform.totalvar.value = document.orderform.unitvar.value * document.orderform.qtyvar.value; } else { } } If anyone could point me in the direction of how to create and access new variables in this method, I would really appreciate it. TIA for your time and help. Kind regards, Roland -- Roland Corbet Systems Administrator & Developer Psyche Solutions Limited Chester Road Cradley Heath West Midlands B64 6AB Tel: + 44 (0)1384 414183 Ext. 4412 Fax: + 44 (0)1384 414141 Email: Roland at psyche.net.uk WWW: http://www.psyche.net.uk From gassinaumasis at hotmail.com Mon Aug 6 09:24:48 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Mon, 06 Aug 2001 14:24:48 +0000 Subject: [Javascript] Stem Joining Question Message-ID: >I program mainly in Perl, but dabble occasionally in JavaScript. In Perl, >the ability to make variable names "on the fly", so to speak is a great >function. >onchange="CalcRow(1)"; > >function CalcRow(rownum) { > var unitvar = "unit"+rownum; > var qtyvar = "qty"+rownum; > var totalvar = "total"+rownum; > > alert(unitvar); > alert(qtyvar); > > alert(document.orderform.qty1.value); //This alerts OK. > alert(document.orderform.qtyvar.value); //No alert on this one. document.orderforms.elements[qtyvar].value You create strings with your variable definitions above, not variable names. Fill in the strings in the array (and also associative array) elements and you access the field, if the name contained in the string qtyvar exists. You cannot use this Perl technique in JavaScript. ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From mrees at twii.net Mon Aug 6 09:34:24 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Mon, 6 Aug 2001 15:34:24 +0100 Subject: [Javascript] Stem Joining Question Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC02111118@lonmail.twii.net> Hello List seems very slow today - my last post took 5 hours to come up. for var qtyvar = "qty"+rownum; try var qtyvar = eval("qty"+rownum); or save yourself writing out a long string and maybe: qtyvar=eval(document.orderform.qty' + rownum + '.value'); Hope this helps Mark -----Original Message----- From: Roland Corbet [mailto:Roland at psyche.net.uk] Sent: 06 August 2001 14:24 To: javascript at LaTech.edu Subject: [Javascript] Stem Joining Question I program mainly in Perl, but dabble occasionally in JavaScript. In Perl, the ability to make variable names "on the fly", so to speak is a great function. For example. $RowNum = 1; $STEM = "Row$RowNum" I can then use $$STEM, which is the same as accessing $Row1. - I've made the variable name up while working through the code. I have to write a JavaScript form that will add up rows and then columns. I was wondering if this sort of methodology is possible within JavaScript. (Instead of writing out all of the calculations in full). I have tried the following, but without any luck. onchange="CalcRow(1)"; function CalcRow(rownum) { var unitvar = "unit"+rownum; var qtyvar = "qty"+rownum; var totalvar = "total"+rownum; alert(unitvar); alert(qtyvar); alert(document.orderform.qty1.value); //This alerts OK. alert(document.orderform.qtyvar.value); //No alert on this one. if ((document.orderform.unitvar.value != "") && (document.orderform.qtyvar.value != "")) { document.orderform.totalvar.value = document.orderform.unitvar.value * document.orderform.qtyvar.value; } else { } } If anyone could point me in the direction of how to create and access new variables in this method, I would really appreciate it. TIA for your time and help. Kind regards, Roland -- Roland Corbet Systems Administrator & Developer Psyche Solutions Limited Chester Road Cradley Heath West Midlands B64 6AB Tel: + 44 (0)1384 414183 Ext. 4412 Fax: + 44 (0)1384 414141 Email: Roland at psyche.net.uk WWW: http://www.psyche.net.uk _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From gassinaumasis at hotmail.com Mon Aug 6 09:35:28 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Mon, 06 Aug 2001 14:35:28 +0000 Subject: [Javascript] Add elements to form Message-ID: >I'd like to add some elements to a form. I'm creating a dynamic table and I >want to be able to save the data in it. > At the moment I'm posting a form with lots of hidden inputs, kind of like >so: >document.formname.1.value='Hello'; > >Not surprisingly this doesn't work and I get 'document.formname.1 is null >or not an object'. I haven't been able to find anything at >developer.netscape.com, irt.org or anywhere else. Form field names may not begin with a number. pk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From hassan at webtuitive.com Mon Aug 6 09:48:46 2001 From: hassan at webtuitive.com (Hassan Schroeder) Date: Mon, 06 Aug 2001 07:48:46 -0700 Subject: [Javascript] Add elements to form References: <76A6F0FCCA27D4119DEF00805F5700AC0211110C@lonmail.twii.net> Message-ID: <3B6EAE4E.A2CF55D4@webtuitive.com> "Rees, Mark (TWIi London)" wrote: > I'd like to add some elements to a form. Sorry, the elements array of a form is read-only, per the Netscape documentation @ http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm FWIW! -- H* Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design ===(+1) 408-938-0567 === http://www.webtuitive.com From mrees at twii.net Mon Aug 6 10:06:13 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Mon, 6 Aug 2001 16:06:13 +0100 Subject: [Javascript] Add elements to form Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC0211111A@lonmail.twii.net> Ah yes, that was just a (misleading) example. The syntax is actually document.formname.R1C1.value='Hello'; Mark -----Original Message----- From: Peter-Paul Koch [mailto:gassinaumasis at hotmail.com] Sent: 06 August 2001 15:35 To: javascript at LaTech.edu Subject: Re: [Javascript] Add elements to form >I'd like to add some elements to a form. I'm creating a dynamic table and I >want to be able to save the data in it. > At the moment I'm posting a form with lots of hidden inputs, kind of like >so: >document.formname.1.value='Hello'; > >Not surprisingly this doesn't work and I get 'document.formname.1 is null >or not an object'. I haven't been able to find anything at >developer.netscape.com, irt.org or anywhere else. Form field names may not begin with a number. pk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From christophe.lancian at cgey.com Mon Aug 6 10:15:07 2001 From: christophe.lancian at cgey.com (Christophe Lancian) Date: Mon, 6 Aug 2001 17:15:07 +0200 Subject: [Javascript] Add elements to form References: <76A6F0FCCA27D4119DEF00805F5700AC0211110C@lonmail.twii.net> Message-ID: <032a01c11e8a$93d64da0$0091440a@GRENOBLE> Did you try something like that : document.formname.[x].value='Hello'; where 'x' is the index of your element in the form. _ ___ _ _ .-' ' -. (.)(.)/ \ /00 ; o_\\-mm-..........-mm`~~~~~~~~~~~~~~ Christophe Lancian - CGE&Y Service Line Accelerated Delivery Services clancian at capgemini.fr ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----- Original Message ----- From: "Rees, Mark (TWIi London)" To: Sent: Monday, August 06, 2001 12:24 PM Subject: [Javascript] Add elements to form > Hello > > I'd like to add some elements to a form. I'm creating a dynamic table and I > want to be able to save the data in it. > At the moment I'm posting a form with lots of hidden inputs, kind of like > so: > > Hello > > This seems a bit cumbersome. I've tried > > document.formname.1.value='Hello'; > > Not surprisingly this doesn't work and I get 'document.formname.1 is null > or not an object'. I haven't been able to find anything at > developer.netscape.com, irt.org or anywhere else. > > So is it possible? > > Thanks in advance > > Mark Rees > HTML Programmer > TWI Interactive > ext. 7994 > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Mon Aug 6 10:35:00 2001 From: peter at brunone.com (Peter Brunone) Date: Mon, 6 Aug 2001 10:35:00 -0500 Subject: [Javascript] copying a file References: Message-ID: <012801c11e8d$62cfc490$e22d200a@PMBRUNON> Just some randomly scattered questions: What is the path in folder_loc, and what OS are you running? ----- Original Message ----- From: "Andrew Dunn" To: Sent: Monday, August 06, 2001 1:34 AM Subject: [Javascript] copying a file | howdy, | | i'm trying to copy a file using ActiveX file system object. But when I do it | gives me an error, "permission denied". I can copy folders with no errors. | Does anyone have any ideas why i can't copy files? The line that does the | copying is: | | html_file = | obj_fso.CopyFile("C:\\demo\\d2k\\equote\\main.htm",folder_loc,true); | | | Thanks, | | Andrew From gassinaumasis at hotmail.com Mon Aug 6 10:36:45 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Mon, 06 Aug 2001 15:36:45 +0000 Subject: [Javascript] Add elements to form Message-ID: >Hello > >This seems a bit cumbersome. I've tried > >document.formname.1.value='Hello'; > >Not surprisingly this doesn't work and I get 'document.formname.1 is null >or not an object'. I haven't been able to find anything at >developer.netscape.com, irt.org or anywhere else. > >So is it possible? Exactly when do you do this? The forms array is only initalized and accessible after the page has been loaded completely (onLoad, in other words). ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From Roland at psyche.net.uk Mon Aug 6 10:55:23 2001 From: Roland at psyche.net.uk (Roland Corbet) Date: Mon, 6 Aug 2001 16:55:23 +0100 Subject: [Javascript] Stem Joining Question In-Reply-To: <76A6F0FCCA27D4119DEF00805F5700AC02111118@lonmail.twii.net> Message-ID: Thanks for the info guys, I appreciate it. I now have the form adding up. Cheers, Roland From Quixote at LaMancha.org Mon Aug 6 11:08:10 2001 From: Quixote at LaMancha.org (Ben Curtis) Date: Mon, 06 Aug 2001 09:08:10 -0700 Subject: [Javascript] Add elements to form In-Reply-To: Message-ID: >> Hello >> >> This seems a bit cumbersome. I've tried >> >> document.formname.1.value='Hello'; >> >> Not surprisingly this doesn't work and I get 'document.formname.1 is null >> or not an object'. ... > > Exactly when do you do this? The forms array is only initalized and > accessible after the page has been loaded completely (onLoad, in other > words). I've never had it fail if I call the form object after the closing form tag, if you don't want to wait for the onload to fire. If you try to refer to the form object before the closing tag, you get the "not an object" error. -- +Ben Curtis Two guys walk into a bar. The third guy ducks and goes around it. From jkcravy at cox-internet.com Mon Aug 6 11:14:25 2001 From: jkcravy at cox-internet.com (Kelly) Date: Mon, 06 Aug 2001 11:14:25 -0500 Subject: [Javascript] encode a new window Message-ID: <5.1.0.14.0.20010806111257.009ead70@pop.cox-internet.com> How do you encode a new window with Western European (windows) or (ISO) ? I have the parent pages but how to encode popups has got me. Please help.Thanks, Kelly (This want work on the new window ? ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrees at twii.net Mon Aug 6 11:34:20 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Mon, 6 Aug 2001 17:34:20 +0100 Subject: [Javascript] Add elements to form Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC0211111D@lonmail.twii.net> Hello thanks for all the help, but I don't think I explained myself clearly enough. This is called in an "edit table" function (i.e. responds to an onclick event after the whole page has loaded). So I have a table to which you can for example add rows. Each cell has an individual form input containing its value, formatting etc. What I was looking for was some way to do this dynamically (since the cells are named with respect to their position in the table, like row1column3 for example). So instead of having to write out every time I fancied document.form.R1C1.value='sometext|bold'; But it isn't having it. I presume this is because, as Hassan said, the form elements collection is read only (presumably he means you can't create new elements like this, because obviously you can change the value of existing elements)? Is that clearer? Cheers Mark -----Original Message----- From: Ben Curtis [mailto:Quixote at LaMancha.org] Sent: 06 August 2001 17:08 To: javascript at latech.edu Subject: Re: [Javascript] Add elements to form >> Hello >> >> This seems a bit cumbersome. I've tried >> >> document.formname.1.value='Hello'; >> >> Not surprisingly this doesn't work and I get 'document.formname.1 is null >> or not an object'. ... > > Exactly when do you do this? The forms array is only initalized and > accessible after the page has been loaded completely (onLoad, in other > words). I've never had it fail if I call the form object after the closing form tag, if you don't want to wait for the onload to fire. If you try to refer to the form object before the closing tag, you get the "not an object" error. -- +Ben Curtis Two guys walk into a bar. The third guy ducks and goes around it. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From mailing_list at gmx.at Mon Aug 6 12:10:18 2001 From: mailing_list at gmx.at (Michael Mehlmann) Date: Mon, 6 Aug 2001 19:10:18 +0200 (MEST) Subject: [Javascript] reload calling page Message-ID: <17836.997117818@www40.gmx.net> Hi! I want to click a link on page1 this opens a page2 in a new window (with focus) and when this new window (page2) is loaded, I want it to reload page1 (without page1 getting the focus) so when the user closes the window with page2 in it, he will see the already reloaded page1 !!! non-JS.Browsers should only open page2 in a new window (without doing the reload of page1) Is this possible? or is this too heavy for JS??? thanks for any hints!!! Michael -- Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a From mallard at serv.net Mon Aug 6 12:23:34 2001 From: mallard at serv.net (TomMallard) Date: Mon, 6 Aug 2001 10:23:34 -0700 Subject: [Javascript] Add elements to form References: <76A6F0FCCA27D4119DEF00805F5700AC0211111D@lonmail.twii.net> Message-ID: <020301c11e9c$86e57280$c58627d8@mallard> This is a perfect place for using the xmldom to store everything... Anyway, you don't need to use the form data if you use div's within td's or the td tags. These would be scriptable using the style attribute of the document.divID object and can use the same naming convention. tom mallard seattle ----- Original Message ----- From: "Rees, Mark (TWIi London)" To: Sent: Monday, August 06, 2001 9:34 AM Subject: RE: [Javascript] Add elements to form > Hello > > thanks for all the help, but I don't think I explained myself clearly > enough. > > This is called in an "edit table" function (i.e. responds to an onclick > event after the whole page has loaded). So I have a table to which you can > for example add rows. Each cell has an individual form input containing its > value, formatting etc. What I was looking for was some way to do this > dynamically (since the cells are named with respect to their position in the > table, like row1column3 for example). So instead of having to write out > every time > > > > I fancied document.form.R1C1.value='sometext|bold'; > > But it isn't having it. I presume this is because, as Hassan said, the form > elements collection is read only (presumably he means you can't create new > elements like this, because obviously you can change the value of existing > elements)? > > Is that clearer? > > Cheers > > Mark From Roland at psyche.net.uk Mon Aug 6 12:42:05 2001 From: Roland at psyche.net.uk (Roland Corbet) Date: Mon, 6 Aug 2001 18:42:05 +0100 Subject: [Javascript] Monetary Rounding (always up) Message-ID: I'm currently writing an order form calculator, and need to round the final value to two decimal places. This is fine, and works, following the 0.5 rule. However, as it is currency, I could really do with always rounding up. Is there any other way than splitting the number down after the decimal place, and then manually adding on 0.01 if the third number after the decimal point is greater than zero. If anyone's already got a snippet of code to do this, it would be appreciated. Alternatively, if there's an easier way, I'd like to know that too. TIA for your help. Kind regards, Roland From Roland at psyche.net.uk Mon Aug 6 12:42:05 2001 From: Roland at psyche.net.uk (Roland Corbet) Date: Mon, 6 Aug 2001 18:42:05 +0100 Subject: [Javascript] Monetary Rounding (always up) Message-ID: I'm currently writing an order form calculator, and need to round the final value to two decimal places. This is fine, and works, following the 0.5 rule. However, as it is currency, I could really do with always rounding up. Is there any other way than splitting the number down after the decimal place, and then manually adding on 0.01 if the third number after the decimal point is greater than zero. If anyone's already got a snippet of code to do this, it would be appreciated. Alternatively, if there's an easier way, I'd like to know that too. TIA for your help. Kind regards, Roland From filipiab at atsc.army.mil Mon Aug 6 12:42:20 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Mon, 6 Aug 2001 13:42:20 -0400 Subject: [Javascript] reload calling page Message-ID: It depends on the weight of the font you use whether it is too heavy for JS! Seriously, personally I hate the way pop up windows are used 99 44/100% of the time. Having said that try the following: In page2's onload function do opener.window.location.reload() But you haven't explained why you want page1 to reload. Bob Filipiak (Contractor) MCP -----Original Message----- From: Michael Mehlmann [mailto:mailing_list at gmx.at] Sent: Monday, August 06, 2001 1:10 PM To: javascript at LaTech.edu Subject: [Javascript] reload calling page Hi! I want to click a link on page1 this opens a page2 in a new window (with focus) and when this new window (page2) is loaded, I want it to reload page1 (without page1 getting the focus) so when the user closes the window with page2 in it, he will see the already reloaded page1 !!! non-JS.Browsers should only open page2 in a new window (without doing the reload of page1) Is this possible? or is this too heavy for JS??? thanks for any hints!!! Michael -- Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From Quixote at LaMancha.org Mon Aug 6 13:03:32 2001 From: Quixote at LaMancha.org (Ben Curtis) Date: Mon, 06 Aug 2001 11:03:32 -0700 Subject: [Javascript] Monetary Rounding (always up) In-Reply-To: Message-ID: > Is there any other way than splitting the number down after the decimal > place, and then manually adding on 0.01 if the third number after the > decimal point is greater than zero. I think you could be fine with *always* adding 0.009 (no "if" test), then reducing to two decimal places. Or you could var RndUp = Math.ceil(Num * 100) / 100; -- +Ben Curtis "One of the symptoms of an approaching nervous breakdown is the belief that one's work is terribly important." - Bertrand Russell (1872-1970) From sevanthi at hotmail.com Mon Aug 6 13:23:36 2001 From: sevanthi at hotmail.com (sevanthi ragunathan) Date: Mon, 06 Aug 2001 18:23:36 +0000 Subject: [Javascript] window width/height question Message-ID: what is the property in IE that gives the total height/width of the window (including the nav toolbars etc)? I'm looking for the IE equivalent of Nav's window.outerWidth thanks. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From swiseman at remax-cahi.com Mon Aug 6 14:47:46 2001 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Mon, 6 Aug 2001 12:47:46 -0700 Subject: [Javascript] How do I located a window I opened? Message-ID: <5DEF109335DAD111B05F00A0C9DDFC02A42EDC@ROCHS2> FACTS: the window object is the global object for client-side JavaScript and all global variables are properties of the window object and the window object that represents a top-level browser window exists as long as that window exists. and a reference to the window object remains valid regardless of how many web pages the window loads and unloads... soooo... QUESTION: How do I reference a window that I named using the window.name ="mywindow" ???????????????????????????????? Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodney at aflyingstart.net Mon Aug 6 16:29:50 2001 From: rodney at aflyingstart.net (Rodney Myers) Date: Mon, 06 Aug 2001 22:29:50 +0100 Subject: [Javascript] copying a file Message-ID: <3B6F0C4E.72314BDE@aflyingstart.net> Andrew I notice that your line appears to have a folder name as a target. I see in my own old code that I always appear to build up a full target file path and name with the path in the same format as you show for the source file. Try that. Rodney PS. I read your message at http://groups.yahoo.com/group/javascript/message/12273 I am watching the list via that egroup after the traumas of last weekend. I suspended mail delivery from the list. So if I take longer to reply than of yore that is the reason. (is it safe to come out yet?!) > i'm trying to copy a file using ActiveX file system object. But when I do it > gives me an error, "permission denied". I can copy folders with no errors. > Does anyone have any ideas why i can't copy files? The line that does the > copying is: > > html_file = > obj_fso.CopyFile("C:\\demo\\d2k\\equote\\main.htm",folder_loc,true); > -- Shop at ssistant Add-ons and Developer Workshops http://www.aflyingstart.net/addons/ Enquiries regarding Shop at ssistant Classic training : Call 01256 880770 Rodney Myers Based in Oxford, England Technical Director, Shop at ssistant eCommerce Solutions From parkesr1 at anz.com Mon Aug 6 18:56:29 2001 From: parkesr1 at anz.com (Parkes, Rohan) Date: Tue, 7 Aug 2001 09:56:29 +1000 Subject: [Javascript] copying a file Message-ID: This is really an ASP question. You'd get a better response if you posted the question on a list like http://www.aspmessageboard.com/ However, I assume you are running this on Win NT/2000. If so, give the Everyone account full control over the folder that the file is in. Another possibility is that the file is locked by another process. If you have been using TextSteam, make sure that it is closed before performing any file operations. Rohan Parkes -----Original Message----- From: Andrew Dunn [mailto:adunn at mail.interworx.com.au] Sent: 06 August 2001 16:34 To: javascript at LaTech.edu Subject: [Javascript] copying a file howdy, i'm trying to copy a file using ActiveX file system object. But when I do it gives me an error, "permission denied". I can copy folders with no errors. Does anyone have any ideas why i can't copy files? The line that does the copying is: html_file = obj_fso.CopyFile("C:\\demo\\d2k\\equote\\main.htm",folder_loc,true); Thanks, Andrew _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From cutterbl at hotmail.com Mon Aug 6 20:06:14 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Mon, 06 Aug 2001 21:06:14 -0400 Subject: [Javascript] Anomolies Message-ID: Been playing around with a number of tricks for my site. One thing I don't understand is the behavior of the A:hover CSS attributes. If mouseover of the menu items on the left you will see the style changes which are supposed to occur (red background, grey border, white text). A:hover.clsMnuItem{ backgound:red; border-width:thin; border-style:solid; color:white; } This appears to work on most of the items all of the time, but some of the items don't change the text color. Would I be better off applying these style changes through a javascript onmouseover? function changeStyle(i){ document.(somenameidentifier[i]).style.background = "red"; document.(somenameidentifier[i]).style.border-width = "thin"; document.(somenameidentifier[i]).style.border-style = "solid"; document.(somenameidentifier[i]).style.color = "white"; } function changeBack(i){ document.(somenameidentifier[i]).style.background = "transparent"; document.(somenameidentifier[i]).style.border = "none"; document.(somenameidentifier[i]).style.color = "black"; } my link I haven't tried this, just trying to get some feedback. Cutter The Past is a Memory The Future a Dream But Today is a Gift That's why they call it The Present _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From parkesr1 at anz.com Mon Aug 6 23:08:36 2001 From: parkesr1 at anz.com (Parkes, Rohan) Date: Tue, 7 Aug 2001 14:08:36 +1000 Subject: [Javascript] copying a file Message-ID: According to the documentation, the target can be a folder. This must be the case, because you can use wildcards to copy multiple files using this method. I'm not sure that it's correct to return the method to a variable, though - the doc. doesn't show that in any examples, and I don't know what you would get back, especially if you copies multiple files. Also, of course the target folder has to exist - the copy method won't create it. Rohan Parkes -----Original Message----- From: Rodney Myers [mailto:rodney at aflyingstart.net] Sent: 07 August 2001 07:30 To: Javascript List Subject: Re: [Javascript] copying a file Andrew I notice that your line appears to have a folder name as a target. I see in my own old code that I always appear to build up a full target file path and name with the path in the same format as you show for the source file. Try that. Rodney PS. I read your message at http://groups.yahoo.com/group/javascript/message/12273 I am watching the list via that egroup after the traumas of last weekend. I suspended mail delivery from the list. So if I take longer to reply than of yore that is the reason. (is it safe to come out yet?!) > i'm trying to copy a file using ActiveX file system object. But when I do it > gives me an error, "permission denied". I can copy folders with no errors. > Does anyone have any ideas why i can't copy files? The line that does the > copying is: > > html_file = > obj_fso.CopyFile("C:\\demo\\d2k\\equote\\main.htm",folder_loc,true); > -- Shop at ssistant Add-ons and Developer Workshops http://www.aflyingstart.net/addons/ Enquiries regarding Shop at ssistant Classic training : Call 01256 880770 Rodney Myers Based in Oxford, England Technical Director, Shop at ssistant eCommerce Solutions _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From mailing_list at gmx.at Tue Aug 7 00:41:11 2001 From: mailing_list at gmx.at (Michael Mehlmann) Date: Tue, 7 Aug 2001 07:41:11 +0200 (MEST) Subject: [Javascript] reload calling page Message-ID: <24735.997162871@www31.gmx.net> Hi! on page1 is a link-collection with a click-statistics! So if someone clicks on a link, a new window page2 is opened that should: .) reload page1 to see the changes in the click-statistics .) redirect to the link my problems: this will work for MSIE5 as I want it to! with NS4, the page1 isn't reloaded by the javascript-code!(?????) with NS6, page1 reloads, but gets the focus (don't know, what I can do against that!!!) if you have got any ideas, please let me know!!! thanks Michael > It depends on the weight of the font you use whether it is too heavy for > JS! > > Seriously, personally I hate the way pop up windows are used 99 44/100% of > the time. Having said that try the following: > > > In page2's onload function do opener.window.location.reload() > > But you haven't explained why you want page1 to reload. > > > Bob Filipiak (Contractor) > MCP > > -----Original Message----- > From: Michael Mehlmann [mailto:mailing_list at gmx.at] > Sent: Monday, August 06, 2001 1:10 PM > To: javascript at LaTech.edu > Subject: [Javascript] reload calling page > > > Hi! > > I want to click a link on page1 > this opens a page2 in a new window (with focus) > and when this new window (page2) is loaded, I want it to reload page1 > (without page1 getting the focus) > > so when the user closes the window with page2 in it, he will see the > already > reloaded page1 !!! > > non-JS.Browsers should only open page2 in a new window (without doing the > reload of page1) > > Is this possible? > or is this too heavy for JS??? > > thanks for any hints!!! > > Michael > > -- > Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne > Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! > http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > -- Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailing_list at gmx.at Tue Aug 7 00:41:11 2001 From: mailing_list at gmx.at (Michael Mehlmann) Date: Tue, 7 Aug 2001 07:41:11 +0200 (MEST) Subject: [Javascript] reload calling page Message-ID: <24735.997162871@www31.gmx.net> Hi! on page1 is a link-collection with a click-statistics! So if someone clicks on a link, a new window page2 is opened that should: .) reload page1 to see the changes in the click-statistics .) redirect to the link my problems: this will work for MSIE5 as I want it to! with NS4, the page1 isn't reloaded by the javascript-code!(?????) with NS6, page1 reloads, but gets the focus (don't know, what I can do against that!!!) if you have got any ideas, please let me know!!! thanks Michael > It depends on the weight of the font you use whether it is too heavy for > JS! > > Seriously, personally I hate the way pop up windows are used 99 44/100% of > the time. Having said that try the following: > > > In page2's onload function do opener.window.location.reload() > > But you haven't explained why you want page1 to reload. > > > Bob Filipiak (Contractor) > MCP > > -----Original Message----- > From: Michael Mehlmann [mailto:mailing_list at gmx.at] > Sent: Monday, August 06, 2001 1:10 PM > To: javascript at LaTech.edu > Subject: [Javascript] reload calling page > > > Hi! > > I want to click a link on page1 > this opens a page2 in a new window (with focus) > and when this new window (page2) is loaded, I want it to reload page1 > (without page1 getting the focus) > > so when the user closes the window with page2 in it, he will see the > already > reloaded page1 !!! > > non-JS.Browsers should only open page2 in a new window (without doing the > reload of page1) > > Is this possible? > or is this too heavy for JS??? > > thanks for any hints!!! > > Michael > > -- > Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne > Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! > http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > -- Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a -------------- next part -------------- An HTML attachment was scrubbed... URL: From andyg at ihug.co.nz Tue Aug 7 02:00:24 2001 From: andyg at ihug.co.nz (Andrew Gibson) Date: Tue, 7 Aug 2001 19:00:24 +1200 Subject: [Javascript] window width/height question In-Reply-To: Message-ID: > what is the property in IE that gives the total height/width of > the window > (including the nav toolbars etc)? > > I'm looking for the IE equivalent of Nav's window.outerWidth document.body.clientWidth document.body.clientHeight ???? Andrew Gibson From gassinaumasis at hotmail.com Tue Aug 7 02:23:15 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Tue, 07 Aug 2001 07:23:15 +0000 Subject: [Javascript] window width/height question Message-ID: > > what is the property in IE that gives the total height/width of > > the window > > (including the nav toolbars etc)? > > > > I'm looking for the IE equivalent of Nav's window.outerWidth > >document.body.clientWidth >document.body.clientHeight ???? No, that's innerWidth/Height. I have never heard of an IE equiv of outerWidth/Height. Probably you should search MSDN, but that isn't easy. ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From adunn at mail.interworx.com.au Tue Aug 7 06:54:06 2001 From: adunn at mail.interworx.com.au (Andrew Dunn) Date: Tue, 7 Aug 2001 21:54:06 +1000 Subject: [Javascript] javascript object In-Reply-To: Message-ID: Hi, Could anyone tell me how to "destruct" a javascript object? Also, do objects last when the user enters another page or are they destroyed? Regards, Andrew From gassinaumasis at hotmail.com Tue Aug 7 06:55:22 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Tue, 07 Aug 2001 11:55:22 +0000 Subject: [Javascript] javascript object Message-ID: > Could anyone tell me how to "destruct" a javascript object? Try objName = null; Not sure if it works always, though, yesterday I tried document.images = null; and that wasn't allowed. document.images is a native object, though, so I suppose you can delete your own objects. >Also, do objects last when the user enters another page or are they >destroyed? If a page unloads all JavaScript objects are destroyed. The common workaround is to store certain variables in the frameset, if present. If you don't have a frameset either you cannot store anything. ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From adunn at mail.interworx.com.au Tue Aug 7 07:17:50 2001 From: adunn at mail.interworx.com.au (Andrew Dunn) Date: Tue, 7 Aug 2001 22:17:50 +1000 Subject: [Javascript] the future of js and web development In-Reply-To: Message-ID: Hi, I've been reading about all these new .net technolgies that microsoft is beginning to bring in. What do people think that this effect will have on javascript and web development in general? Where do people think the future lies for web development? Regards, Andrew From filipiab at atsc.army.mil Tue Aug 7 07:18:05 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Tue, 7 Aug 2001 08:18:05 -0400 Subject: [Javascript] reload calling page Message-ID: If I'm on a page that shows clicks for a link, I would know that if I click on that link the count should go up by one. Anyhow, there must be something else wrong because NS 4.x should recognize the method. Don't understand in meta tag but AFAIK it appears that the click-statistics are not the only thing that is dynamic. If I read the code correctly it is for page2 and it would cause the page to continually refresh and in NS 4.x would not get a chance to fire the onUnload. If NS 6 gets focus then code page1 to test for the various browser versions and set a flag to know when page2 has 'reloaded' page1. Since you are generating these pages on a server, maybe you should rethink the whole process. Bob Filipiak (Contractor) MCP -----Original Message----- From: Michael Mehlmann [mailto:mailing_list at gmx.at] Sent: Tuesday, August 07, 2001 1:41 AM To: javascript at LaTech.edu Cc: javascript at LaTech.edu Subject: RE: [Javascript] reload calling page Hi! on page1 is a link-collection with a click-statistics! So if someone clicks on a link, a new window page2 is opened that should: .) reload page1 to see the changes in the click-statistics .) redirect to the link my problems: this will work for MSIE5 as I want it to! with NS4, the page1 isn't reloaded by the javascript-code!(?????) with NS6, page1 reloads, but gets the focus (don't know, what I can do against that!!!) if you have got any ideas, please let me know!!! thanks Michael > It depends on the weight of the font you use whether it is too heavy for > JS! > > Seriously, personally I hate the way pop up windows are used 99 44/100% of > the time. Having said that try the following: > > > In page2's onload function do opener.window.location.reload() > > But you haven't explained why you want page1 to reload. > > > Bob Filipiak (Contractor) > MCP > > -----Original Message----- > From: Michael Mehlmann [mailto:mailing_list at gmx.at] > Sent: Monday, August 06, 2001 1:10 PM > To: javascript at LaTech.edu > Subject: [Javascript] reload calling page > > > Hi! > > I want to click a link on page1 > this opens a page2 in a new window (with focus) > and when this new window (page2) is loaded, I want it to reload page1 > (without page1 getting the focus) > > so when the user closes the window with page2 in it, he will see the > already > reloaded page1 !!! > > non-JS.Browsers should only open page2 in a new window (without doing the > reload of page1) > > Is this possible? > or is this too heavy for JS??? > > thanks for any hints!!! > > Michael > > -- > Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne > Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! > http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > -- Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkcravy at cox-internet.com Tue Aug 7 08:00:31 2001 From: jkcravy at cox-internet.com (Kelly) Date: Tue, 07 Aug 2001 08:00:31 -0500 Subject: [Javascript] Western European (windows) or (ISO) Message-ID: <5.1.0.14.0.20010807075910.009eac10@pop.cox-internet.com> How do you encode a new window with Western European (windows) or (ISO) ? I have the parent pages but how to encode popups has got me. Please help.Thanks, Kelly (This want work on the new window ? ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From programmer at bardware.de Tue Aug 7 08:40:15 2001 From: programmer at bardware.de (Bernhard Doebler) Date: Tue, 7 Aug 2001 15:40:15 +0200 Subject: [Javascript] Western European (windows) or (ISO) References: <5.1.0.14.0.20010807075910.009eac10@pop.cox-internet.com> Message-ID: <045f01c11f46$7d6a3a10$996364c0@LAN.CDA> Hi, I think Windows 1252 and ISO-8859-1 are virtually identical. I though prefer ISO to MS. Best Regards Bernhard ----- Original Message ----- From: "Kelly" To: Sent: Tuesday, August 07, 2001 3:00 PM Subject: [Javascript] Western European (windows) or (ISO) > How do you encode a new window with > Western European (windows) or (ISO) ? > > From cutterbl at hotmail.com Tue Aug 7 09:11:38 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Tue, 07 Aug 2001 10:11:38 -0400 Subject: [Javascript] reload calling page Message-ID: what if you tried my link Then in the onload of the NewWin set the focus to the opener window. Would something like that work? Cutter http://www.falcon-knives.com The Past is a Memory The Future a Dream But Today is a Gift That's why they call it The Present _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrees at twii.net Tue Aug 7 10:00:33 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Tue, 7 Aug 2001 16:00:33 +0100 Subject: [Javascript] Anomolies Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC02111129@lonmail.twii.net> Hello the hover tag works for me provided you put the class in the anchor tag (rather than in a font tag for example). Perhaps something further down the stylesheet is overriding your A:hover.clsMnuItem declaration? Mark -----Original Message----- From: Cutter Bl [mailto:cutterbl at hotmail.com] Sent: 07 August 2001 02:06 To: javascript at LaTech.edu Subject: [Javascript] Anomolies Been playing around with a number of tricks for my site. One thing I don't understand is the behavior of the A:hover CSS attributes. If mouseover of the menu items on the left you will see the style changes which are supposed to occur (red background, grey border, white text). A:hover.clsMnuItem{ backgound:red; border-width:thin; border-style:solid; color:white; } This appears to work on most of the items all of the time, but some of the items don't change the text color. Would I be better off applying these style changes through a javascript onmouseover? function changeStyle(i){ document.(somenameidentifier[i]).style.background = "red"; document.(somenameidentifier[i]).style.border-width = "thin"; document.(somenameidentifier[i]).style.border-style = "solid"; document.(somenameidentifier[i]).style.color = "white"; } function changeBack(i){ document.(somenameidentifier[i]).style.background = "transparent"; document.(somenameidentifier[i]).style.border = "none"; document.(somenameidentifier[i]).style.color = "black"; } my link I haven't tried this, just trying to get some feedback. Cutter The Past is a Memory The Future a Dream But Today is a Gift That's why they call it The Present _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From cutterbl at hotmail.com Tue Aug 7 10:24:33 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Tue, 07 Aug 2001 11:24:33 -0400 Subject: [Javascript] Anomolies Message-ID: I guess it helps to give the site so folks can look at code doesn't it...The site is http://www.falcon-knives.com Cutter The Past is a Memory The Future a Dream But Today is a Gift That's why they call it The Present From: "Rees, Mark (TWIi London)" Reply-To: javascript at LaTech.edu To: "'javascript at LaTech.edu'" Subject: RE: [Javascript] Anomolies Date: Tue, 7 Aug 2001 16:00:33 +0100 Hello the hover tag works for me provided you put the class in the anchor tag (rather than in a font tag for example). Perhaps something further down the stylesheet is overriding your A:hover.clsMnuItem declaration? Mark -----Original Message----- From: Cutter Bl [mailto:cutterbl at hotmail.com] Sent: 07 August 2001 02:06 To: javascript at LaTech.edu Subject: [Javascript] Anomolies Been playing around with a number of tricks for my site. One thing I don't understand is the behavior of the A:hover CSS attributes. If mouseover of the menu items on the left you will see the style changes which are supposed to occur (red background, grey border, white text). A:hover.clsMnuItem{ backgound:red; border-width:thin; border-style:solid; color:white; } This appears to work on most of the items all of the time, but some of the items don't change the text color. Would I be better off applying these style changes through a javascript onmouseover? function changeStyle(i){ document.(somenameidentifier[i]).style.background = "red"; document.(somenameidentifier[i]).style.border-width = "thin"; document.(somenameidentifier[i]).style.border-style = "solid"; document.(somenameidentifier[i]).style.color = "white"; } function changeBack(i){ document.(somenameidentifier[i]).style.background = "transparent"; document.(somenameidentifier[i]).style.border = "none"; document.(somenameidentifier[i]).style.color = "black"; } my link I haven't tried this, just trying to get some feedback. Cutter The Past is a Memory The Future a Dream But Today is a Gift That's why they call it The Present _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From peter at brunone.com Tue Aug 7 10:47:58 2001 From: peter at brunone.com (Peter Brunone) Date: Tue, 7 Aug 2001 10:47:58 -0500 Subject: [Javascript] the future of js and web development References: Message-ID: <09e001c11f58$554ff0d0$e22d200a@PMBRUNON> I was thinking about this last night. The way I see it, there will always be room for client-side scripting because not everything will fit the canned functionality. Sure, some of the basic tasks like control validation will be almost all automated, but I don't have a problem with that :) There will still, however, be a need for DHTML, specialized functionality (like inter-frame interaction), etc. I'll be rewriting some of my "classic ASP" apps (like the ones at http://aspalliance.com/peterbrunone) in C# or VB.NET soon and I can tell you that I will certainly need my JavaScript skills to make them work the way I want them to. Just my 0.02, Peter ----- Original Message ----- From: "Andrew Dunn" To: Sent: Tuesday, August 07, 2001 7:17 AM Subject: [Javascript] the future of js and web development | Hi, | I've been reading about all these new .net technolgies that microsoft is | beginning to bring in. What do people think that this effect will have on | javascript and web development in general? | | Where do people think the future lies for web development? | | Regards, | | Andrew | | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | From cburgess at converse.com Tue Aug 7 10:57:11 2001 From: cburgess at converse.com (Burgess, Chris) Date: Tue, 7 Aug 2001 11:57:11 -0400 Subject: [Javascript] Anomolies Message-ID: <91B30638DAA9D41193710008C733FE56764229@MAIL> Trying changing the order in CSS to: A:link.mnuLnkEff{ color:black; text-decoration:none; } A:visited.mnuLnkEff{ text-decoration:none; color:black; } A:hover.mnuLnkEff{ background:red; color:white; border:#808285; border-width:thin; border-style:solid; } HTH Chris -----Original Message----- From: Cutter Bl [mailto:cutterbl at hotmail.com] Sent: Tuesday, August 07, 2001 11:25 AM To: javascript at LaTech.edu Subject: RE: [Javascript] Anomolies I guess it helps to give the site so folks can look at code doesn't it...The site is http://www.falcon-knives.com Cutter The Past is a Memory The Future a Dream But Today is a Gift That's why they call it The Present From: "Rees, Mark (TWIi London)" Reply-To: javascript at LaTech.edu To: "'javascript at LaTech.edu'" Subject: RE: [Javascript] Anomolies Date: Tue, 7 Aug 2001 16:00:33 +0100 Hello the hover tag works for me provided you put the class in the anchor tag (rather than in a font tag for example). Perhaps something further down the stylesheet is overriding your A:hover.clsMnuItem declaration? Mark -----Original Message----- From: Cutter Bl [mailto:cutterbl at hotmail.com] Sent: 07 August 2001 02:06 To: javascript at LaTech.edu Subject: [Javascript] Anomolies Been playing around with a number of tricks for my site. One thing I don't understand is the behavior of the A:hover CSS attributes. If mouseover of the menu items on the left you will see the style changes which are supposed to occur (red background, grey border, white text). A:hover.clsMnuItem{ backgound:red; border-width:thin; border-style:solid; color:white; } This appears to work on most of the items all of the time, but some of the items don't change the text color. Would I be better off applying these style changes through a javascript onmouseover? function changeStyle(i){ document.(somenameidentifier[i]).style.background = "red"; document.(somenameidentifier[i]).style.border-width = "thin"; document.(somenameidentifier[i]).style.border-style = "solid"; document.(somenameidentifier[i]).style.color = "white"; } function changeBack(i){ document.(somenameidentifier[i]).style.background = "transparent"; document.(somenameidentifier[i]).style.border = "none"; document.(somenameidentifier[i]).style.color = "black"; } my link I haven't tried this, just trying to get some feedback. Cutter The Past is a Memory The Future a Dream But Today is a Gift That's why they call it The Present _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From Quixote at LaMancha.org Tue Aug 7 11:20:57 2001 From: Quixote at LaMancha.org (Ben Curtis) Date: Tue, 07 Aug 2001 09:20:57 -0700 Subject: [Javascript] javascript object In-Reply-To: Message-ID: >> Also, do objects last when the user enters another page or are they >> destroyed? > > If a page unloads all JavaScript objects are destroyed. The common > workaround is to store certain variables in the frameset, if present. If you > don't have a frameset either you cannot store anything. Everything that is part of the document object and many other things are destroyed. If you want to pass a simple string or number, you can try storing it in the window.name, but then you may get weird target results. If you are working in an intranet setting with a limited number of browsers to support, you might have some success storing information in the navigator object. For example: var Obj = new Object(); Obj.foo = "Wack"; Obj.bar = "Turtles and wurtles"; navigator.foobar = Obj; ---> user goes to a new page, perhaps even on a different server alert(navigator.foobar.bar); alerts: "Turtles and wurtles"; This is far from cross-compatible. I think Netscape on a PC (all version 3 and 4, but not 6), and some IE versions on PC. I don't know of any Mac of Linux browsers that do this. A very limited technique, but I thought I'd share. -- +Ben Curtis ...leveraging synergy right out of the box. From Esther_Strom at hmco.com Tue Aug 7 11:23:27 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Tue, 7 Aug 2001 11:23:27 -0500 Subject: [Javascript] javascript object Message-ID: They're a pain in the neck, but you could also save bits of info to cookies. Esther Ben Curtis .org> cc: Sent by: Subject: Re: [Javascript] javascript object javascript-admin@ LaTech.edu 08/07/01 11:20 AM Please respond to javascript >> Also, do objects last when the user enters another page or are they >> destroyed? > > If a page unloads all JavaScript objects are destroyed. The common > workaround is to store certain variables in the frameset, if present. If you > don't have a frameset either you cannot store anything. Everything that is part of the document object and many other things are destroyed. If you want to pass a simple string or number, you can try storing it in the window.name, but then you may get weird target results. If you are working in an intranet setting with a limited number of browsers to support, you might have some success storing information in the navigator object. For example: var Obj = new Object(); Obj.foo = "Wack"; Obj.bar = "Turtles and wurtles"; navigator.foobar = Obj; ---> user goes to a new page, perhaps even on a different server alert(navigator.foobar.bar); alerts: "Turtles and wurtles"; This is far from cross-compatible. I think Netscape on a PC (all version 3 and 4, but not 6), and some IE versions on PC. I don't know of any Mac of Linux browsers that do this. A very limited technique, but I thought I'd share. -- +Ben Curtis ...leveraging synergy right out of the box. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From mailing_list at gmx.at Tue Aug 7 12:02:43 2001 From: mailing_list at gmx.at (Michael Mehlmann) Date: Tue, 7 Aug 2001 19:02:43 +0200 (MEST) Subject: [Javascript] reload calling page Message-ID: <1421.997203763@www10.gmx.net> thanks, > onClick="window.open('newwindow.html','NewWin','width=x,height=y')">my > link as page2 is being processed, some stats are written to the database - and only*after* this has happened page1 should be reloaded!!! Therefore I make the reload in page2 *after* the database thing has happened > Then in the onload of the NewWin set the focus to the opener window. but I want the focus to go to page2 (page1 should be reloaded in the background!) as I wrote, this works for IE5! in NS6, page1 gets the focus the moment it reloads! in NS4 NOTHING happens (as if no JS was there!) thanks Michael -- Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a From filipiab at atsc.army.mil Tue Aug 7 12:03:45 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Tue, 7 Aug 2001 13:03:45 -0400 Subject: [Javascript] How do I located a window I opened? Message-ID: But when you open a new window that is an instance of another browser so in order to have access to the newWindow you have to assign it to a var in the opener window to be able to check it from the opener window. As far as loading and unloading pages in a window, AFAIK unless you specifically change the name the browser is going to assign whatever it find between the tags and if not it will use the filename of the page. Bob Filipiak (Contractor) MCP -----Original Message----- From: Scott.Wiseman [mailto:swiseman at remax-cahi.com] Sent: Monday, August 06, 2001 3:48 PM To: 'javascript at LaTech.edu' Subject: [Javascript] How do I located a window I opened? FACTS: the window object is the global object for client-side JavaScript and all global variables are properties of the window object and the window object that represents a top-level browser window exists as long as that window exists. and a reference to the window object remains valid regardless of how many web pages the window loads and unloads... soooo... QUESTION: How do I reference a window that I named using the window.name ="mywindow" ???????????????????????????????? Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From gassinaumasis at hotmail.com Tue Aug 7 12:11:13 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Tue, 07 Aug 2001 17:11:13 +0000 Subject: [Javascript] How do I located a window I opened? Message-ID: >FACTS: > >the window object is the global object for client-side JavaScript and all >global variables are properties of the window object > >and the window object that represents a top-level browser window exists as >long as that window exists. > >and a reference to the window object remains valid regardless of how many >web pages the window loads and unloads... but a window object is only accessible from a window object that has some kind of relation with it. >soooo... > >QUESTION: > >How do I reference a window that I named > >using the window.name ="mywindow" As far as I know you can only do that in pure JavaScript if the window is 1) either a child frame or a parent window of the window the script is in 2) the window the script is in has either been opened by or has opened the other window If there is no relation at all between the two windows (if the user has started up both independently), there is no direct communication possible. At least, that's what I think and I tried some strange things! Note that the TARGET attribute of the A tag does allow this kind of communication, a simple TARGET="mywindow". What you can do is and the function someFunction() which resides in the other window will be executed. So it is possible to call scripts in the other window. But since JavaScript still doesn't allow you to refer to the other window the scripts would have to be called by link tags like the above. In short, this is a complex but fascinating subject. ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From mailing_list at gmx.at Tue Aug 7 12:15:43 2001 From: mailing_list at gmx.at (Michael Mehlmann) Date: Tue, 7 Aug 2001 19:15:43 +0200 (MEST) Subject: [Javascript] reload calling page Message-ID: <19703.997204543@www10.gmx.net> > If I'm on a page that shows clicks for a link, I would know that if I > click > on that link the count should go up by one. I'm with you, but you would not know about percentages (of the referer, the Browser, the Client's IP ...) > Anyhow, there must be something else wrong because NS 4.x should recognize > the method. Well, I also think so - do you know a page, that does a reload(), so I can check with my NS4?? > Don't understand in meta tag ... this is how you do HTML-redirects (http://www.uga.edu/help/redirect.html) and is PHP-code (sorry, I forgot to mention it), that inserts the URL, where I want to go!!! > ... but AFAIK it > appears that the click-statistics are not the only thing that is dynamic. > If > I read the code correctly it is for page2 and it would cause the page to > continually refresh that is not my problem! > and in NS 4.x would not get a chance to fire the > onUnload. > If NS 6 gets focus then code page1 to test for the various browser > versions > and set a flag to know when page2 has 'reloaded' page1. that is possible - but I want to make as less as possible extra-browser-coding ... > Since you are generating these pages on a server, maybe you should rethink > the whole process. I thought about it ;-) can't find another solution :-( thanks Michael -- Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a From cutterbl at hotmail.com Tue Aug 7 19:42:21 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Tue, 07 Aug 2001 20:42:21 -0400 Subject: [Javascript] Image sizing Message-ID: Fine tuning my site (http://www.falcon-knives.com) for various environments. I have a static hiermenu on the left side of the page. It appears correctly in IE, and almost right in NN4.7 (doesn't like styles much?), but in AOL the table extends below the image (the z-order keeps the graphic behind the table). I thought it might be possible to set the images height attributes to the menu table height + 10. I originally tried this by doing... document.write("); This killed the image entirely. I figured it must be because the image comes before the table in the code. Since I can't change that I tried a different way, setting the height after the table is written. document.navbar.style.height = (document.menu1.style.height + 10); //didn't work document.navbar.height = (document.menu1.height + 10); //this didn't either Any ideas what (or where) I'm going wrong here? All help greatly appreciated. Cutter http://www.falcon-knives.com The Past is a Memory The Future a Dream But Today is a Gift That's why they call it The Present _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From hormuz.maloo at kotak.com Wed Aug 8 02:01:32 2001 From: hormuz.maloo at kotak.com (hormuz maloo) Date: Wed, 8 Aug 2001 12:31:32 +0530 Subject: [Javascript] status bar Message-ID: <0A0F9ADC3617D411BEB50004ACD36C58029E57BA@KSNTBOMBKH02> Hi everybody, Can somebody please help me with this. I have a link on my page that accesses a page on an external server. Therefore, whenever that link is clicked, the status bar displays a message which says, "connecting to site xyz.com". How do I stop that message coming in the status bar? Thanks in advance for your response, Regards, Hormuz From md at drawcard.com Wed Aug 8 02:05:25 2001 From: md at drawcard.com (Damian Andrews) Date: Wed, 08 Aug 01 17:05:25 +1000 Subject: [Javascript] Deadline for .biz & .info approaches!! Message-ID: <200108080712.RAA28321@poxy.bigpond.net.au> Dear Registrant, The most anticipated event since the first release of the dotcoms is here! If you haven't already done so it's time to pre-register your .biz and .info 'Top Level Domain Names' and stake your claim in what is fast becoming a LAND RUSH, "larger than the .com phenomena". With the deadline to pre-register your .biz Sept 17, 2001 and Sept 12, 2001 for .info domains approaching (your only real opportunity to secure a great .biz and/or .info) you must act now secure your trading or generic name(s). At the close of these periods all pre-registrations will be processed first. Up for grabs are names like; news.biz, show.biz and adult.info because of the 'Round Robin' [Not First Come First Serve] selection method adopted by ICANN, the release has effectively become "The Worlds Largest Lottery". We offer you [but only until September 18th 2001] to pre-register your selection of great names with three of the largest biz & .info registrars [Our Channel Partners] in a 3-5 minute process for one low price [as low as US$3.50 per name] this is the lowest price available anywhere including The Registrars Themselves. Heres how it works! Pre-register with one, two or all three of our channel partners at the same time and increase your chances of securing names like 'show.biz or easy.info' up to 300%. Pre-register as many names as you like and save up to 50% with volume discounts. Free.biz! Want to pre-register names like adult.biz for FREE. Easy.biz, simply go to www.drawcard.com enter in your email address at our affiliate page and I will send you an email, with your unique ID that can be forward to all in your address book then all who enter the site by way of that link will earn you US$1.00 per pre-registration. We have people registering 100+ names at a time. Now that's a good.biz! Any and all names you decide to register can come directly off your earnings or if you prefer I will send you a cheque! More_Free.info ? For every 20 names or more you pre-register we will give you free for one year a sub-domain name from the very best of our 'channels partners' like 'yourname at pro.biz', 'yourname at badboy.info'. ? Free home page with every account. ? Free email with every account. This is your very best opportunity to secure 'yourfuture.biz'. But you must Pre-Register and you must do it NOW. Want to see more: http://www.drawcard.com (If this link is not working please cut and paste the link into your browser) If you have received this mailing in error, or do not wish to receive any further mailings from us, simply click here put in your email address and add Remove to the subject line: http://www.drawcard.com/index.cfm?fuseaction=CompanyInfo Damian Andrews MD Drawcard.com From gassinaumasis at hotmail.com Wed Aug 8 02:09:27 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Wed, 08 Aug 2001 07:09:27 +0000 Subject: [Javascript] status bar Message-ID: >Can somebody please help me with this. I have a link on my page that >accesses a page on an external server. Therefore, whenever that link is >clicked, the status bar displays a message which says, "connecting to site >xyz.com". How do I stop that message coming in the status bar? You can't. Although you can influence this text by window.status while the browser is at your page, as soon as a link to another site is clicked the browser is not at your page any more, so you can't influence it. ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From mailing_list at gmx.at Wed Aug 8 02:20:11 2001 From: mailing_list at gmx.at (Michael Mehlmann) Date: Wed, 8 Aug 2001 09:20:11 +0200 (MEST) Subject: [Javascript] status bar References: <0A0F9ADC3617D411BEB50004ACD36C58029E57BA@KSNTBOMBKH02> Message-ID: <21206.997255211@www28.gmx.net> > Can somebody please help me with this. I have a link on my page that > accesses a page on an external server. Therefore, whenever that link is > clicked, the status bar displays a message which says, "connecting to site > xyz.com". How do I stop that message coming in the status bar? your link has to look something like: hth michi -- Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a From filipiab at atsc.army.mil Wed Aug 8 06:59:08 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Wed, 8 Aug 2001 07:59:08 -0400 Subject: [Javascript] status bar Message-ID: Why do you want to do that in the first place? If you don't want people to see that they are going to another site, don't link to it. Bob Filipiak (Contractor) MCP -----Original Message----- From: hormuz maloo [mailto:hormuz.maloo at kotak.com] Sent: Wednesday, August 08, 2001 3:02 AM To: 'javascript at LaTech.edu' Subject: [Javascript] status bar Hi everybody, Can somebody please help me with this. I have a link on my page that accesses a page on an external server. Therefore, whenever that link is clicked, the status bar displays a message which says, "connecting to site xyz.com". How do I stop that message coming in the status bar? Thanks in advance for your response, Regards, Hormuz _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From merchant at LATECH.EDU Wed Aug 8 08:23:44 2001 From: merchant at LATECH.EDU (David Merchant) Date: Wed, 08 Aug 2001 08:23:44 -0500 Subject: [Javascript] Deadline for .biz & .info approaches!! In-Reply-To: <200108080712.RAA28321@poxy.bigpond.net.au> Message-ID: <5.1.0.14.2.20010808082132.028ad2d0@vm.cc.latech.edu> At 05:05 PM 8/8/01 +1000, you wrote: >Dear Registrant, Another addy for the kill file.... BTW, the Computing Center is working on stripping attachments from the list (the list software by itself doesn't have such an option) but for now post sizes are limited to 50K which should prevent some of the virus/worm problems... TTFN, David Head, Systems Dept, Louisiana Tech University merchant at latech.edu JavaScript List Administrator (www.mountaindragon.com/javascript/) Webmaster, HTML Encyclopedia (www.mountaindragon.com/html/) Webmaster, Memorial Day Page: (www.usmemorialday.org/) From CNeal at dthr.ab.ca Wed Aug 8 10:42:50 2001 From: CNeal at dthr.ab.ca (Neal, Craig) Date: Wed, 8 Aug 2001 09:42:50 -0600 Subject: [Javascript] Question: Getting 2 functions to work on 1 onclick event Message-ID: <2F1A38DC0413D311A7310090273AD527035F0790@dthrexch01> Any idea how I can get 2 functions to work on the same onclick event? The first function is a modified Dreamweaver validation script which uses alert to pop up a window with information on which form fields have not been completed. If all fields are complete then it returns no alert window. function MM_validateForm() { //v4.0 var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]); if (val) { nm=val.name; if ((val=val.value)!="") { if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@'); if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n'; } else if (test!='R') { if (isNaN(val)) errors+='- '+nm+' must contain a number.\n'; if (test.indexOf('inRange') != -1) { p=test.indexOf(':'); min=test.substring(8,p); max=test.substring(p+1); if (val and this only runs MM_validateForm() but doesn't run Save_onclick even if MM_validateForm returns no errors. I appreciate any assistance on how I write the syntax so that MM_validateForm() runs first and if no error messages are generated then Save_onclick() runs. Thanks so much. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Esther_Strom at hmco.com Wed Aug 8 10:50:58 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Wed, 8 Aug 2001 10:50:58 -0500 Subject: [Javascript] Question: Getting 2 functions to work on 1 onclick event Message-ID: Why not have your MM_validateForm() function call Save_onClick() if it returns the results you want? You have this section: if (errors) alert('The following error(s) occurred:\n'+errors); document.MM_returnValue = (errors == ''); Why not modify it to: if (errors) { alert('The following error(s) occurred:\n'+errors); document.MM_returnValue = (errors==''); } else { Save_onClick(); } (Not sure of the curly braces; it's been a while and I wasn't looking at your original that closely. But there's no reason you can't call the save function from inside the validate function.) Hope this helps, Esther "Neal, Craig" > cc: Sent by: Subject: [Javascript] Question: Getting 2 functions to work on 1 javascript-admin@ onclick event LaTech.edu 08/08/01 10:42 AM Please respond to javascript Any idea how I can get 2 functions to work on the same onclick event? The first function is a modified Dreamweaver validation script which uses alert to pop up a window with information on which form fields have not been completed. If all fields are complete then it returns no alert window. function MM_validateForm() { //v4.0 var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]); if (val) { nm=val.name; if ((val=val.value)!="") { if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@'); if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n'; } else if (test!='R') { if (isNaN(val)) errors+='- '+nm+' must contain a number.\n'; if (test.indexOf('inRange') != -1) { p=test.indexOf(':'); min=test.substring(8,p); max=test.substring(p+1); if (val and this only runs MM_validateForm() but doesn't run Save_onclick even if MM_validateForm returns no errors. I appreciate any assistance on how I write the syntax so that MM_validateForm() runs first and if no error messages are generated then Save_onclick() runs. Thanks so much. From Esther_Strom at hmco.com Wed Aug 8 10:50:58 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Wed, 8 Aug 2001 10:50:58 -0500 Subject: [Javascript] Question: Getting 2 functions to work on 1 onclick event Message-ID: Why not have your MM_validateForm() function call Save_onClick() if it returns the results you want? You have this section: if (errors) alert('The following error(s) occurred:\n'+errors); document.MM_returnValue = (errors == ''); Why not modify it to: if (errors) { alert('The following error(s) occurred:\n'+errors); document.MM_returnValue = (errors==''); } else { Save_onClick(); } (Not sure of the curly braces; it's been a while and I wasn't looking at your original that closely. But there's no reason you can't call the save function from inside the validate function.) Hope this helps, Esther "Neal, Craig" > cc: Sent by: Subject: [Javascript] Question: Getting 2 functions to work on 1 javascript-admin@ onclick event LaTech.edu 08/08/01 10:42 AM Please respond to javascript Any idea how I can get 2 functions to work on the same onclick event? The first function is a modified Dreamweaver validation script which uses alert to pop up a window with information on which form fields have not been completed. If all fields are complete then it returns no alert window. function MM_validateForm() { //v4.0 var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]); if (val) { nm=val.name; if ((val=val.value)!="") { if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@'); if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n'; } else if (test!='R') { if (isNaN(val)) errors+='- '+nm+' must contain a number.\n'; if (test.indexOf('inRange') != -1) { p=test.indexOf(':'); min=test.substring(8,p); max=test.substring(p+1); if (val and this only runs MM_validateForm() but doesn't run Save_onclick even if MM_validateForm returns no errors. I appreciate any assistance on how I write the syntax so that MM_validateForm() runs first and if no error messages are generated then Save_onclick() runs. Thanks so much. From peter at brunone.com Wed Aug 8 11:19:37 2001 From: peter at brunone.com (Peter Brunone) Date: Wed, 8 Aug 2001 11:19:37 -0500 Subject: [Javascript] Question: Getting 2 functions to work on 1 onclick event References: <2F1A38DC0413D311A7310090273AD527035F0790@dthrexch01> Message-ID: <13f901c12025$eb75f6e0$e22d200a@PMBRUNON> Craig, I'd recommend calling *one* function that then calls both of these. Have the first function return true if all is well; then your master function will look like this: function masterCall() { // This runs function 1 and if it is found to be true, it runs function 2 as well. if(function1) { function2; } } ----- Original Message ----- From: "Neal, Craig" To: Sent: Wednesday, August 08, 2001 10:42 AM Subject: [Javascript] Question: Getting 2 functions to work on 1 onclick event | Any idea how I can get 2 functions to work on the same onclick event? | | The first function is a modified Dreamweaver validation script which uses | alert to pop up a window with information on which form fields have not been | completed. | | If all fields are complete then it returns no alert window. | | function MM_validateForm() { //v4.0 | | var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; | | for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; | val=MM_findObj(args[i]); | | if (val) { nm=val.name; if ((val=val.value)!="") { | | if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@'); | | if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail | address.\n'; | | } else if (test!='R') { | | if (isNaN(val)) errors+='- '+nm+' must contain a number.\n'; | | if (test.indexOf('inRange') != -1) { p=test.indexOf(':'); | | min=test.substring(8,p); max=test.substring(p+1); | | if (val | | and this only runs MM_validateForm() but doesn't run Save_onclick even if | MM_validateForm returns no errors. | | | | I appreciate any assistance on how I write the syntax so that | MM_validateForm() runs first and if no error messages are generated then | Save_onclick() runs. | | Thanks so much. | | From cutterbl at hotmail.com Wed Aug 8 14:58:53 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Wed, 08 Aug 2001 15:58:53 -0400 Subject: [Javascript] Question: Getting 2 functions to work on 1 onclick event Message-ID: You have one function, MM_validateForm(), and you adjust the end of the script so that it may end like... if (validate = true){ SaveForm.Page.value = otherDoc.body.outerHTML; SaveForm.submit(); } Cutter http://www.falcon-knives.com The Past is a Memory The Future a Dream But Today is a Gift That's why they call it The Present From: "Neal, Craig" Reply-To: javascript at LaTech.edu To: "'javascript at LaTech.edu'" Subject: [Javascript] Question: Getting 2 functions to work on 1 onclick event Date: Wed, 8 Aug 2001 09:42:50 -0600 Any idea how I can get 2 functions to work on the same onclick event? The first function is a modified Dreamweaver validation script which uses alert to pop up a window with information on which form fields have not been completed. If all fields are complete then it returns no alert window. function MM_validateForm() { //v4.0 var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]); if (val) { nm=val.name; if ((val=val.value)!="") { if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@'); if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n'; } else if (test!='R') { if (isNaN(val)) errors+='- '+nm+' must contain a number.\n'; if (test.indexOf('inRange') != -1) { p=test.indexOf(':'); min=test.substring(8,p); max=test.substring(p+1); if (val and this only runs MM_validateForm() but doesn't run Save_onclick even if MM_validateForm returns no errors. I appreciate any assistance on how I write the syntax so that MM_validateForm() runs first and if no error messages are generated then Save_onclick() runs. Thanks so much. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From searcy at nortelnetworks.com Wed Aug 8 15:51:45 2001 From: searcy at nortelnetworks.com (Ronald Searcy) Date: Wed, 8 Aug 2001 15:51:45 -0500 Subject: [Javascript] server threw and exception??? Message-ID: <85AA7486A2C1D411BCA20000F8073E43030D9619@crchy271.us.nortel.com> Sorry to bother you, but I've found that I have code similar to that which you posted under the stated title. I am trying to do something very similar, and I'm running into the same problem. IE5 gives me a : "Server threw exception" message, but netscape runs fine. I was wondering if you ever found an answer to this problem, since this thread is fairly short. Any help would be apriciated, Ron Searcy -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kyle at admin.usf.edu Wed Aug 8 16:03:50 2001 From: Kyle at admin.usf.edu (Kelly, Kyle) Date: Wed, 8 Aug 2001 17:03:50 -0400 Subject: [Javascript] OT - Best javascritp sites Message-ID: <4F7B5C095D68D21181BE0060943F1AAE04327149@apollo.cfr.usf.edu> greetings, what JS site are the best in terms of tutorials and code? TIA, kyle From swiseman at remax-cahi.com Wed Aug 8 16:14:32 2001 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Wed, 8 Aug 2001 14:14:32 -0700 Subject: [Javascript] server threw and exception??? Message-ID: <5DEF109335DAD111B05F00A0C9DDFC02A42F70@ROCHS2> yes I have. I am changing careers -----Original Message----- From: Ronald Searcy [mailto:searcy at nortelnetworks.com] Sent: Wednesday, August 08, 2001 1:52 PM To: javascript at LaTech.edu Subject: [Javascript] server threw and exception??? Sorry to bother you, but I've found that I have code similar to that which you posted under the stated title. I am trying to do something very similar, and I'm running into the same problem. IE5 gives me a : "Server threw exception" message, but netscape runs fine. I was wondering if you ever found an answer to this problem, since this thread is fairly short. Any help would be apriciated, Ron Searcy -------------- next part -------------- An HTML attachment was scrubbed... URL: From swiseman at remax-cahi.com Wed Aug 8 16:16:24 2001 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Wed, 8 Aug 2001 14:16:24 -0700 Subject: [Javascript] OT - Best javascritp sites Message-ID: <5DEF109335DAD111B05F00A0C9DDFC02A42F71@ROCHS2> www.devguru.com -----Original Message----- From: Kelly, Kyle [mailto:Kyle at admin.usf.edu] Sent: Wednesday, August 08, 2001 2:04 PM To: 'javascript at LaTech.edu' Subject: [Javascript] OT - Best javascritp sites greetings, what JS site are the best in terms of tutorials and code? TIA, kyle _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From Kyle at admin.usf.edu Wed Aug 8 16:19:11 2001 From: Kyle at admin.usf.edu (Kelly, Kyle) Date: Wed, 8 Aug 2001 17:19:11 -0400 Subject: [Javascript] OT - Best javascritp sites Message-ID: <4F7B5C095D68D21181BE0060943F1AAE0432714A@apollo.cfr.usf.edu> thanks scott -----Original Message----- From: Scott.Wiseman [mailto:swiseman at remax-cahi.com] Sent: Wednesday, August 08, 2001 5:16 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] OT - Best javascritp sites www.devguru.com -----Original Message----- From: Kelly, Kyle [mailto:Kyle at admin.usf.edu] Sent: Wednesday, August 08, 2001 2:04 PM To: 'javascript at LaTech.edu' Subject: [Javascript] OT - Best javascritp sites greetings, what JS site are the best in terms of tutorials and code? TIA, kyle _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Wed Aug 8 16:20:21 2001 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Wed, 8 Aug 2001 14:20:21 -0700 Subject: [JavaScript] server threw and exception??? Message-ID: <5DEF109335DAD111B05F00A0C9DDFC02A42F73@ROCHS2> seriously. if you call a function from a window that is not there you get this error. Maybe more on what you are doing would help -----Original Message----- From: Scott.Wiseman [mailto:swiseman at remax-cahi.com] Sent: Wednesday, August 08, 2001 2:15 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] server threw and exception??? yes I have. I am changing careers -----Original Message----- From: Ronald Searcy [mailto:searcy at nortelnetworks.com] Sent: Wednesday, August 08, 2001 1:52 PM To: javascript at LaTech.edu Subject: [Javascript] server threw and exception??? Sorry to bother you, but I've found that I have code similar to that which you posted under the stated title. I am trying to do something very similar, and I'm running into the same problem. IE5 gives me a : "Server threw exception" message, but netscape runs fine. I was wondering if you ever found an answer to this problem, since this thread is fairly short. Any help would be apriciated, Ron Searcy -------------- next part -------------- An HTML attachment was scrubbed... URL: From swiseman at remax-cahi.com Wed Aug 8 16:23:53 2001 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Wed, 8 Aug 2001 14:23:53 -0700 Subject: [JavaScript] OT - Best JavaScript sites Message-ID: <5DEF109335DAD111B05F00A0C9DDFC02A42F74@ROCHS2> I am so happy I can help. -----Original Message----- From: Kelly, Kyle [mailto:Kyle at admin.usf.edu] Sent: Wednesday, August 08, 2001 2:19 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] OT - Best javascritp sites thanks scott -----Original Message----- From: Scott.Wiseman [mailto:swiseman at remax-cahi.com] Sent: Wednesday, August 08, 2001 5:16 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] OT - Best javascritp sites www.devguru.com -----Original Message----- From: Kelly, Kyle [mailto:Kyle at admin.usf.edu] Sent: Wednesday, August 08, 2001 2:04 PM To: 'javascript at LaTech.edu' Subject: [Javascript] OT - Best javascritp sites greetings, what JS site are the best in terms of tutorials and code? TIA, kyle _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From Kyle at admin.usf.edu Wed Aug 8 16:27:03 2001 From: Kyle at admin.usf.edu (Kelly, Kyle) Date: Wed, 8 Aug 2001 17:27:03 -0400 Subject: [JavaScript] OT - Best JavaScript sites Message-ID: <4F7B5C095D68D21181BE0060943F1AAE0432714B@apollo.cfr.usf.edu> judging from this and your other post about changing careers i'd say you are due for some fun ;) -----Original Message----- From: Scott.Wiseman [mailto:swiseman at remax-cahi.com] Sent: Wednesday, August 08, 2001 5:24 PM To: 'javascript at LaTech.edu' Subject: RE: [JavaScript] OT - Best JavaScript sites I am so happy I can help. -----Original Message----- From: Kelly, Kyle [mailto:Kyle at admin.usf.edu] Sent: Wednesday, August 08, 2001 2:19 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] OT - Best javascritp sites thanks scott -----Original Message----- From: Scott.Wiseman [mailto:swiseman at remax-cahi.com] Sent: Wednesday, August 08, 2001 5:16 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] OT - Best javascritp sites www.devguru.com -----Original Message----- From: Kelly, Kyle [mailto:Kyle at admin.usf.edu] Sent: Wednesday, August 08, 2001 2:04 PM To: 'javascript at LaTech.edu' Subject: [Javascript] OT - Best javascritp sites greetings, what JS site are the best in terms of tutorials and code? TIA, kyle _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Wed Aug 8 16:34:37 2001 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Wed, 8 Aug 2001 14:34:37 -0700 Subject: [JavaScript] OT - Best JavaScript sites Message-ID: <5DEF109335DAD111B05F00A0C9DDFC02A42F75@ROCHS2> send it this way please www.scottmwiseman.com -----Original Message----- From: Kelly, Kyle [mailto:Kyle at admin.usf.edu] Sent: Wednesday, August 08, 2001 2:27 PM To: 'javascript at LaTech.edu' Subject: RE: [JavaScript] OT - Best JavaScript sites judging from this and your other post about changing careers i'd say you are due for some fun ;) -----Original Message----- From: Scott.Wiseman [mailto:swiseman at remax-cahi.com] Sent: Wednesday, August 08, 2001 5:24 PM To: 'javascript at LaTech.edu' Subject: RE: [JavaScript] OT - Best JavaScript sites I am so happy I can help. -----Original Message----- From: Kelly, Kyle [mailto:Kyle at admin.usf.edu] Sent: Wednesday, August 08, 2001 2:19 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] OT - Best javascritp sites thanks scott -----Original Message----- From: Scott.Wiseman [mailto:swiseman at remax-cahi.com] Sent: Wednesday, August 08, 2001 5:16 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] OT - Best javascritp sites www.devguru.com -----Original Message----- From: Kelly, Kyle [mailto:Kyle at admin.usf.edu] Sent: Wednesday, August 08, 2001 2:04 PM To: 'javascript at LaTech.edu' Subject: [Javascript] OT - Best javascritp sites greetings, what JS site are the best in terms of tutorials and code? TIA, kyle _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From osaleh at sapient.com Wed Aug 8 18:05:13 2001 From: osaleh at sapient.com (Omar Saleh) Date: Wed, 8 Aug 2001 18:05:13 -0500 Subject: [Javascript] How can I add an element to a select box Message-ID: <199166AC4AF5D4119DF70002A52CC54A5F27AD@dalmmsx01.sapient.com> How can I add or delete an element from a Select Box using JavaScript ? i basically have two Select boxes (set to multiple), when I double click on select box 1, i need to add the element I double clicked on to box 2. If i double click on an element in box 2, then I need that element to be deleted. Here is the page that I have now that does not work. <> Thx. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Sample.txt URL: From osaleh at sapient.com Wed Aug 8 18:09:28 2001 From: osaleh at sapient.com (Omar Saleh) Date: Wed, 8 Aug 2001 18:09:28 -0500 Subject: [Javascript] How can I add an element to a select box Message-ID: <199166AC4AF5D4119DF70002A52CC54A5F27AF@dalmmsx01.sapient.com> How can I add or delete an element from a Select Box using JavaScript ? i basically have two Select boxes (set to multiple), when I double click on select box 1, i need to add the element I double clicked on to box 2. If i double click on an element in box 2, then I need that element to be deleted. Here is the page that I have now that does not work. New Page 1

Thx. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hormuz.maloo at kotak.com Thu Aug 9 01:07:19 2001 From: hormuz.maloo at kotak.com (hormuz maloo) Date: Thu, 9 Aug 2001 11:37:19 +0530 Subject: [Javascript] status bar Message-ID: <0A0F9ADC3617D411BEB50004ACD36C58029E57BC@KSNTBOMBKH02> Thanks Peter, Michael and Bob for your responses. Peter, you're right. I can't switch it off. Bob, as to why I do not want the message to show even thought we're linking to another site, it is because we're paying them lots of dough to use their data. It's not an honorary link. I could simply ask them to ftp the data to us, store it on our servers and display it from there, but it seemed convenient to simply link to their databases. Just wish there was some way to stop the message in the status bar from appearing....but I guess it's not so important. Thanks guys, Hormuz >Can somebody please help me with this. I have a link on my page that >accesses a page on an external server. Therefore, whenever that link is >clicked, the status bar displays a message which says, "connecting to site >xyz.com". How do I stop that message coming in the status bar? >You can't. Although you can influence this text by window.status while the >browser is at your page, as soon as a link to another site is clicked the >browser is not at your page any more, so you can't influence it. >ppk >your link has to look something like: >
>hth >michi >Why do you want to do that in the first place? If you don't want people to >see that they are going to another site, don't link to it. >Bob Filipiak (Contractor) >MCP From gassinaumasis at hotmail.com Thu Aug 9 03:38:04 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Thu, 09 Aug 2001 08:38:04 +0000 Subject: [Javascript] How can I add an element to a select box Message-ID: >How can I add or delete an element from a Select Box using JavaScript ? http://www.xs4all.nl/~ppk/js/index.html?options.html ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From ben at babelfish.co.uk Thu Aug 9 05:00:17 2001 From: ben at babelfish.co.uk (.ben) Date: Thu, 9 Aug 2001 11:00:17 +0100 Subject: [Javascript] Programmticly adding an item to a listbox at runtime References: Message-ID: <002f01c120ba$21306470$3a060a0a@idt00096> Hi all. Does anyone know how to programmatically add an item to a listbox at runtime in IE? It's not obvious how to do it. Do I have to manipulate the options collection, or insert additional HTML between the tags? See http://www.xs4all.nl/~ppk/js/index.html?options.html for the script you need. ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From mallard at serv.net Thu Aug 9 09:47:17 2001 From: mallard at serv.net (TomMallard) Date: Thu, 9 Aug 2001 07:47:17 -0700 Subject: [Javascript] How do I convert "FF" to 255? References: <002901c0c9b6$2b6082f0$f4f4fea9@AMD> <091501c0c9bc$c8881510$e22d200a@jcpenney.com> <093201c0c9bd$716b6740$e22d200a@jcpenney.com> <3AE1FB45.B0A02292@yahoo.com> Message-ID: <005901c120e2$30b74760$958627d8@mallard> All you need to do is prefix "0x" to the hex number and then use parseInt() or parseFloat(). alert(parseInt(0xFF)) tom mallard seattle ----- Original Message ----- From: "a d a g i l s o n @" To: Sent: Saturday, April 21, 2001 2:27 PM Subject: Re: [Javascript] How do I convert "FF" to 255? > Try this: > The JavaScript Source: Equivalents: Hex-RGB Converter > I don't know if it's exactly what you want but... > a. > Peter Brunone wrote: > Unfortunately, upon closer examination, I see that this doesn't do jack. > ----- Original Message ----- > From: Peter Brunone > To: javascript at LaTech.edu > Sent: Friday, April 20, 2001 12:10 PM > Subject: Re: [Javascript] How do I convert "FF" to 255? > According to the Netscape JavaScript reference, you can use escape(var) to get the hexadecimal value, and unescape(var) to get the decimal value. > ----- Original Message ----- > From: Rui Fortes > To: javascript at LaTech.edu > Sent: Friday, April 20, 2001 11:23 AM > Subject: [Javascript] How do I convert "FF" to 255? > Hello. How can I get an highlighted version of a color.That is, how can I find the code of a color wich is a lighter version of another color.I tryed to do this myself but I need, for instance, to know how to get a number from a string representing an hexadecimal number.I could then add some value to RGB components and use RGB(newred, newgreen, newblue) to get that color.I found Hex function that returns a string representing the hexadecimal convertion of a number.Is there an inverse function to turn a string into a number?Something like afunc("FF") that returns 255. Thanks > > > From jdavis at anteon.com Thu Aug 9 09:57:59 2001 From: jdavis at anteon.com (Joseph Davis) Date: Thu, 09 Aug 2001 10:57:59 -0400 Subject: [Javascript] Re: Popup window from an anchor Message-ID: How about something like what's below. You'ld also want to put in some window.close() statements. You pass the file you are reading into the pop-up window. < HTML> < HEAD> < TITLE> < SCRIPT LANGUAGE="JavaScript"> function newwindow(page) { myPage = window.open(page, "secondwindow", "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=150,height=250,top=100,left=200,screenX=100,screenY=200"); } < /Script> < /head> < BODY> Taxpayers will continue to seek minimization strategies and < B>loopholes< A NAME="foot3">< /A>< SUP> 3< /SUP>< /A> in the system. Hence, policy-makers will want to close these loopholes with yet more complex rules and definitions. < /body> < /html> hth, Joe >>> phumes1 at home.com 8/9/01 6:00:40 AM >>> Within my html file I could have hundreds of footnotes references. Presently these are all at the end of my file. If you click on the footnote "3" it jumps to that reference at the end of the file. Example: Taxpayers will continue to seek minimization strategies and loopholes 3 in the system. Hence, policy-makers will want to close these loopholes with yet more complex rules and definitions. What I would like to do is be able to click on the superior figure "3" and have a popup window appear with the footnote text in the window rather than jumping to the end of the file. Does that make sense? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at babelfish.co.uk Thu Aug 9 10:31:21 2001 From: ben at babelfish.co.uk (.ben) Date: Thu, 9 Aug 2001 16:31:21 +0100 Subject: [Javascript] Programmticly adding an item to a listbox at runtime References: Message-ID: <002c01c120e8$60d926b0$3a060a0a@idt00096> Spot on ppk, just what I was after. Cheers, .ben ----- Original Message ----- From: "Peter-Paul Koch" To: Sent: Thursday, August 09, 2001 2:48 PM Subject: Re: [Javascript] Programmticly adding an item to a listbox at runtime > >Does anyone know how to programmatically add an item to a listbox at > >runtime > >in IE? It's not obvious how to do it. Do I have to manipulate the options > >collection, or insert additional HTML between the United States United Kingdom EMEIA Asia-Pacific


From cutterbl at hotmail.com Thu Aug 16 10:47:39 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 16 Aug 2001 11:47:39 -0400 Subject: [Javascript] Math Message-ID: I'm terrible at Math as it is, but I still don't understand javascripts math operations real well anyway. Any help here is greatly appreciated. I've got a non-profit who wants to sell Raffle Tickets from their site. I have a form text field where the user can enter the Quantity (myForm.Quantity). Here's the kicker. The client says $2 a ticket, 3 for $5. Ok, so 10 tickets is $17. 10 divided by three is 3.33333etc. 3 times 5 is 15, plus the $2 for the other ticket. But how do you put this in a script calculation? Cutter http://www.falcon-knives.com _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From cutterbl at hotmail.com Thu Aug 16 11:01:19 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 16 Aug 2001 12:01:19 -0400 Subject: [Javascript] Cookies & drop down menus Message-ID: you could create a function function setPage(){ document.location.href="http://www.mysite.com/' + myForm.SelectBox.options[myForm.SelectBox.selectedIndex].value + '"; } And you use the page name as the value of the options in your select. You then reference the function in the selects onclick event... onclick="setPage()" Just a thought. Hope it helps. Cutter http://www.falcon-knives.com ************************************** From: queequeg_x at yahoo.com Reply-To: javascript at LaTech.edu To: Javascript at LaTech.edu Subject: [Javascript] Cookies & drop down menus Date: Thu, 16 Aug 2001 15:03:43 -0000 I have this code that's meant to select a region's site and go to it. The next time you enter, it brings you directly there. Now, I've gotten this to work with radio buttons and check boxes. My silly question is: how do I get it to work with a drop-down box. Many thanks in advance. -rene --------------------------------------------------------------------- Select your region

Welcome to

Please select a region.


United States United Kingdom EMEIA Asia-Pacific


_______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From staeger at arch.ethz.ch Thu Aug 16 11:15:39 2001 From: staeger at arch.ethz.ch (staeger) Date: Thu, 16 Aug 2001 18:15:39 +0200 Subject: [Javascript] Math References: Message-ID: <3B7BF1AB.3BD726E0@arch.ethz.ch> Cutter Bl wrote: > > I'm terrible at Math as it is, but I still don't understand javascripts math > operations real well anyway. Any help here is greatly appreciated. > > I've got a non-profit who wants to sell Raffle Tickets from their site. I > have a form text field where the user can enter the Quantity > (myForm.Quantity). Here's the kicker. The client says $2 a ticket, 3 for $5. > > Ok, so 10 tickets is $17. 10 divided by three is 3.33333etc. 3 times 5 is > 15, plus the $2 for the other ticket. > > But how do you put this in a script calculation? > > Cutter > http://www.falcon-knives.com i'm just trying it ... var tickets = [number off tickets]; price = 5*Math.floor(tickets/3) + 2*(tickets%3); greets./ -- ----------------------------------------------------------------- benjamin staeger swiss federal institute of technology architecture & caad mailto:staeger at arch.ethz.ch http://caad.arch.ethz.ch/~staeger ----------------------------------------------------------------- Always listen to experts. They'll tell you what can't be done, and why. Then do it. From Quixote at LaMancha.org Thu Aug 16 11:24:33 2001 From: Quixote at LaMancha.org (Ben Curtis) Date: Thu, 16 Aug 2001 09:24:33 -0700 Subject: [Javascript] Math In-Reply-To: Message-ID: > have a form text field where the user can enter the Quantity > (myForm.Quantity). Here's the kicker. The client says $2 a ticket, 3 for $5. > > Ok, so 10 tickets is $17. 10 divided by three is 3.33333etc. 3 times 5 is > 15, plus the $2 for the other ticket. > > But how do you put this in a script calculation? function tixPrice(Qty) { var Discounted = parseInt(Qty /3) *5; var RegPrice = (parseInt(Qty) %3) *2; return (Discounted + RegPrice); } -- +Ben Curtis "On the other side of the screen, it all looks so easy." From cutterbl at hotmail.com Thu Aug 16 13:34:14 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 16 Aug 2001 14:34:14 -0400 Subject: [Javascript] Math Message-ID: Ben, Thanks so much. Works like a charm. I even adjusted the function so that I could pass the Price and Discount to the function [fTotal = tixPrice(fields[0],fields[1],fields[2])] so if I ever change the price and discount in the database it will automatically handle the function. function tixPrice(Qty,Price,Disc) { var Discounted = parseInt((Qty) /3) *(Disc); var RegPrice = (parseInt(Qty) %3) *(Price); return (Discounted + RegPrice); } Cutter http://www.falcon-knives.com **************************************** From: Ben Curtis Reply-To: javascript at LaTech.edu To: Subject: Re: [Javascript] Math Date: Thu, 16 Aug 2001 09:24:33 -0700 > have a form text field where the user can enter the Quantity > (myForm.Quantity). Here's the kicker. The client says $2 a ticket, 3 for $5. > > Ok, so 10 tickets is $17. 10 divided by three is 3.33333etc. 3 times 5 is > 15, plus the $2 for the other ticket. > > But how do you put this in a script calculation? function tixPrice(Qty) { var Discounted = parseInt(Qty /3) *5; var RegPrice = (parseInt(Qty) %3) *2; return (Discounted + RegPrice); } -- +Ben Curtis "On the other side of the screen, it all looks so easy." _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From cutterbl at hotmail.com Thu Aug 16 13:42:42 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 16 Aug 2001 14:42:42 -0400 Subject: [Javascript] Math Message-ID: Ben, Thanks for your suggestion. This didn't quite work, But Ben Curtis helped me out (I included the working code in my response). What is Math.floor? Cutter http://www.falcon-knives.com ******************************* From: staeger Reply-To: javascript at LaTech.edu To: javascript at LaTech.edu Subject: Re: [Javascript] Math Date: Thu, 16 Aug 2001 18:15:39 +0200 Cutter Bl wrote: > > I'm terrible at Math as it is, but I still don't understand javascripts math > operations real well anyway. Any help here is greatly appreciated. > > I've got a non-profit who wants to sell Raffle Tickets from their site. I > have a form text field where the user can enter the Quantity > (myForm.Quantity). Here's the kicker. The client says $2 a ticket, 3 for $5. > > Ok, so 10 tickets is $17. 10 divided by three is 3.33333etc. 3 times 5 is > 15, plus the $2 for the other ticket. > > But how do you put this in a script calculation? > > Cutter > http://www.falcon-knives.com i'm just trying it ... var tickets = [number off tickets]; price = 5*Math.floor(tickets/3) + 2*(tickets%3); greets./ -- ----------------------------------------------------------------- benjamin staeger swiss federal institute of technology architecture & caad mailto:staeger at arch.ethz.ch http://caad.arch.ethz.ch/~staeger ----------------------------------------------------------------- Always listen to experts. They'll tell you what can't be done, and why. Then do it. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From peter at brunone.com Thu Aug 16 14:10:25 2001 From: peter at brunone.com (Peter Brunone) Date: Thu, 16 Aug 2001 14:10:25 -0500 Subject: [Javascript] FW: Surefire way to get a job . . . . . References: Message-ID: <04d001c12687$1e5df8c0$e22d200a@PMBRUNON> Spam, spam, spam, spam... SPAMMETY SPAAAAAM!!!! ----- Original Message ----- From: "Steve Larson" To: Sent: Thursday, August 16, 2001 11:46 AM Subject: [Javascript] FW: Surefire way to get a job . . . . . | Hi there, hope all's well. | | I'm not sure if you're still open to a new position, but I | learned about a website where you fill out a simple form and | it posts your resume on 75+ career sites. | | I checked out the website at http://www.resumerabbit.com. They | say it takes about 15 minutes to get posted to the major sites | like Monster, Headhunter, Hot Jobs, Dice and a ton of others. | You're then able to be seen by over 1.5 million employers & | recruiters daily. | | I'm forwarding the newsletter I read about Resume Rabbit in | below. It's supposed to save you about 60 hours of data entry. | I've heard good things from people who used it too. | | I know it's a tough market right now. If you've got a good job | hold on to it. If not, even if you do it by hand, it's a good | idea these days to be on as many career sites as possible. | | All the best! | Steve Larson | slarson at execs.com | | | -----Original Message----- | From: Newsletter Distribution | Sent: Friday, June 22, 2001 5:51 PM | To: Newsletter Distribution List | Subject: Sure-fire way to get a job... | | ======================================================== | Special Edition June 22, 2001 | ======================================================== | | Sure-Fire way to get a job? Play the numbers.... | ======================================================== | | The job market changed & job seekers need to work smarter. | But it's hard to get your resume READ by the right people. | You need widespread distribution to INTERESTED employers. | | One easy way to be found by employers and recruiters, who | are looking for your skills, is to post yourself on several | career sites. It's estimated that between 1.5 and 2 million | hiring managers search the top 50 career sites daily for | people with specific skills. | | If you want to instantly post your resume on over 75 career | sites, we recommend http://www.resumerabbit.com | | With this service, you fill out one easy form and in about | 15 minutes you'll be posted on Monster, Headhunter, Hot | Jobs, Net-Temps, Dice and more. They post to over 75 sites. | When you're finished, you can be seen by over 1.5 million | employers and recruiters daily, in a matter of minutes. | | It's really easy and you'll save at least 60 hours of | research and data entry. We don't know of any other | service like it. | | Sure you only need one job. But to get it, you'll need to be | in all the right places at all the right times. Whether you | use a distribution service or do it by hand, increase your | odds by posting yourself to as many career sites as possible! | | ======================================================== | | ----------- Unsubscription Instructions --------------- | | If you no longer wish to receive our newsletter simply | reply to this message with the word REMOVE in the | subject line. From jgordon at directfile.com Thu Aug 16 14:23:46 2001 From: jgordon at directfile.com (Josiah Gordon) Date: Thu, 16 Aug 2001 12:23:46 -0700 Subject: [Javascript] Textfield In-Reply-To: <997989490005807@caramail.com> Message-ID: Guillaume, For the onClick event of your select field set "document.form.textName = ''" (without quotes). --Joisah Gordon -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Guillaume Denizot Sent: Thursday, August 16, 2001 2:18 PM To: javascript at LaTech.edu Subject: [Javascript] Textfield Hello list I have a little problem... How can I do to reinitialize a textfield (put "" into it) on click on a menu list ( in HTML)? Thanks _________________________________________________________ Le journal des abonn?s Caramail - http://www.carazine.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/2001 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/2001 From Quixote at LaMancha.org Thu Aug 16 15:01:48 2001 From: Quixote at LaMancha.org (Ben Curtis) Date: Thu, 16 Aug 2001 13:01:48 -0700 Subject: [Javascript] Math In-Reply-To: Message-ID: > Thanks so much. Works like a charm. I even adjusted the function so > that I could pass the Price and Discount to the function [fTotal = > tixPrice(fields[0],fields[1],fields[2])] so if I ever change the price and > discount in the database it will automatically handle the function. > > function tixPrice(Qty,Price,Disc) { > var Discounted = parseInt((Qty) /3) *(Disc); > var RegPrice = (parseInt(Qty) %3) *(Price); > return (Discounted + RegPrice); > } You might want to throw in another argument: function tixPrice(Qty,Price,Req,Disc) { var ReqForDisc = (Req) ? Req : 1; var Discounted = parseInt((Qty) /ReqForDisc) *(Disc); var RegPrice = (parseInt(Qty) %ReqForDisc) *(Price); return (Discounted + RegPrice); } If there is no discount for buying lots, then you just pass the quantity and price -- and ReqForDisc will be set to 1 so the %ReqForDisc doesn't gum up. price = tixPrice(34,2.5); Otherwise, also pass the required lot size for the discount, and the discounted price: price = tixPrice(34,2.5,5,2); // buy 4, get the fifth free! > What is Math.floor? It takes a number and throws out the decimal, reducing the number to the next lowest integer. Nearly the same result as parseInt() but parseInt will convert a string into a number for you. I suspect that was the problem you had with that code: form field values are strings until you parseInt or parseFloat them. Math.ceil() is also useful: discards the decimal by going up to the next highest integer. (My definitions aren't perfect: neither floor nor ceil will change the value at all if the value is an integer.) -- +Ben Curtis "On the other side of the screen, it all looks so easy." From queequeg_x at yahoo.com Thu Aug 16 15:23:51 2001 From: queequeg_x at yahoo.com (queequeg_x at yahoo.com) Date: Thu, 16 Aug 2001 20:23:51 -0000 Subject: [Javascript] Detect cookies? Message-ID: <9lha4n+ou0m@eGroups.com> It's me again... Is there a way to check if a browsers has its cookies turned on/off using Javascript or is that something that's best handled with server script (asp?)? Thanks again! -rene From merchant at LATECH.EDU Thu Aug 16 15:39:55 2001 From: merchant at LATECH.EDU (David Merchant) Date: Thu, 16 Aug 2001 15:39:55 -0500 Subject: [Javascript] FW: Surefire way to get a job . . . . . In-Reply-To: <04d001c12687$1e5df8c0$e22d200a@PMBRUNON> References: Message-ID: <5.1.0.14.2.20010816153834.0255da10@vm.cc.latech.edu> Sigh. Sure fire way to get put in the kill file... ... another addy to block! TTFN, David Head, Systems Dept, Louisiana Tech University merchant at latech.edu JavaScript List Administrator (www.mountaindragon.com/javascript/) Webmaster, HTML Encyclopedia (www.mountaindragon.com/html/) Webmaster, Memorial Day Page: (www.usmemorialday.org/) From jgordon at directfile.com Thu Aug 16 15:43:28 2001 From: jgordon at directfile.com (Josiah Gordon) Date: Thu, 16 Aug 2001 13:43:28 -0700 Subject: [Javascript] Detect cookies? In-Reply-To: <9lha4n+ou0m@eGroups.com> Message-ID: I use this: document.cookie = "cookies=true"; var is_cookie = (document.cookie) ? "true" : "false"; --Josiah Gordon -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of queequeg_x at yahoo.com Sent: Thursday, August 16, 2001 1:24 PM To: Javascript at LaTech.edu Subject: [Javascript] Detect cookies? It's me again... Is there a way to check if a browsers has its cookies turned on/off using Javascript or is that something that's best handled with server script (asp?)? Thanks again! -rene _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/2001 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/2001 From andyg at ihug.co.nz Thu Aug 16 15:44:58 2001 From: andyg at ihug.co.nz (Andrew Gibson) Date: Fri, 17 Aug 2001 08:44:58 +1200 Subject: [Javascript] Detect cookies? In-Reply-To: <9lha4n+ou0m@eGroups.com> Message-ID: > Subject: [Javascript] Detect cookies? > Is there a way to check if a browsers has its cookies turned on/off > using Javascript or is that something that's best handled with server > script (asp?)? All I do is run a test by writing the cookie, then test to see if the cookie value exists - in ASP. From yanks at unitedvirtualities.com Thu Aug 16 15:54:55 2001 From: yanks at unitedvirtualities.com (Lucas Yanks) Date: Thu, 16 Aug 2001 17:54:55 -0300 Subject: [Javascript] Detect cookies? Message-ID: <27F58B0F37C6F74FB160DD11D4318EF60DC843@buemail.USA-BUE.local> The best way to do this is as andrew said.. but in my case i'd do user side with jscript -----Mensaje original----- De: Andrew Gibson [mailto:andyg at ihug.co.nz] Enviado el: Thursday, August 16, 2001 5:45 PM Para: javascript at LaTech.edu Asunto: RE: [Javascript] Detect cookies? > Subject: [Javascript] Detect cookies? > Is there a way to check if a browsers has its cookies turned on/off > using Javascript or is that something that's best handled with server > script (asp?)? All I do is run a test by writing the cookie, then test to see if the cookie value exists - in ASP. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From guillaumedenizot at caramail.com Thu Aug 16 21:18:10 2001 From: guillaumedenizot at caramail.com (Guillaume Denizot) Date: Thu, 16 Aug 2001 21:18:10 GMT+1 Subject: [Javascript] Textfield Message-ID: <997989490005807@caramail.com> Hello list I have a little problem... How can I do to reinitialize a textfield (put "" into it) on click on a menu list ( in HTML)? Thanks _________________________________________________________ Le journal des abonn?s Caramail - http://www.carazine.com From Quixote at LaMancha.org Thu Aug 16 16:38:30 2001 From: Quixote at LaMancha.org (Ben Curtis) Date: Thu, 16 Aug 2001 14:38:30 -0700 Subject: [Javascript] Detect cookies? In-Reply-To: Message-ID: > document.cookie = "cookies=true"; > var is_cookie = (document.cookie) ? "true" : "false"; > > --Josiah Gordon Absolutely the way to do it, Josiah, although the value of is_cookie is something I'd tweak: var is_cookie = (document.cookie) ? true : false; ...to set it to Boolean values instead of strings. Here's something else you can use: navigator.cookieEnabled is a Boolean value that works in IE. -- +Ben Curtis ...leveraging synergy right out of the box. From gassinaumasis at hotmail.com Thu Aug 16 16:57:47 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Thu, 16 Aug 2001 21:57:47 +0000 Subject: [Javascript] Textfield Message-ID: >I have a little problem... >How can I do to reinitialize a textfield (put "" into it) >on click on a menu list ( in HTML)?


From filipiab at atsc.army.mil Fri Aug 17 07:00:57 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Fri, 17 Aug 2001 08:00:57 -0400 Subject: [Javascript] Re: Cascading Style Sheet Message-ID: Take a look at TopStyle at www.bradsoft.com Bob Filipiak (Contractor) filipiab at atsc.army.mil (757) 878-5758 Ext 285 -----Original Message----- From: phumes1 at home.com [mailto:phumes1 at home.com] Sent: Thursday, August 16, 2001 7:38 PM To: javascript at LaTech.edu Subject: [Javascript] Re: Cascading Style Sheet Hi, I know this has nothing to do with javascript but I was wondering if anyone knows of a package that would allow me to design a page using different styles (type, size, indents, text alignment) and have it exported into a CSS? Along the lines of a Frontpage or Adobe Golive interface. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kyle at admin.usf.edu Fri Aug 17 07:02:49 2001 From: Kyle at admin.usf.edu (Kelly, Kyle) Date: Fri, 17 Aug 2001 08:02:49 -0400 Subject: [Javascript] RE: Cookies & drop-down menus... Message-ID: <4F7B5C095D68D21181BE0060943F1AAE084C92D5@apollo.cfr.usf.edu> one hint is that if it only set the cookie for the duration of the browser session then the code that is being used to set the expiration date isn't working. i wish i could give you the answer, but it's js and i'm pretty new to it. -----Original Message----- From: queequeg_x at yahoo.com [mailto:queequeg_x at yahoo.com] Sent: Friday, August 17, 2001 7:54 AM To: javascript at LaTech.edu Subject: [Javascript] RE: Cookies & drop-down menus... Cutter, thanks a ton for your help. One minor thing, tho'. I put the code in as suggested. The drop down box worked but it didn't set the cookie. I tweaked it a little bit and it sort of worked. It set the cookie but only for the duration of the browser session. Could I trouble you to take a look at the code and tell me what I'm doing wrong? It would be greatly appreciated! Thanks a ton!! -rene -------------------------------------------- Select your region

Welcome to

Please select a region.



_______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From queequeg_x at yahoo.com Fri Aug 17 10:36:55 2001 From: queequeg_x at yahoo.com (queequeg_x at yahoo.com) Date: Fri, 17 Aug 2001 15:36:55 -0000 Subject: [Javascript] Re: Detect Cookies? (Slightly OT now) Message-ID: <9ljdmn+g6dn@eGroups.com> Thanks so much for all the responses! Incidentally, I found this script on another list. Is this a valid script to use to detect and then redirect? Many thanks in advance! -rene ------------------------- %@LANGUAGE="vbscript"%> <% response.buffer="true" %> <% Set browser = Server.CreateObject("MSWC.BrowserType") %> <% if browser.cookies = false then response.redirect "nocookies.asp" else response.redirect "region.asp" end if %> From liuabe99 at hotmail.com Fri Aug 17 10:39:26 2001 From: liuabe99 at hotmail.com (Abraham Liu) Date: Fri, 17 Aug 2001 11:39:26 -0400 Subject: [Javascript] resize the windows Message-ID: Hi, I have a web page conatins some links which will open windows. One window will display a table rows extracted from database. If I don't specify the "height" attribte, this window won't display all informations. But I can't give a fixed number for "height" because I would't know how many rows will be selected. Can anyone tell me what can I do. Thanks Abe Liu _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From p_winstanley at creations.co.uk Fri Aug 17 10:43:36 2001 From: p_winstanley at creations.co.uk (Phil Winstanley) Date: Fri, 17 Aug 2001 16:43:36 +0100 Subject: [Javascript] Re: Detect Cookies? (Slightly OT now) Message-ID: <28FBF297455ED411A67100105CAA09E801743D6B@mail.creations-group.com> Only if the browser is listed in the browser.ini file on the server. Much better method is to try and set one and then read back the value. -----Original Message----- From: queequeg_x at yahoo.com [mailto:queequeg_x at yahoo.com] Sent: Friday, August 17, 2001 4:37 PM To: javascript at LaTech.edu Subject: [Javascript] Re: Detect Cookies? (Slightly OT now) Thanks so much for all the responses! Incidentally, I found this script on another list. Is this a valid script to use to detect and then redirect? Many thanks in advance! -rene ------------------------- %@LANGUAGE="vbscript"%> <% response.buffer="true" %> <% Set browser = Server.CreateObject("MSWC.BrowserType") %> <% if browser.cookies = false then response.redirect "nocookies.asp" else response.redirect "region.asp" end if %> _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From cutterbl at hotmail.com Fri Aug 17 11:26:45 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Fri, 17 Aug 2001 12:26:45 -0400 Subject: [Javascript] RE: Changing Style Sheets Message-ID: An HTML attachment was scrubbed... URL: From Quixote at LaMancha.org Fri Aug 17 12:02:33 2001 From: Quixote at LaMancha.org (Ben Curtis) Date: Fri, 17 Aug 2001 10:02:33 -0700 Subject: [Javascript] Re: Detect Cookies? (Slightly OT now) In-Reply-To: <9ljdmn+g6dn@eGroups.com> Message-ID: > Is this a valid script to use to detect and > then redirect? > ------------------------- > %@LANGUAGE="vbscript"%> > <% response.buffer="true" %> > > <% > Set browser = Server.CreateObject("MSWC.BrowserType") > %> > <% > if browser.cookies = false then > response.redirect "nocookies.asp" > else > response.redirect "region.asp" > end if > %> > > This script is only testing if a browser is capable of storing cookies, and does not check if the user has set preferences to deny them. Far better to set a cookie and test if it exists. If you do this server-side, then you need to do it on subsequent http calls -- two different pages (one sets, the other tests) or something tricky with one page setting it and calling an image that tests it. Javascript makes it much easier. -- +Ben Curtis "Most people use statistics the way a drunkard uses a lamp post, more for support than illumination." From gassinaumasis at hotmail.com Fri Aug 17 17:11:29 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Fri, 17 Aug 2001 22:11:29 +0000 Subject: [Javascript] resize the windows Message-ID: >I have a web page conatins some links which will open windows. One window >will display a table rows extracted from database. >If I don't specify the "height" attribte, this window won't display all >informations. But I can't give a fixed number for "height" because I >would't know how many rows will be selected. Can anyone tell me what can I >do. Give the popup scrollbars (scrollbars=yes in the opening arguments). ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From andyg at ihug.co.nz Fri Aug 17 20:08:09 2001 From: andyg at ihug.co.nz (Andrew Gibson) Date: Sat, 18 Aug 2001 13:08:09 +1200 Subject: [Javascript] what does OT mean? In-Reply-To: Message-ID: I guess it means that the subject matter is Off Topic. That allows someone with a lot of emails to delete it without reading it, or even to set up a filter to delete anything with OT in the subject line..... like if someone have just given birth to a daughter or something! >>>>>>>>>>>>>> Subject: [Javascript] what does OT mean? can anyone please tell me? Like in : Re: Detect Cookies? (Slightly OT now) Thank you. From adunn at mail.interworx.com.au Fri Aug 17 20:09:55 2001 From: adunn at mail.interworx.com.au (Andrew Dunn) Date: Sat, 18 Aug 2001 11:09:55 +1000 Subject: [Javascript] what does OT mean? Message-ID: can anyone please tell me? Like in : Re: Detect Cookies? (Slightly OT now) Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From va-magistrate at justice.com Sat Aug 18 08:32:22 2001 From: va-magistrate at justice.com (Mearis M. Martin, III) Date: 18 Aug 2001 06:32:22 -0700 Subject: [Javascript] auto maximize window using js Message-ID: <20010818133222.15525.cpmta@c014.sfo.cp.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From bill.marriott at optusnet.com.au Sat Aug 18 14:44:38 2001 From: bill.marriott at optusnet.com.au (Bill Marriott) Date: Sun, 19 Aug 2001 05:44:38 +1000 Subject: [Javascript] auto maximize window using js References: <20010818133222.15525.cpmta@c014.sfo.cp.net> Message-ID: <001b01c1281e$3894f2a0$e6778ec6@desktop> Hi Marty, Try calling this function with the onload event of the Body of the page. To: Sent: Saturday, August 18, 2001 11:32 PM Subject: [Javascript] auto maximize window using js > Hello... I have searched 'all' the archives on the web and this listserv, and still can't find what I need-- > > I need a javascript that will automatically maximize a webpage 'onload' > > Can anyone help me with this, I am still learning js and am not sure how to accomplish this. > > Thanks, > > Marty Martin > webmaster at mosquitohawk.net > > _________________________________________________ > FindLaw - Free Case Law, Jobs, Library, Community > http://www.FindLaw.com > Get your FREE @JUSTICE.COM email! > http://mail.Justice.com > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript From vpapp at bigfoot.com Sun Aug 19 22:10:45 2001 From: vpapp at bigfoot.com (Victor Papp) Date: Mon, 20 Aug 2001 06:10:45 +0300 Subject: [Javascript] Virus References: <5.1.0.14.0.20010804172326.030b3aa0@mail.Go2France.com> Message-ID: <000901c12925$b881af00$eec42ac2@vp> These files are viruses, so be carefull!!!! ----- Original Message ----- From: "Len Conrad" To: Sent: Saturday, August 04, 2001 6:28 PM Subject: Re: [Javascript] Virus > This darn listserver has now sent me 87 messages reject by my anti-abuse > gateway: > > body > 40 Hi! How-are-you=3F; from= > to= > > the last few dozen files are each 300+ Kbytes!! > > is anybody doing admin of this infected, screwed up list server? > > Len > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript From jfox at plus.net Mon Aug 20 03:18:54 2001 From: jfox at plus.net (James Fox) Date: Mon, 20 Aug 2001 09:18:54 +0100 Subject: [Javascript] getting text from another page Message-ID: <3B80D5FE.639.1EEB4792@localhost> Hi there. I need to grab some text from one HTML page and put it on another. The text conveniently sits inbetween some tags called How do I go about getting this text on another html page? ( the text I need is a temperature reading which is shown here: http://www.lymm.net/webcam/temperature.html ) Thanks. James -- | James Fox Unmetered & ADSL solutions | Web Developer for Home & Business | PlusNet Technologies Ltd. @ http://www.plus.net + ----- My Referrals - It pays to recommend PlusNet ----- From jfox at myopenapps.com Mon Aug 20 05:15:26 2001 From: jfox at myopenapps.com (James Fox) Date: Mon, 20 Aug 2001 11:15:26 +0100 Subject: [Javascript] Getting text from another page Message-ID: <3B80F14E.23352.1F55F7B2@localhost> Hi there. I need to grab some text from one HTML page and put it on another. The text conveniently sits inbetween some tags called How do I go about getting this text on another html page? ( the text I need is a temperature reading which is shown here: http://www.lymm.net/webcam/temperature.html ) Thanks. James -- | James Fox Unmetered & ADSL solutions | Web Developer for Home & Business | PlusNet Technologies Ltd. @ http://www.plus.net + ----- My Referrals - It pays to recommend PlusNet ----- From mrees at twii.net Mon Aug 20 06:14:28 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Mon, 20 Aug 2001 12:14:28 +0100 Subject: [Javascript] Form submission problem Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC021111AB@lonmail.twii.net> Hello I'm trying to submit a form using a text link rather than an image/submit button. The form is called generate (not a reserved word as far as I can see) so my syntax is like so: submit This gives me a line 1 char 1 Document does not support this property or method error (in ie). In netscape I get document.generate.submit is not a function. However the submit button right next to it works fine. I've used this syntax before on other forms - I'm totally mystified. I would post code but it's a bit massive. Any ideas? Thanks for any help you can provide Mark From mrees at twii.net Mon Aug 20 08:56:36 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Mon, 20 Aug 2001 14:56:36 +0100 Subject: [Javascript] getting text from another page Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC021111B0@lonmail.twii.net> Hello You can use the file system object (asp) to go through the file and grab the necessary text using a regular expression or similar. XMLHTTP would be another possibility, have a look at Microsoft's site for more detail. There's not much to do with Javascript in that lot though as what you need to do must happen on the server. Cheers Mark (btw I once got thrown out of the Spread Eagle in Lymm for having short hair) -----Original Message----- From: James Fox [mailto:jfox at plus.net] Sent: 20 August 2001 09:19 To: javascript at LaTech.edu Subject: [Javascript] getting text from another page Hi there. I need to grab some text from one HTML page and put it on another. The text conveniently sits inbetween some tags called How do I go about getting this text on another html page? ( the text I need is a temperature reading which is shown here: http://www.lymm.net/webcam/temperature.html ) Thanks. James -- | James Fox Unmetered & ADSL solutions | Web Developer for Home & Business | PlusNet Technologies Ltd. @ http://www.plus.net + ----- My Referrals - It pays to recommend PlusNet ----- _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Mon Aug 20 09:04:18 2001 From: peter at brunone.com (Peter Brunone) Date: Mon, 20 Aug 2001 09:04:18 -0500 Subject: [Javascript] Form submission problem In-Reply-To: <76A6F0FCCA27D4119DEF00805F5700AC021111AB@lonmail.twii.net> Message-ID: Try referencing the forms collection as well, e.g. document.forms.generate.submit() . If that doesn't work, make sure there's no other object in your page named "generate". |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Rees, Mark (TWIi London) |Sent: Monday, August 20, 2001 6:14 AM |To: 'javascript at LaTech.edu' |Subject: [Javascript] Form submission problem | | |Hello | |I'm trying to submit a form using a text link rather than an image/submit |button. The form is called generate (not a reserved word as far as I can |see) so my syntax is like so: | |submit | |This gives me a line 1 char 1 Document does not support this property or |method error (in ie). In netscape I get document.generate.submit is not a |function. However the submit button right next to it works fine. | |I've used this syntax before on other forms - I'm totally |mystified. I would |post code but it's a bit massive. | |Any ideas? | |Thanks for any help you can provide | |Mark |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |http://www.LaTech.edu/mailman/listinfo/javascript | From mrees at twii.net Mon Aug 20 09:15:12 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Mon, 20 Aug 2001 15:15:12 +0100 Subject: [Javascript] Form submission problem Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC021111B2@lonmail.twii.net> Hello The first makes no difference - I have also tried document.foms[0].submit() (and shouldn't it be document.forms('generate').submit() btw No there isn't. It's like I say, the submit button works fine and I can refer to and manipulate form elements via the DOM no problem Thanks mark -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: 20 August 2001 15:04 To: javascript at LaTech.edu Subject: RE: [Javascript] Form submission problem Try referencing the forms collection as well, e.g. document.forms.generate.submit() . If that doesn't work, make sure there's no other object in your page named "generate". |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Rees, Mark (TWIi London) |Sent: Monday, August 20, 2001 6:14 AM |To: 'javascript at LaTech.edu' |Subject: [Javascript] Form submission problem | | |Hello | |I'm trying to submit a form using a text link rather than an image/submit |button. The form is called generate (not a reserved word as far as I can |see) so my syntax is like so: | |submit | |This gives me a line 1 char 1 Document does not support this property or |method error (in ie). In netscape I get document.generate.submit is not a |function. However the submit button right next to it works fine. | |I've used this syntax before on other forms - I'm totally |mystified. I would |post code but it's a bit massive. | |Any ideas? | |Thanks for any help you can provide | |Mark |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |http://www.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From filipiab at atsc.army.mil Mon Aug 20 09:31:26 2001 From: filipiab at atsc.army.mil (Filipiak, Bob (Contractor)) Date: Mon, 20 Aug 2001 10:31:26 -0400 Subject: [Javascript] Form submission problem Message-ID: Try posting the code for your page. Suggest creating a function to do the submit() and use onclick to fire the function. Why can't you just use the submit? Bob Filipiak (Contractor) filipiab at atsc.army.mil (757) 878-5758 Ext 285 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yanks at unitedvirtualities.com Mon Aug 20 09:36:27 2001 From: yanks at unitedvirtualities.com (Lucas Yanks) Date: Mon, 20 Aug 2001 11:36:27 -0300 Subject: [Javascript] =?iso-8859-1?B?oaGhIGRodG1sICEhIQ==?= Message-ID: <27F58B0F37C6F74FB160DD11D4318EF60DC84D@buemail.USA-BUE.local> Hey guys! As a webdev I love watching what all the dhtml geniuses are upto out there! So guys recommendations for the best DHTML pages? Ok here's a list of mine but please add pages here! Lucas Yanks http://audi.vw-audi.es/ttroadster/audittroadster.html http://audi.vw-audi.es/tt/ http://www.maxziemer.cjb.net/ http://www.htmlguru.com http://www.netzministerium.de/ http://members.home.com/steveseeley/work/index.html http://xlat.assembler.org/ http://www.yaromat.de/macos8/ http://bodytag.org/ http://www.dhtmlcentral.com http://www.dansteinman.com http://www.dynamic-core.net From mallard at serv.net Mon Aug 20 09:45:09 2001 From: mallard at serv.net (TomMallard) Date: Mon, 20 Aug 2001 07:45:09 -0700 Subject: [Javascript] Form submission problem References: <76A6F0FCCA27D4119DEF00805F5700AC021111B2@lonmail.twii.net> Message-ID: <01c501c12986$c61361c0$4f8727d8@mallard> Versions of NS don't honor using forms[0] if there's only one element. Most browsers will have trouble with a forms submission from inline js if the pages are in frames, layers or iframes... submit ...to distinguish the call, use "this"... submit HTH, tom mallard seattle ----- Original Message ----- From: "Rees, Mark (TWIi London)" To: Sent: Monday, August 20, 2001 7:15 AM Subject: RE: [Javascript] Form submission problem > Hello > > The first makes no difference - I have also tried document.foms[0].submit() > (and shouldn't it be document.forms('generate').submit() btw > > No there isn't. It's like I say, the submit button works fine and I can > refer to and manipulate form elements via the DOM no problem > > Thanks > > mark > > > > -----Original Message----- > From: Peter Brunone [mailto:peter at brunone.com] > Sent: 20 August 2001 15:04 > To: javascript at LaTech.edu > Subject: RE: [Javascript] Form submission problem > > > > Try referencing the forms collection as well, e.g. > document.forms.generate.submit() . > > If that doesn't work, make sure there's no other object in your page > named > "generate". > > |-----Original Message----- > |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On > |Behalf Of Rees, Mark (TWIi London) > |Sent: Monday, August 20, 2001 6:14 AM > |To: 'javascript at LaTech.edu' > |Subject: [Javascript] Form submission problem > | > | > |Hello > | > |I'm trying to submit a form using a text link rather than an image/submit > |button. The form is called generate (not a reserved word as far as I can > |see) so my syntax is like so: > | > |submit > | > |This gives me a line 1 char 1 Document does not support this property or > |method error (in ie). In netscape I get document.generate.submit is not a > |function. However the submit button right next to it works fine. > | > |I've used this syntax before on other forms - I'm totally > |mystified. I would > |post code but it's a bit massive. > | > |Any ideas? > | > |Thanks for any help you can provide > | > |Mark > |_______________________________________________ > |Javascript mailing list > |Javascript at LaTech.edu > |http://www.LaTech.edu/mailman/listinfo/javascript > | > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > From MChristie at avsgroup.com Mon Aug 20 09:47:25 2001 From: MChristie at avsgroup.com (Mark Christie) Date: Mon, 20 Aug 2001 09:47:25 -0500 Subject: [Javascript] Form submission problem Message-ID: Check to see if you have a form element named "submit". If you do, it seems to override the built-in submit() function, thus causing confusion and great migraines among programmers... Regards, -Mark C. -----Original Message----- From: Rees, Mark (TWIi London) [mailto:mrees at twii.net] Sent: Monday, August 20, 2001 9:15 AM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] Form submission problem Hello The first makes no difference - I have also tried document.foms[0].submit() (and shouldn't it be document.forms('generate').submit() btw No there isn't. It's like I say, the submit button works fine and I can refer to and manipulate form elements via the DOM no problem Thanks mark -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: 20 August 2001 15:04 To: javascript at LaTech.edu Subject: RE: [Javascript] Form submission problem Try referencing the forms collection as well, e.g. document.forms.generate.submit() . If that doesn't work, make sure there's no other object in your page named "generate". |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Rees, Mark (TWIi London) |Sent: Monday, August 20, 2001 6:14 AM |To: 'javascript at LaTech.edu' |Subject: [Javascript] Form submission problem | | |Hello | |I'm trying to submit a form using a text link rather than an image/submit |button. The form is called generate (not a reserved word as far as I can |see) so my syntax is like so: | |submit | |This gives me a line 1 char 1 Document does not support this property or |method error (in ie). In netscape I get document.generate.submit is not a |function. However the submit button right next to it works fine. | |I've used this syntax before on other forms - I'm totally |mystified. I would |post code but it's a bit massive. | |Any ideas? | |Thanks for any help you can provide | |Mark |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |http://www.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From mrees at twii.net Mon Aug 20 09:59:20 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Mon, 20 Aug 2001 15:59:20 +0100 Subject: [Javascript] Form submission problem Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC021111B5@lonmail.twii.net> Yes. You are the man. That was an inspired piece of guesswork considering I didn't give you any code. 2 days I've been on that... Cheers Mark -----Original Message----- From: Mark Christie [mailto:MChristie at avsgroup.com] Sent: 20 August 2001 15:47 To: 'javascript at LaTech.edu' Subject: RE: [Javascript] Form submission problem Check to see if you have a form element named "submit". If you do, it seems to override the built-in submit() function, thus causing confusion and great migraines among programmers... Regards, -Mark C. -----Original Message----- From: Rees, Mark (TWIi London) [mailto:mrees at twii.net] Sent: Monday, August 20, 2001 9:15 AM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] Form submission problem Hello The first makes no difference - I have also tried document.foms[0].submit() (and shouldn't it be document.forms('generate').submit() btw No there isn't. It's like I say, the submit button works fine and I can refer to and manipulate form elements via the DOM no problem Thanks mark -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: 20 August 2001 15:04 To: javascript at LaTech.edu Subject: RE: [Javascript] Form submission problem Try referencing the forms collection as well, e.g. document.forms.generate.submit() . If that doesn't work, make sure there's no other object in your page named "generate". |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Rees, Mark (TWIi London) |Sent: Monday, August 20, 2001 6:14 AM |To: 'javascript at LaTech.edu' |Subject: [Javascript] Form submission problem | | |Hello | |I'm trying to submit a form using a text link rather than an image/submit |button. The form is called generate (not a reserved word as far as I can |see) so my syntax is like so: | |submit | |This gives me a line 1 char 1 Document does not support this property or |method error (in ie). In netscape I get document.generate.submit is not a |function. However the submit button right next to it works fine. | |I've used this syntax before on other forms - I'm totally |mystified. I would |post code but it's a bit massive. | |Any ideas? | |Thanks for any help you can provide | |Mark |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |http://www.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From MChristie at avsgroup.com Mon Aug 20 10:07:07 2001 From: MChristie at avsgroup.com (Mark Christie) Date: Mon, 20 Aug 2001 10:07:07 -0500 Subject: [Javascript] Form submission problem Message-ID: Mark, I was in the same place a week or so ago...The experience seared the memory into my psyche...So I can't say it was inspired, but I will accept the compliment nonetheless... Best Regards, -Mark C. -----Original Message----- From: Rees, Mark (TWIi London) [mailto:mrees at twii.net] Sent: Monday, August 20, 2001 9:59 AM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] Form submission problem Yes. You are the man. That was an inspired piece of guesswork considering I didn't give you any code. 2 days I've been on that... Cheers Mark -----Original Message----- From: Mark Christie [mailto:MChristie at avsgroup.com] Sent: 20 August 2001 15:47 To: 'javascript at LaTech.edu' Subject: RE: [Javascript] Form submission problem Check to see if you have a form element named "submit". If you do, it seems to override the built-in submit() function, thus causing confusion and great migraines among programmers... Regards, -Mark C. -----Original Message----- From: Rees, Mark (TWIi London) [mailto:mrees at twii.net] Sent: Monday, August 20, 2001 9:15 AM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] Form submission problem Hello The first makes no difference - I have also tried document.foms[0].submit() (and shouldn't it be document.forms('generate').submit() btw No there isn't. It's like I say, the submit button works fine and I can refer to and manipulate form elements via the DOM no problem Thanks mark -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: 20 August 2001 15:04 To: javascript at LaTech.edu Subject: RE: [Javascript] Form submission problem Try referencing the forms collection as well, e.g. document.forms.generate.submit() . If that doesn't work, make sure there's no other object in your page named "generate". |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Rees, Mark (TWIi London) |Sent: Monday, August 20, 2001 6:14 AM |To: 'javascript at LaTech.edu' |Subject: [Javascript] Form submission problem | | |Hello | |I'm trying to submit a form using a text link rather than an image/submit |button. The form is called generate (not a reserved word as far as I can |see) so my syntax is like so: | |submit | |This gives me a line 1 char 1 Document does not support this property or |method error (in ie). In netscape I get document.generate.submit is not a |function. However the submit button right next to it works fine. | |I've used this syntax before on other forms - I'm totally |mystified. I would |post code but it's a bit massive. | |Any ideas? | |Thanks for any help you can provide | |Mark |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |http://www.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From lau at goldenweb.com.au Mon Aug 20 10:17:17 2001 From: lau at goldenweb.com.au (Lau) Date: Tue, 21 Aug 2001 01:17:17 +1000 Subject: [Javascript] Form submission problem References: <76A6F0FCCA27D4119DEF00805F5700AC021111B2@lonmail.twii.net> <01c501c12986$c61361c0$4f8727d8@mallard> Message-ID: <007901c1298b$3401a300$6700a8c0@laubox> I'm using the submit format in a framed page without any problems. Double-check the spelling and capitalisation of "Generate" If its not that then create a html page with nothing in it but the FORM, a single field, and the submit url.... that should work (if it doesn't post the code) then add the rest of your code a bit a time, testing after each addition to check whether it still works. When it stops working you know that the problem is in the last bit of code you added. On many occasions I've done this process and the code never stops working! .... sometimes you just got to convince the bloody computer that it really can do it. good luck Lau ----- Original Message ----- From: TomMallard To: Sent: Tuesday, August 21, 2001 12:45 AM Subject: Re: [Javascript] Form submission problem > Versions of NS don't honor using forms[0] if there's only one element. > > Most browsers will have trouble with a forms submission from inline js if > the pages are in frames, layers or iframes... > > submit > > ...to distinguish the call, use "this"... > > submit > > HTH, > > tom mallard > seattle > ----- Original Message ----- > From: "Rees, Mark (TWIi London)" > To: > Sent: Monday, August 20, 2001 7:15 AM > Subject: RE: [Javascript] Form submission problem > > > > Hello > > > > The first makes no difference - I have also tried > document.foms[0].submit() > > (and shouldn't it be document.forms('generate').submit() btw > > > > No there isn't. It's like I say, the submit button works fine and I can > > refer to and manipulate form elements via the DOM no problem > > > > Thanks > > > > mark > > > > > > > > -----Original Message----- > > From: Peter Brunone [mailto:peter at brunone.com] > > Sent: 20 August 2001 15:04 > > To: javascript at LaTech.edu > > Subject: RE: [Javascript] Form submission problem > > > > > > > > Try referencing the forms collection as well, e.g. > > document.forms.generate.submit() . > > > > If that doesn't work, make sure there's no other object in your page > > named > > "generate". > > > > |-----Original Message----- > > |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On > > |Behalf Of Rees, Mark (TWIi London) > > |Sent: Monday, August 20, 2001 6:14 AM > > |To: 'javascript at LaTech.edu' > > |Subject: [Javascript] Form submission problem > > | > > | > > |Hello > > | > > |I'm trying to submit a form using a text link rather than an image/submit > > |button. The form is called generate (not a reserved word as far as I can > > |see) so my syntax is like so: > > | > > |submit > > | > > |This gives me a line 1 char 1 Document does not support this property or > > |method error (in ie). In netscape I get document.generate.submit is not a > > |function. However the submit button right next to it works fine. > > | > > |I've used this syntax before on other forms - I'm totally > > |mystified. I would > > |post code but it's a bit massive. > > | > > |Any ideas? > > | > > |Thanks for any help you can provide > > | > > |Mark > > |_______________________________________________ > > |Javascript mailing list > > |Javascript at LaTech.edu > > |http://www.LaTech.edu/mailman/listinfo/javascript > > | > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > http://www.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > http://www.LaTech.edu/mailman/listinfo/javascript > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > > From BELANGERJ at EM.AGR.CA Mon Aug 20 10:42:12 2001 From: BELANGERJ at EM.AGR.CA (Jason Belanger) Date: Mon, 20 Aug 2001 11:42:12 -0400 Subject: [Javascript] ot css Message-ID: Hi Everyone, a quick question: I am implementing the LABEL tag for some forms and in IE they look and work great (Because they are an implementation of MS) I know they don't work with Netscape, but they breakdown my CSS in terms of stopping the the default font settings from displaying, which wreaks the look of my form. It appears that the stops the CSS implementation. Does anyone know a code that reintroduces the CSS without starting the text on a new line? Let me know if I am not clear. Here is a sample of my code:

() - // this part displays fine () -

// This part does not. Jason Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ From Quixote at LaMancha.org Mon Aug 20 10:44:36 2001 From: Quixote at LaMancha.org (Ben Curtis) Date: Mon, 20 Aug 2001 08:44:36 -0700 Subject: [Javascript] getting text from another page In-Reply-To: <3B80D5FE.639.1EEB4792@localhost> Message-ID: > I need to grab some text from one HTML page and put it on another. > > The text conveniently sits inbetween some tags called > > How do I go about getting this text on another html page? I would suggest going server-side with this; PHP, Perl, ASP, or ColdFusion would do nicely. If, for some reason, you *need* to do this clientside, then you will need to make sure the two pages are in the same domain. With IE or N6 you can then get the innerHTML of the page, and use a regular expression to find the relevant string. Could be a lot of work or piece of cake. Good luck. -- +Ben Curtis "One of the symptoms of an approaching nervous breakdown is the belief that one's work is terribly important." - Bertrand Russell (1872-1970) From liuabe99 at hotmail.com Mon Aug 20 11:02:35 2001 From: liuabe99 at hotmail.com (Abraham Liu) Date: Mon, 20 Aug 2001 12:02:35 -0400 Subject: [Javascript] resize the windows Message-ID: Hi Peter-Paul Koch, Thank you very much. You have a great web site. I visit it quite often and learn a lot from it. Abe Liu >From: "Peter-Paul Koch" >Reply-To: javascript at LaTech.edu >To: javascript at LaTech.edu >Subject: Re: [Javascript] resize the windows >Date: Fri, 17 Aug 2001 22:11:29 +0000 > > > >>I have a web page conatins some links which will open windows. One window >>will display a table rows extracted from database. >>If I don't specify the "height" attribte, this window won't display all >>informations. But I can't give a fixed number for "height" because I >>would't know how many rows will be selected. Can anyone tell me what can I >>do. > >Give the popup scrollbars (scrollbars=yes in the opening arguments). > >ppk > >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >http://www.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From adagilson at npd.ufpe.br Mon Aug 20 12:36:22 2001 From: adagilson at npd.ufpe.br (adagilson at npd.ufpe.br) Date: Mon, 20 Aug 2001 14:36:22 -0300 Subject: [Javascript] widescreen with quicktime plug-in Message-ID: <3B814A96.50900@npd.ufpe.br> Can i use netscape (javascript, java applet, beans, whatever) to do this below? -------- Original Message -------- Subject: widescreen with quicktime plug-in Date: Mon, 20 Aug 2001 12:38:12 -0300 From: giane da paz Reply-To: "a." To: irfan at linux.tuwien.ac.at BCC: "a." i?ve been using irfanview for a couple of years and it is amazing. now i?ve got a good challenge: how see quicktime movies in widescreen as we can see a .avi movie in Windows Media Player. surrounded by a black background. QuickTime Player doesn?t allow without registering and now I am prefering to see my QT movies with the light IrfanView. Is it possible. Another question: why doesn?t IrfanView Zoom for Video fit proportionally the movies? it expand both sides of the movie until the maximum limits deforming the images. I am waiting great solutions for you great genius! thanks for IrfanView! adagilson brazil From mallard at serv.net Mon Aug 20 12:36:26 2001 From: mallard at serv.net (TomMallard) Date: Mon, 20 Aug 2001 10:36:26 -0700 Subject: [Javascript] Form submission problem References: <76A6F0FCCA27D4119DEF00805F5700AC021111B2@lonmail.twii.net> <01c501c12986$c61361c0$4f8727d8@mallard> <007901c1298b$3401a300$6700a8c0@laubox> Message-ID: <006901c1299e$a53d15a0$0d8727d8@mallard> ----- Original Message ----- From: "Lau" To: Sent: Monday, August 20, 2001 8:17 AM Subject: Re: [Javascript] Form submission problem > I'm using the submit format in a framed > page without any problems. > The original had submit Small point, but, that's the code that'll give you problems at times if it's nested in things. Lau is using window.document, just using document is an implicit to "window" but that's not always what you want in nests of objects. Using this.document works to scope to the page in these cases. tom mallard seattle From andyg at ihug.co.nz Mon Aug 20 14:37:00 2001 From: andyg at ihug.co.nz (Andrew Gibson) Date: Tue, 21 Aug 2001 07:37:00 +1200 Subject: [Javascript] getting text from another page In-Reply-To: <3B80D5FE.639.1EEB4792@localhost> Message-ID: > I need to grab some text from one HTML page and put it on another. > > The text conveniently sits inbetween some tags called > > How do I go about getting this text on another html page? > > ( the text I need is a temperature reading which is shown here: > http://www.lymm.net/webcam/temperature.html ) > You could: If on your domain use FSO. On another domain, try XMLHTTP to get the full file and parse out the bits you want and read them into the page before the page loads. I use it to check for broken links on a site. If you want to do it after the page loads, look into remote scripting. Andrew Gibson From merchant at latech.edu Mon Aug 20 18:55:28 2001 From: merchant at latech.edu (David Merchant) Date: Mon, 20 Aug 2001 18:55:28 -0500 Subject: [Javascript] Virus In-Reply-To: <000901c12925$b881af00$eec42ac2@vp> References: <5.1.0.14.0.20010804172326.030b3aa0@mail.Go2France.com> Message-ID: <5.1.0.14.2.20010820185141.03840020@vm.cc.latech.edu> The MailMan list software doesn't have a setting to strip attachments, so I have contacted the Computing Center and they report that they are working on the problem, they are stretched thin so it may be awhile before attachments are stripped from all posts to the JavaScript list. In the meantime I had limited the size of email posts to 50K to help stop some viral postings. I will double-check to make sure the setting hasn't changed. TTFN, David Head of Systems, 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.mountaindragon.com/memorial/ From phumes1 at home.com Mon Aug 20 21:38:53 2001 From: phumes1 at home.com (phumes1 at home.com) Date: Mon, 20 Aug 2001 22:38:53 -0400 Subject: [Javascript] Re: Javascript Menu (Explorer like interface) Message-ID: <5.1.0.14.0.20010820223523.009fe3c0@mail.wlfdle1.on.wave.home.com> Hi, I require a "Explorer" like interface in Javascript to list Chapters, headings and subheadings. Can someone direct me to such a beast. I've checked www.javascriptsource.com and had no luck. From parkesr1 at anz.com Mon Aug 20 22:35:58 2001 From: parkesr1 at anz.com (Parkes, Rohan) Date: Tue, 21 Aug 2001 13:35:58 +1000 Subject: [Javascript] Re: Javascript Menu (Explorer like interface) Message-ID: Try http://javascript.internet.com/foldertree/ Rohan Parkes -----Original Message----- From: phumes1 at home.com [mailto:phumes1 at home.com] Sent: 21 August 2001 12:39 To: javascript at LaTech.edu Subject: [Javascript] Re: Javascript Menu (Explorer like interface) Hi, I require a "Explorer" like interface in Javascript to list Chapters, headings and subheadings. Can someone direct me to such a beast. I've checked www.javascriptsource.com and had no luck. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From BELANGERJ at EM.AGR.CA Tue Aug 21 10:14:46 2001 From: BELANGERJ at EM.AGR.CA (Jason Belanger) Date: Tue, 21 Aug 2001 11:14:46 -0400 Subject: [Javascript] doing totals of form values client side - examples Message-ID: Does anyone have any examples or URLs on making running totals for purchase webpage using Javascript? Jason Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ From peter at brunone.com Tue Aug 21 11:09:15 2001 From: peter at brunone.com (Peter Brunone) Date: Tue, 21 Aug 2001 11:09:15 -0500 Subject: [Javascript] doing totals of form values client side - examples References: Message-ID: <023101c12a5b$a0e24b20$e22d200a@PMBRUNON> Jason, If you want to update in real time, just slap an onChange event handler on all changeable text fields. Remember to parseInt() or parseFloat() the form field value since it starts as a string; not much more to it. It's even simpler for checkbox values, as you can see at http://www.digitaltechnologyconsulting.com/orderform.asp . Cheers, Peter ----- Original Message ----- From: "Jason Belanger" To: Sent: Tuesday, August 21, 2001 10:14 AM Subject: [Javascript] doing totals of form values client side - examples Does anyone have any examples or URLs on making running totals for purchase webpage using Javascript? Jason Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From BELANGERJ at EM.AGR.CA Tue Aug 21 12:19:09 2001 From: BELANGERJ at EM.AGR.CA (Jason Belanger) Date: Tue, 21 Aug 2001 13:19:09 -0400 Subject: [Javascript] doing totals of form values client side - examples Message-ID: Peter, thanks for your help. I did a bit of work on my own and came up with this using an OnChange and pull down menus: function maketotal() { var itemA=document.bulb.A.value * 25; var itemB=document.bulb.B.value * 8; var itemC=document.bulb.C.value * 8; var totalcost= itemA + itemB +itemC document.bulb.TOTAL.value=totalcost; } How would I use a loop in a case like this? For each item in document.bulb ?? //do stuff Next If I am setting the values, do I "need" to use the ParseInt and ParseFloat? What kinds of things happen when I don't use them? TIA Jason Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ >>> "Peter Brunone" 08/21/01 12:09PM >>> Jason, If you want to update in real time, just slap an onChange event handler on all changeable text fields. Remember to parseInt() or parseFloat() the form field value since it starts as a string; not much more to it. It's even simpler for checkbox values, as you can see at http://www.digitaltechnologyconsulting.com/orderform.asp . Cheers, Peter ----- Original Message ----- From: "Jason Belanger" To: Sent: Tuesday, August 21, 2001 10:14 AM Subject: [Javascript] doing totals of form values client side - examples Does anyone have any examples or URLs on making running totals for purchase webpage using Javascript? Jason Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Tue Aug 21 12:45:19 2001 From: peter at brunone.com (Peter Brunone) Date: Tue, 21 Aug 2001 12:45:19 -0500 Subject: [Javascript] doing totals of form values client side -examples References: Message-ID: <02ef01c12a69$0c2aaaa0$e22d200a@PMBRUNON> Jason, I'm not sure of the "for each" syntax in JS, but I have done a loop -- for() or while() works; while the first means you don't have to increment, the second gives you more control over the loop -- that uses an index to go through document.formName.elements[] one at a time. Test for the existence document.bulb.elements[i].options to see if it's a SELECT, and then you're pretty much in the clear. Another approach would be to keep all the current values in a JavaScript array and just alter the currently changing piece to get the new total. That way you don't have to worry about type changes (i.e. having to parseInt(formfield.value) because field values are held as strings). You'll know if you have to use parseInt et al because instead of adding, your values will concatenate (e.g. what should be 1 + 3 will be 13 ). Does this make enough sense? -Peter ----- Original Message ----- From: "Jason Belanger" To: Sent: Tuesday, August 21, 2001 12:19 PM Subject: Re: [Javascript] doing totals of form values client side -examples Peter, thanks for your help. I did a bit of work on my own and came up with this using an OnChange and pull down menus: function maketotal() { var itemA=document.bulb.A.value * 25; var itemB=document.bulb.B.value * 8; var itemC=document.bulb.C.value * 8; var totalcost= itemA + itemB +itemC document.bulb.TOTAL.value=totalcost; } How would I use a loop in a case like this? For each item in document.bulb ?? //do stuff Next If I am setting the values, do I "need" to use the ParseInt and ParseFloat? What kinds of things happen when I don't use them? TIA Jason Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ >>> "Peter Brunone" 08/21/01 12:09PM >>> Jason, If you want to update in real time, just slap an onChange event handler on all changeable text fields. Remember to parseInt() or parseFloat() the form field value since it starts as a string; not much more to it. It's even simpler for checkbox values, as you can see at http://www.digitaltechnologyconsulting.com/orderform.asp . Cheers, Peter ----- Original Message ----- From: "Jason Belanger" To: Sent: Tuesday, August 21, 2001 10:14 AM Subject: [Javascript] doing totals of form values client side - examples Does anyone have any examples or URLs on making running totals for purchase webpage using Javascript? Jason Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From BELANGERJ at EM.AGR.CA Tue Aug 21 13:23:41 2001 From: BELANGERJ at EM.AGR.CA (Jason Belanger) Date: Tue, 21 Aug 2001 14:23:41 -0400 Subject: [Javascript] doing totals of form values client side -examples - Solved Message-ID: Hi Peter, thanks again for your help. Here is what I was trying to do. It's not elegant and not scaleable but it does what I need it to do. If you think it can be improved, let me know. But don't worry, I've got my calculations. function maketotal() { var itemA=document.bulb.A.value * 25; var itemB=document.bulb.B.value * 8; var itemC=document.bulb.C.value * 8; var itemD=document.bulb.D.value * 10; var itemE=document.bulb.E.value * 10; var itemF=document.bulb.F.value * 10; var itemG=document.bulb.G.value * 10; var itemH=document.bulb.H.value * 8; var itemI=document.bulb.I.value * 8; var itemJ=document.bulb.J.value * 8; var itemK=document.bulb.K.value * 8; var itemL=document.bulb.L.value * 8; var itemM=document.bulb.M.value * 8; var itemN=document.bulb.N.value * 10; var itemO=document.bulb.O.value * 8; var itemP=document.bulb.P.value * 12; var itemQ=document.bulb.Q.value * 15; var totalcost= (itemA + itemB + itemC + itemD + itemE + itemF + itemG + itemH + itemI + itemJ + itemK + itemL + itemM + itemN + itemO + itemP + itemQ) document.bulb.TOTAL.value=totalcost; } Cheers! jason Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ >>> "Peter Brunone" 08/21/01 01:45PM >>> Jason, I'm not sure of the "for each" syntax in JS, but I have done a loop -- for() or while() works; while the first means you don't have to increment, the second gives you more control over the loop -- that uses an index to go through document.formName.elements[] one at a time. Test for the existence document.bulb.elements[i].options to see if it's a SELECT, and then you're pretty much in the clear. Another approach would be to keep all the current values in a JavaScript array and just alter the currently changing piece to get the new total. That way you don't have to worry about type changes (i.e. having to parseInt(formfield.value) because field values are held as strings). You'll know if you have to use parseInt et al because instead of adding, your values will concatenate (e.g. what should be 1 + 3 will be 13 ). Does this make enough sense? -Peter ----- Original Message ----- From: "Jason Belanger" To: Sent: Tuesday, August 21, 2001 12:19 PM Subject: Re: [Javascript] doing totals of form values client side -examples Peter, thanks for your help. I did a bit of work on my own and came up with this using an OnChange and pull down menus: function maketotal() { var itemA=document.bulb.A.value * 25; var itemB=document.bulb.B.value * 8; var itemC=document.bulb.C.value * 8; var totalcost= itemA + itemB +itemC document.bulb.TOTAL.value=totalcost; } How would I use a loop in a case like this? For each item in document.bulb ?? //do stuff Next If I am setting the values, do I "need" to use the ParseInt and ParseFloat? What kinds of things happen when I don't use them? TIA Jason Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ >>> "Peter Brunone" 08/21/01 12:09PM >>> Jason, If you want to update in real time, just slap an onChange event handler on all changeable text fields. Remember to parseInt() or parseFloat() the form field value since it starts as a string; not much more to it. It's even simpler for checkbox values, as you can see at http://www.digitaltechnologyconsulting.com/orderform.asp . Cheers, Peter ----- Original Message ----- From: "Jason Belanger" To: Sent: Tuesday, August 21, 2001 10:14 AM Subject: [Javascript] doing totals of form values client side - examples Does anyone have any examples or URLs on making running totals for purchase webpage using Javascript? Jason Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From QualeM at americanimaging.net Tue Aug 21 13:35:23 2001 From: QualeM at americanimaging.net (Quale, Michael) Date: Tue, 21 Aug 2001 13:35:23 -0500 Subject: [Javascript] Need Checkbox help. Message-ID: <11C0D625212FD411BB3400508B2CC5E2DCC6A7@POST> I'm creating a dynamic list of check boxes based on the form selected. I have parent checkboxes which can have multiple child checkboxes. If a user selects a child I need to (onchange) check the parent checkbox. I'm tried many combinations of the code below but keep getting "document.precert_request_form5.pBox not an object" errors. ********** ********* 'Dynamically built parent checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>"> 'Dynamically built child checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>" LANGUAGE=javascript onclick="selectParent(this,<%=rsDisplayAll("parent_id")%>)"> Any help is good help! Thanks, Mike Q. From peter at brunone.com Tue Aug 21 14:02:02 2001 From: peter at brunone.com (Peter Brunone) Date: Tue, 21 Aug 2001 14:02:02 -0500 Subject: [Javascript] doing totals of form values client side-examples - Solved References: Message-ID: <036701c12a73$c6496930$e22d200a@PMBRUNON> I'm a bit curious as to what you're getting as .value if these are indeed pulldown menus. You said this is working? ----- Original Message ----- From: "Jason Belanger" To: Sent: Tuesday, August 21, 2001 1:23 PM Subject: Re: [Javascript] doing totals of form values client side-examples - Solved Hi Peter, thanks again for your help. Here is what I was trying to do. It's not elegant and not scaleable but it does what I need it to do. If you think it can be improved, let me know. But don't worry, I've got my calculations. function maketotal() { var itemA=document.bulb.A.value * 25; var itemB=document.bulb.B.value * 8; var itemC=document.bulb.C.value * 8; var itemD=document.bulb.D.value * 10; var itemE=document.bulb.E.value * 10; var itemF=document.bulb.F.value * 10; var itemG=document.bulb.G.value * 10; var itemH=document.bulb.H.value * 8; var itemI=document.bulb.I.value * 8; var itemJ=document.bulb.J.value * 8; var itemK=document.bulb.K.value * 8; var itemL=document.bulb.L.value * 8; var itemM=document.bulb.M.value * 8; var itemN=document.bulb.N.value * 10; var itemO=document.bulb.O.value * 8; var itemP=document.bulb.P.value * 12; var itemQ=document.bulb.Q.value * 15; var totalcost= (itemA + itemB + itemC + itemD + itemE + itemF + itemG + itemH + itemI + itemJ + itemK + itemL + itemM + itemN + itemO + itemP + itemQ) document.bulb.TOTAL.value=totalcost; } Cheers! jason Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ From MChristie at avsgroup.com Tue Aug 21 14:02:22 2001 From: MChristie at avsgroup.com (Mark Christie) Date: Tue, 21 Aug 2001 14:02:22 -0500 Subject: [Javascript] Need Checkbox help. Message-ID: I've noticed that the DOM doesn't like elements that have underscores (_) in them...Try renaming your elements to something like precert5 or precertrequestform5 and see if that does the trick... Since your checkboxes are dynamically built, you may need to do something like this: " name="<%=Replace(rs("item_id"), "_", "")%>" value="<%=Replace(rs("item_id"), "_", "")%>"> or this: " name="<%=stripUnderscore(rs("item_id"))%>" value="<%=stripUnderscore(rs("item_id"))%>"> <% function stripUnderscore(str) { stripUnderscore = Replace(str, "_", ""); end function %> [CAVEAT: UNTESTED] Then your item_id of precert_request_form5 will become your element id of precertrequestform5. Best Regards, -Mark C. -----Original Message----- From: Quale, Michael [mailto:QualeM at americanimaging.net] Sent: Tuesday, August 21, 2001 1:35 PM To: 'javascript at LaTech.edu' Subject: [Javascript] Need Checkbox help. I'm creating a dynamic list of check boxes based on the form selected. I have parent checkboxes which can have multiple child checkboxes. If a user selects a child I need to (onchange) check the parent checkbox. I'm tried many combinations of the code below but keep getting "document.precert_request_form5.pBox not an object" errors. ********** ********* 'Dynamically built parent checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>"> 'Dynamically built child checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>" LANGUAGE=javascript onclick="selectParent(this,<%=rsDisplayAll("parent_id")%>)"> Any help is good help! Thanks, Mike Q. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From QualeM at americanimaging.net Tue Aug 21 14:04:26 2001 From: QualeM at americanimaging.net (Quale, Michael) Date: Tue, 21 Aug 2001 14:04:26 -0500 Subject: [Javascript] Need Checkbox help. Message-ID: <11C0D625212FD411BB3400508B2CC5E2DCC6A9@POST> I am using underscores throughout the app and have had no problems in that regards. Do you see anything else that maybe causing my grief? Thanks, Mike Q. -----Original Message----- From: Esther_Strom at hmco.com [mailto:Esther_Strom at hmco.com] Sent: Tuesday, August 21, 2001 2:07 PM To: javascript at LaTech.edu Subject: RE: [Javascript] Need Checkbox help. I've used underscores in field and variable names frequently with no problem. There's nothing in the specification that states you can't use them. Mark Christie up.com> cc: Sent by: Subject: RE: [Javascript] Need Checkbox help. javascript-admin@ LaTech.edu 08/21/01 02:02 PM Please respond to javascript I've noticed that the DOM doesn't like elements that have underscores (_) in them...Try renaming your elements to something like precert5 or precertrequestform5 and see if that does the trick... Since your checkboxes are dynamically built, you may need to do something like this: " name="<%=Replace(rs("item_id"), "_", "")%>" value="<%=Replace(rs("item_id"), "_", "")%>"> or this: " name="<%=stripUnderscore(rs("item_id"))%>" value="<%=stripUnderscore(rs("item_id"))%>"> <% function stripUnderscore(str) { stripUnderscore = Replace(str, "_", ""); end function %> [CAVEAT: UNTESTED] Then your item_id of precert_request_form5 will become your element id of precertrequestform5. Best Regards, -Mark C. -----Original Message----- From: Quale, Michael [mailto:QualeM at americanimaging.net] Sent: Tuesday, August 21, 2001 1:35 PM To: 'javascript at LaTech.edu' Subject: [Javascript] Need Checkbox help. I'm creating a dynamic list of check boxes based on the form selected. I have parent checkboxes which can have multiple child checkboxes. If a user selects a child I need to (onchange) check the parent checkbox. I'm tried many combinations of the code below but keep getting "document.precert_request_form5.pBox not an object" errors. ********** ********* 'Dynamically built parent checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>"> 'Dynamically built child checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>" LANGUAGE=javascript onclick="selectParent(this,<%=rsDisplayAll("parent_id")%>)"> Any help is good help! Thanks, Mike Q. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From Esther_Strom at hmco.com Tue Aug 21 14:06:30 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Tue, 21 Aug 2001 14:06:30 -0500 Subject: [Javascript] Need Checkbox help. Message-ID: I've used underscores in field and variable names frequently with no problem. There's nothing in the specification that states you can't use them. Mark Christie up.com> cc: Sent by: Subject: RE: [Javascript] Need Checkbox help. javascript-admin@ LaTech.edu 08/21/01 02:02 PM Please respond to javascript I've noticed that the DOM doesn't like elements that have underscores (_) in them...Try renaming your elements to something like precert5 or precertrequestform5 and see if that does the trick... Since your checkboxes are dynamically built, you may need to do something like this: " name="<%=Replace(rs("item_id"), "_", "")%>" value="<%=Replace(rs("item_id"), "_", "")%>"> or this: " name="<%=stripUnderscore(rs("item_id"))%>" value="<%=stripUnderscore(rs("item_id"))%>"> <% function stripUnderscore(str) { stripUnderscore = Replace(str, "_", ""); end function %> [CAVEAT: UNTESTED] Then your item_id of precert_request_form5 will become your element id of precertrequestform5. Best Regards, -Mark C. -----Original Message----- From: Quale, Michael [mailto:QualeM at americanimaging.net] Sent: Tuesday, August 21, 2001 1:35 PM To: 'javascript at LaTech.edu' Subject: [Javascript] Need Checkbox help. I'm creating a dynamic list of check boxes based on the form selected. I have parent checkboxes which can have multiple child checkboxes. If a user selects a child I need to (onchange) check the parent checkbox. I'm tried many combinations of the code below but keep getting "document.precert_request_form5.pBox not an object" errors. ********** ********* 'Dynamically built parent checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>"> 'Dynamically built child checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>" LANGUAGE=javascript onclick="selectParent(this,<%=rsDisplayAll("parent_id")%>)"> Any help is good help! Thanks, Mike Q. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From MChristie at avsgroup.com Tue Aug 21 14:12:16 2001 From: MChristie at avsgroup.com (Mark Christie) Date: Tue, 21 Aug 2001 14:12:16 -0500 Subject: [Javascript] Need Checkbox help. Message-ID: Well, my recent experiences have been different...Perhaps that wasn't the real problem after all, but renaming the element ids did solve the problem for me... Regards, -Mark C. -----Original Message----- From: Esther_Strom at hmco.com [mailto:Esther_Strom at hmco.com] Sent: Tuesday, August 21, 2001 2:07 PM To: javascript at LaTech.edu Subject: RE: [Javascript] Need Checkbox help. I've used underscores in field and variable names frequently with no problem. There's nothing in the specification that states you can't use them. Mark Christie up.com> cc: Sent by: Subject: RE: [Javascript] Need Checkbox help. javascript-admin@ LaTech.edu 08/21/01 02:02 PM Please respond to javascript I've noticed that the DOM doesn't like elements that have underscores (_) in them...Try renaming your elements to something like precert5 or precertrequestform5 and see if that does the trick... Since your checkboxes are dynamically built, you may need to do something like this: " name="<%=Replace(rs("item_id"), "_", "")%>" value="<%=Replace(rs("item_id"), "_", "")%>"> or this: " name="<%=stripUnderscore(rs("item_id"))%>" value="<%=stripUnderscore(rs("item_id"))%>"> <% function stripUnderscore(str) { stripUnderscore = Replace(str, "_", ""); end function %> [CAVEAT: UNTESTED] Then your item_id of precert_request_form5 will become your element id of precertrequestform5. Best Regards, -Mark C. -----Original Message----- From: Quale, Michael [mailto:QualeM at americanimaging.net] Sent: Tuesday, August 21, 2001 1:35 PM To: 'javascript at LaTech.edu' Subject: [Javascript] Need Checkbox help. I'm creating a dynamic list of check boxes based on the form selected. I have parent checkboxes which can have multiple child checkboxes. If a user selects a child I need to (onchange) check the parent checkbox. I'm tried many combinations of the code below but keep getting "document.precert_request_form5.pBox not an object" errors. ********** ********* 'Dynamically built parent checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>"> 'Dynamically built child checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>" LANGUAGE=javascript onclick="selectParent(this,<%=rsDisplayAll("parent_id")%>)"> Any help is good help! Thanks, Mike Q. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Tue Aug 21 14:18:58 2001 From: peter at brunone.com (Peter Brunone) Date: Tue, 21 Aug 2001 14:18:58 -0500 Subject: [Javascript] Need Checkbox help. References: <11C0D625212FD411BB3400508B2CC5E2DCC6A7@POST> Message-ID: <037201c12a76$20e2b340$e22d200a@PMBRUNON> Michael, It would be helpful to see the output, i.e. what the ASP code is generating as the name of the checkbox. This could very well be your problem. Additionally, you might have more than one checkbox of the same name; this would create a similar problem. -Peter ----- Original Message ----- From: "Quale, Michael" To: Sent: Tuesday, August 21, 2001 1:35 PM Subject: [Javascript] Need Checkbox help. | I'm creating a dynamic list of check boxes based on the form selected. | | I have parent checkboxes which can have multiple child checkboxes. | | If a user selects a child I need to (onchange) check the parent checkbox. | | I'm tried many combinations of the code below but keep getting | "document.precert_request_form5.pBox not an object" errors. | | ********** | | ********* | | 'Dynamically built parent checkbox | " name="<%=rs("item_id")%>" | value="<%=rs("item_id")%>"> | | 'Dynamically built child checkbox | " name="<%=rs("item_id")%>" | value="<%=rs("item_id")%>" LANGUAGE=javascript | onclick="selectParent(this,<%=rsDisplayAll("parent_id")%>)"> | | Any help is good help! | | Thanks, | | Mike Q. From Esther_Strom at hmco.com Tue Aug 21 14:19:30 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Tue, 21 Aug 2001 14:19:30 -0500 Subject: [Javascript] Need Checkbox help. Message-ID: Could you post the generated form code, instead of the ASP code? "Quale, Michael" aging.net> cc: Sent by: Subject: RE: [Javascript] Need Checkbox help. javascript-admin at L aTech.edu 08/21/01 02:04 PM Please respond to javascript I am using underscores throughout the app and have had no problems in that regards. Do you see anything else that maybe causing my grief? Thanks, Mike Q. -----Original Message----- From: Esther_Strom at hmco.com [mailto:Esther_Strom at hmco.com] Sent: Tuesday, August 21, 2001 2:07 PM To: javascript at LaTech.edu Subject: RE: [Javascript] Need Checkbox help. I've used underscores in field and variable names frequently with no problem. There's nothing in the specification that states you can't use them. Mark Christie up.com> cc: Sent by: Subject: RE: [Javascript] Need Checkbox help. javascript-admin@ LaTech.edu 08/21/01 02:02 PM Please respond to javascript I've noticed that the DOM doesn't like elements that have underscores (_) in them...Try renaming your elements to something like precert5 or precertrequestform5 and see if that does the trick... Since your checkboxes are dynamically built, you may need to do something like this: " name="<%=Replace(rs("item_id"), "_", "")%>" value="<%=Replace(rs("item_id"), "_", "")%>"> or this: " name="<%=stripUnderscore(rs("item_id"))%>" value="<%=stripUnderscore(rs("item_id"))%>"> <% function stripUnderscore(str) { stripUnderscore = Replace(str, "_", ""); end function %> [CAVEAT: UNTESTED] Then your item_id of precert_request_form5 will become your element id of precertrequestform5. Best Regards, -Mark C. -----Original Message----- From: Quale, Michael [mailto:QualeM at americanimaging.net] Sent: Tuesday, August 21, 2001 1:35 PM To: 'javascript at LaTech.edu' Subject: [Javascript] Need Checkbox help. I'm creating a dynamic list of check boxes based on the form selected. I have parent checkboxes which can have multiple child checkboxes. If a user selects a child I need to (onchange) check the parent checkbox. I'm tried many combinations of the code below but keep getting "document.precert_request_form5.pBox not an object" errors. ********** ********* 'Dynamically built parent checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>"> 'Dynamically built child checkbox " name="<%=rs("item_id")%>" value="<%=rs("item_id")%>" LANGUAGE=javascript onclick="selectParent(this,<%=rsDisplayAll("parent_id")%>)"> Any help is good help! Thanks, Mike Q. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From QualeM at americanimaging.net Tue Aug 21 14:19:42 2001 From: QualeM at americanimaging.net (Quale, Michael) Date: Tue, 21 Aug 2001 14:19:42 -0500 Subject: [Javascript] Need Checkbox help. Message-ID: <11C0D625212FD411BB3400508B2CC5E2DCC6AA@POST> OK Here goes: As for the checkboxes being named the same, I do not see this as a problem because I'm using a unique item_id for each box. Here is an example of what I get: Parent: Child: Do you think this could be a character problem? Numeric vs Char? Thanks for your help. Mike Q. -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Tuesday, August 21, 2001 2:19 PM To: javascript at LaTech.edu Subject: Re: [Javascript] Need Checkbox help. Michael, It would be helpful to see the output, i.e. what the ASP code is generating as the name of the checkbox. This could very well be your problem. Additionally, you might have more than one checkbox of the same name; this would create a similar problem. -Peter ----- Original Message ----- From: "Quale, Michael" To: Sent: Tuesday, August 21, 2001 1:35 PM Subject: [Javascript] Need Checkbox help. | I'm creating a dynamic list of check boxes based on the form selected. | | I have parent checkboxes which can have multiple child checkboxes. | | If a user selects a child I need to (onchange) check the parent checkbox. | | I'm tried many combinations of the code below but keep getting | "document.precert_request_form5.pBox not an object" errors. | | ********** | | ********* | | 'Dynamically built parent checkbox | " name="<%=rs("item_id")%>" | value="<%=rs("item_id")%>"> | | 'Dynamically built child checkbox | " name="<%=rs("item_id")%>" | value="<%=rs("item_id")%>" LANGUAGE=javascript | onclick="selectParent(this,<%=rsDisplayAll("parent_id")%>)"> | | Any help is good help! | | Thanks, | | Mike Q. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From rich at outposttrader.com Tue Aug 21 14:39:11 2001 From: rich at outposttrader.com (Richard Jolitz) Date: Tue, 21 Aug 2001 15:39:11 -0400 Subject: [Javascript] (no subject) Message-ID: <002101c12a78$f3f8de60$1900a8c0@compid> unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From hassan at webtuitive.com Tue Aug 21 14:45:22 2001 From: hassan at webtuitive.com (Hassan Schroeder) Date: Tue, 21 Aug 2001 12:45:22 -0700 Subject: [Javascript] Need Checkbox help. References: <11C0D625212FD411BB3400508B2CC5E2DCC6AA@POST> Message-ID: <3B82BA52.E731AFA9@webtuitive.com> "Quale, Michael" wrote: > Parent: > > > > Child: > > onclick="selectParent(this,118)"> From the HTML 4.01 spec: /* http://www.w3.org/TR/html4/types.html#type-name */ * ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). FWIW! -- H* Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design ===(+1) 408-938-0567 === http://www.webtuitive.com -- creating dynamic Web sites and applications since 1994 -- From peter at brunone.com Tue Aug 21 14:58:55 2001 From: peter at brunone.com (Peter Brunone) Date: Tue, 21 Aug 2001 14:58:55 -0500 Subject: [Javascript] Need Checkbox help. References: <11C0D625212FD411BB3400508B2CC5E2DCC6AA@POST> Message-ID: <03dd01c12a7b$b6d01a00$e22d200a@PMBRUNON> Oh... *duh*... I just realized what I should have seen five posts ago. You're passing an undefined variable -- the value generated by <%=rsDisplayAll("parent_id")%> -- into the function. The only reason the function doesn't balk is that the value is an integer. To make this work, you need to build the object reference to the parent checkbox using the eval() function, like this: function selectParent(cBox,pBox) { if(cBox.checked == true) { var parentBox = eval("document.precert_request_form5." + pBox); parentBox.checked = true; } } I would also recommend appending a non-numeric character to the IDs as part of the name so that the JS engine doesn't get confused and think that you want to work with integer values, but that's up to you. Cheers, Peter ----- Original Message ----- From: "Quale, Michael" To: Sent: Tuesday, August 21, 2001 2:19 PM Subject: RE: [Javascript] Need Checkbox help. | OK Here goes: | | As for the checkboxes being named the same, I do not see this as a problem | because I'm using a unique item_id for each box. | | Here is an example of what I get: | | Parent: | | | | Child: | | | | Do you think this could be a character problem? | | Numeric vs Char? | | Thanks for your help. | | Mike Q. | | | -----Original Message----- | From: Peter Brunone [mailto:peter at brunone.com] | Sent: Tuesday, August 21, 2001 2:19 PM | To: javascript at LaTech.edu | Subject: Re: [Javascript] Need Checkbox help. | | | Michael, | | It would be helpful to see the output, i.e. what the ASP code is | generating as the name of the checkbox. This could very well be your | problem. | Additionally, you might have more than one checkbox of the same name; | this would create a similar problem. | | -Peter | | ----- Original Message ----- | From: "Quale, Michael" | To: | Sent: Tuesday, August 21, 2001 1:35 PM | Subject: [Javascript] Need Checkbox help. | | | | I'm creating a dynamic list of check boxes based on the form selected. | | | | I have parent checkboxes which can have multiple child checkboxes. | | | | If a user selects a child I need to (onchange) check the parent checkbox. | | | | I'm tried many combinations of the code below but keep getting | | "document.precert_request_form5.pBox not an object" errors. | | | | ********** | | | | ********* | | | | 'Dynamically built parent checkbox | | " name="<%=rs("item_id")%>" | | value="<%=rs("item_id")%>"> | | | | 'Dynamically built child checkbox | | " name="<%=rs("item_id")%>" | | value="<%=rs("item_id")%>" LANGUAGE=javascript | | onclick="selectParent(this,<%=rsDisplayAll("parent_id")%>)"> | | | | Any help is good help! | | | | Thanks, | | | | Mike Q. | | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | From QualeM at americanimaging.net Tue Aug 21 15:29:26 2001 From: QualeM at americanimaging.net (Quale, Michael) Date: Tue, 21 Aug 2001 15:29:26 -0500 Subject: [Javascript] Need Checkbox help. Message-ID: <11C0D625212FD411BB3400508B2CC5E2DCC6AB@POST> Thank you all, especially you Peter. I getting closer but not quite there. I am now getting an error stating that I'm missing (;)? Oh well, it will have to wait because I'm leaving for an overdue vacation right now. Peter, I must apologize to you though. A while back I was short with you when trying to seek help and I didn't like your response. I save many of the best solutions from these lists and when looking through my collection your name is there quite often. I want to thank you! You are a gentlemen and a scholar! Good day to you all! Mike Q. Michael Quale Web Developer American Imaging Management, Inc. [E] Web_Master at americanimaging.net [P] 847.559.6523 [F] 847.559.6900 -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Tuesday, August 21, 2001 2:59 PM To: javascript at LaTech.edu Subject: Re: [Javascript] Need Checkbox help. Oh... *duh*... I just realized what I should have seen five posts ago. You're passing an undefined variable -- the value generated by <%=rsDisplayAll("parent_id")%> -- into the function. The only reason the function doesn't balk is that the value is an integer. To make this work, you need to build the object reference to the parent checkbox using the eval() function, like this: function selectParent(cBox,pBox) { if(cBox.checked == true) { var parentBox = eval("document.precert_request_form5." + pBox); parentBox.checked = true; } } I would also recommend appending a non-numeric character to the IDs as part of the name so that the JS engine doesn't get confused and think that you want to work with integer values, but that's up to you. Cheers, Peter ----- Original Message ----- From: "Quale, Michael" To: Sent: Tuesday, August 21, 2001 2:19 PM Subject: RE: [Javascript] Need Checkbox help. | OK Here goes: | | As for the checkboxes being named the same, I do not see this as a problem | because I'm using a unique item_id for each box. | | Here is an example of what I get: | | Parent: | | | | Child: | | | | Do you think this could be a character problem? | | Numeric vs Char? | | Thanks for your help. | | Mike Q. | | | -----Original Message----- | From: Peter Brunone [mailto:peter at brunone.com] | Sent: Tuesday, August 21, 2001 2:19 PM | To: javascript at LaTech.edu | Subject: Re: [Javascript] Need Checkbox help. | | | Michael, | | It would be helpful to see the output, i.e. what the ASP code is | generating as the name of the checkbox. This could very well be your | problem. | Additionally, you might have more than one checkbox of the same name; | this would create a similar problem. | | -Peter | | ----- Original Message ----- | From: "Quale, Michael" | To: | Sent: Tuesday, August 21, 2001 1:35 PM | Subject: [Javascript] Need Checkbox help. | | | | I'm creating a dynamic list of check boxes based on the form selected. | | | | I have parent checkboxes which can have multiple child checkboxes. | | | | If a user selects a child I need to (onchange) check the parent checkbox. | | | | I'm tried many combinations of the code below but keep getting | | "document.precert_request_form5.pBox not an object" errors. | | | | ********** | | | | ********* | | | | 'Dynamically built parent checkbox | | " name="<%=rs("item_id")%>" | | value="<%=rs("item_id")%>"> | | | | 'Dynamically built child checkbox | | " name="<%=rs("item_id")%>" | | value="<%=rs("item_id")%>" LANGUAGE=javascript | | onclick="selectParent(this,<%=rsDisplayAll("parent_id")%>)"> | | | | Any help is good help! | | | | Thanks, | | | | Mike Q. | | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From cutterbl at hotmail.com Tue Aug 21 21:26:00 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Tue, 21 Aug 2001 22:26:00 -0400 Subject: [Javascript] doing totals of form values client side - examples Message-ID: An HTML attachment was scrubbed... URL: From lau at goldenweb.com.au Wed Aug 22 01:43:14 2001 From: lau at goldenweb.com.au (Lau) Date: Wed, 22 Aug 2001 16:43:14 +1000 Subject: [Javascript] (Slightly OT) padding around images References: Message-ID: <001301c12ad5$bc9eaa00$6700a8c0@laubox> I have a table with rows that contain one or more small images followed by some text. I want the images to touch the image from the next and previous rows, unfortunately they allways end up with some padding between the rows. I can get them to stick together if I only have and image and no text in the row, or if I create a column for each image so that text and images aren't mixed in the same column. However I don't know how many images there will be and therefore can't use the many columns approach. VALIGN doesn't seem to help. How can I do this?
aaa
aaa
Thanks in advance Lau -------------- next part -------------- An HTML attachment was scrubbed... URL: From lau at goldenweb.com.au Wed Aug 22 02:19:51 2001 From: lau at goldenweb.com.au (Lau) Date: Wed, 22 Aug 2001 17:19:51 +1000 Subject: [Javascript] (Slightly OT) padding around images References: <001301c12ad5$bc9eaa00$6700a8c0@laubox> Message-ID: <001501c12ada$d8ef8ee0$6700a8c0@laubox> Don't worry, I solved... it all I had to do was set ALIGN=ABSBOTTOM in the IMG tag. Thanks, Lau ----- Original Message ----- From: Lau To: javascript at LaTech.edu Sent: Wednesday, August 22, 2001 4:43 PM Subject: [Javascript] (Slightly OT) padding around images I have a table with rows that contain one or more small images followed by some text. I want the images to touch the image from the next and previous rows, unfortunately they allways end up with some padding between the rows. I can get them to stick together if I only have and image and no text in the row, or if I create a column for each image so that text and images aren't mixed in the same column. However I don't know how many images there will be and therefore can't use the many columns approach. VALIGN doesn't seem to help. How can I do this?
aaa
aaa
Thanks in advance Lau -------------- next part -------------- An HTML attachment was scrubbed... URL: From cutterbl at hotmail.com Wed Aug 22 07:05:49 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Wed, 22 Aug 2001 08:05:49 -0400 Subject: [Javascript] (Slightly OT) padding around images Message-ID: An HTML attachment was scrubbed... URL: From psarnowski at mgasystems.com Wed Aug 22 08:08:39 2001 From: psarnowski at mgasystems.com (Patrick Sarnowski) Date: Wed, 22 Aug 2001 09:08:39 -0400 Subject: [Javascript] Server Threw an Exception Message-ID: <97DBE8D13A85D511A1FC0002B3079EAD015FDC@WKFCSERVER> Hello, I came across some code you wrote on a website (http://www.latech.edu/pipermail/javascript/2001-March/000151.html) and am having the exact same problem as you are, with 'server threw an exception'. My code looks almost identical to yours. I was wondering if you found a way around this problem? I am trying to add an item to a dropdown list on the parent form in IE5.5. Thanks, Patrick Sarnowski From iztokp at amis.net Wed Aug 22 09:16:59 2001 From: iztokp at amis.net (Iztok Polanic) Date: Wed, 22 Aug 2001 16:16:59 +0200 Subject: [Javascript] Today Message-ID: <000501c12b15$1c586ff0$25b7bdc1@omega> Hi! Today I've seen a window without any toolbars or any closing buttons (this was plain HTML page) only scroolbars. How can I make this? TNX! Bye, Iztok From LMuchacho at twii.net Wed Aug 22 09:22:45 2001 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Wed, 22 Aug 2001 15:22:45 +0100 Subject: [Javascript] Today Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC027C2EBB@lonmail.twii.net> where did you see it I want to have a look too Laurent -----Original Message----- From: Iztok Polanic [mailto:iztokp at amis.net] Sent: 22 August 2001 15:17 To: javascript at LaTech.edu Subject: [Javascript] Today Hi! Today I've seen a window without any toolbars or any closing buttons (this was plain HTML page) only scroolbars. How can I make this? TNX! Bye, Iztok _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From Esther_Strom at hmco.com Wed Aug 22 09:29:12 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Wed, 22 Aug 2001 09:29:12 -0500 Subject: [Javascript] Today Message-ID: To get rid of toolbars and such, you can use a function like this when opening the window: function openWin(url,name,width,height) { var commonArg = "toolbar=no" + ",locationbar=no" + ",directories=no" + ",statusbar=no" + ",personalbar=no" + ",menubar=no" + ",scrollbars=yes" + ",resizable=yes" var specificArg = ",width="+width + ",height="+height pictwin = window.open(url, "pictwin", commonArg+specificArg) } The one thing I can't get rid of is the titlebar - I've seen it done somewhere, too, but can't remember now or I'd go look at the code. Does anyone know how to do it? Esther "Iztok Polanic" To: Sent by: cc: javascript-admin@ Subject: [Javascript] Today LaTech.edu 08/22/01 09:16 AM Please respond to javascript Hi! Today I've seen a window without any toolbars or any closing buttons (this was plain HTML page) only scroolbars. How can I make this? TNX! Bye, Iztok _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Wed Aug 22 09:47:24 2001 From: peter at brunone.com (Peter Brunone) Date: Wed, 22 Aug 2001 09:47:24 -0500 Subject: [Javascript] Server Threw an Exception References: <97DBE8D13A85D511A1FC0002B3079EAD015FDC@WKFCSERVER> Message-ID: <059e01c12b19$5ed81200$e22d200a@PMBRUNON> Patrick, If you get a server message, you can be pretty sure the problem is not in your client-side JavaScript. You'll want to find a list that answers questions about the particular server you're using. If you're working with IIS/ASP, try http://asplists.com . Cheers, Peter ----- Original Message ----- From: "Patrick Sarnowski" To: Sent: Wednesday, August 22, 2001 8:08 AM Subject: [Javascript] Server Threw an Exception | | Hello, | | I came across some code you wrote on a website | (http://www.latech.edu/pipermail/javascript/2001-March/000151.html) and | am having the exact same problem as you are, with 'server threw an | exception'. My code looks almost identical to yours. I was wondering | if you found a way around this problem? I am trying to add an item to a | dropdown list on the parent form in IE5.5. | | Thanks, | | Patrick Sarnowski | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | From iztokp at amis.net Wed Aug 22 09:56:42 2001 From: iztokp at amis.net (Iztok Polanic) Date: Wed, 22 Aug 2001 16:56:42 +0200 Subject: [Javascript] Today References: <76A6F0FCCA27D4119DEF00805F5700AC027C2EBB@lonmail.twii.net> Message-ID: <001401c12b1a$a8155940$36441ed4@omega> Hi! It was an advertisement banner. I've seen it at www.cdcovers.cc Bye, Iztok ----- Original Message ----- From: "Muchacho, Laurent (TWIi London)" To: Sent: Wednesday, August 22, 2001 16:22 Subject: RE: [Javascript] Today > where did you see it I want to have a look too > > Laurent > > -----Original Message----- > From: Iztok Polanic [mailto:iztokp at amis.net] > Sent: 22 August 2001 15:17 > To: javascript at LaTech.edu > Subject: [Javascript] Today > > > Hi! > > Today I've seen a window without any toolbars or any closing buttons (this > was plain HTML page) only scroolbars. How can I make this? > TNX! > > > Bye, > > Iztok > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript From cutterbl at hotmail.com Wed Aug 22 11:04:48 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Wed, 22 Aug 2001 12:04:48 -0400 Subject: [Javascript] Today Message-ID: An HTML attachment was scrubbed... URL: From gassinaumasis at hotmail.com Wed Aug 22 11:40:51 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Wed, 22 Aug 2001 16:40:51 +0000 Subject: [Javascript] Today Message-ID: >Today I've seen a window without any toolbars or any closing buttons (this >was plain HTML page) only scroolbars. How can I make this? >TNX! Works only in IE Windows: open the window with fullscreen=yes in the window.open arguments, then do a self.resizeTo(x,y) the width and height you like. ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From swiseman at remax-cahi.com Wed Aug 22 12:34:07 2001 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Wed, 22 Aug 2001 10:34:07 -0700 Subject: [Javascript] Server Threw an Exception Message-ID: <5DEF109335DAD111B05F00A0C9DDFC02A430C6@ROCHS2> is the opener window closed? is the function in the opener window? -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Wednesday, August 22, 2001 7:47 AM To: javascript at LaTech.edu Subject: Re: [Javascript] Server Threw an Exception Patrick, If you get a server message, you can be pretty sure the problem is not in your client-side JavaScript. You'll want to find a list that answers questions about the particular server you're using. If you're working with IIS/ASP, try http://asplists.com . Cheers, Peter ----- Original Message ----- From: "Patrick Sarnowski" To: Sent: Wednesday, August 22, 2001 8:08 AM Subject: [Javascript] Server Threw an Exception | | Hello, | | I came across some code you wrote on a website | (http://www.latech.edu/pipermail/javascript/2001-March/000151.html) and | am having the exact same problem as you are, with 'server threw an | exception'. My code looks almost identical to yours. I was wondering | if you found a way around this problem? I am trying to add an item to a | dropdown list on the parent form in IE5.5. | | Thanks, | | Patrick Sarnowski | _______________________________________________ | Javascript mailing list | Javascript at LaTech.edu | http://www.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From iztokp at amis.net Wed Aug 22 12:40:24 2001 From: iztokp at amis.net (Iztok Polanic) Date: Wed, 22 Aug 2001 19:40:24 +0200 Subject: [Javascript] Today References: Message-ID: <001901c12b31$86c19530$1b431ed4@omega> Hi! And how does it display in Netscape? Lep pozdrav, Iztok ----- Original Message ----- From: "Peter-Paul Koch" To: Sent: Wednesday, August 22, 2001 18:40 Subject: Re: [Javascript] Today > > > >Today I've seen a window without any toolbars or any closing buttons (this > >was plain HTML page) only scroolbars. How can I make this? > >TNX! > > Works only in IE Windows: open the window with fullscreen=yes in the > window.open arguments, then do a self.resizeTo(x,y) the width and height you > like. > > ppk > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript From BELANGERJ at EM.AGR.CA Wed Aug 22 13:16:14 2001 From: BELANGERJ at EM.AGR.CA (Jason Belanger) Date: Wed, 22 Aug 2001 14:16:14 -0400 Subject: [Javascript] doing totals of form values client side-examples - Solved Message-ID: Hi Peter, I found out after words that it only worked in IE and nor Netscape. Here is the browser independent code for the whole page: Bulb order form
r=no,
Product Description Cost Quantity
60 Bulb Garden Assortment

60 Bulb Garden Assortment
An assortment of all time favourite fall bulbs. Plant together or separately in mid to late fall for a delightful array of colour and blooms throughout spring and early summer. Hardy in zones 3-8

$25.00
6 Angelique Tulips

6 Angelique Tulips
A double peony type tulip that looks dainty but is extremely resilient. Among the last tulips to bloom, usually in late May, 18-20* tall. hardy in zones 3- 8

$8.00
6 Apricot Beauty Tulips

6 Apricot Beauty Tulips
A best seller! This Mayflowering light rosy-apricot beauty is excellent as a cut flower, growing 15 - 18* tall. hardy in zones 3-8

$8.00
20 Darwin Tulips

20 Darwin Tulips
These giants of the Garden Tulips will bloom year after year. Enjoy a mix of colours, from bright reds and oranges to soft yellows. hardy in zones 3-8

$10.00
12 Pastel Tulips

12 Pastel Tulips
A mixture of mid-season tulips about 18 - 24* tall in beautiful pastel colours. Great as cut flowers! hardy in zones 3-8

$10.00
20 Giant Yellow Daffodils

20 Giant Yellow Daffodils
An outstanding value and a great sign of spring! Perfect for naturalizing. hardy in zones 3-8

$10.00
20 Mixed Daffodils

20 Mixed Daffodils
We*ve chosen our best-selling daffodils for this mixture. Use them for naturalizing or include in your flower beds. They*ll surprise and delight you with their various sizes, shapes and colours! hardy in zones 3-8

$10.00
25 Glory of the Snow

25 Glory of the Snow
(Chianodoxa forbessi) Petite Lilac blue flowers are great interplanted with daffodils. Good naturalizers! hardy in zones 3-8

$8.00
6 Mixed Hyacinths

6 Mixed Hyacinths
An excellent selection of mixed colours and varieties that will add a wonderful fragrance to your spring gardens! Growing 8 - 12* tall, blooming March - April. Great for forcing! hardy in zones 4-9

$8.00
25 Snow Crocus

25 Snow Crocus
This delightful mix of crocus will be the first flowers to greet you each spring! You*ll enjoy a pleasant arrary of colours from soft lavender to glowing yellow to deep violet; 4 - 6* tall blooming from Feb to March. hardy in zones 3-9

$8.00
35 Mixed Dutch Iris

35 Mixed Dutch Iris
Carefully selected, graceful and elegant mix of spectacular Dutch Iris. Colours range from deep purple to creamy white, golden yellow and soft blue/violet. Growing 24* tall and blooming May to June. hardy in zones 4-9

$8.00
25 Windflowers Mix

25 Windflowers Mix
(Anemone blanda) Delightful daisy-like flowers which produce blankets of flowers during* April and May each year. Low growing (6* tall) and great as naturalizers and for borders. hardy in zones 5-9

$8.00
25 Grape Hyacinths

25 Grape Hyacinths
(Muscari armeniacum) These bright blue flowers are terrific interplanted with cheery yellow and gold daffodils. You*ll get years of pleasure from these delightful little flowers; 6 - 8* tall and blooming in early April. hardy in zones 3-8

$8.00
5 Asiatic Lilies

5 Asiatic Lilies
A charming mix of easy-to-grow lilies that will bring you year after year of beauty! All they need is a sunny or partially sunny spot. Growing 30-60* tall with terrific blossoms in June to July. hardy in zones 4-9

$10.00
15 Spanish Blue Bells Mix

15 Spanish Blue Bells Mix
(Scilla Hyacinthoides hispanica) Bell shaped flower clusters of pink, white and red on 15-18* stems. Ideal planted with daffodils, thrive in shady spots and multiply each year. hardy in zones 4-9

$8.00
Paperwhite Narcissus Kit

Paperwhite Narcissus Kit
Bring the scent of spring indoors this winter! This kit includes 4 Paperwhite Narcissus bulbs, a white plastic pot and saucer, growing medium and planting instructions. A perfect gift! indoor plant

$12.00
Red Lion Amaryllis Kit

Red Lion Amaryllis Kit
This great gift kit includes 1 large Amaryllis bulb, a white plastic pot and saucer, growing medium and instructions. Long lasting flowers; 18 - 24* tall. indoor plant

$15.00
    Total Cost


Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ From hormuz.maloo at kotak.com Wed Aug 22 23:41:28 2001 From: hormuz.maloo at kotak.com (hormuz maloo) Date: Thu, 23 Aug 2001 10:11:28 +0530 Subject: [Javascript] innerHTML Message-ID: <0A0F9ADC3617D411BEB50004ACD36C58029E57D4@ksntbombkh02.kotak.com> Can somebody please elaborate a little on "innerHTML". I have heard it mentioned at various places. What does it do exactly? Is it part of JavaScript, CSS, or what? Will appreciate a short summary or some good links on the topic. Thanks in advance, Hormuz Date: Mon, 20 Aug 2001 08:44:36 -0700 Subject: Re: [Javascript] getting text from another page From: Ben Curtis To: Reply-To: javascript at LaTech.edu > I need to grab some text from one HTML page and put it on another. > > The text conveniently sits inbetween some tags called > > How do I go about getting this text on another html page? >I would suggest going server-side with this; PHP, Perl, ASP, or ColdFusion >would do nicely. If, for some reason, you *need* to do this clientside, then >you will need to make sure the two pages are in the same domain. With IE or >N6 you can then get the innerHTML of the page, and use a regular expression >to find the relevant string. Could be a lot of work or piece of cake. Good >luck. >-- >+Ben Curtis >"One of the symptoms of an approaching nervous breakdown >is the belief that one's work is terribly important." >- Bertrand Russell (1872-1970) -------------- next part -------------- An HTML attachment was scrubbed... URL: From lau at goldenweb.com.au Thu Aug 23 00:42:31 2001 From: lau at goldenweb.com.au (Lau) Date: Thu, 23 Aug 2001 15:42:31 +1000 Subject: [Javascript] innerHTML References: <0A0F9ADC3617D411BEB50004ACD36C58029E57D4@ksntbombkh02.kotak.com> Message-ID: <001801c12b96$68cae260$6700a8c0@laubox> innerHTMLIts DHTML http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/innerHTML.asp?frame=true it allows you to change your html code after it has been loaded using javascript. e.g. you can change the text displayed on your page when the user onmouseovers a link.... very cool. If you want to get really fancy you can write very complicated functionality using innerHTML.... I've just written something that behaves just like Windows Explorer with expanding folders etc. have fun with it Lau ----- Original Message ----- From: hormuz maloo To: 'javascript at LaTech.edu' Sent: Thursday, August 23, 2001 2:41 PM Subject: [Javascript] innerHTML Can somebody please elaborate a little on "innerHTML". I have heard it mentioned at various places. What does it do exactly? Is it part of JavaScript, CSS, or what? Will appreciate a short summary or some good links on the topic. Thanks in advance, Hormuz Date: Mon, 20 Aug 2001 08:44:36 -0700 Subject: Re: [Javascript] getting text from another page From: Ben Curtis To: Reply-To: javascript at LaTech.edu > I need to grab some text from one HTML page and put it on another. > > The text conveniently sits inbetween some tags called > > How do I go about getting this text on another html page? >I would suggest going server-side with this; PHP, Perl, ASP, or ColdFusion >would do nicely. If, for some reason, you *need* to do this clientside, then >you will need to make sure the two pages are in the same domain. With IE or >N6 you can then get the innerHTML of the page, and use a regular expression >to find the relevant string. Could be a lot of work or piece of cake. Good >luck. >-- >+Ben Curtis >"One of the symptoms of an approaching nervous breakdown >is the belief that one's work is terribly important." >- Bertrand Russell (1872-1970) -------------- next part -------------- An HTML attachment was scrubbed... URL: From lau at goldenweb.com.au Thu Aug 23 03:06:53 2001 From: lau at goldenweb.com.au (Lau) Date: Thu, 23 Aug 2001 18:06:53 +1000 Subject: [Javascript] dynamically creating variables using eval() References: <0A0F9ADC3617D411BEB50004ACD36C58029E57D4@ksntbombkh02.kotak.com> <001801c12b96$68cae260$6700a8c0@laubox> Message-ID: <000901c12baa$945ad520$6700a8c0@laubox> innerHTMLHi all, How can I dynamically create a new javascript variable that will be available to subsequent scripts. I can use eval("var newvar;newvar=33;") to create the variable, but the new variable only seems to exist within the scope of the script block that it was created in. Below is a page that demonstrates what I mean... the first alert works, the second one says that newvar is undefined. create variable "newvar"
view "newvar" Thanks in advance Lau -------------- next part -------------- An HTML attachment was scrubbed... URL: From lau at goldenweb.com.au Thu Aug 23 04:12:37 2001 From: lau at goldenweb.com.au (Lau) Date: Thu, 23 Aug 2001 19:12:37 +1000 Subject: [Javascript] dynamically creating variables using eval() SOLVED References: <0A0F9ADC3617D411BEB50004ACD36C58029E57D4@ksntbombkh02.kotak.com> <001801c12b96$68cae260$6700a8c0@laubox> <000901c12baa$945ad520$6700a8c0@laubox> Message-ID: <002b01c12bb3$c5f6a2e0$6700a8c0@laubox> innerHTMLFor those who are interested I solved the problem by first creating an object "varlist" and then dynamically adding properties to the object. create variable "newvar"
view "newvar" regards Lau ----- Original Message ----- From: Lau To: javascript at LaTech.edu Sent: Thursday, August 23, 2001 6:06 PM Subject: [Javascript] dynamically creating variables using eval() Hi all, How can I dynamically create a new javascript variable that will be available to subsequent scripts. I can use eval("var newvar;newvar=33;") to create the variable, but the new variable only seems to exist within the scope of the script block that it was created in. Below is a page that demonstrates what I mean... the first alert works, the second one says that newvar is undefined. create variable "newvar"
view "newvar" Thanks in advance Lau -------------- next part -------------- An HTML attachment was scrubbed... URL: From cutterbl at hotmail.com Thu Aug 23 07:23:54 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 23 Aug 2001 08:23:54 -0400 Subject: [Javascript] doing totals of form values client side-examples - Solved Message-ID: An HTML attachment was scrubbed... URL: From cutterbl at hotmail.com Thu Aug 23 07:35:13 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 23 Aug 2001 08:35:13 -0400 Subject: [Javascript] innerHTML Message-ID: An HTML attachment was scrubbed... URL: From lshadoff at brazosport.cc.tx.us Thu Aug 23 07:37:26 2001 From: lshadoff at brazosport.cc.tx.us (Lewis Shadoff) Date: Thu, 23 Aug 2001 07:37:26 -0500 Subject: [Javascript] Re: dynamically creating variables using eval() In-Reply-To: <20010823122633.1D75833798@scorpion.LaTech.edu> Message-ID: <5.1.0.14.2.20010823073322.02e1faa0@pop3.norton.antivirus> At 07:26 AM 8/23/01, you wrote: >How can I dynamically create a new javascript variable that will be >available to subsequent scripts. >I can use eval("var newvar;newvar=3D33;") to create the variable, but the >new variable only seems to exist within the scope of the script block that >it was created in. Below is a page that demonstrates what I mean... the >first alert works, the second one says that newvar is undefined. In IE, variables created within a function are local variables. In order to create a global variable it must be defined at the root level. This is not the case in Netscape where all variables are global no matter where they are created. I suggest you create a number of dummy global variables in your original code and then assign them on-the-fly. Lewis A. Shadoff, PhD Brazosport College Lake Jackson, TX From queequeg_x at yahoo.com Thu Aug 23 08:34:09 2001 From: queequeg_x at yahoo.com (queequeg_x at yahoo.com) Date: Thu, 23 Aug 2001 13:34:09 -0000 Subject: [Javascript] Calculate on demand... Message-ID: <9m30oh+qloc@eGroups.com> http://www.axismicro.com/products/custom/index.html Anyone know where I can get code for an operation such as this one? (This particular developer used FrontPage web bots) Thanks you mucho in advance! -rene From Esther_Strom at hmco.com Thu Aug 23 09:17:13 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Thu, 23 Aug 2001 09:17:13 -0500 Subject: [Javascript] doing totals of form values client side-examples - Solved Message-ID: Just a request...if you're going to paste code in, could you make sure your message type is plain text and not HTML? The code below is trying to execute in my email client and causing numerous js errors. Esther "Cutter Bl" cc: Sent by: Subject: Re: [Javascript] doing totals of form values client javascript-admin@ side-examples - Solved LaTech.edu 08/23/01 07:23 AM Please respond to javascript NN doesn't seem to like handling the selectbox very well. You kinda have to go a convoluted route to get your values... strMyValue = thisForm.MyValue.options[thisForm.MyValue.selectedIndex].value; Cutter Falcon Knives ----Original Message Follows---- From: "Jason Belanger" Reply-To: javascript at LaTech.edu To: javascript at LaTech.edu Subject: Re: [Javascript] doing totals of form values client side-examples - Solved Date: Wed, 22 Aug 2001 14:16:14 -0400 Hi Peter, I found out after words that it only worked in IE and nor Netscape. Here is the browser independent code for the whole page: |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | Product Description | | Co | | Quantity | | | | | | | | | st | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 60 Bulb Garden | | $2 | | | | | | | | | Assortment | | 5. | | |--------| | | | | | | | | | 00 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | An assortment of all | | | | | ( ) 2 | | | | | | | | time favourite fall | | | | | ( ) 3 | | | | | | | | bulbs. Plant together or | | | | | ( ) 4 | | | | | | | | separately in mid to | | | | | ( ) 5 | | | | | | | | late fall for a | | | | | ( ) 6 | | | | | | | | delightful array of | | | | | ( ) 7 | | | | | | | | colour and blooms | | | | | ( ) 8 | | | | | | | | throughout spring and | | | | | ( ) 9 | | | | | | | | early summer. Hardy in | | | | | ( ) 10 | | | | | | | | zones 3-8 | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 6 Angelique Tulips | | $8 | | | | | | | | | A double peony type | | .0 | | |--------| | | | | | | | tulip that | | 0 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | looks dainty but is | | | | | ( ) 3 | | | | | | | | extremely resilient. | | | | | ( ) 4 | | | | | | | | Among the last tulips | | | | | ( ) 5 | | | | | | | | to bloom, usually in | | | | | ( ) 6 | | | | | | | | late May, 18-20* tall. | | | | | ( ) 7 | | | | | | | | hardy in zones 3- | | | | | ( ) 8 | | | | | | | | 8 | | | | | ( ) 9 | | | | | | | | | | | | | ( ) 10 | | | | | | | | | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 6 Apricot Beauty Tulips | | $8 | | | | | | | | | A best seller! This | | .0 | | |--------| | | | | | | | | | 0 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | Mayflowering light | | | | | ( ) 2 | | | | | | | | rosy-apricot beauty is | | | | | ( ) 3 | | | | | | | | excellent as a cut | | | | | ( ) 4 | | | | | | | | flower, growing 15 - 18* | | | | | ( ) 5 | | | | | | | | tall. hardy in zones 3-8 | | | | | ( ) 6 | | | | | | | | | | | | | ( ) 7 | | | | | | | | | | | | | ( ) 8 | | | | | | | | | | | | | ( ) 9 | | | | | | | | | | | | | ( ) 10 | | | | | | | | | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 20 Darwin Tulips | | $1 | | | | | | | | | These giants of the | | 0. | | |--------| | | | | | | | Garden Tulips | | 00 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | will bloom year after | | | | | ( ) 3 | | | | | | | | year. Enjoy a mix of | | | | | ( ) 4 | | | | | | | | colours, from | | | | | ( ) 5 | | | | | | | | bright reds and oranges | | | | | ( ) 6 | | | | | | | | to soft yellows. hardy | | | | | ( ) 7 | | | | | | | | in zones 3-8 | | | | | ( ) 8 | | | | | | | | | | | | | ( ) 9 | | | | | | | | | | | | | ( ) 10 | | | | | | | | | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 12 Pastel Tulips | | $1 | | | | | | | | | A mixture of mid-season | | 0. | | |--------| | | | | | | | tulips about | | 00 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | 18 - 24* tall in | | | | | ( ) 3 | | | | | | | | beautiful pastel | | | | | ( ) 4 | | | | | | | | colours. Great as cut | | | | | ( ) 5 | | | | | | | | flowers! | | | | | ( ) 6 | | | | | | | | hardy in zones 3-8 | | | | | ( ) 7 | | | | | | | | | | | | | ( ) 8 | | | | | | | | | | | | | ( ) 9 | | | | | | | | | | | | | ( ) 10 | | | | | | | | | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 20 Giant Yellow | | $1 | | | | | | | | | Daffodils | | 0. | | |--------| | | | | | | | An outstanding value and | | 00 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | a great sign of spring! | | | | | ( ) 3 | | | | | | | | Perfect for | | | | | ( ) 4 | | | | | | | | naturalizing. hardy in | | | | | ( ) 5 | | | | | | | | zones | | | | | ( ) 6 | | | | | | | | 3-8 | | | | | ( ) 7 | | | | | | | | | | | | | ( ) 8 | | | | | | | | | | | | | ( ) 9 | | | | | | | | | | | | | ( ) 10 | | | | | | | | | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 20 Mixed Daffodils | | $1 | | | | | | | | | We*ve chosen our | | 0. | | |--------| | | | | | | | best-selling daffodils | | 00 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | for this mixture. Use | | | | | ( ) 3 | | | | | | | | them for naturalizing or | | | | | ( ) 4 | | | | | | | | include in your | | | | | ( ) 5 | | | | | | | | flower beds. They*ll | | | | | ( ) 6 | | | | | | | | surprise and delight you | | | | | ( ) 7 | | | | | | | | with their various | | | | | ( ) 8 | | | | | | | | sizes, shapes and | | | | | ( ) 9 | | | | | | | | colours! hardy in zones | | | | | ( ) 10 | | | | | | | | 3-8 | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 25 Glory of the Snow | | $8 | | | | | | | | | (Chianodoxa forbessi) | | .0 | | |--------| | | | | | | | Petite | | 0 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | Lilac blue flowers are | | | | | ( ) 3 | | | | | | | | great interplanted with | | | | | ( ) 4 | | | | | | | | daffodils. Good | | | | | ( ) 5 | | | | | | | | naturalizers! hardy in | | | | | ( ) 6 | | | | | | | | zones 3-8 | | | | | ( ) 7 | | | | | | | | | | | | | ( ) 8 | | | | | | | | | | | | | ( ) 9 | | | | | | | | | | | | | ( ) 10 | | | | | | | | | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 6 Mixed Hyacinths | | $8 | | | | | | | | | An excellent selection | | .0 | | |--------| | | | | | | | of mixed | | 0 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | colours and varieties | | | | | ( ) 3 | | | | | | | | that will add a | | | | | ( ) 4 | | | | | | | | wonderful fragrance to | | | | | ( ) 5 | | | | | | | | your spring gardens! | | | | | ( ) 6 | | | | | | | | Growing 8 - 12* tall, | | | | | ( ) 7 | | | | | | | | blooming March | | | | | ( ) 8 | | | | | | | | - April. Great for | | | | | ( ) 9 | | | | | | | | forcing! hardy in zones | | | | | ( ) 10 | | | | | | | | 4-9 | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 25 Snow Crocus | | $8 | | | | | | | | | This delightful mix of | | .0 | | |--------| | | | | | | | crocus will be | | 0 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | the first flowers to | | | | | ( ) 3 | | | | | | | | greet you each spring! | | | | | ( ) 4 | | | | | | | | You*ll enjoy a | | | | | ( ) 5 | | | | | | | | pleasant arrary of | | | | | ( ) 6 | | | | | | | | colours from soft | | | | | ( ) 7 | | | | | | | | lavender to glowing | | | | | ( ) 8 | | | | | | | | yellow to deep violet; 4 | | | | | ( ) 9 | | | | | | | | - 6* tall blooming from | | | | | ( ) 10 | | | | | | | | Feb to March. | | | | |--------| | | | | | | | hardy in zones 3-9 | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 35 Mixed Dutch Iris | | $8 | | | | | | | | | Carefully selected, | | .0 | | |--------| | | | | | | | graceful and | | 0 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | elegant mix of | | | | | ( ) 3 | | | | | | | | spectacular Dutch Iris. | | | | | ( ) 4 | | | | | | | | Colours range from | | | | | ( ) 5 | | | | | | | | deep purple to creamy | | | | | ( ) 6 | | | | | | | | white, golden yellow and | | | | | ( ) 7 | | | | | | | | soft | | | | | ( ) 8 | | | | | | | | blue/violet. Growing 24* | | | | | ( ) 9 | | | | | | | | tall and blooming May to | | | | | ( ) 10 | | | | | | | | June. | | | | |--------| | | | | | | | hardy in zones 4-9 | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 25 Windflowers Mix | | $8 | | | | | | | | | (Anemone blanda) | | .0 | | |--------| | | | | | | | Delightful | | 0 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | daisy-like flowers which | | | | | ( ) 3 | | | | | | | | produce blankets of | | | | | ( ) 4 | | | | | | | | flowers during* | | | | | ( ) 5 | | | | | | | | April and May each year. | | | | | ( ) 6 | | | | | | | | Low growing (6* tall) | | | | | ( ) 7 | | | | | | | | and great | | | | | ( ) 8 | | | | | | | | as naturalizers and for | | | | | ( ) 9 | | | | | | | | borders. hardy in zones | | | | | ( ) 10 | | | | | | | | 5-9 | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 25 Grape Hyacinths | | $8 | | | | | | | | | (Muscari armeniacum) | | .0 | | |--------| | | | | | | | These | | 0 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | bright blue flowers are | | | | | ( ) 3 | | | | | | | | terrific interplanted | | | | | ( ) 4 | | | | | | | | with cheery | | | | | ( ) 5 | | | | | | | | yellow and gold | | | | | ( ) 6 | | | | | | | | daffodils. You*ll get | | | | | ( ) 7 | | | | | | | | years of pleasure from | | | | | ( ) 8 | | | | | | | | these delightful little | | | | | ( ) 9 | | | | | | | | flowers; 6 - 8* tall and | | | | | ( ) 10 | | | | | | | | blooming in | | | | |--------| | | | | | | | early April. hardy in | | | | | | | | | | | zones 3-8 | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 5 Asiatic Lilies | | $1 | | | | | | | | | A charming mix of | | 0. | | |--------| | | | | | | | easy-to-grow lilies | | 00 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | that will bring you year | | | | | ( ) 3 | | | | | | | | after year of beauty! | | | | | ( ) 4 | | | | | | | | All they need | | | | | ( ) 5 | | | | | | | | is a sunny or partially | | | | | ( ) 6 | | | | | | | | sunny spot. Growing | | | | | ( ) 7 | | | | | | | | 30-60* tall with | | | | | ( ) 8 | | | | | | | | terrific blossoms in | | | | | ( ) 9 | | | | | | | | June to July. hardy in | | | | | ( ) 10 | | | | | | | | zones 4-9 | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | 15 Spanish Blue Bells | | $8 | | | | | | | | | Mix | | .0 | | |--------| | | | | | | | (Scilla Hyacinthoides | | 0 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | hispanica) Bell shaped | | | | | ( ) 3 | | | | | | | | flower clusters of pink, | | | | | ( ) 4 | | | | | | | | white and red | | | | | ( ) 5 | | | | | | | | on 15-18* stems. Ideal | | | | | ( ) 6 | | | | | | | | planted with daffodils, | | | | | ( ) 7 | | | | | | | | thrive in shady | | | | | ( ) 8 | | | | | | | | spots and multiply each | | | | | ( ) 9 | | | | | | | | year. hardy in zones 4-9 | | | | | ( ) 10 | | | | | | | | | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | Paperwhite Narcissus Kit | | $1 | | | | | | | | | Bring the scent of | | 2. | | |--------| | | | | | | | spring | | 00 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | indoors this winter! | | | | | ( ) 3 | | | | | | | | This kit includes 4 | | | | | ( ) 4 | | | | | | | | Paperwhite Narcissus | | | | | ( ) 5 | | | | | | | | bulbs, a white plastic | | | | | ( ) 6 | | | | | | | | pot and saucer, growing | | | | | ( ) 7 | | | | | | | | medium and | | | | | ( ) 8 | | | | | | | | planting instructions. A | | | | | ( ) 9 | | | | | | | | perfect gift! indoor | | | | | ( ) 10 | | | | | | | | plant | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | Red Lion Amaryllis Kit | | $1 | | | | | | | | | This great gift kit | | 5. | | |--------| | | | | | | | includes 1 | | 00 | | | (*) 0 | | | | | | | | | | | | | ( ) 1 | | | | | | | | | | | | | ( ) 2 | | | | | | | | large Amaryllis bulb, a | | | | | ( ) 3 | | | | | | | | white plastic pot and | | | | | ( ) 4 | | | | | | | | saucer, growing | | | | | ( ) 5 | | | | | | | | medium and instructions. | | | | | ( ) 6 | | | | | | | | Long lasting flowers; 18 | | | | | ( ) 7 | | | | | | | | - 24* tall. | | | | | ( ) 8 | | | | | | | | indoor plant | | | | | ( ) 9 | | | | | | | | | | | | | ( ) 10 | | | | | | | | | | | | |--------| | | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| | | | | | | | | | | | | | | | | | To | | | r | | | | | | | | ta | | | = | | | | | | | | l | | | n | | | | | | | | Co | | | o | | | | | | | | st | | | , | | | | | | | | | | | | | | | | | | | | | | | | |--+------+--+---------------------------+--+-----+--+-------------+---+--| Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From Esther_Strom at hmco.com Thu Aug 23 09:18:09 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Thu, 23 Aug 2001 09:18:09 -0500 Subject: [Javascript] innerHTML Message-ID: Actually innerHTML has been around since IE4, not 5. "Cutter Bl" cc: Sent by: Subject: Re: [Javascript] innerHTML javascript-admin@ LaTech.edu 08/23/01 07:35 AM Please respond to javascript innerHTML is a property first accessable within IE5, so if you need backwards compatability it might not be the route to go. I'm not sure how well it's supported by NN. NN6 might handle it, I've heard it can be extremely buggy in NN4.x. A nice source of information can be found on the Microsoft site. There is also a stellar example explanation on fellow lister Peter-Paul Koch's site. Cutter Falcon Knives ----Original Message Follows---- From: hormuz maloo Reply-To: javascript at LaTech.edu To: "'javascript at LaTech.edu'" Subject: [Javascript] innerHTML Date: Thu, 23 Aug 2001 10:11:28 +0530 Can somebody please elaborate a little on "innerHTML". I have heard it mentioned at various places. What does it do exactly? Is it part of JavaScript, CSS, or what? Will appreciate a short summary or some good links on the topic. Thanks in advance, Hormuz Date: Mon, 20 Aug 2001 08:44:36 -0700 Subject: Re: [Javascript] getting text from another page From: Ben Curtis To: Reply-To: javascript at LaTech.edu > I need to grab some text from one HTML page and put it on another. > > The text conveniently sits inbetween some tags called > > How do I go about getting this text on another html page? >I would suggest going server-side with this; PHP, Perl, ASP, or ColdFusion >would do nicely. If, for some reason, you *need* to do this clientside, then >you will need to make sure the two pages are in the same domain. With IE or >N6 you can then get the innerHTML of the page, and use a regular expression >to find the relevant string. Could be a lot of work or piece of cake. Good >luck. >-- >+Ben Curtis >"One of the symptoms of an approaching nervous breakdown >is the belief that one's work is terribly important." >- Bertrand Russell (1872-1970) Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From Esther_Strom at hmco.com Thu Aug 23 09:21:14 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Thu, 23 Aug 2001 09:21:14 -0500 Subject: [Javascript] Calculate on demand... Message-ID: Just type view-source:http://www.axismicro.com/products/custom/custom.js in your browser's location bar (if you look in the code of the main page, you can see they're using an external .js file.) queequeg_x at yahoo. com To: Javascript at LaTech.edu Sent by: cc: javascript-admin@ Subject: [Javascript] Calculate on demand... LaTech.edu 08/23/01 08:34 AM Please respond to javascript http://www.axismicro.com/products/custom/index.html Anyone know where I can get code for an operation such as this one? (This particular developer used FrontPage web bots) Thanks you mucho in advance! -rene _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From gassinaumasis at hotmail.com Thu Aug 23 09:21:58 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Thu, 23 Aug 2001 14:21:58 +0000 Subject: [Javascript] innerHTML Message-ID: >Can somebody please elaborate a little on "innerHTML". I have heard it >mentioned at various places. What does it do exactly? Is it part of >JavaScript, CSS, or what? Will appreciate a short summary or some good >links on the topic. innerHTML is JavaScript, originally a Microsoft invention, first implemented in IE4. It gives access to the HTML + text that is inside a certain HTML element (a DIV), for instance. It is very powerful because you can change the HTML. Suppose you have this DIV:
This is some really cool text.
If you say document.getElementById('test').innerHTML = 'But this is boring text'; the content of the DIV changes immediately. Not supported in NN4, but it is in Netscape 6 and all modern browsers supporting the W3C DOM. Although it is not part of the W3C specification it is so useful that it should. There also exists innerText, which is the same execpt that it doesn't take notice of any HTML tags. Finally you have outerHTML and outerText, these are almost the same except that they also contain the HTML tag itself (in my example it contains the DIV ID="test"). ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From gassinaumasis at hotmail.com Thu Aug 23 09:23:29 2001 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Thu, 23 Aug 2001 14:23:29 +0000 Subject: [Javascript] Today Message-ID: >And how does it display in Netscape? Not sure. Since NN doesn't support fullscreen, I guess you get a normal window with the size you want. ppk > > > > Works only in IE Windows: open the window with fullscreen=yes in the > > window.open arguments, then do a self.resizeTo(x,y) the width and height >you like. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From BELANGERJ at EM.AGR.CA Thu Aug 23 09:36:19 2001 From: BELANGERJ at EM.AGR.CA (Jason Belanger) Date: Thu, 23 Aug 2001 10:36:19 -0400 Subject: [Javascript] doing totals of form values client side-examples - Solved Message-ID: Thanks Cutter! it worked. JAson NN doesn't seem to like handling the selectbox very well. You kinda have to go a convoluted route to get your values... strMyValue = thisForm.MyValue.options[thisForm.MyValue.selectedIndex].value; Jason Belanger Web Technologies System Specialist (613) 759-7809 belangerj at em.agr.ca http://www.agr.ca/ From lau at goldenweb.com.au Thu Aug 23 09:53:30 2001 From: lau at goldenweb.com.au (Lau) Date: Fri, 24 Aug 2001 00:53:30 +1000 Subject: [Javascript] innerHTML References: Message-ID: <00ba01c12be3$62476060$6700a8c0@laubox> With NN4 you have to use layers instead of innerHTML ... which means that your object has to be absolutely positioned... no such restrictions with IE or NN6. Here's some cross-browser code that will do it for you.
Enjoy, Lau :-) ----- Original Message ----- From: Cutter Bl To: javascript at LaTech.edu Sent: Thursday, August 23, 2001 10:35 PM Subject: Re: [Javascript] innerHTML innerHTML is a property first accessable within IE5, so if you need backwards compatability it might not be the route to go. I'm not sure how well it's supported by NN. NN6 might handle it, I've heard it can be extremely buggy in NN4.x. A nice source of information can be found on the Microsoft site. There is also a stellar example explanation on fellow lister Peter-Paul Koch's site. Cutter Falcon Knives ----Original Message Follows---- From: hormuz maloo Reply-To: javascript at LaTech.edu To: "'javascript at LaTech.edu'" Subject: [Javascript] innerHTML Date: Thu, 23 Aug 2001 10:11:28 +0530 Can somebody please elaborate a little on "innerHTML". I have heard it mentioned at various places. What does it do exactly? Is it part of JavaScript, CSS, or what? Will appreciate a short summary or some good links on the topic. Thanks in advance, Hormuz Date: Mon, 20 Aug 2001 08:44:36 -0700 Subject: Re: [Javascript] getting text from another page From: Ben Curtis To: Reply-To: javascript at LaTech.edu > I need to grab some text from one HTML page and put it on another. > > The text conveniently sits inbetween some tags called > > How do I go about getting this text on another html page? >I would suggest going server-side with this; PHP, Perl, ASP, or ColdFusion >would do nicely. If, for some reason, you *need* to do this clientside, then >you will need to make sure the two pages are in the same domain. With IE or >N6 you can then get the innerHTML of the page, and use a regular expression >to find the relevant string. Could be a lot of work or piece of cake. Good >luck. >-- >+Ben Curtis >"One of the symptoms of an approaching nervous breakdown >is the belief that one's work is terribly important." >- Bertrand Russell (1872-1970) Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From phumes1 at home.com Thu Aug 23 13:31:31 2001 From: phumes1 at home.com (phumes1 at home.com) Date: Thu, 23 Aug 2001 14:31:31 -0400 Subject: [Javascript] Re: Folder-tree by Marcelino Martins (Explorer like interface) Message-ID: <5.1.0.14.0.20010823142846.009f01d0@mail.wlfdle1.on.wave.home.com> http://www.geocities.com/marcelino_martins/ftv2instructions.html Help!!!! I'm using the script above but I'm having some trouble running it. I keep getting IE errors when loading my index.html page. I have a list of sixteen chapters with headings/sub-headings etc totalling 740 lines. When I load the page or do a refresh I *always* get the following message under IE: "A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script? Yes No This would be unfortunate if the above error could not be fixed. Anyone have a fix for this? From cutterbl at hotmail.com Thu Aug 23 15:18:23 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 23 Aug 2001 16:18:23 -0400 Subject: [Javascript] Calculate on demand... Message-ID: An HTML attachment was scrubbed... URL: From Esther_Strom at hmco.com Thu Aug 23 15:26:20 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Thu, 23 Aug 2001 15:26:20 -0500 Subject: [Javascript] Calculate on demand... Message-ID: I think it was the automatically updating prices (the total changes when you make different choices from the dropdowns.) In any case, all he needs to do is a view-source on the external js file being used in the index file. "Cutter Bl" cc: Sent by: Subject: Re: [Javascript] Calculate on demand... javascript-admin@ LaTech.edu 08/23/01 03:18 PM Please respond to javascript An operation such as which one? The only operation I see here is an image rollover. Anybody else see anything? Cutter Falcon Knives ----Original Message Follows---- From: queequeg_x at yahoo.com http://www.axismicro.com/products/custom/index.html Anyone know where I can get code for an operation such as this one? (This particular developer used FrontPage web bots) Thanks you mucho in advance! -rene _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From cutterbl at hotmail.com Thu Aug 23 15:26:36 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 23 Aug 2001 16:26:36 -0400 Subject: [Javascript] innerHTML Message-ID: An HTML attachment was scrubbed... URL: From Esther_Strom at hmco.com Thu Aug 23 15:29:49 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Thu, 23 Aug 2001 15:29:49 -0500 Subject: [Javascript] Calculate on demand... Message-ID: OK, if you're using Netscape 4.x you won't see it...it only seems to work in IE, which doesn't surprise me if the javascript is FrontPage-generated...it's pretty easy to adapt to Netscape; I used functionality like this for NS 4.x several years ago. Esther Strom To: javascript at LaTech.edu 08/23/01 03:26 cc: PM Subject: Re: [Javascript] Calculate on demand...(Document link: Esther Strom) I think it was the automatically updating prices (the total changes when you make different choices from the dropdowns.) In any case, all he needs to do is a view-source on the external js file being used in the index file. "Cutter Bl" cc: Sent by: Subject: Re: [Javascript] Calculate on demand... javascript-admin@ LaTech.edu 08/23/01 03:18 PM Please respond to javascript An operation such as which one? The only operation I see here is an image rollover. Anybody else see anything? Cutter Falcon Knives ----Original Message Follows---- From: queequeg_x at yahoo.com http://www.axismicro.com/products/custom/index.html Anyone know where I can get code for an operation such as this one? (This particular developer used FrontPage web bots) Thanks you mucho in advance! -rene _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From cutterbl at hotmail.com Thu Aug 23 15:39:15 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 23 Aug 2001 16:39:15 -0400 Subject: [Javascript] Calculate on demand...(OT) Message-ID: An HTML attachment was scrubbed... URL: From Esther_Strom at hmco.com Thu Aug 23 15:46:36 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Thu, 23 Aug 2001 15:46:36 -0500 Subject: [Javascript] innerHTML Message-ID: I will keep my opinions of Microsoft to myself in an attempt to avoid starting a war, but that statement isn't just misleading, it's flat-out wrong. There's an article on MSDN (one of many, I'm sure) about data-binding that uses innerHTML. The date on the article (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndude/html/dude1103.asp)? November 1997, well before IE5 became available. Maybe your article meant that the property is accessible other times in previous versions, but only available at runtime in IE5. Who knows? "Cutter Bl" cc: Sent by: Subject: Re: [Javascript] innerHTML javascript-admin@ LaTech.edu 08/23/01 03:26 PM Please respond to javascript Sorry Esther, I should never read what Microsoft says (buncha rotten....). MSDN is not always very clear... This property is accessible at run time, as of Microsoft? Internet Explorer 5. Removing elements at run time, before the closing tag is parsed, could prevent other areas of the document from rendering. The statement is a bit misleading. Cutter Falcon Knives ----Original Message Follows---- From: Esther_Strom at hmco.com Reply-To: javascript at LaTech.edu To: javascript at LaTech.edu Subject: Re: [Javascript] innerHTML Date: Thu, 23 Aug 2001 09:18:09 -0500 Actually innerHTML has been around since IE4, not 5. "Cutter Bl" .com> cc: Sent by: Subject: Re: [Javascript] innerHTML javascript-admin@ LaTech.edu 08/23/01 07:35 AM Please respond to javascript innerHTML is a property first accessable within IE5, so if you need backwards compatability it might not be the route to go. I'm not sure how well it's supported by NN. NN6 might handle it, I've heard it can be extremely buggy in NN4.x. A nice source of information can be found on the Microsoft site. There is also a stellar example explanation on fellow lister Peter-Paul Koch's site. Cutter Falcon Knives ----Original Message Follows---- From: hormuz maloo Reply-To: javascript at LaTech.edu To: "'javascript at LaTech.edu'" Subject: [Javascript] innerHTML Date: Thu, 23 Aug 2001 10:11:28 +0530 Can somebody please elaborate a little on "innerHTML". I have heard it mentioned at various places. What does it do exactly? Is it part of JavaScript, CSS, or what? Will appreciate a short summary or some good links on the topic. Thanks in advance, Hormuz Date: Mon, 20 Aug 2001 08:44:36 -0700 Subject: Re: [Javascript] getting text from another page From: Ben Curtis To: Reply-To: javascript at LaTech.edu > I need to grab some text from one HTML page and put it on another. > > The text conveniently sits inbetween some tags called > > How do I go about getting this text on another html page? >I would suggest going server-side with this; PH! P, Perl, ASP, or ColdFusion >would do nicely. If, for s ome reason, you *need* to do this clientside, then >you will need to make sure the two pages are in the same domain. With IE or >N6 you can then get the innerHTML of the page, and use a regular expression >to find the relevant string. Could be a lot of work or piece of cake. Good >luck. >-- >+Ben Curtis >"One of the symptoms of an approaching nervous breakdown >is the belief that one's work is terribly important." >- Bertrand Russell (1872-1970) Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript Get your FREE download of MS! N Explorer at http://explorer.msn.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From lau at goldenweb.com.au Fri Aug 24 03:37:58 2001 From: lau at goldenweb.com.au (Lau) Date: Fri, 24 Aug 2001 18:37:58 +1000 Subject: [Javascript] changing style sheet properties References: Message-ID: <010b01c12c78$160f8ca0$6700a8c0@laubox> I have a style sheet that I include in all my pages thus: it contains the following style definition: TD.LstVl{ background:#FFFFE6; vertical-align:top; text-align:left; font:11px verdana; color:#000000; } Now for one particular page I want to change: vertical-align:top; to vertical-align:middle; I know that if I gave all my 's ID's then I could change them individualy using mytdid.style.vertical-align=middle but its impossible to do that as I'm generating my page using ASP and I won't know how many 's there will be. There are several long and complicated reasons why I don't want to add another definition to my style sheet. Thanks in advance for your help. Lau From cutterbl at hotmail.com Fri Aug 24 07:20:55 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Fri, 24 Aug 2001 08:20:55 -0400 Subject: [Javascript] changing style sheet properties Message-ID: An HTML attachment was scrubbed... URL: From yili1998 at yahoo.com Fri Aug 24 10:11:31 2001 From: yili1998 at yahoo.com (Yi Li) Date: Fri, 24 Aug 2001 08:11:31 -0700 (PDT) Subject: [Javascript] Book exchange Message-ID: <20010824151131.52323.qmail@web11606.mail.yahoo.com> Hi, I got a brand new book "Dhtml and Javascript", for more info, please go to: http://www.bookpool.com/.x/qscqkhm00m/ss/1?qs=0-13-086334-3&Go.x=20&Go.y=13 http://www.amazon.com/exec/obidos/ASIN/0130863343/qid=998664925/sr=1-3/ref=sc_b_3/102-2867369-6939345 I'd like to exchange with "Beginning Active Server Pages 3.0" http://www.bookpool.com/.x/qscqkht8fr/sm/1861003382 Is anyone interested in? Thanks. Yi Li __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ From admin at myinternethandyman.com Mon Aug 27 04:32:05 2001 From: admin at myinternethandyman.com (Jay Lepore) Date: Mon, 27 Aug 2001 05:32:05 -0400 Subject: [Javascript] Named Layers in IE In-Reply-To: <20010823170124.AABFF337B1@scorpion.LaTech.edu> Message-ID: <000001c12edb$2353e220$90f01ad1@golfpactravel.com> Hello, If I want to display a list of just the named layers in Netscape, I could use this code: var layersln; var layernm=""; layerslen=window.document.layers.length; for(index=0;index Message-ID: <007e01c12f0e$6f4958d0$e22d200a@PMBRUNON> You mean by cycling through document.all? Why don't you just check for a value of .name, and if none exists, you disregard it? Seems like the DOM is being even more helpful than you need. ----- Original Message ----- From: "Jay Lepore" To: Sent: Monday, August 27, 2001 4:32 AM Subject: [Javascript] Named Layers in IE | Hello, | | If I want to display a list of just the named layers in Netscape, I | could use this code: | | var layersln; | var layernm=""; | layerslen=window.document.layers.length; | for(index=0;index Message-ID: <002b01c12f1c$b53c4420$6700a8c0@laubox> I have a FORM that may have N fields with the same name. How can I loop through them when I don't know how many there are... there may be none. something like this: for (i=1;i <002b01c12f1c$b53c4420$6700a8c0@laubox> Message-ID: <007e01c12f23$2309f320$d38627d8@mallard> If you have more than one element with the same name, when you use document.form1.MyField you get the collection, then loop through that to get the names. var arrMyField = document.Form1.MyField; if(arrMyField.length>0){ for(i=0;i To: Sent: Monday, August 27, 2001 10:21 AM Subject: Re: [Javascript] Named Layers in IE > I have a FORM that may have N fields with the same name. > How can I loop through them when I don't know how many there are... there may be none. > > something like this: > > for (i=1;i alert(document.Form1.MyField[i]) > } > > Thanks in advance > Lau > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > From lau at goldenweb.com.au Mon Aug 27 13:40:15 2001 From: lau at goldenweb.com.au (Lau) Date: Tue, 28 Aug 2001 04:40:15 +1000 Subject: Looping though multiple fields - misnamed as [Javascript] Named Layers in IE References: <000001c12edb$2353e220$90f01ad1@golfpactravel.com> <002b01c12f1c$b53c4420$6700a8c0@laubox> <007e01c12f23$2309f320$d38627d8@mallard> Message-ID: <006801c12f27$b7aa35e0$6700a8c0@laubox> Thanks Tom, Unfortunately this script doesn't handle the cases where the number of fields in 0 or 1. I can add in the convoluted extra bits to handle these cases but I'm hoping there's another way. I vaguely remmember reading something where they did this by looping through the collection rather than an array.... any ideas? Thanks Lau ----- Original Message ----- From: TomMallard To: Sent: Tuesday, August 28, 2001 4:07 AM Subject: Re: [Javascript] Named Layers in IE > If you have more than one element with the same name, when you use > document.form1.MyField you get the collection, then loop through that to get > the names. > > var arrMyField = document.Form1.MyField; > if(arrMyField.length>0){ > for(i=0;i ...process arrMyField[i].name... > } > } > > tom mallard > seattle > ----- Original Message ----- > From: "Lau" > To: > Sent: Monday, August 27, 2001 10:21 AM > Subject: Re: [Javascript] Named Layers in IE > > > > I have a FORM that may have N fields with the same name. > > How can I loop through them when I don't know how many there are... there > may be none. > > > > something like this: > > > > for (i=1;i > alert(document.Form1.MyField[i]) > > } > > > > Thanks in advance > > Lau > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > http://www.LaTech.edu/mailman/listinfo/javascript > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > > From mallard at serv.net Mon Aug 27 15:20:03 2001 From: mallard at serv.net (TomMallard) Date: Mon, 27 Aug 2001 13:20:03 -0700 Subject: Looping though multiple fields - misnamed as [Javascript] Named Layers in IE References: <000001c12edb$2353e220$90f01ad1@golfpactravel.com> <002b01c12f1c$b53c4420$6700a8c0@laubox> <007e01c12f23$2309f320$d38627d8@mallard> <006801c12f27$b7aa35e0$6700a8c0@laubox> Message-ID: <00a201c12f35$a8f53960$d38627d8@mallard> Correct, you have to add the tests for those cases and handle them separately. if(typeOf(document.Form1.MyField[i]) != 'object'){ ...there are 0 or 1 so use name... if(document.Form1.MyField.name == 'someName'){ var strName = document.Form1.MyField.value; } }else{ var arrMyField = document.Form1.MyField; if(arrMyField.length>0){ for(i=0;i To: Sent: Monday, August 27, 2001 11:40 AM Subject: Re: Looping though multiple fields - misnamed as [Javascript] Named Layers in IE > Thanks Tom, > > Unfortunately this script doesn't handle the cases where the number of fields in 0 or 1. > I can add in the convoluted extra bits to handle these cases but I'm hoping there's another way. > I vaguely remmember reading something where they did this by looping through the collection rather > than an array.... any ideas? > > Thanks > Lau > > > ----- Original Message ----- > From: TomMallard > To: > Sent: Tuesday, August 28, 2001 4:07 AM > Subject: Re: [Javascript] Named Layers in IE > > > > If you have more than one element with the same name, when you use > > document.form1.MyField you get the collection, then loop through that to get > > the names. > > > > var arrMyField = document.Form1.MyField; > > if(arrMyField.length>0){ > > for(i=0;i > ...process arrMyField[i].name... > > } > > } > > > > tom mallard > > seattle > > ----- Original Message ----- > > From: "Lau" > > To: > > Sent: Monday, August 27, 2001 10:21 AM > > Subject: Re: [Javascript] Named Layers in IE > > > > > > > I have a FORM that may have N fields with the same name. > > > How can I loop through them when I don't know how many there are... there > > may be none. > > > > > > something like this: > > > > > > for (i=1;i > > alert(document.Form1.MyField[i]) > > > } > > > > > > Thanks in advance > > > Lau > > > > > > _______________________________________________ > > > Javascript mailing list > > > Javascript at LaTech.edu > > > http://www.LaTech.edu/mailman/listinfo/javascript > > > > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > http://www.LaTech.edu/mailman/listinfo/javascript > > > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > From jkcravy at cox-internet.com Mon Aug 27 17:49:54 2001 From: jkcravy at cox-internet.com (Kelly) Date: Mon, 27 Aug 2001 17:49:54 -0500 Subject: [Javascript] Form value Message-ID: <5.1.0.14.0.20010827174702.009eea70@pop.cox-internet.com> Hi,
This works ok with a varible for the form name. Can value = (be a varible) or must it be like : value = "1" or 1 or "Hello" But always pre-set. Thanks, Kelly From lau at goldenweb.com.au Tue Aug 28 02:14:31 2001 From: lau at goldenweb.com.au (Lau) Date: Tue, 28 Aug 2001 17:14:31 +1000 Subject: [Javascript] Form value References: <5.1.0.14.0.20010827174702.009eea70@pop.cox-internet.com> Message-ID: <000801c12f91$18061620$6700a8c0@laubox> No, it can only be a pre-set value. But you can allways use javascript to change the value after it has been loaded. window.document.Form1.quantity=3; regards, Lau ----- Original Message ----- From: Kelly To: Sent: Tuesday, August 28, 2001 8:49 AM Subject: [Javascript] Form value > Hi, > >
> > >
> > This works ok with a varible for the > form name. > > Can value = (be a varible) > > or must it be like : > value = "1" or 1 or "Hello" > But always pre-set. > > Thanks, Kelly > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > > From bruno.lanciau at cnes.fr Tue Aug 28 03:41:33 2001 From: bruno.lanciau at cnes.fr (Felix) Date: Tue, 28 Aug 2001 10:41:33 +0200 Subject: [Javascript] DIV in a DIV Message-ID: <200108280843.KAA25626@cnes.fr> Here is my problem: (no problem with IE but with Netcape 4+) I have got one div in an other div:
.......
In a function document.boite1.width=600; // Is OK, but how to do the same with boite2 ? Neither document.boite2.width=600 nor document.boite1.boite2.width=600 are OK ! Thank you for help Felix -------------- next part -------------- An HTML attachment was scrubbed... URL: From LMuchacho at twii.net Tue Aug 28 04:35:39 2001 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Tue, 28 Aug 2001 10:35:39 +0100 Subject: [Javascript] DIV in a DIV Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC027C2EC2@lonmail.twii.net> Hi Felix I think you can have a try with that document.parentLayer.document.childLayer.propertyName I Think it will work [Muchacho, Laurent (TWIi London)] http://www.dansteinman.com/dynduo -----Original Message----- From: Felix [mailto:bruno.lanciau at cnes.fr] Sent: 28 August 2001 09:42 To: javascript at latech.edu Subject: [Javascript] DIV in a DIV Here is my problem: (no problem with IE but with Netcape 4+) I have got one div in an other div:
.......
In a function document.boite1.width=600; // Is OK, but how to do the same with boite2 ? Neither document.boite2.width=600 nor document.boite1.boite2.width=600 are OK ! Thank you for help Felix -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.lanciau at cnes.fr Tue Aug 28 11:29:37 2001 From: bruno.lanciau at cnes.fr (Felix) Date: Tue, 28 Aug 2001 18:29:37 +0200 Subject: [Javascript] headache: Div resize Message-ID: <200108281631.SAA21727@cnes.fr> please look at this code for Netscape4+ : When client resizes, the message scrolling window always fit the 1/2 of de screen and is centered but text inside is troncated. Have you got an idea Thank you Felix -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.lanciau at cnes.fr Wed Aug 29 04:59:52 2001 From: bruno.lanciau at cnes.fr (Felix) Date: Wed, 29 Aug 2001 11:59:52 +0200 Subject: [[Javascript] headache: Div resize (modified) References: <200108281631.SAA21727@cnes.fr> Message-ID: <200108291005.f7TA59U26975@cnes.fr> please look at this code for Netscape4+ only: http://www.ifrance.com/Chez-Felix/javascript/essai.htm When client resizes, the message scrolling window always fits the 1/2 of the screen and is centered but text inside is truncated. You can look at http://www.ifrance.com/Chez-Felix/javascript/ScrollerIE.htm to see the IE version, to understand what i expect Have you got an idea Thank you Felix -------------- next part -------------- An HTML attachment was scrubbed... URL: From Esther_Strom at hmco.com Wed Aug 29 09:16:13 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Wed, 29 Aug 2001 09:16:13 -0500 Subject: [Javascript] Netscape 6 javascript console Message-ID: Can someone tell me how to find javascript errors in Netscape 6? Can you still type javascript: in the location bar and get the error console? Thanks, Esther From staeger at arch.ethz.ch Wed Aug 29 09:26:05 2001 From: staeger at arch.ethz.ch (staeger) Date: Wed, 29 Aug 2001 16:26:05 +0200 Subject: [Javascript] Netscape 6 javascript console References: Message-ID: <3B8CFB7D.C83DBDFB@arch.ethz.ch> Esther_Strom at hmco.com wrote: > > Can someone tell me how to find javascript errors in Netscape 6? Can you > still type javascript: in the location bar and get the error console? > > Thanks, > > Esther no, but there is an option : Tasks > Tools > JavaScript Console greets./ -- ----------------------------------------------------------------- benjamin staeger swiss federal institute of technology architecture & caad mailto:staeger at arch.ethz.ch http://caad.arch.ethz.ch/~staeger ----------------------------------------------------------------- Always listen to experts. They'll tell you what can't be done, and why. Then do it. From Esther_Strom at hmco.com Wed Aug 29 09:33:16 2001 From: Esther_Strom at hmco.com (Esther_Strom at hmco.com) Date: Wed, 29 Aug 2001 09:33:16 -0500 Subject: [Javascript] Netscape 6 javascript console Message-ID: Thanks... staeger cc: Sent by: Subject: Re: [Javascript] Netscape 6 javascript console javascript-admin@ LaTech.edu 08/29/01 09:26 AM Please respond to javascript Esther_Strom at hmco.com wrote: > > Can someone tell me how to find javascript errors in Netscape 6? Can you > still type javascript: in the location bar and get the error console? > > Thanks, > > Esther no, but there is an option : Tasks > Tools > JavaScript Console greets./ -- ----------------------------------------------------------------- benjamin staeger swiss federal institute of technology architecture & caad mailto:staeger at arch.ethz.ch http://caad.arch.ethz.ch/~staeger ----------------------------------------------------------------- Always listen to experts. They'll tell you what can't be done, and why. Then do it. _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From cutterbl at hotmail.com Wed Aug 29 15:53:49 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Wed, 29 Aug 2001 16:53:49 -0400 Subject: [Javascript] (OT) vacation? Message-ID: An HTML attachment was scrubbed... URL: From bill.marriott at optusnet.com.au Wed Aug 29 16:10:40 2001 From: bill.marriott at optusnet.com.au (Bill Marriott) Date: Thu, 30 Aug 2001 07:10:40 +1000 Subject: [Javascript] Netscape 6 javascript console References: <3B8CFB7D.C83DBDFB@arch.ethz.ch> Message-ID: <000d01c130cf$0f90dcc0$b0b48ec6@desktop> Hi everyone, I keep getting the Error : Invalid Character in the code below. It says Line 107 which I think is for (intElementNr = 0; intElementNr < strSeparatorArray.length; intElementNr++) Can anyone see the problem. Thanks Bill function checkdate(objName) { var datefield = objName; if (chkdate(objName) == false) { datefield.select(); alert("That date is invalid. Please try again."); datefield.focus(); return false; } else { return true; } } function chkdate(objName) { var strDatestyle = "EU"; // date style var strDate; var strDateArray; var strDay; var strMonth; var strYear; var intday; var intMonth; var intYear; var booFound = false; var datefield = objName; var strSeparatorArray = new Array("-"," ","/","."); var intElementNr; var err = 0; strDate = datefield.value; if (strDate.length < 1) { return true; } for (intElementNr = 0; intElementNr < strSeparatorArray.length; intElementNr++) { if (strDate.indexOf(strSeparatorArray[intElementNr]) != -1) { strDateArray = strDate.split(strSeparatorArray[intElementNr]); { if (strDateArray.length != 3) { err = 1; return false; } else { strDay = strDateArray[0]; strMonth = strDateArray[1]; strYear = strDateArray[2]; } booFound = true; } } if (booFound == false) { if (strDate.length > 5) { strDay = strDate.substr(0, 2); strMonth = strDate.substr(2, 2); strYear = strDate.substr(4); } } if (strYear.length == 2) { strYear = '20' + strYear; } intday = parseInt(strDay, 10) if (isNaN(intday)) { err = 2; return false; } intMonth = parseInt(strMonth, 10); if (isNaN(intMonth)) { for (i = 0; i < 12; i++) { if (strMonth.toUpperCase() == strMonthArray[i].toUpperCase()) { intMonth = i+1; i = 12; } } if (isNaN(intMonth)) { err = 3; return false; } } intYear = parseInt(strYear, 10); if (isNaN(intYear)) { err = 4; return false; } if (intMonth > 12 || intMonth < 1) { err = 5; return false; } if ((intMonth == 1 || intMonth == 3 || intMonth == 5 || intMonth == 7 || intMonth == 8 || intMonth == 10 || intMonth == 12) && (intday > 31 || intday < 1)) { err = 6; return false; } if ((intMonth == 4 || intMonth == 6 || intMonth == 9 || intMonth == 11) && (intday > 30 || intday < 1)) { err = 7; return false; } if (intMonth == 2) { if (intDay < 1) { err = 8; return false; } if (LeapYear(intYear) == true) { if (intday > 29) { err = 9; return false; } } else { if (intday > 28) { err = 10; return false; } } } datefield.value = intday + "/" + intMonth + "/" + strYear; return true; } function LeapYear(intYear) { if (intYear % 100 == 0) { if (intYear % 400 == 0) { return true; } } else { if ((intYear % 4) == 0) { return true; } } return false; From bruno.lanciau at cnes.fr Thu Aug 30 03:17:19 2001 From: bruno.lanciau at cnes.fr (Felix) Date: Thu, 30 Aug 2001 10:17:19 +0200 Subject: [Javascript] Netscape 6 javascript console References: <3B8CFB7D.C83DBDFB@arch.ethz.ch> <000d01c130cf$0f90dcc0$b0b48ec6@desktop> Message-ID: <200108300819.KAA24323@cnes.fr> Why did you put "{.........}" > for (intElementNr = 0; intElementNr < strSeparatorArray.length; > intElementNr++) > { > if (strDate.indexOf(strSeparatorArray[intElementNr]) != -1) > { > strDateArray = strDate.split(strSeparatorArray[intElementNr]); > {......} the ligne before ? I cannot understand A+ Felix From mrees at twii.net Thu Aug 30 04:30:33 2001 From: mrees at twii.net (Rees, Mark (TWIi London)) Date: Thu, 30 Aug 2001 10:30:33 +0100 Subject: [Javascript] RE: Error : Invalid Character Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC02111229@lonmail.twii.net> Hello Try to alert strSeparatorArray.length. Does it give you what you expect? If so, try assigning it to a variable perhaps, so: var x=strSeparatorArray.length for (intElementNr = 0; intElementNr < x;intElementNr++) Also on an unrelated point, it's good to see naming conventions for variables, but since strSeparatorArray is an array perhaps you might use arySeparatorArray or something as its name? Just a thought Cheers Mark -----Original Message----- From: Bill Marriott [mailto:bill.marriott at optusnet.com.au] Sent: 29 August 2001 22:11 To: javascript at LaTech.edu Subject: Re: [Javascript] Netscape 6 javascript console Hi everyone, I keep getting the Error : Invalid Character in the code below. It says Line 107 which I think is for (intElementNr = 0; intElementNr < strSeparatorArray.length; intElementNr++) Can anyone see the problem. Thanks Bill function checkdate(objName) { var datefield = objName; if (chkdate(objName) == false) { datefield.select(); alert("That date is invalid. Please try again."); datefield.focus(); return false; } else { return true; } } function chkdate(objName) { var strDatestyle = "EU"; // date style var strDate; var strDateArray; var strDay; var strMonth; var strYear; var intday; var intMonth; var intYear; var booFound = false; var datefield = objName; var strSeparatorArray = new Array("-"," ","/","."); var intElementNr; var err = 0; strDate = datefield.value; if (strDate.length < 1) { return true; } for (intElementNr = 0; intElementNr < strSeparatorArray.length; intElementNr++) { if (strDate.indexOf(strSeparatorArray[intElementNr]) != -1) { strDateArray = strDate.split(strSeparatorArray[intElementNr]); { if (strDateArray.length != 3) { err = 1; return false; } else { strDay = strDateArray[0]; strMonth = strDateArray[1]; strYear = strDateArray[2]; } booFound = true; } } if (booFound == false) { if (strDate.length > 5) { strDay = strDate.substr(0, 2); strMonth = strDate.substr(2, 2); strYear = strDate.substr(4); } } if (strYear.length == 2) { strYear = '20' + strYear; } intday = parseInt(strDay, 10) if (isNaN(intday)) { err = 2; return false; } intMonth = parseInt(strMonth, 10); if (isNaN(intMonth)) { for (i = 0; i < 12; i++) { if (strMonth.toUpperCase() == strMonthArray[i].toUpperCase()) { intMonth = i+1; i = 12; } } if (isNaN(intMonth)) { err = 3; return false; } } intYear = parseInt(strYear, 10); if (isNaN(intYear)) { err = 4; return false; } if (intMonth > 12 || intMonth < 1) { err = 5; return false; } if ((intMonth == 1 || intMonth == 3 || intMonth == 5 || intMonth == 7 || intMonth == 8 || intMonth == 10 || intMonth == 12) && (intday > 31 || intday < 1)) { err = 6; return false; } if ((intMonth == 4 || intMonth == 6 || intMonth == 9 || intMonth == 11) && (intday > 30 || intday < 1)) { err = 7; return false; } if (intMonth == 2) { if (intDay < 1) { err = 8; return false; } if (LeapYear(intYear) == true) { if (intday > 29) { err = 9; return false; } } else { if (intday > 28) { err = 10; return false; } } } datefield.value = intday + "/" + intMonth + "/" + strYear; return true; } function LeapYear(intYear) { if (intYear % 100 == 0) { if (intYear % 400 == 0) { return true; } } else { if ((intYear % 4) == 0) { return true; } } return false; _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript From Joe.Karau at Kingland.com Thu Aug 30 08:52:58 2001 From: Joe.Karau at Kingland.com (Karau, Joe) Date: Thu, 30 Aug 2001 08:52:58 -0500 Subject: [Javascript] Drop down-menu appears behind form components Message-ID: <88A2C82DD1E1D411A5500050DAC471292E265C@KSCLSRVMAILA> Hi, I've created a drop down-menu using dynamic html. It works fine except for when the menu item is long enough so some of the menu items reach down to a form element. I've tried setting the z-index for the menu items, and for the rest of the page hoping to fix this, but no good. I was wondering if anyone has encountered a similar problem and has found a way to fix it. Or, if anyone has any ideas. Thanks, Joseph Karau Kingland Systems joe.karau at kingland.com 507-536-3629 AIM: jkara3629 From bill.marriott at optusnet.com.au Thu Aug 30 16:52:28 2001 From: bill.marriott at optusnet.com.au (Bill Marriott) Date: Fri, 31 Aug 2001 07:52:28 +1000 Subject: [Javascript] Netscape 6 javascript console References: <3B8CFB7D.C83DBDFB@arch.ethz.ch> <000d01c130cf$0f90dcc0$b0b48ec6@desktop> <200108300819.KAA24323@cnes.fr> Message-ID: <001b01c1319e$10cc41e0$eeb48ec6@desktop> Felix, You might be onto something here. I can't see any {..........} at all but maybee they are there and causing the invalid characters. I'll investigate thanks Bill ----- Original Message ----- From: "Felix" To: Sent: Thursday, August 30, 2001 6:17 PM Subject: Re: [Javascript] Netscape 6 javascript console > Why did you put "{.........}" > > > for (intElementNr = 0; intElementNr < strSeparatorArray.length; > > intElementNr++) > > { > > if (strDate.indexOf(strSeparatorArray[intElementNr]) != -1) > > { > > strDateArray = strDate.split(strSeparatorArray[intElementNr]); > > {......} > > the ligne before ? > > I cannot understand > > A+ > Felix > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript From muthu at jobsearchuk.net Fri Aug 31 08:16:15 2001 From: muthu at jobsearchuk.net (Muthu) Date: Fri, 31 Aug 2001 14:16:15 +0100 Subject: [Javascript] How do i refresh a top frame and pass the value as well from another frame1(*) and want to display banner based on action takes place in frame1(*) Message-ID: Hi, we have developed website using JSP. we want to referesh the top frame and display some banner on top frame using JavaScript. so can you write me with sample code(if possible) how can i code for the same problem. please let me know idea and suggestions. Thanks & Regards, Muthu S. Job Search UK Ltd Tel : 020 7351 5522 Fax: 020 7351 7787 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 17151 bytes Desc: not available URL: From nimaig at wisorindia.soft.net Fri Aug 31 08:52:58 2001 From: nimaig at wisorindia.soft.net (Nimai) Date: Fri, 31 Aug 2001 19:22:58 +0530 Subject: [Javascript] Drop down-menu appears behind form components References: <88A2C82DD1E1D411A5500050DAC471292E265C@KSCLSRVMAILA> Message-ID: <01e001c13224$3e7c75c0$2d02050a@nimai> Hi, Check this URL. http://www.webreference.com/dhtml/column42/11.html Hope this helps. Nimai ----- Original Message ----- From: "Karau, Joe" To: "Javascript - List Serve (E-mail)" Sent: Thursday, August 30, 2001 7:22 PM Subject: [Javascript] Drop down-menu appears behind form components > Hi, I've created a drop down-menu using dynamic html. It works fine except > for when the menu item is long enough so some of the menu items reach down > to a form element. I've tried setting the z-index for the menu items, and > for the rest of the page hoping to fix this, but no good. I was wondering > if anyone has encountered a similar problem and has found a way to fix it. > Or, if anyone has any ideas. > > Thanks, > > Joseph Karau > Kingland Systems > joe.karau at kingland.com > 507-536-3629 > AIM: jkara3629 > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript From jkcravy at cox-internet.com Fri Aug 31 09:08:59 2001 From: jkcravy at cox-internet.com (Kelly) Date: Fri, 31 Aug 2001 09:08:59 -0500 Subject: [Javascript] Saving pages Message-ID: <5.1.0.14.0.20010831090030.009f2120@pop.cox-internet.com> I am using JavaScript to generate product pages from data in a .js file for a small sewing shop store with image links, text and order buttons. Then I copy and paste the code into note pad and save them with .htm extensions. They are simple HTML pages and work just fine. Is there a better and faster way to save the pages ? I am using 98 & IE5.5 Thanks, Kelly From mallard at serv.net Fri Aug 31 10:39:26 2001 From: mallard at serv.net (TomMallard) Date: Fri, 31 Aug 2001 08:39:26 -0700 Subject: [Javascript] Saving pages References: <5.1.0.14.0.20010831090030.009f2120@pop.cox-internet.com> Message-ID: <009701c13233$1f5b90e0$a08727d8@mallard> Saving is server-side, on win98 you'll have Personal Web Server, create a website on your local machine and you can write a JScript page which saves the files directly. Your server side page would use a language statement <%@language="JScript" %> <% var objFSO = new ActiveXObject("Scripting.FileSystemObject"); ...open a new file with create option using path to where you want it ...write the text ...close the file and add objFSO = null %> HTH, tom mallard seattle ----- Original Message ----- From: "Kelly" To: Sent: Friday, August 31, 2001 7:08 AM Subject: [Javascript] Saving pages > I am using JavaScript to generate product pages > from data in a .js file for a small sewing shop store > with image links, text and order buttons. > > Then I copy and paste the code into note pad and > save them with .htm extensions. > > They are simple HTML pages and work just fine. > > Is there a better and faster way to save the pages ? > I am using 98 & IE5.5 > > Thanks, Kelly > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript > From cutterbl at hotmail.com Fri Aug 31 11:40:44 2001 From: cutterbl at hotmail.com (Cutter Bl) Date: Fri, 31 Aug 2001 12:40:44 -0400 Subject: [Javascript] Saving pages Message-ID: An HTML attachment was scrubbed... URL: From jkcravy at cox-internet.com Fri Aug 31 12:21:09 2001 From: jkcravy at cox-internet.com (Kelly) Date: Fri, 31 Aug 2001 12:21:09 -0500 Subject: [Javascript] Saving pages In-Reply-To: Message-ID: <5.1.0.14.0.20010831121642.009e8c60@pop.cox-internet.com> Cutter this works fine. But saving the pages is a manual job using only js. Kelly function Add (a,b,c){ var s= ProdArray.length; ProdArray[s] = a; DescArray[s] = b; CostArray[s] = c; } // .js file Add (product_ID,description,price) Add ('KNS4401', 'Red Bird',6.95); Add ('KNS4402', 'Red Apple',6.95); Add ('DHDL98-05', 'Digitizing Fur-Fins and Feathers', 29.95); Add ('DHDL01-05', 'Digitizing Realistic Birds', 29.95); At 11:40 AM 8/31/2001, you wrote: >On my site, I save all the product info to a database (Product Name, >Price, Description [code], etc.) then pull this info from the db by item >number to dynamically build the item page (one page, fifty products). I >use Cold Fusion for this, but many people like ASP.Could you use the same >concept with a .js file? Probably. How? Good question....Any suggestions? >Cutter >Falcon Knives > > >---------- >Get your FREE download of MSN Explorer at http://explorer.msn.com >_______________________________________________ Javascript mailing list >Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From rer at datacompusa.com Fri Aug 31 12:52:31 2001 From: rer at datacompusa.com (Roger Roelofs) Date: Fri, 31 Aug 2001 13:52:31 -0400 Subject: [Javascript] Saving pages (a different solution) In-Reply-To: <20010831170108.CE60233777@scorpion.LaTech.edu> Message-ID: <200108311752.NAA26671@jupiter.datacompappraisal.com> You could build the page on the fly by saving your data to a .js file...something like // data.js data = new Array(); // ID, Model, Price... data[0] = new Array('XP101','MegaSew101','450.00'); data[1] = new Array('X205','MiniSew205','250.00'); ... Build a generic page that includes the data.js file. Then customize the page on the fly based on which model the user chooses. The big downside is that data sets of more than about 500 rows can be sluggish on older machines. I confess that I typically load the data into a bare page in an invisible frame so I don't have to re-request it from the server more than once per session. On Friday, August 31, 2001, at 01:01 PM, javascript-request at LaTech.edu wrote: > > I am using JavaScript to generate product pages > from data in a .js file for a small sewing shop store > with image links, text and order buttons. > > Then I copy and paste the code into note pad and > save them with .htm extensions. > > They are simple HTML pages and work just fine. > > Is there a better and faster way to save the pages ? > I am using 98 & IE5.5 > > Thanks, Kelly > Roger, Roger Roelofs Phone 616 574-0480 x246 Datacomp Appraisal Services Fax 616 574-0486 3215 Eaglecrest Drive, NE Suite 100 email rer at datacompusa.com Grand Rapids, MI 49525-4593 web www.datacompusa.com From andyg at ihug.co.nz Fri Aug 31 21:01:27 2001 From: andyg at ihug.co.nz (Andrew Gibson) Date: Sat, 1 Sep 2001 14:01:27 +1200 Subject: [Javascript] Drop down-menu appears behind form components In-Reply-To: <01e001c13224$3e7c75c0$2d02050a@nimai> Message-ID: My understanding is that you can't have a div over a form, the form will always come thru. As in the example below, a solution could be to hide the form, or maybe drop the form down out of harms way! Andrew Gibson > Hi, > Check this URL. > http://www.webreference.com/dhtml/column42/11.html > Hope this helps. > > Nimai > Subject: [Javascript] Drop down-menu appears behind form components > > Hi, I've created a drop down-menu using dynamic html. It works fine > except > > for when the menu item is long enough so some of the menu > items reach down > > to a form element. I've tried setting the z-index for the > menu items, and > > for the rest of the page hoping to fix this, but no good. I > was wondering > > if anyone has encountered a similar problem and has found a > way to fix it. > > Or, if anyone has any ideas.