From SnarfLT at aol.com Sat Jun 1 00:56:13 2002 From: SnarfLT at aol.com (SnarfLT at aol.com) Date: Sat, 1 Jun 2002 01:56:13 EDT Subject: [Javascript] Can't get this script to write the cookie Message-ID: 1. EarthWeb.com: The IT Industry Portal ?--? JavaScripts 2. EarthWeb.com: The IT Industry Portal ?--? Cookies 3. Dynamic Drive DHTML(dynamic html) & JavaScript code library! 4. Click here: JavaScript Cookies: Making the Most from the Drudgery of Others 5. JavaScript.com (TM) - The Definitive JavaScript Resource: JavaScript Tutorials and Free Java Scipts 6. The JavaScript Source: Cookie Scripts // Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From SnarfLT at aol.com Sat Jun 1 00:58:39 2002 From: SnarfLT at aol.com (SnarfLT at aol.com) Date: Sat, 1 Jun 2002 01:58:39 EDT Subject: [Javascript] Can't get this script to write the cookie Message-ID: <21.1ec63104.2a29bc8f@aol.com> bad formatting on that note wasn't my fault, aol hates me. // Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From princeofpersia_69 at hotmail.com Sat Jun 1 11:24:13 2002 From: princeofpersia_69 at hotmail.com (Daran Salimian) Date: Sat, 01 Jun 2002 16:24:13 +0000 Subject: [Javascript] Title without brower name in the browser Message-ID: An HTML attachment was scrubbed... URL: From peter at brunone.com Sat Jun 1 11:45:29 2002 From: peter at brunone.com (Peter Brunone) Date: Sat, 1 Jun 2002 11:45:29 -0500 Subject: [Javascript] Title without brower name in the browser In-Reply-To: Message-ID: It's kept in the registry; you'd have to change the registry on every machine that accesses your site. -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Daran Salimian Sent: Saturday, June 01, 2002 11:24 AM To: javascript at LaTech.edu Subject: [Javascript] Title without brower name in the browser How can you get rid of the brower name on the top bar of the browser. In the HTML when you type in a page title, and it appears on the top of the browser, but next to it, it says something like "Internet Explorer", how can you get rid of this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From princeofpersia_69 at hotmail.com Sun Jun 2 07:11:50 2002 From: princeofpersia_69 at hotmail.com (Daran Salimian) Date: Sun, 02 Jun 2002 12:11:50 +0000 Subject: [Javascript] Country List without ASP Message-ID: An HTML attachment was scrubbed... URL: From Murugan.Selvaraj at geind.ge.com Sun Jun 2 07:18:53 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Sun, 2 Jun 2002 17:48:53 +0530 Subject: [Javascript] Country List without ASP Message-ID: <05C613689F01D611AC820002A54177C0018080BF@GIAHYDMSX2.SGE.INDSYS.GE.COM> Hi In order to create the list of country list , you can have the properties file for the list of country .When the page is loaded , get the list of country list from the properties file , then load the same in to the dropdown box. Otherwise hard code the value like this: Let me know the problem solved to not -----Original [Selvaraj, Murugan (Indsys)] Message----- From: Daran Salimian [mailto:princeofpersia_69 at hotmail.com] Sent: Sunday, June 02, 2002 5:42 PM To: javascript at LaTech.edu Subject: [Javascript] Country List without ASP I have a form in dreamweaver. How can I create a list of countries for a user to select from without having to link it to a database? _____ Join the world's largest e-mail service with MSN Hotmail. Click Here _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjmorgan at optushome.com.au Sun Jun 2 07:36:28 2002 From: pjmorgan at optushome.com.au (Phillip Morgan) Date: Sun, 2 Jun 2002 22:36:28 +1000 Subject: [Javascript] Cookie dilemma - still Message-ID: <000201c20a32$201e62a0$0201a8c0@cray> I can't even get the simplest for of a cookie to work. I've got this from a javascript book I've just purchased, but even this doesn't write the cookie. function setCookie(name, value, expires) { document.cookie = name + "=" + escape(value) + expires; } setCookie ("Test", "Test", "Tue, 04-Jun-02 23:45:00 GMT") The index.dat in c:\windows\cookies appears to get updated, but no cookie is written. Help!! phill -------------- next part -------------- An HTML attachment was scrubbed... URL: From SnarfLT at aol.com Sun Jun 2 07:59:43 2002 From: SnarfLT at aol.com (SnarfLT at aol.com) Date: Sun, 2 Jun 2002 08:59:43 EDT Subject: [Javascript] Cookie dilemma - still Message-ID: <4e.c4ad063.2a2b70bf@aol.com> Do you have cookies enabled in your browser? -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjmorgan at optushome.com.au Sun Jun 2 08:23:07 2002 From: pjmorgan at optushome.com.au (Phillip Morgan) Date: Sun, 2 Jun 2002 23:23:07 +1000 Subject: [Javascript] Cookie dilemma - still In-Reply-To: <4e.c4ad063.2a2b70bf@aol.com> Message-ID: <000d01c20a38$a263efe0$0201a8c0@cray> Hi, Yes, cookies are enabled... but... dumb.. dumb.. dumb.. All this while I have been looking for a file in my cookies dir, when all along the cookie has been written in index.dat. A quick test by using the following simple code verified it was actually stored... var myCookie = document.cookie; alert(myCookie); HOWEVER... The following code to retrieve the cookie, failes with "result is undefined". (this code comes directly from my manual). Once I get the value, I need to place it in a form field. If the form is called f1, and the field is called t1, then to get it into the field the statement would be... document.f1.t1.value = result; Right? -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of SnarfLT at aol.com Sent: Sunday, 2 June 2002 11:00 PM To: javascript at LaTech.edu Subject: Re: [Javascript] Cookie dilemma - still Do you have cookies enabled in your browser? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mornevermaak at yahoo.com Sun Jun 2 08:32:24 2002 From: mornevermaak at yahoo.com (morne vermaak) Date: Sun, 2 Jun 2002 06:32:24 -0700 (PDT) Subject: [Javascript] I need to add sound to a button!! Message-ID: <20020602133224.35349.qmail@web14405.mail.yahoo.com> Hello, I know it is kind of personal for me just to e mail you, but I really do need some help on a simple Javascript code, and I am sure that you can help me. I created a web site in Dreamweaver. I created my buttons by saving two separate GIFs and then I just did a simple rollover code in front of every button. It looks fine and it works perfectly. The only problem now is I would like to enter sound for every button. In other Words if the viewer clicks on the button, he must hear a simple sound efffect. Now getting the sound isnt my problem, I don?t know how to add sound to that button!!! Here is my source code, can you check it out and maybe tell me how to put sound in for the buttons. I will REALLY, REALLY appreciate it! Have a nice day! Morne Mornevermaak at yahoo.com Untitled Document
<<<<<>>>>>>>>>
regards, mornevermaak at yahoo.com --------------------------------- Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup -------------- next part -------------- An HTML attachment was scrubbed... URL: From tutwabee at hotmail.com Sun Jun 2 17:47:08 2002 From: tutwabee at hotmail.com (Trey H) Date: Sun, 02 Jun 2002 22:47:08 +0000 Subject: [Javascript] I need to add sound to a button!! Message-ID: I would make a script that changes the background sound for each button. Here is an example of the script: Your button should now look like this: Remember to substitute the 'music.wav' file in the button code for your own sound clip in each button ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: morne vermaak >Reply-To: javascript at LaTech.edu >To: javascript at LaTech.edu >Subject: [Javascript] I need to add sound to a button!! >Date: Sun, 2 Jun 2002 06:32:24 -0700 (PDT) > > >Hello, > >I know it is kind of personal for me just to e mail you, but I really do >need some help on a simple Javascript code, and I am sure that you can help >me. I created a web site in Dreamweaver. I created my buttons by saving two >separate GIFs and then I just did a simple rollover code in front of every >button. It looks fine and it works perfectly. The only problem now is I >would like to enter sound for every button. In other Words if the viewer >clicks on the button, he must hear a simple sound efffect. Now getting the >sound isnt my problem, I don?t know how to add sound to that button!!! Here >is my source code, can you check it out and maybe tell me how to put sound >in for the buttons. I will REALLY, REALLY appreciate it! > >Have a nice day! > >Morne > >Mornevermaak at yahoo.com > > > > > >Untitled Document > > > > > > > >onLoad="MM_preloadImages('ABINUS/Buttons/bbmachines2.gif')"> > > > > > > > > > >regards, mornevermaak at yahoo.com > > > >--------------------------------- >Do You Yahoo!? >Yahoo! - Official partner of 2002 FIFA World Cup _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From pjmorgan at optushome.com.au Sun Jun 2 21:44:48 2002 From: pjmorgan at optushome.com.au (Phillip Morgan) Date: Mon, 3 Jun 2002 12:44:48 +1000 Subject: [Javascript] insert value into form field Message-ID: <002901c20aa8$a0fcc9e0$0201a8c0@cray> Hi, How do I insert a variable into a form field without using document.write. eg. I have a value in variable called xyz. The form is called f1, the field is called t1. How do I get xyz into f1.t1? phill -------------- next part -------------- An HTML attachment was scrubbed... URL: From kaji at umit.maine.edu Sun Jun 2 22:34:13 2002 From: kaji at umit.maine.edu (Joshua Turcotte) Date: Sun, 02 Jun 2002 23:34:13 -0400 Subject: [Javascript] insert value into form field In-Reply-To: <002901c20aa8$a0fcc9e0$0201a8c0@cray> References: <002901c20aa8$a0fcc9e0$0201a8c0@cray> Message-ID: if the form tag references a javascript function onxxxevent="blah(this);" ... ... then within the function you should rather easily be able to say this.t1.value = xyz; xyz may also be something you could pass as an argument from the call to blah()... if you reference the form any less directly, it is typically as f1.t1.value. But, this varies significantly from one browser type to the next and can be a source of frustration. At least for me... with IE, i -believe- it could simply be document.form.f1.t1.value, almost regardless of its nesting within your document... but I'm pretty sure netscape would require you do be more specific... meaning, if it is embedded in a named layer or table or maybe even frame, you'd have to reference these in sequence. the .value = xyz is absolutely right... the rest I've said i've said while in a drowsy state (been reading 'eon' a bit too late recent nights) and truthfully these things tend to bite me frequently when debugging javascripts... so any corrections or backup from the mailing list would be appreciated. _____________________________________________________________ J.e. Turcotte: eMAGERY Founder, Media|Creative Solutions Developer jet at emagery.com, voicemail: (207) 866-4842, www.emagery.com From art_bedla at hotmail.com Mon Jun 3 03:43:36 2002 From: art_bedla at hotmail.com (Martin Podrouzek) Date: Mon, 03 Jun 2002 08:43:36 +0000 Subject: [Javascript] Mac Javascript Message-ID: Top of the day to you. I am recently making a website, which utilises Flash animation. Unfortunately it should be kept in a fixed-size window. Although it works under windows Mac is having troubles to either to display Flash movie (gives a nonsesne-error in the window) or won't display the window at all. Can anyone help Please? The code is: _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From colin at vfs.com Mon Jun 3 10:24:52 2002 From: colin at vfs.com (Colin Cochrane) Date: Mon, 3 Jun 2002 08:24:52 -0700 Subject: [Javascript] insert value into form field In-Reply-To: <002901c20aa8$a0fcc9e0$0201a8c0@cray> Message-ID: > e Hi, How do I insert a variable into a form field without using >document.write. eg. I have a value in variable called xyz. The form >is called f1, the field is called t1. How do I get xyz into f1.t1? >phill window.document.f1.t1.value=xyz; (I hope those are 'ones'.) You need to explicitly say "give the value of the variable xyz to the value property of the form object t1, which is in the form object named f1, which is in the document, which is in the window. cdc Colin Cochrane Head Instructor Vancouver Film School New Media http://www.vfs.com/ Tel: (604) 685-6331 Ext 209 Fax: (604) 685-6308 Vancouver Film School. Creative. Disciplined. Focused. From aspmailbox at yahoo.com Mon Jun 3 18:42:43 2002 From: aspmailbox at yahoo.com (dont worry) Date: Mon, 3 Jun 2002 16:42:43 -0700 (PDT) Subject: [Javascript] date picker into drop downs In-Reply-To: Message-ID: <20020603234243.65691.qmail@web9904.mail.yahoo.com> I found a date picker code at http://javascript.internet.com/calendars/popup-date-picker.html The script produces a small calendar and when you click on a date it inserts it into a text box. Can an expert help me modify it so it changes the values from 3 drop downs I have? The .js file is below and the drop downs are below that. THANKSSSS!!! *********.js code********** var weekend = [0,6]; var weekendColor = "#e0e0e0"; var fontface = "Verdana"; var fontsize = 2; var gNow = new Date(); var ggWinCal; isNav = (navigator.appName.indexOf("Netscape") != -1) ? true : false; isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false; Calendar.Months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; // Non-Leap year Month days.. Calendar.DOMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Leap year Month days.. Calendar.lDOMonth = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; function Calendar(p_item, p_WinCal, p_month, p_year, p_format) { if ((p_month == null) && (p_year == null)) return; if (p_WinCal == null) this.gWinCal = ggWinCal; else this.gWinCal = p_WinCal; if (p_month == null) { this.gMonthName = null; this.gMonth = null; this.gYearly = true; } else { this.gMonthName = Calendar.get_month(p_month); this.gMonth = new Number(p_month); this.gYearly = false; } this.gYear = p_year; this.gFormat = p_format; this.gBGColor = "white"; this.gFGColor = "black"; this.gTextColor = "black"; this.gHeaderColor = "black"; this.gReturnItem = p_item; } Calendar.get_month = Calendar_get_month; Calendar.get_daysofmonth = Calendar_get_daysofmonth; Calendar.calc_month_year = Calendar_calc_month_year; Calendar.print = Calendar_print; function Calendar_get_month(monthNo) { return Calendar.Months[monthNo]; } function Calendar_get_daysofmonth(monthNo, p_year) { /* Check for leap year .. 1.Years evenly divisible by four are normally leap years, except for... 2.Years also evenly divisible by 100 are not leap years, except for... 3.Years also evenly divisible by 400 are leap years. */ if ((p_year % 4) == 0) { if ((p_year % 100) == 0 && (p_year % 400) != 0) return Calendar.DOMonth[monthNo]; return Calendar.lDOMonth[monthNo]; } else return Calendar.DOMonth[monthNo]; } function Calendar_calc_month_year(p_Month, p_Year, incr) { /* Will return an 1-D array with 1st element being the calculated month and second being the calculated year after applying the month increment/decrement as specified by 'incr' parameter. 'incr' will normally have 1/-1 to navigate thru the months. */ var ret_arr = new Array(); if (incr == -1) { // B A C K W A R D if (p_Month == 0) { ret_arr[0] = 11; ret_arr[1] = parseInt(p_Year) - 1; } else { ret_arr[0] = parseInt(p_Month) - 1; ret_arr[1] = parseInt(p_Year); } } else if (incr == 1) { // F O R W A R D if (p_Month == 11) { ret_arr[0] = 0; ret_arr[1] = parseInt(p_Year) + 1; } else { ret_arr[0] = parseInt(p_Month) + 1; ret_arr[1] = parseInt(p_Year); } } return ret_arr; } function Calendar_print() { ggWinCal.print(); } function Calendar_calc_month_year(p_Month, p_Year, incr) { /* Will return an 1-D array with 1st element being the calculated month and second being the calculated year after applying the month increment/decrement as specified by 'incr' parameter. 'incr' will normally have 1/-1 to navigate thru the months. */ var ret_arr = new Array(); if (incr == -1) { // B A C K W A R D if (p_Month == 0) { ret_arr[0] = 11; ret_arr[1] = parseInt(p_Year) - 1; } else { ret_arr[0] = parseInt(p_Month) - 1; ret_arr[1] = parseInt(p_Year); } } else if (incr == 1) { // F O R W A R D if (p_Month == 11) { ret_arr[0] = 0; ret_arr[1] = parseInt(p_Year) + 1; } else { ret_arr[0] = parseInt(p_Month) + 1; ret_arr[1] = parseInt(p_Year); } } return ret_arr; } // This is for compatibility with Navigator 3, we have to create and discard one object before the prototype object exists. new Calendar(); Calendar.prototype.getMonthlyCalendarCode = function() { var vCode = ""; var vHeader_Code = ""; var vData_Code = ""; // Begin Table Drawing code here.. vCode = vCode + ""; vHeader_Code = this.cal_header(); vData_Code = this.cal_data(); vCode = vCode + vHeader_Code + vData_Code; vCode = vCode + "
"; return vCode; } Calendar.prototype.show = function() { var vCode = ""; this.gWinCal.document.open(); // Setup the page... this.wwrite(""); this.wwrite("Calendar"); this.wwrite(""); this.wwrite(""); this.wwriteA(""); this.wwriteA(this.gMonthName + " " + this.gYear); this.wwriteA("
"); // Show navigation buttons var prevMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, -1); var prevMM = prevMMYYYY[0]; var prevYYYY = prevMMYYYY[1]; var nextMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, 1); var nextMM = nextMMYYYY[0]; var nextYYYY = nextMMYYYY[1]; this.wwrite("
"); this.wwrite("[<<<\/A>]"); this.wwrite("[<<\/A>]"); this.wwrite("[Print]"); this.wwrite("[><\/A>]"); this.wwrite("[>><\/A>]

"); // Get the complete calendar code for the month.. vCode = this.getMonthlyCalendarCode(); this.wwrite(vCode); this.wwrite("
"); this.gWinCal.document.close(); } Calendar.prototype.showY = function() { var vCode = ""; var i; var vr, vc, vx, vy; // Row, Column, X-coord, Y-coord var vxf = 285; // X-Factor var vyf = 200; // Y-Factor var vxm = 10; // X-margin var vym; // Y-margin if (isIE) vym = 75; else if (isNav) vym = 25; this.gWinCal.document.open(); this.wwrite(""); this.wwrite("Calendar"); this.wwrite(""); this.wwrite(""); this.wwrite(""); this.wwrite(""); this.wwrite("Year : " + this.gYear); this.wwrite("
"); // Show navigation buttons var prevYYYY = parseInt(this.gYear) - 1; var nextYYYY = parseInt(this.gYear) + 1; this.wwrite("
"); this.wwrite("[<<<\/A>]"); this.wwrite("[Print]"); this.wwrite("[>><\/A>]

"); // Get the complete calendar code for each month.. var j; for (i=11; i>=0; i--) { if (isIE) this.wwrite("
"); else if (isNav) this.wwrite(""); this.gMonth = i; this.gMonthName = Calendar.get_month(this.gMonth); vCode = this.getMonthlyCalendarCode(); this.wwrite(this.gMonthName + "/" + this.gYear + "
"); this.wwrite(vCode); if (isIE) this.wwrite("
"); else if (isNav) this.wwrite(""); } this.wwrite("

"); this.gWinCal.document.close(); } Calendar.prototype.wwrite = function(wtext) { this.gWinCal.document.writeln(wtext); } Calendar.prototype.wwriteA = function(wtext) { this.gWinCal.document.write(wtext); } Calendar.prototype.cal_header = function() { var vCode = ""; vCode = vCode + ""; vCode = vCode + "Sun"; vCode = vCode + "Mon"; vCode = vCode + "Tue"; vCode = vCode + "Wed"; vCode = vCode + "Thu"; vCode = vCode + "Fri"; vCode = vCode + "Sat"; vCode = vCode + ""; return vCode; } Calendar.prototype.cal_data = function() { var vDate = new Date(); vDate.setDate(1); vDate.setMonth(this.gMonth); vDate.setFullYear(this.gYear); var vFirstDay=vDate.getDay(); var vDay=1; var vLastDay=Calendar.get_daysofmonth(this.gMonth, this.gYear); var vOnLastDay=0; var vCode = ""; /* Get day for the 1st of the requested month/year.. Place as many blank cells before the 1st day of the month as necessary. */ vCode = vCode + ""; for (i=0; i "; } // Write rest of the 1st week for (j=vFirstDay; j<7; j++) { vCode = vCode + "" + "" + this.format_day(vDay) + "" + ""; vDay=vDay + 1; } vCode = vCode + ""; // Write the rest of the weeks for (k=2; k<7; k++) { vCode = vCode + ""; for (j=0; j<7; j++) { vCode = vCode + "" + "" + this.format_day(vDay) + "" + ""; vDay=vDay + 1; if (vDay > vLastDay) { vOnLastDay = 1; break; } } if (j == 6) vCode = vCode + ""; if (vOnLastDay == 1) break; } // Fill up the rest of last week with proper blanks, so that we get proper square blocks for (m=1; m<(7-j); m++) { if (this.gYearly) vCode = vCode + " "; else vCode = vCode + "" + m + ""; } return vCode; } Calendar.prototype.format_day = function(vday) { var vNowDay = gNow.getDate(); var vNowMonth = gNow.getMonth(); var vNowYear = gNow.getFullYear(); if (vday == vNowDay && this.gMonth == vNowMonth && this.gYear == vNowYear) return ("" + vday + ""); else return (vday); } Calendar.prototype.write_weekend_string = function(vday) { var i; // Return special formatting for the weekend day. for (i=0; i ****end drop downs __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From andrew at d2k.com.au Mon Jun 3 20:17:26 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Tue, 4 Jun 2002 11:17:26 +1000 Subject: [Javascript] Layers (div) Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151E2D@chimaera.d2k.com.au> Hi, How do I make the div align like a table, like 100% or something do I have to do that through code? Not absolute, so it always appears on the page see: http://d2kmail.no-ip.com/qcbricks/main_frame.htm > go to Home on menu you will see the div on the right move, but you will only see it when the resolution allows for it. Thanks. From tsimmons at employmentlawadvisors.com Tue Jun 4 00:52:41 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Tue, 4 Jun 2002 00:52:41 -0500 Subject: [Javascript] Layers (div) References: <1D0255E75622D51185DB00D0B7E3FF44151E2D@chimaera.d2k.com.au> Message-ID: <000f01c20b8c$0b1ca9b0$0000a398@sndmgr122> Andrew, That's a pretty neat effect - a little div appeared at the right side of the window and moved over to the left until its right edge was even with the right edge of the field containing the logo. Is that what you're trying to achieve? Tommy Simmons Employment Law Advisory Network www.employmentlawadvisors.com ----- Original Message ----- From: "Andrew Dunn" To: Sent: Monday, June 03, 2002 8:17 PM Subject: [Javascript] Layers (div) > Hi, > How do I make the div align like a table, like 100% or something do I have > to do that through code? > > Not absolute, so it always appears on the page see: > http://d2kmail.no-ip.com/qcbricks/main_frame.htm > go to Home on menu you > will see the div on the right move, but you will only see it when the > resolution allows for it. > > Thanks. > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From Murugan.Selvaraj at geind.ge.com Tue Jun 4 10:25:46 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Tue, 4 Jun 2002 20:55:46 +0530 Subject: [Javascript] How to call the setTimeOut() Message-ID: <05C613689F01D611AC820002A54177C0018841CB@GIAHYDMSX2.SGE.INDSYS.GE.COM> Hi I am using the below java script to check whether the applet is downloaded or not.window.jVueLoaded checks the applet download. And also i am calling the setTimeOut() function to call the scriptOverlay function till the applet is downloaded. Here first time it is going to the else part.That means going alert("not loaded") is printing. But the setTimeOut() function is not calling again. I think passing the parameter in the setTimeout('scriptOverlay('+s+')',3000); could be the problem . Does any one check the setTimeout('scriptOverlay('+s+')',3000); function? function scriptOverlay(serverPath) { var s = serverPath; if (window.jVueLoaded) { var s = serverPath; alert("loaded"); var japplet = window.document.applets["JVue"]; //var file1 = 'http://codas-dev.indsys.ge.com/servlet/MxAutoVueServlet?BOId=53077.56785.90 97.13349&BOName=000214769&BOType=CDS_Typ_Orders&BORevision=1&FOformat=generi c&FOfilename=/u01/CODAS/others/orders/26906.txt&Vault=Orders_2000_1_6&User=M urugan.Selvaraj&Mode=true'; var file2 = 'http://codas-dev.indsys.ge.com/overlay/inv.wmf'; alert(s); japplet.setFile(serverPath); japplet.addOverlay(file2); } else if (!window.jVueLoaded) { setTimeout('scriptOverlay('+s+')',3000); alert("not . ..loaded"); } } "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From mallard at serv.net Tue Jun 4 10:38:01 2002 From: mallard at serv.net (TomMallard) Date: Tue, 4 Jun 2002 08:38:01 -0700 Subject: [Javascript] How to call the setTimeOut() In-Reply-To: <05C613689F01D611AC820002A54177C0018841CB@GIAHYDMSX2.SGE.INDSYS.GE.COM> Message-ID: Is "s" valid or null? It's defined in... if (window.jVueLoaded) { var s = serverPath; but not in the else statement so I think you need to define it before using it's value in the else part. HTH, tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Selvaraj, Murugan (Indsys) Sent: Tuesday, June 04, 2002 8:26 AM To: javascript at LaTech.edu Subject: [Javascript] How to call the setTimeOut() Hi I am using the below java script to check whether the applet is downloaded or not.window.jVueLoaded checks the applet download. And also i am calling the setTimeOut() function to call the scriptOverlay function till the applet is downloaded. Here first time it is going to the else part.That means going alert("not loaded") is printing. But the setTimeOut() function is not calling again. I think passing the parameter in the setTimeout('scriptOverlay('+s+')',3000); could be the problem . Does any one check the setTimeout('scriptOverlay('+s+')',3000); function? function scriptOverlay(serverPath) { var s = serverPath; if (window.jVueLoaded) { var s = serverPath; alert("loaded"); var japplet = window.document.applets["JVue"]; //var file1 = 'http://codas-dev.indsys.ge.com/servlet/MxAutoVueServlet?BOId=53077.56785.90 97.13349&BOName=000214769&BOType=CDS_Typ_Orders&BORevision=1&FOformat=generi c&FOfilename=/u01/CODAS/others/orders/26906.txt&Vault=Orders_2000_1_6&User=M urugan.Selvaraj&Mode=true'; var file2 = 'http://codas-dev.indsys.ge.com/overlay/inv.wmf'; alert(s); japplet.setFile(serverPath); japplet.addOverlay(file2); } else if (!window.jVueLoaded) { setTimeout('scriptOverlay('+s+')',3000); alert("not . ..loaded"); } } "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From Murugan.Selvaraj at geind.ge.com Tue Jun 4 10:51:17 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Tue, 4 Jun 2002 21:21:17 +0530 Subject: [Javascript] How to call the setTimeOut() Message-ID: <05C613689F01D611AC820002A54177C001884258@GIAHYDMSX2.SGE.INDSYS.GE.COM> s value is = "http://codas.ge.com?c=ai&s=120" I have tried as you told, but it is not going to the else loop next time at all.. Pls give me some othere solution -----Original Message----- From: TomMallard [mailto:mallard at serv.net] Sent: Tuesday, June 04, 2002 9:08 PM To: javascript at LaTech.edu Subject: RE: [Javascript] How to call the setTimeOut() Is "s" valid or null? It's defined in... if (window.jVueLoaded) { var s = serverPath; but not in the else statement so I think you need to define it before using it's value in the else part. HTH, tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Selvaraj, Murugan (Indsys) Sent: Tuesday, June 04, 2002 8:26 AM To: javascript at LaTech.edu Subject: [Javascript] How to call the setTimeOut() Hi I am using the below java script to check whether the applet is downloaded or not.window.jVueLoaded checks the applet download. And also i am calling the setTimeOut() function to call the scriptOverlay function till the applet is downloaded. Here first time it is going to the else part.That means going alert("not loaded") is printing. But the setTimeOut() function is not calling again. I think passing the parameter in the setTimeout('scriptOverlay('+s+')',3000); could be the problem . Does any one check the setTimeout('scriptOverlay('+s+')',3000); function? function scriptOverlay(serverPath) { var s = serverPath; if (window.jVueLoaded) { var s = serverPath; alert("loaded"); var japplet = window.document.applets["JVue"]; //var file1 = 'http://codas-dev.indsys.ge.com/servlet/MxAutoVueServlet?BOId=53077.56785.90 97.13349&BOName=000214769&BOType=CDS_Typ_Orders&BORevision=1&FOformat=generi c&FOfilename=/u01/CODAS/others/orders/26906.txt&Vault=Orders_2000_1_6&User=M urugan.Selvaraj&Mode=true'; var file2 = 'http://codas-dev.indsys.ge.com/overlay/inv.wmf'; alert(s); japplet.setFile(serverPath); japplet.addOverlay(file2); } else if (!window.jVueLoaded) { setTimeout('scriptOverlay('+s+')',3000); alert("not . ..loaded"); } } "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From mallard at serv.net Tue Jun 4 11:03:21 2002 From: mallard at serv.net (TomMallard) Date: Tue, 4 Jun 2002 09:03:21 -0700 Subject: [Javascript] How to call the setTimeOut() In-Reply-To: <05C613689F01D611AC820002A54177C001884258@GIAHYDMSX2.SGE.INDSYS.GE.COM> Message-ID: I don't like this... { setTimeout('scriptOverlay('+s+')',3000); alert("not . ..loaded"); } Try this... { setTimeout(scriptOverlay(s),3000); alert("not . ..loaded"); } tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Selvaraj, Murugan (Indsys) Sent: Tuesday, June 04, 2002 8:51 AM To: javascript at LaTech.edu Subject: RE: [Javascript] How to call the setTimeOut() s value is = "http://codas.ge.com?c=ai&s=120" I have tried as you told, but it is not going to the else loop next time at all.. Pls give me some othere solution -----Original Message----- From: TomMallard [mailto:mallard at serv.net] Sent: Tuesday, June 04, 2002 9:08 PM To: javascript at LaTech.edu Subject: RE: [Javascript] How to call the setTimeOut() Is "s" valid or null? It's defined in... if (window.jVueLoaded) { var s = serverPath; but not in the else statement so I think you need to define it before using it's value in the else part. HTH, tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Selvaraj, Murugan (Indsys) Sent: Tuesday, June 04, 2002 8:26 AM To: javascript at LaTech.edu Subject: [Javascript] How to call the setTimeOut() Hi I am using the below java script to check whether the applet is downloaded or not.window.jVueLoaded checks the applet download. And also i am calling the setTimeOut() function to call the scriptOverlay function till the applet is downloaded. Here first time it is going to the else part.That means going alert("not loaded") is printing. But the setTimeOut() function is not calling again. I think passing the parameter in the setTimeout('scriptOverlay('+s+')',3000); could be the problem . Does any one check the setTimeout('scriptOverlay('+s+')',3000); function? function scriptOverlay(serverPath) { var s = serverPath; if (window.jVueLoaded) { var s = serverPath; alert("loaded"); var japplet = window.document.applets["JVue"]; //var file1 = 'http://codas-dev.indsys.ge.com/servlet/MxAutoVueServlet?BOId=53077.56785.90 97.13349&BOName=000214769&BOType=CDS_Typ_Orders&BORevision=1&FOformat=generi c&FOfilename=/u01/CODAS/others/orders/26906.txt&Vault=Orders_2000_1_6&User=M urugan.Selvaraj&Mode=true'; var file2 = 'http://codas-dev.indsys.ge.com/overlay/inv.wmf'; alert(s); japplet.setFile(serverPath); japplet.addOverlay(file2); } else if (!window.jVueLoaded) { setTimeout('scriptOverlay('+s+')',3000); alert("not . ..loaded"); } } "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From lkmckinn at ingr.com Tue Jun 4 11:05:44 2002 From: lkmckinn at ingr.com (Mckinney, Lori K) Date: Tue, 4 Jun 2002 11:05:44 -0500 Subject: [Javascript] How to call the setTimeOut() Message-ID: <3206D8FDDF2F2541A7715A8252289377C39200@hq2.pcmail.ingr.com> Maybe all you need is quotes around the value you are passing in setTimeout('scriptOverlay("'+s+'")',3000); -----Original Message----- From: Selvaraj, Murugan (Indsys) [mailto:Murugan.Selvaraj at geind.ge.com] Sent: Tuesday, June 04, 2002 10:51 AM To: javascript at LaTech.edu Subject: RE: [Javascript] How to call the setTimeOut() s value is = "http://codas.ge.com?c=ai&s=120" I have tried as you told, but it is not going to the else loop next time at all.. Pls give me some othere solution -----Original Message----- From: TomMallard [mailto:mallard at serv.net] Sent: Tuesday, June 04, 2002 9:08 PM To: javascript at LaTech.edu Subject: RE: [Javascript] How to call the setTimeOut() Is "s" valid or null? It's defined in... if (window.jVueLoaded) { var s = serverPath; but not in the else statement so I think you need to define it before using it's value in the else part. HTH, tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Selvaraj, Murugan (Indsys) Sent: Tuesday, June 04, 2002 8:26 AM To: javascript at LaTech.edu Subject: [Javascript] How to call the setTimeOut() Hi I am using the below java script to check whether the applet is downloaded or not.window.jVueLoaded checks the applet download. And also i am calling the setTimeOut() function to call the scriptOverlay function till the applet is downloaded. Here first time it is going to the else part.That means going alert("not loaded") is printing. But the setTimeOut() function is not calling again. I think passing the parameter in the setTimeout('scriptOverlay('+s+')',3000); could be the problem . Does any one check the setTimeout('scriptOverlay('+s+')',3000); function? function scriptOverlay(serverPath) { var s = serverPath; if (window.jVueLoaded) { var s = serverPath; alert("loaded"); var japplet = window.document.applets["JVue"]; //var file1 = 'http://codas-dev.indsys.ge.com/servlet/MxAutoVueServlet?BOId=53077.56785.90 97.13349&BOName=000214769&BOType=CDS_Typ_Orders&BORevision=1&FOformat=generi c&FOfilename=/u01/CODAS/others/orders/26906.txt&Vault=Orders_2000_1_6&User=M urugan.Selvaraj&Mode=true'; var file2 = 'http://codas-dev.indsys.ge.com/overlay/inv.wmf'; alert(s); japplet.setFile(serverPath); japplet.addOverlay(file2); } else if (!window.jVueLoaded) { setTimeout('scriptOverlay('+s+')',3000); alert("not . ..loaded"); } } "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From Cory.Mercurio at KronosCompany.com Tue Jun 4 13:28:34 2002 From: Cory.Mercurio at KronosCompany.com (Cory Mercurio) Date: Tue, 4 Jun 2002 11:28:34 -0700 Subject: [Javascript] Title without brower name in the browser Message-ID: And even then it keeps the hyphen.... -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Saturday, June 01, 2002 9:45 AM To: javascript at LaTech.edu Subject: RE: [Javascript] Title without brower name in the browser It's kept in the registry; you'd have to change the registry on every machine that accesses your site. -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Daran Salimian Sent: Saturday, June 01, 2002 11:24 AM To: javascript at LaTech.edu Subject: [Javascript] Title without brower name in the browser How can you get rid of the brower name on the top bar of the browser. In the HTML when you type in a page title, and it appears on the top of the browser, but next to it, it says something like "Internet Explorer", how can you get rid of this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From yna54 at hotmail.com Tue Jun 4 15:23:16 2002 From: yna54 at hotmail.com (Dijam majiD) Date: Tue, 04 Jun 2002 20:23:16 +0000 Subject: [Javascript] help please Message-ID: I'm working on a form , they would like to provide an incentive to users to get them to fill out these forms. Can anyone suggest a way that a random user could get a message letting them know that they have won something (prize to be determined at a later time) this would probably occur monthly. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From tutwabee at hotmail.com Tue Jun 4 20:40:51 2002 From: tutwabee at hotmail.com (Trey H) Date: Wed, 05 Jun 2002 01:40:51 +0000 Subject: [Javascript] help please Message-ID: You may want to use some Perl scripting to make a random user get picked each month and if by a certain date close to the end of the month it notices that no one is picked it will pick the next person. If you do not know how to make this Perl script you could make a JavaScript that picks a random number for the user when the enter the page that is saved in a cookie. The page checks to see if the number matches the number of the month that say they have won the prize. The cookie would make it so people reentering the page would not cheat. You would have to disable the prize window every month right after you get notice of a winner though because someone else might get the window too! ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: "Dijam majiD" >Reply-To: javascript at LaTech.edu >To: javascript at LaTech.edu >Subject: [Javascript] help please >Date: Tue, 04 Jun 2002 20:23:16 +0000 > > > >I'm working on a form , they would like to provide an incentive to users to >get them to fill out these forms. Can anyone suggest a way that a random >user could get a message letting them know that they have won something >(prize to be determined at a later time) this would probably occur monthly. > >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From Murugan.Selvaraj at geind.ge.com Wed Jun 5 00:50:24 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Wed, 5 Jun 2002 11:20:24 +0530 Subject: [Javascript] How to call the setTimeOut() Message-ID: <05C613689F01D611AC820002A54177C00188495D@GIAHYDMSX2.SGE.INDSYS.GE.COM> Hi TOm Excellent idea Vov ,,Now it is going to else part. My problem is solved... Your help is appreciated. Thanks Murugan -----Original Message----- From: TomMallard [mailto:mallard at serv.net] Sent: Tuesday, June 04, 2002 9:33 PM To: javascript at LaTech.edu Subject: RE: [Javascript] How to call the setTimeOut() I don't like this... { setTimeout('scriptOverlay('+s+')',3000); alert("not . ..loaded"); } Try this... { setTimeout(scriptOverlay(s),3000); alert("not . ..loaded"); } tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Selvaraj, Murugan (Indsys) Sent: Tuesday, June 04, 2002 8:51 AM To: javascript at LaTech.edu Subject: RE: [Javascript] How to call the setTimeOut() s value is = "http://codas.ge.com?c=ai&s=120" I have tried as you told, but it is not going to the else loop next time at all.. Pls give me some othere solution -----Original Message----- From: TomMallard [mailto:mallard at serv.net] Sent: Tuesday, June 04, 2002 9:08 PM To: javascript at LaTech.edu Subject: RE: [Javascript] How to call the setTimeOut() Is "s" valid or null? It's defined in... if (window.jVueLoaded) { var s = serverPath; but not in the else statement so I think you need to define it before using it's value in the else part. HTH, tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Selvaraj, Murugan (Indsys) Sent: Tuesday, June 04, 2002 8:26 AM To: javascript at LaTech.edu Subject: [Javascript] How to call the setTimeOut() Hi I am using the below java script to check whether the applet is downloaded or not.window.jVueLoaded checks the applet download. And also i am calling the setTimeOut() function to call the scriptOverlay function till the applet is downloaded. Here first time it is going to the else part.That means going alert("not loaded") is printing. But the setTimeOut() function is not calling again. I think passing the parameter in the setTimeout('scriptOverlay('+s+')',3000); could be the problem . Does any one check the setTimeout('scriptOverlay('+s+')',3000); function? function scriptOverlay(serverPath) { var s = serverPath; if (window.jVueLoaded) { var s = serverPath; alert("loaded"); var japplet = window.document.applets["JVue"]; //var file1 = 'http://codas-dev.indsys.ge.com/servlet/MxAutoVueServlet?BOId=53077.56785.90 97.13349&BOName=000214769&BOType=CDS_Typ_Orders&BORevision=1&FOformat=generi c&FOfilename=/u01/CODAS/others/orders/26906.txt&Vault=Orders_2000_1_6&User=M urugan.Selvaraj&Mode=true'; var file2 = 'http://codas-dev.indsys.ge.com/overlay/inv.wmf'; alert(s); japplet.setFile(serverPath); japplet.addOverlay(file2); } else if (!window.jVueLoaded) { setTimeout('scriptOverlay('+s+')',3000); alert("not . ..loaded"); } } "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From ziggy at winks.com Wed Jun 5 08:28:21 2002 From: ziggy at winks.com (Ziggy) Date: Wed, 5 Jun 2002 09:28:21 -0400 Subject: [Javascript] Title without brower name in the browser In-Reply-To: Message-ID: <002801c20c94$dcfd0de0$0201a8c0@Virtumundo.com> Hi! If you create a chromeless or borderless window there isn't any explorer icon or browser default title at all, but it also cannot be closed with a right-click. I did it on my site if you'd like to see it in action. Go to: http:// www.winks.com/diversions/ziggy/ and click on any of the pics of my cat. Notice how it is in the task bar, but without the icon. Also notice there isn't any way to close the window aside from clicking the [x] on the window itself. The window does resize nicely if you click another picture though, which is why I personally used it. This only works in IE btw. I don't quite now why or how, I used a pre-fab script from: http://www.js-examples.com/ Cheers! Kim -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of Cory Mercurio Sent: Tuesday, June 04, 2002 2:29 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] Title without brower name in the browser And even then it keeps the hyphen.... -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Saturday, June 01, 2002 9:45 AM To: javascript at LaTech.edu Subject: RE: [Javascript] Title without brower name in the browser It's kept in the registry; you'd have to change the registry on every machine that accesses your site. -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Daran Salimian Sent: Saturday, June 01, 2002 11:24 AM To: javascript at LaTech.edu Subject: [Javascript] Title without brower name in the browser How can you get rid of the brower name on the top bar of the browser. In the HTML when you type in a page title, and it appears on the top of the browser, but next to it, it says something like "Internet Explorer", how can you get rid of this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Murugan.Selvaraj at geind.ge.com Wed Jun 5 09:11:44 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Wed, 5 Jun 2002 19:41:44 +0530 Subject: [Javascript] error " Stack overflow at line 2" Message-ID: <05C613689F01D611AC820002A54177C00189FE79@GIAHYDMSX2.SGE.INDSYS.GE.COM> Hi I am using the following javascript code to check the applet download. I am exactly getting error in line no 2 Error is "Stack overflow at line no 2 "; I think problem could be with the big parameter in the line no 2. Can any one help me to resolve the problem 1 .var japplet = window.document.applets["JVue"]; 2 .var file1 = 'http://codas-dev.indsys.ge.com/servlet/MxAutoVueServlet?BOId=53077.56785.90 97.13349&BOName=000214769&BOType=CDS_Typ_Orders&BORevision=1&FOformat=generi c&FOfilename=/u01/CODAS/orders/26906.txt&Vault=Orders_2000_1_6&User=Murugan. Selvaraj&Mode=true'; var file2 = 'http://codas-dev.indsys.ge.com/overlay/inv.wmf'; "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From Murugan.Selvaraj at geind.ge.com Wed Jun 5 10:30:54 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Wed, 5 Jun 2002 21:00:54 +0530 Subject: [Javascript] error calling the setTimeOut() Message-ID: <05C613689F01D611AC820002A54177C0018A009D@GIAHYDMSX2.SGE.INDSYS.GE.COM> Hi Tom As you told , i have implemented the below in my jsp code. It was working some time back. But now it is giving the error "STack over flow" I think the problem could be on calling the setTimeout('scriptOverlay('+s+')',3000); While entering in to the else loop ,i am getting the above error. Is there any problem in the setTimeOut() method? Pls help me -----Original Message----- From: TomMallard [mailto:mallard at serv.net] Sent: Tuesday, June 04, 2002 9:33 PM To: javascript at LaTech.edu Subject: RE: [Javascript] How to call the setTimeOut() I don't like this... { setTimeout('scriptOverlay('+s+')',3000); alert("not . ..loaded"); } Try this... { setTimeout(scriptOverlay(s),3000); alert("not . ..loaded"); } tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Selvaraj, Murugan (Indsys) Sent: Tuesday, June 04, 2002 8:51 AM To: javascript at LaTech.edu Subject: RE: [Javascript] How to call the setTimeOut() s value is = "http://codas.ge.com?c=ai&s=120" I have tried as you told, but it is not going to the else loop next time at all.. Pls give me some othere solution -----Original Message----- From: TomMallard [mailto:mallard at serv.net] Sent: Tuesday, June 04, 2002 9:08 PM To: javascript at LaTech.edu Subject: RE: [Javascript] How to call the setTimeOut() Is "s" valid or null? It's defined in... if (window.jVueLoaded) { var s = serverPath; but not in the else statement so I think you need to define it before using it's value in the else part. HTH, tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Selvaraj, Murugan (Indsys) Sent: Tuesday, June 04, 2002 8:26 AM To: javascript at LaTech.edu Subject: [Javascript] How to call the setTimeOut() Hi I am using the below java script to check whether the applet is downloaded or not.window.jVueLoaded checks the applet download. And also i am calling the setTimeOut() function to call the scriptOverlay function till the applet is downloaded. Here first time it is going to the else part.That means going alert("not loaded") is printing. But the setTimeOut() function is not calling again. I think passing the parameter in the setTimeout('scriptOverlay('+s+')',3000); could be the problem . Does any one check the setTimeout('scriptOverlay('+s+')',3000); function? function scriptOverlay(serverPath) { var s = serverPath; if (window.jVueLoaded) { var s = serverPath; alert("loaded"); var japplet = window.document.applets["JVue"]; //var file1 = 'http://codas-dev.indsys.ge.com/servlet/MxAutoVueServlet?BOId=53077.56785.90 97.13349&BOName=000214769&BOType=CDS_Typ_Orders&BORevision=1&FOformat=generi c&FOfilename=/u01/CODAS/others/orders/26906.txt&Vault=Orders_2000_1_6&User=M urugan.Selvaraj&Mode=true'; var file2 = 'http://codas-dev.indsys.ge.com/overlay/inv.wmf'; alert(s); japplet.setFile(serverPath); japplet.addOverlay(file2); } else if (!window.jVueLoaded) { setTimeout('scriptOverlay('+s+')',3000); alert("not . ..loaded"); } } "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From mallard at serv.net Wed Jun 5 11:47:02 2002 From: mallard at serv.net (TomMallard) Date: Wed, 5 Jun 2002 09:47:02 -0700 Subject: [Javascript] error calling the setTimeOut() In-Reply-To: <05C613689F01D611AC820002A54177C0018A009D@GIAHYDMSX2.SGE.INDSYS.GE.COM> Message-ID: I just wouldn't do it that way...get rid of s, only use serverPath instead... function scriptOverlay(serverPath) { if (window.jVueLoaded) { alert("loaded"); var japplet = window.document.applets["JVue"]; //var file1 = 'http://codas-dev.indsys.ge.com/servlet/MxAutoVueServlet?BOId=53077.56785.90 97.13349&BOName=000214769&BOType=CDS_Typ_Orders&BORevision=1&FOformat=generi c&FOfilename=/u01/CODAS/others/orders/26906.txt&Vault=Orders_2000_1_6&User=M urugan.Selvaraj&Mode=true'; var file2 = 'http://codas-dev.indsys.ge.com/overlay/inv.wmf'; alert(serverPath); japplet.setFile(serverPath); japplet.addOverlay(file2); } else if (!window.jVueLoaded) { setTimeout(scriptOverlay(serverPath),3000); alert("not . ..loaded"); } } tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Selvaraj, Murugan (Indsys) Sent: Wednesday, June 05, 2002 8:31 AM To: javascript at LaTech.edu Subject: RE: [Javascript] error calling the setTimeOut() Hi Tom As you told , i have implemented the below in my jsp code. It was working some time back. But now it is giving the error "STack over flow" I think the problem could be on calling the setTimeout('scriptOverlay('+s+')',3000); While entering in to the else loop ,i am getting the above error. Is there any problem in the setTimeOut() method? Pls help me From mallard at serv.net Wed Jun 5 11:50:52 2002 From: mallard at serv.net (TomMallard) Date: Wed, 5 Jun 2002 09:50:52 -0700 Subject: [Javascript] error calling the setTimeOut() In-Reply-To: Message-ID: Oooops, forgot the single quotes around the function in settimeout() setTimeout('scriptOverlay(serverPath)',3000); tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of TomMallard Sent: Wednesday, June 05, 2002 9:47 AM To: javascript at LaTech.edu Subject: RE: [Javascript] error calling the setTimeOut() I just wouldn't do it that way...get rid of s, only use serverPath instead... function scriptOverlay(serverPath) { if (window.jVueLoaded) { alert("loaded"); var japplet = window.document.applets["JVue"]; //var file1 = 'http://codas-dev.indsys.ge.com/servlet/MxAutoVueServlet?BOId=53077.56785.90 97.13349&BOName=000214769&BOType=CDS_Typ_Orders&BORevision=1&FOformat=generi c&FOfilename=/u01/CODAS/others/orders/26906.txt&Vault=Orders_2000_1_6&User=M urugan.Selvaraj&Mode=true'; var file2 = 'http://codas-dev.indsys.ge.com/overlay/inv.wmf'; alert(serverPath); japplet.setFile(serverPath); japplet.addOverlay(file2); } else if (!window.jVueLoaded) { setTimeout(scriptOverlay(serverPath),3000); alert("not . ..loaded"); } } tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Selvaraj, Murugan (Indsys) Sent: Wednesday, June 05, 2002 8:31 AM To: javascript at LaTech.edu Subject: RE: [Javascript] error calling the setTimeOut() Hi Tom As you told , i have implemented the below in my jsp code. It was working some time back. But now it is giving the error "STack over flow" I think the problem could be on calling the setTimeout('scriptOverlay('+s+')',3000); While entering in to the else loop ,i am getting the above error. Is there any problem in the setTimeOut() method? Pls help me _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From lester at denhaag.org Wed Jun 5 14:09:56 2002 From: lester at denhaag.org (J. Lester Novros II) Date: Wed, 05 Jun 2002 21:09:56 +0200 Subject: [Javascript] error calling the setTimeOut() References: <05C613689F01D611AC820002A54177C0018A009D@GIAHYDMSX2.SGE.INDSYS.GE.COM> Message-ID: <3CFE6204.9060202@denhaag.org> Dear Murugan, On 06/05/2002 05:30 PM, Selvaraj, Murugan (Indsys) wrote: > It was working some time back. But now it is giving the error "STack over > flow" > > I think the problem could be on calling the > setTimeout('scriptOverlay('+s+')',3000); > > While entering in to the else loop ,i am getting the above error. > > Is there any problem in the setTimeOut() method? Judging by the few code snippets that flew by, my guess would be that, since you don't do a 'clearTimeout()', you keep firing 'setTimeout's which probably cause the stack overflow at some point. I would modify your code as follows: var runner; var running = false; function scriptOverlay(serverPath) { if (running) clearTimeout(runner); running = false; if (window.jVueLoaded) { alert('loaded'); // more code... } else { runner = setTimeout('scriptOverlay(' + serverPath + ')', 3000); running = true; alert('not... loaded'); } } This cancels a running timeout before firing a new one. Hope this helps. l8R lES -- Sharing information with competitors can damage national security. [...] Some m$ code is so flawed it cannot be safely disclosed. m$ vice president Jim Allchin in Federal Court testimony http://open.denhaag.nu http://www.denhaag.org From RFreeman at ncb.org.uk Thu Jun 6 04:19:59 2002 From: RFreeman at ncb.org.uk (RFreeman at ncb.org.uk) Date: Thu, 6 Jun 2002 10:19:59 +0100 Subject: [Javascript] Detecting an image on a page Message-ID: Hi all, As part of a server-uptime detection system, I want to detect with javascript if an image is present on a page that has been pulled from a database. Can this be done in Javascript ? Would this be the document.images function ? I want to set a variable in the jscript to 1 if the image is present and 0 if not - can this be don ? Thanks for any help, Richard -------------------------------------------------- web developer - young transnet rfreeman at ncb.org.uk tel - 020 7843 6098 fax - 0870 132 0240 ------------------------------- From webmaster at mail.ioc.state.il.us Thu Jun 6 08:48:15 2002 From: webmaster at mail.ioc.state.il.us (Andrew Peterson) Date: Thu, 6 Jun 2002 08:48:15 -0500 Subject: [Javascript] multiple ifs on one line syntax In-Reply-To: <00F458EED615D6118C1000902750E33C03EA30@IOC-EX> Message-ID: <8891688DDE65D61187AA009027555561D422@IOC-EX> Hi, I left my O'Reilly Javascript book at home (DOH!) and am having trouble with the syntax for two IF statements on one line using either AND or OR to separate them. The following statement using AND generates an error: if(form.TransType.options[form.TransType.selectedIndex].value == 'S') and (form.RecipientAgency.value=='P') { ... similarly, when I try using OR like the following example, the same problem occurs: if(form.TransType.options[form.TransType.selectedIndex].value == 'R') OR (form.TransType.options[form.TransType.selectedIndex].value == 'S') { ... Any help greatly appreciated. Thanks in advance, Andrew > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Rodney Myers > Sent: Friday, May 03, 2002 3:07 AM > To: javascript at LaTech.edu > Subject: Re: [Javascript] "Object Expected" Error > > > Try > if (string.indexOf("-1) > > Your current expression > string.indexOf(" gives the value -1 because there is no " -1 is TRUE not FALSE! > Only 0 is false. > > hth > > Rodney > > > SoitPP at aol.com wrote: > > > Dear JavaScript list, > > I am getting an "Object Expected" Error when trying to > > call a certain function in a program. I don't quite understand > > what is causing this error. The program flow seems simple enough. > > What am I missing? > > Here is a duplication of the error in a cut down version: > > > > > > > > Function Testing > > > > > > > >
> > > >
> > > > > > > > Very simple right? So how come I get "Objected Expected" at line 17? > > Patiently, > > Aaron > > > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From lkmckinn at ingr.com Thu Jun 6 08:53:23 2002 From: lkmckinn at ingr.com (Mckinney, Lori K) Date: Thu, 6 Jun 2002 08:53:23 -0500 Subject: [Javascript] multiple ifs on one line syntax Message-ID: <3206D8FDDF2F2541A7715A8252289377C9CDAF@hq2.pcmail.ingr.com> Use && for AND and || for OR if(form.TransType.options[form.TransType.selectedIndex].value == 'S' && form.RecipientAgency.value=='P' ) if(form.TransType.options[form.TransType.selectedIndex].value == 'R' || form.TransType.options[form.TransType.selectedIndex].value == 'S') -----Original Message----- I left my O'Reilly Javascript book at home (DOH!) and am having trouble with the syntax for two IF statements on one line using either AND or OR to separate them. The following statement using AND generates an error: if(form.TransType.options[form.TransType.selectedIndex].value == 'S') and (form.RecipientAgency.value=='P') { ... similarly, when I try using OR like the following example, the same problem occurs: if(form.TransType.options[form.TransType.selectedIndex].value == 'R') OR (form.TransType.options[form.TransType.selectedIndex].value == 'S') { ... From ziggy at winks.com Thu Jun 6 08:57:27 2002 From: ziggy at winks.com (Ziggy) Date: Thu, 6 Jun 2002 09:57:27 -0400 Subject: [Javascript] multiple ifs on one line syntax In-Reply-To: <8891688DDE65D61187AA009027555561D422@IOC-EX> Message-ID: <003201c20d62$17a3c4c0$0201a8c0@Virtumundo.com> Andrew, And -- > && Or -- > || (the pipe symbol) Cheers, Kim -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of Andrew Peterson Sent: Thursday, June 06, 2002 9:48 AM To: javascript at LaTech.edu Subject: [Javascript] multiple ifs on one line syntax Hi, I left my O'Reilly Javascript book at home (DOH!) and am having trouble with the syntax for two IF statements on one line using either AND or OR to separate them. The following statement using AND generates an error: if(form.TransType.options[form.TransType.selectedIndex].value == 'S') and (form.RecipientAgency.value=='P') { ... similarly, when I try using OR like the following example, the same problem occurs: if(form.TransType.options[form.TransType.selectedIndex].value == 'R') OR (form.TransType.options[form.TransType.selectedIndex].value == 'S') { ... Any help greatly appreciated. Thanks in advance, Andrew > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Rodney Myers > Sent: Friday, May 03, 2002 3:07 AM > To: javascript at LaTech.edu > Subject: Re: [Javascript] "Object Expected" Error > > > Try > if (string.indexOf("-1) > > Your current expression > string.indexOf(" gives the value -1 because there is no " -1 is TRUE not FALSE! > Only 0 is false. > > hth > > Rodney > > > SoitPP at aol.com wrote: > > > Dear JavaScript list, > > I am getting an "Object Expected" Error when trying to > > call a certain function in a program. I don't quite understand what > > is causing this error. The program flow seems simple enough. What am > > I missing? Here is a duplication of the error in a cut down version: > > > > > > > > Function Testing > > > > > > > >
> >
> > > > > > > > Very simple right? So how come I get "Objected Expected" at line 17? > > Patiently, Aaron > > > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From lkmckinn at ingr.com Thu Jun 6 09:06:16 2002 From: lkmckinn at ingr.com (Mckinney, Lori K) Date: Thu, 6 Jun 2002 09:06:16 -0500 Subject: [Javascript] Detecting an image on a page Message-ID: <3206D8FDDF2F2541A7715A8252289377C9CE72@hq2.pcmail.ingr.com> If you want to see if the image has loaded completely, you can look at the .complete value. If the image is there, it will be true. Otherwise, it will be false. var Imgs = document.getElementsByTagName("img") var nImgsNr = Imgs.length; for ( var i = 0 ; i < nImgsNr ; i++ ) { if ( Imgs[i].complete ) // value is 1 in your example else // value is 0 } > you can use > > var nImgsNr = document.getElementsByTagName ("img").length > > and nImgsNr will hold the number of img tags. > > Dan. >> Hi all, >> >> As part of a server-uptime detection system, I want to detect with >> javascript if an image is present on a page that has been pulled from a >> database. Can this be done in Javascript ? Would this be the >> document.images function ? I want to set a variable in the jscript to 1 if >> the image is present and 0 if not - can this be don ? From colin at vfs.com Thu Jun 6 09:50:42 2002 From: colin at vfs.com (Colin Cochrane) Date: Thu, 6 Jun 2002 07:50:42 -0700 Subject: [Javascript] multiple ifs on one line syntax In-Reply-To: <8891688DDE65D61187AA009027555561D422@IOC-EX> References: <00F458EED615D6118C1000902750E33C03EA30@IOC-EX> Message-ID: >if(form.TransType.options[form.TransType.selectedIndex].value == 'S') and >(form.RecipientAgency.value=='P') { >... You just have to remember that you're testing for a condition. In this case, it's a condition with two criteria, but one condition nonetheless. So you need to encapsulate the entire condition between outer parenthesis.(sp?) ie: if((form.TransType.options[form.TransType.selectedIndex].value == 'S') and (form.RecipientAgency.value=='P')) { Hope this helps cdc Colin Cochrane Head Instructor Vancouver Film School New Media http://www.vfs.com/ Tel: (604) 685-6331 Ext 209 Fax: (604) 685-6308 Vancouver Film School. Creative. Disciplined. Focused. From colin at vfs.com Thu Jun 6 09:52:18 2002 From: colin at vfs.com (Colin Cochrane) Date: Thu, 6 Jun 2002 07:52:18 -0700 Subject: [Javascript] multiple ifs on one line syntax Message-ID: >if(form.TransType.options[form.TransType.selectedIndex].value == 'S') and >(form.RecipientAgency.value=='P') { >... Sorry, that ought to be '&&' for 'and' and '||' for 'or'. ie: if((form.TransType.options[form.TransType.selectedIndex].value == 'S') && (form.RecipientAgency.value=='P')) { Hope this helps cdc Colin Cochrane Head Instructor Vancouver Film School New Media http://www.vfs.com/ Tel: (604) 685-6331 Ext 209 Fax: (604) 685-6308 Vancouver Film School. Creative. Disciplined. Focused. From jgordon at directfile.com Thu Jun 6 10:53:41 2002 From: jgordon at directfile.com (Josiah Gordon) Date: Thu, 6 Jun 2002 08:53:41 -0700 Subject: [Javascript] JavaScript garbage collector In-Reply-To: <00fa01c20db3$1c77b730$8ddea8c0@pcdanc> Message-ID: Dan, In Javascript, garbage collection is done automatically by the Javascript environment in the client's browser. IE 3+ and NN4+ use the mark and sweep algorithm in which the garbage collector periodically traverses the list of all variables in the Javascript environment, marking variables that are referred to by other variables. For objects and arrays, properties are recursively marked. After stepping through the whole list (probably a binary tree of some sort) the algorithm knows that any unmarked variable is garbage. The sweep phase is asynchronous and shouldn't have a noticeable impact when running (at least that's the idea). This is a paraphrasing from David Flanagan's O'Reilly Javascript book pages 192-197, especially 193. HTH, Josiah Gordon -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Dan Costea Sent: Thursday, June 06, 2002 4:37 PM To: javascript at LaTech.edu Subject: [Javascript] JavaScript garbage collector Can anybody tell me if there is a way to call the browser's garbage collector from js (at least for IE) ??? Or, can you give me a link with documentation about how IE is working with the memory and with th garbage collector? Thank you, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From costea.dan at ssi-schaefer.ro Thu Jun 6 18:37:24 2002 From: costea.dan at ssi-schaefer.ro (Dan Costea) Date: Thu, 6 Jun 2002 16:37:24 -0700 Subject: [Javascript] JavaScript garbage collector Message-ID: <00fa01c20db3$1c77b730$8ddea8c0@pcdanc> Can anybody tell me if there is a way to call the browser's garbage collector from js (at least for IE) ??? Or, can you give me a link with documentation about how IE is working with the memory and with th garbage collector? Thank you, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From costea.dan at ssi-schaefer.ro Thu Jun 6 18:52:38 2002 From: costea.dan at ssi-schaefer.ro (Dan Costea) Date: Thu, 6 Jun 2002 16:52:38 -0700 Subject: [Javascript] Detecting an image on a page References: Message-ID: <011c01c20db5$3d664770$8ddea8c0@pcdanc> you can use var nImgsNr = document.getElementsByTagName ("img").length and nImgsNr will hold the number of img tags. Dan. ----- Original Message ----- From: To: Sent: Thursday, June 06, 2002 2:19 AM Subject: [Javascript] Detecting an image on a page > Hi all, > > As part of a server-uptime detection system, I want to detect with > javascript if an image is present on a page that has been pulled from a > database. Can this be done in Javascript ? Would this be the > document.images function ? I want to set a variable in the jscript to 1 if > the image is present and 0 if not - can this be don ? > > Thanks for any help, > > Richard > -------------------------------------------------- > web developer - young transnet > rfreeman at ncb.org.uk > tel - 020 7843 6098 > fax - 0870 132 0240 > ------------------------------- > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From costea.dan at ssi-schaefer.ro Thu Jun 6 18:54:36 2002 From: costea.dan at ssi-schaefer.ro (Dan Costea) Date: Thu, 6 Jun 2002 16:54:36 -0700 Subject: [Javascript] multiple ifs on one line syntax References: <8891688DDE65D61187AA009027555561D422@IOC-EX> Message-ID: <012201c20db5$83c7db70$8ddea8c0@pcdanc> try: if ( (form.TransType.options[form.TransType.selectedIndex].value == 'S') && (form.RecipientAgency.value=='P') ) { ... } if ( (form.TransType.options[form.TransType.selectedIndex].value == 'R') || (form.TransType.options[form.TransType.selectedIndex].value == 'S') ){ ... } Dan. ----- Original Message ----- From: "Andrew Peterson" To: Sent: Thursday, June 06, 2002 6:48 AM Subject: [Javascript] multiple ifs on one line syntax > Hi, > > I left my O'Reilly Javascript book at home (DOH!) and am having trouble with > the syntax for two IF statements on one line using either AND or OR to > separate them. The following statement using AND generates an error: > > if(form.TransType.options[form.TransType.selectedIndex].value == 'S') and > (form.RecipientAgency.value=='P') { > ... > > similarly, when I try using OR like the following example, the same problem > occurs: > > if(form.TransType.options[form.TransType.selectedIndex].value == 'R') OR > (form.TransType.options[form.TransType.selectedIndex].value == 'S') { > ... > > Any help greatly appreciated. > > Thanks in advance, > Andrew > > > > -----Original Message----- > > From: javascript-admin at LaTech.edu > > [mailto:javascript-admin at LaTech.edu]On > > Behalf Of Rodney Myers > > Sent: Friday, May 03, 2002 3:07 AM > > To: javascript at LaTech.edu > > Subject: Re: [Javascript] "Object Expected" Error > > > > > > Try > > if (string.indexOf("-1) > > > > Your current expression > > string.indexOf(" > gives the value -1 because there is no " > -1 is TRUE not FALSE! > > Only 0 is false. > > > > hth > > > > Rodney > > > > > > SoitPP at aol.com wrote: > > > > > Dear JavaScript list, > > > I am getting an "Object Expected" Error when trying to > > > call a certain function in a program. I don't quite understand > > > what is causing this error. The program flow seems simple enough. > > > What am I missing? > > > Here is a duplication of the error in a cut down version: > > > > > > > > > > > > Function Testing > > > > > > > > > > > >
> > > > > >
> > > > > > > > > > > > Very simple right? So how come I get "Objected Expected" at line 17? > > > Patiently, > > > Aaron > > > > > > > > > _______________________________________________ > > > Javascript mailing list > > > Javascript at LaTech.edu > > > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From andyg at ihug.co.nz Sat Jun 8 17:46:03 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Sun, 9 Jun 2002 10:46:03 +1200 Subject: [Javascript] Writing to
References: Message-ID: <005a01c20f3e$458617c0$54caadcb@k1n8i8> I've having a problem when writing to a
getting content from another
when an image is involved. Like so:
Here is my image
The script doesn't always display the image...yet when I right click and select Show picture, it shows it....almost as if the image is not downloaded by the time the div .innerHTML is written it won't display the image? Andrew Gibson From LMuchacho at twii.net Mon Jun 10 04:42:32 2002 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Mon, 10 Jun 2002 10:42:32 +0100 Subject: [Javascript] Writing to
Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03C5D027@lon.webmail.twii.net> Hi Andrew I have a small question In which browser that bug appear? you must try to make a function and called it when the document is loaded instead of having the code on the flow of the document as you did NS6 will do that bug really often (don't know why) Laurent -----Original Message----- From: Andrew Gibson [mailto:andyg at ihug.co.nz] Sent: 08 June 2002 23:46 To: javascript at LaTech.edu Subject: [Javascript] Writing to
I've having a problem when writing to a
getting content from another
when an image is involved. Like so:
Here is my image
The script doesn't always display the image...yet when I right click and select Show picture, it shows it....almost as if the image is not downloaded by the time the div .innerHTML is written it won't display the image? Andrew Gibson _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From hometeam at goeaston.net Mon Jun 10 16:37:58 2002 From: hometeam at goeaston.net (Tim Laureska) Date: Mon, 10 Jun 2002 17:37:58 -0400 Subject: [Javascript] crossbrowser problems Message-ID: <006c01c210c7$17d3fba0$0500a8c0@upstairs> Hello... i'm new to this list (and new to javascript) but am hoping for some patient help :-) Can someone help me understand why this menu won't display the correct columns underneath the headings.... I had to change the javascript for cross browser comaptibility and ever since then, I've been stuck... This link shows you the way the menu should look, but this only works in IE 5+ http://63.151.47.189/menu_old2.html This link shows the one I'm struggling with to get it to work "cross browser" (graphics & text content aside) http://63.151.47.189/menu_netscape6_test5.html The code can be seen in the source at Thanks in Advance Tim Laureska From cutterbl at hotmail.com Tue Jun 11 09:06:44 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Tue, 11 Jun 2002 10:06:44 -0400 Subject: [Javascript] visibility - IE & NN Message-ID: So, I've been tasked with taking an existing form and "hiding" fields depending upon a user's actions. But, I've heard that there are issues with this with regards to NN 4.x. Can anyone give me (quickly) the skinny on this? My O'Reilly ref doesn't really touch on it at all. Does anyone have a crossbrowser implementation in place that I could look at? Cutter http://www.falcon-knives.com _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From LMuchacho at twii.net Tue Jun 11 09:38:47 2002 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Tue, 11 Jun 2002 15:38:47 +0100 Subject: [Javascript] crossbrowser problems Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03C5D02F@lon.webmail.twii.net> Hi tim Try that way var div_array = new Array("divOne", "divTwo", "divThree", "divFour"); function changeDiv(the_div, change) { getObj(the_div).visibility = change; } function getObj(divName) { if (document.getElementById) { this.style= document.getElementById(divName).style; } else if (document.all) { this.style = document.all[divName].style; } else if (document.layers) { this.style = document.layers[divName]; } return this.style; } function closeAll() { for (var loop=0; loop < div_array.length; loop++) { changeDiv(div_array[loop], "hidden"); } } I test it and it's almost working you must check the name of the first div you call it theDiv and in your array the name is divOne Good luck Laurent -----Original Message----- From: Tim Laureska [mailto:hometeam at goeaston.net] Sent: 10 June 2002 22:38 To: javascript at LaTech.edu Subject: [Javascript] crossbrowser problems Hello... i'm new to this list (and new to javascript) but am hoping for some patient help :-) Can someone help me understand why this menu won't display the correct columns underneath the headings.... I had to change the javascript for cross browser comaptibility and ever since then, I've been stuck... This link shows you the way the menu should look, but this only works in IE 5+ http://63.151.47.189/menu_old2.html This link shows the one I'm struggling with to get it to work "cross browser" (graphics & text content aside) http://63.151.47.189/menu_netscape6_test5.html The code can be seen in the source at Thanks in Advance Tim Laureska _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From hometeam at goeaston.net Tue Jun 11 13:05:58 2002 From: hometeam at goeaston.net (Tim Laureska) Date: Tue, 11 Jun 2002 14:05:58 -0400 Subject: [Javascript] crossbrowser problems References: <76A6F0FCCA27D4119DEF00805F5700AC03C5D02F@lon.webmail.twii.net> Message-ID: <013a01c21172$a3fce8c0$0500a8c0@upstairs> Laurent.... thank you... that wasn't the only problem...it turned out to be a simple synatax thing.. many thanks Tim ----- Original Message ----- From: "Muchacho, Laurent (TWIi London)" To: Sent: June 11, 2002 10:38 AM Subject: RE: [Javascript] crossbrowser problems > Hi tim > Try that way > > var div_array = new Array("divOne", "divTwo", "divThree", "divFour"); > function changeDiv(the_div, change) > { > getObj(the_div).visibility = change; > } > > function getObj(divName) > { > if (document.getElementById) > { > this.style= document.getElementById(divName).style; > } > else if (document.all) > { > this.style = document.all[divName].style; > } > else if (document.layers) > { > this.style = document.layers[divName]; > } > return this.style; > } > function closeAll() > { > for (var loop=0; loop < div_array.length; loop++) > { > changeDiv(div_array[loop], "hidden"); > > } > } > > I test it and it's almost working you must check the name of the first div > you call it theDiv and in your array the name is divOne > > Good luck Laurent > > > -----Original Message----- > From: Tim Laureska [mailto:hometeam at goeaston.net] > Sent: 10 June 2002 22:38 > To: javascript at LaTech.edu > Subject: [Javascript] crossbrowser problems > > > Hello... i'm new to this list (and new to javascript) but am hoping for some > patient help :-) > Can someone help me understand why this menu won't display the correct > columns underneath the headings.... I had to change the javascript for cross > browser comaptibility and ever since then, I've been stuck... > > This link shows you the way the menu should look, but this only works in IE > 5+ > http://63.151.47.189/menu_old2.html > > This link shows the one I'm struggling with to get it to work "cross > browser" (graphics & text content aside) > http://63.151.47.189/menu_netscape6_test5.html > > > The code can be seen in the source at > Thanks in Advance > Tim Laureska > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > DISCLAIMER - The preceding e-mail message (including any attachments) > contains information that may be confidential, may be protected by the > attorney-client or other applicable privileges, or may constitute non-public > information. It is intended to be conveyed only to the designated > recipient(s) named above. If you are not an intended recipient of this > message, or have otherwise received it in error, please notify the sender by > replying to this message and then delete all copies of it from your computer > system. Any use, dissemination, distribution, or reproduction of this > message by unintended recipients is not authorized and may be unlawful. The > contents of this communication do not necessarily represent the views of > this company. > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > From gmorris at sct.com Tue Jun 11 14:07:44 2002 From: gmorris at sct.com (Glenn Morris) Date: Tue, 11 Jun 2002 15:07:44 -0400 Subject: [Javascript] problem passing values to my form Message-ID: I am having a problem passing values but I am so close (thanks to freedogrun). This code below will transfer the fields (fname, lname) into an editable field on a new form that will stay open in the browser. This is exactly what I want it to do except that I want it to put the values into a form that I created (/NewForm). I have the form listed in the Action=/NewForm but it keeps opening a default form. If I can get it to put the values in the new form I will be set. Thank you in advance. Like this, then?



From swiseman at remax-cahi.com Tue Jun 11 17:29:12 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Tue, 11 Jun 2002 15:29:12 -0700 Subject: [Javascript] is there a way to hide the Select or Drop down box Message-ID: I want to be able to search for a value and get the text part... I have field... pLease enter office number when they do I want to give them the office name next to it... but how can I store this information with out reloading the page... so I thought I could put this into a drop down.. or maybe an array... what do you think? From swiseman at remax-cahi.com Tue Jun 11 18:22:31 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Tue, 11 Jun 2002 16:22:31 -0700 Subject: [Javascript] test Message-ID: test From swiseman at remax-cahi.com Tue Jun 11 18:24:28 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Tue, 11 Jun 2002 16:24:28 -0700 Subject: [Javascript] can I build a select box and hide it Message-ID: is there a way to hide it and access it From jgordon at directfile.com Tue Jun 11 18:35:39 2002 From: jgordon at directfile.com (Josiah Gordon) Date: Tue, 11 Jun 2002 16:35:39 -0700 Subject: [Javascript] is there a way to hide the Select or Drop down box In-Reply-To: Message-ID: If it's a fairly small and static list just create a .js include with an array and when the length of the phone field is the correct length (or on when blur event is triggered) check the array. --JG -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Scott.Wiseman Sent: Tuesday, June 11, 2002 3:29 PM To: 'javascript at LaTech.edu' Subject: [Javascript] is there a way to hide the Select or Drop down box I want to be able to search for a value and get the text part... I have field... pLease enter office number when they do I want to give them the office name next to it... but how can I store this information with out reloading the page... so I thought I could put this into a drop down.. or maybe an array... what do you think? _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Tue Jun 11 18:54:44 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Tue, 11 Jun 2002 16:54:44 -0700 Subject: [Javascript] is there a way to hide the Select or Drop down b ox---Like this???? Message-ID: <%@ Language=VBScript EnableSessionState=False%> <% OPTION EXPLICIT %> <% '--------------------------------------------------------------- '--------------------------------------------------------------- '---------------------GET offices FROM DATBASE------------------ '--------------------------------------------------------------- '--------------------------------------------------------------- dim OfficeNameNumber(2000,1),countarray set cmd = nothing set cmd = server.CreateObject("ADODB.COMMAND") with cmd .ActiveConnection = cnn .CommandText = "get_active_offices" .CommandType = adCmdStoredProc end with set rst = cmd.execute DO WHILE not rst.eof if rst("franchiseid") then OfficeNameNumber(rst("franchiseid"),1) = rst("officename") countarray = rst("franchiseid") + 1 end if rst.movenext LOOP response.write "

"& countarray response.write "

"& ubound(OfficeNameNumber,1) ' ReDim Preserve OfficeNameNumber(countarray,1) rst.close set rst = nothing set cmd = nothing response.write "

"& OfficeNameNumber(789,1) %> -----Original Message----- From: Josiah Gordon [mailto:jgordon at directfile.com] Sent: Tuesday, June 11, 2002 4:36 PM To: javascript at LaTech.edu Subject: RE: [Javascript] is there a way to hide the Select or Drop down box If it's a fairly small and static list just create a .js include with an array and when the length of the phone field is the correct length (or on when blur event is triggered) check the array. --JG -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Scott.Wiseman Sent: Tuesday, June 11, 2002 3:29 PM To: 'javascript at LaTech.edu' Subject: [Javascript] is there a way to hide the Select or Drop down box I want to be able to search for a value and get the text part... I have field... pLease enter office number when they do I want to give them the office name next to it... but how can I store this information with out reloading the page... so I thought I could put this into a drop down.. or maybe an array... what do you think? _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Tue Jun 11 19:50:41 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Tue, 11 Jun 2002 17:50:41 -0700 Subject: [Javascript] any way to add a zero to a number Message-ID: I really want 0001 but I get 1.. this is not good for my database Scott p.s. Thanks for everyone's help so far. From jgordon at directfile.com Tue Jun 11 20:00:31 2002 From: jgordon at directfile.com (Josiah Gordon) Date: Tue, 11 Jun 2002 18:00:31 -0700 Subject: [Javascript] any way to add a zero to a number In-Reply-To: Message-ID: Try creating a string variable and appending your variable to "000". In your database read the var in as an int. var str = "000"; var num = 1; str += num; document.write(str); // ==> 0001 That work? Josiah Gordon -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Scott.Wiseman Sent: Tuesday, June 11, 2002 5:51 PM To: 'javascript at LaTech.edu' Subject: [Javascript] any way to add a zero to a number I really want 0001 but I get 1.. this is not good for my database Scott p.s. Thanks for everyone's help so far. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From gassinaumasis at hotmail.com Wed Jun 12 00:51:55 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Wed, 12 Jun 2002 05:51:55 +0000 Subject: [Javascript] visibility - IE & NN Message-ID: >So, I've been tasked with taking an existing form and "hiding" fields >depending upon a user's actions. But, I've heard that there are issues with >this with regards to NN 4.x. Yes. It won't work in Netscape 4. Ever. Can anyone give me >(quickly) the skinny on this? My O'Reilly ref doesn't really touch on it at >all. Does anyone have a crossbrowser implementation in place that I could >look at? Maybe disable form fields? http://www.xs4all.nl/~ppk/js/index.html?disabled.html gives some code to fake the disabling in NN4. ppk _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From swiseman at remax-cahi.com Wed Jun 12 09:28:08 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Wed, 12 Jun 2002 07:28:08 -0700 Subject: [Javascript] any way to add a zero to a number Message-ID: thank you -----Original Message----- From: Josiah Gordon [mailto:jgordon at directfile.com] Sent: Tuesday, June 11, 2002 6:01 PM To: javascript at LaTech.edu Subject: RE: [Javascript] any way to add a zero to a number Try creating a string variable and appending your variable to "000". In your database read the var in as an int. var str = "000"; var num = 1; str += num; document.write(str); // ==> 0001 That work? Josiah Gordon -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Scott.Wiseman Sent: Tuesday, June 11, 2002 5:51 PM To: 'javascript at LaTech.edu' Subject: [Javascript] any way to add a zero to a number I really want 0001 but I get 1.. this is not good for my database Scott p.s. Thanks for everyone's help so far. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From postmaster at LaTech.edu Wed Jun 12 11:43:29 2002 From: postmaster at LaTech.edu (postmaster at LaTech.edu) Date: Wed, 12 Jun 2002 11:43:29 -0500 (CDT) Subject: [Javascript] VIRUS IN YOUR MAIL Message-ID: <20020612164329.D8ABD308DFD@LaTech.edu> V I R U S A L E R T Our viruschecker found the Suspicious IFrame-b W32/Klez.h at MM W32/Klez.h at MM virus(es) in your email to the following recipient(s): -> javascript at localhost.LaTech.edu The message was not delivered to the recipient(s). Please check your system for viruses, or ask your system administrator to do so. Note that some viruses (notably Klez) will forge the sender address, resulting in false notifications. Check the "Received" headers below to see if the infected message originated from a system you use. For your reference, here are the headers from your email: ------------------------- BEGIN HEADERS ----------------------------- Received: from Rlbzmjrx (141.newark-15-20rs.nj.dial-access.att.net [12.89.147.141]) by LaTech.edu (Postfix) with SMTP id 1A0E7308C7C for ; Wed, 12 Jun 2002 11:43:02 -0500 (CDT) From: javascript To: javascript at LaTech.edu Subject: Questionnaire MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=N562f1YF6P597E42D1A8vF128i7V50 Message-Id: <20020612164302.1A0E7308C7C at LaTech.edu> Date: Wed, 12 Jun 2002 11:43:02 -0500 (CDT) -------------------------- END HEADERS ------------------------------ From Yann.DeChamplain at molson.com Wed Jun 12 13:15:37 2002 From: Yann.DeChamplain at molson.com (Yann.DeChamplain at molson.com) Date: Wed, 12 Jun 2002 14:15:37 -0400 Subject: [Javascript] Evaluate form item name Message-ID: <02Jun12.140114edt.37786@natgtw01.molson.com> Hello, here is a easy one, How could this work?; var curNum; curNum = "2"; daid = "r"+curNum; Function addr(){ ---> daid.style.display = "Block"; I've been trying many ways whitout any success... } thanx Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From walter at torres.ws Wed Jun 12 13:46:16 2002 From: walter at torres.ws (Walter Torres) Date: Wed, 12 Jun 2002 13:46:16 -0500 Subject: [Javascript] Evaluate form item name In-Reply-To: <02Jun12.140114edt.37786@natgtw01.molson.com> Message-ID: <007701c21241$6f7359c0$2a65a8c0@eloyaltyco.com> Evaluate form item nameIf "daid" is really in a FORM, then... document.froms[0].daid.style.display If it is not in a FORM... document.all.daid.style.display Walter -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Yann.DeChamplain at molson.com Sent: Wednesday, June 12, 2002 1:16 PM To: javascript at LaTech.edu Subject: [Javascript] Evaluate form item name Hello, here is a easy one, How could this work?; var curNum; curNum = "2"; daid = "r"+curNum; Function addr(){ ---> daid.style.display = "Block"; I've been trying many ways whitout any success... } thanx Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lkmckinn at ingr.com Wed Jun 12 13:48:00 2002 From: lkmckinn at ingr.com (Mckinney, Lori K) Date: Wed, 12 Jun 2002 13:48:00 -0500 Subject: [Javascript] Evaluate form item name Message-ID: <3206D8FDDF2F2541A7715A8252289377DE4DD6@hq2.pcmail.ingr.com> eval(daid).style.display = "Block"; -----Original Message----- From: Yann.DeChamplain at molson.com [mailto:Yann.DeChamplain at molson.com] Sent: Wednesday, June 12, 2002 1:16 PM To: javascript at LaTech.edu Subject: [Javascript] Evaluate form item name Hello, here is a easy one, How could this work?; var curNum; curNum = "2"; daid = "r"+curNum; Function addr(){ ---> daid.style.display = "Block"; I've been trying many ways whitout any success... } thanx Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Yann.DeChamplain at molson.com Wed Jun 12 13:49:17 2002 From: Yann.DeChamplain at molson.com (Yann.DeChamplain at molson.com) Date: Wed, 12 Jun 2002 14:49:17 -0400 Subject: [Javascript] Evaluate form item name Message-ID: <02Jun12.143452edt.37797@natgtw01.molson.com> This one works thanx a lot. Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com -----Message d'origine----- De : Mckinney, Lori K [mailto:lkmckinn at ingr.com] Envoy? : June 12, 2002 14:48 ? : javascript at LaTech.edu Objet : RE: [Javascript] Evaluate form item name eval(daid).style.display = "Block"; -----Original Message----- From: Yann.DeChamplain at molson.com [mailto:Yann.DeChamplain at molson.com] Sent: Wednesday, June 12, 2002 1:16 PM To: javascript at LaTech.edu Subject: [Javascript] Evaluate form item name Hello, here is a easy one, How could this work?; var curNum; curNum = "2"; daid = "r"+curNum; Function addr(){ ---> daid.style.display = "Block"; I've been trying many ways whitout any success... } thanx Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From costea.dan at ssi-schaefer.ro Wed Jun 12 14:49:59 2002 From: costea.dan at ssi-schaefer.ro (Dan Costea) Date: Wed, 12 Jun 2002 12:49:59 -0700 Subject: [Javascript] can I build a select box and hide it References: Message-ID: <009a01c2124a$56095fd0$8ddea8c0@pcdanc>



Dan. ----- Original Message ----- From: "Scott.Wiseman" To: Sent: Tuesday, June 11, 2002 4:24 PM Subject: [Javascript] can I build a select box and hide it > is there a way to hide it and access it > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Wed Jun 12 15:21:32 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Wed, 12 Jun 2002 13:21:32 -0700 Subject: [Javascript] curious frame and event handle question Message-ID: if I press the enter key, which frame will act upon it both one or the other none get a clue... what is the right answer -------------- next part -------------- An HTML attachment was scrubbed... URL: From swiseman at remax-cahi.com Wed Jun 12 15:37:48 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Wed, 12 Jun 2002 13:37:48 -0700 Subject: [Javascript] curious frame and event handle question Message-ID: onKeyPress="return submitenter(this,event)" -------------- next part -------------- An HTML attachment was scrubbed... URL: From swiseman at remax-cahi.com Wed Jun 12 15:49:59 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Wed, 12 Jun 2002 13:49:59 -0700 Subject: [Javascript] how do I move the user to the next element or field??? Message-ID: onchange="gotonextfield()" so I need to know what is the next field. I need to know what field I am on... is there a simple command to yuse Scott From jgordon at directfile.com Wed Jun 12 16:14:18 2002 From: jgordon at directfile.com (Josiah Gordon) Date: Wed, 12 Jun 2002 14:14:18 -0700 Subject: [Javascript] how do I move the user to the next element or field??? In-Reply-To: Message-ID: loop through the form's elements by number --JG -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Scott.Wiseman Sent: Wednesday, June 12, 2002 1:50 PM To: 'javascript at LaTech.edu' Subject: [Javascript] how do I move the user to the next element or field??? onchange="gotonextfield()" so I need to know what is the next field. I need to know what field I am on... is there a simple command to yuse Scott _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From jgordon at directfile.com Wed Jun 12 16:16:47 2002 From: jgordon at directfile.com (Josiah Gordon) Date: Wed, 12 Jun 2002 14:16:47 -0700 Subject: [Javascript] curious frame and event handle question In-Reply-To: Message-ID: MessageMy guess is that the frameset page will get it unless you set something else. That seems to be the default page (at least in IE). Go to a frame page and hit Edit-View Source. You'll always get the frameset. --JG -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Scott.Wiseman Sent: Wednesday, June 12, 2002 1:38 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] curious frame and event handle question onKeyPress="return submitenter(this,event)" -------------- next part -------------- An HTML attachment was scrubbed... URL: From lau at goldenweb.com.au Wed Jun 12 22:48:32 2002 From: lau at goldenweb.com.au (Lau) Date: Thu, 13 Jun 2002 13:48:32 +1000 Subject: [Javascript] changing the mouse pointer Message-ID: <000701c21335$2467ebe0$6a00a8c0@laubox> Is it possible to change the mouse pointer to the hourglass while a piece of javascript is running? If so how? Thanks Lau -------------- next part -------------- An HTML attachment was scrubbed... URL: From Wayne.Allen at rhul.ac.uk Thu Jun 13 03:29:26 2002 From: Wayne.Allen at rhul.ac.uk (Allen Wayne) Date: Thu, 13 Jun 2002 09:29:26 +0100 Subject: [Javascript] Printing in JS Message-ID: <0A5DF42D7014D411A58900D0B73E92AE056E2DC1@exch1.rhul.ac.uk> Any ideas how to print the current window, without the user having to use the toolbar? i.e. I want to open the window and send it to the printer in one operation, also is there anyway to print a web page without the title bits that IE buts on the top and bottom pointers and ideas welcome Wayne -------------- next part -------------- An HTML attachment was scrubbed... URL: From Murugan.Selvaraj at geind.ge.com Thu Jun 13 03:52:31 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Thu, 13 Jun 2002 14:22:31 +0530 Subject: [Javascript] Printing in JS Message-ID: <05C613689F01D611AC820002A54177C0019BD8E6@GIAHYDMSX2.SGE.INDSYS.GE.COM> Hi Wayne Try window.print to print the current window. -----Original Message----- From: Allen Wayne [mailto:Wayne.Allen at rhul.ac.uk] Sent: Thursday, June 13, 2002 1:59 PM To: 'javascript at LaTech.edu' Subject: [Javascript] Printing in JS Any ideas how to print the current window, without the user having to use the toolbar? i.e. I want to open the window and send it to the printer in one operation, also is there anyway to print a web page without the title bits that IE buts on the top and bottom pointers and ideas welcome Wayne "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." -------------- next part -------------- An HTML attachment was scrubbed... URL: From Yann.DeChamplain at molson.com Thu Jun 13 08:07:42 2002 From: Yann.DeChamplain at molson.com (Yann.DeChamplain at molson.com) Date: Thu, 13 Jun 2002 09:07:42 -0400 Subject: [Javascript] Eval() question Message-ID: <02Jun13.085327edt.37831@natgtw01.molson.com> I'm trying now to create variable in a for loop and I got an error: I tested some ways and I got something like "impossible to assign a value to a funtion". These functions work on the style of a (TR). After I change the display style option I can't correctly reevaluate the new value in the style property of the TR id so I wanna create a status variable for each row in the table to set a status. var curNum; var maxcurNum; curNum = 2; maxcurNum = 12 for(var count = curNum; count <= maxcurNum; count++){ -----------------------> eval("status" + count) = "none"; } function addr(){ while(curNum <= maxcurNum){ rid = "r" + curNum; sid = "status" + curNum; if(eval(sid) = "none"){ eval(daid).style.display = "Block"; eval(sid) = "Block"; //alert('i found a "none" value at id:' + daid); return true; break; } curNum++; alert(curNum++); } curNum = 2; //back to initial value after exit from while loop. } Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmorris at sct.com Thu Jun 13 08:47:58 2002 From: gmorris at sct.com (Glenn Morris) Date: Thu, 13 Jun 2002 09:47:58 -0400 Subject: [Javascript] Script transferring values - so close Message-ID: I have this script which works almost the way I want it. What I want it to do is take the values(fname, lname) and pass them to a new form in the same browser window. The problem with this script is that it creates a default form showing the values. What I want it for it to place the values in a form (NewForm.html) that I have created and sits in the same directory. I'm sure I'm just a little tweak away from getting it to work but I can't seem to figure out how. Thanks for any help. 1. Person presses Click 2. My html form called NewForm.html shows up with fname, lname in editable field. 3. All done in same browser. This is all I want it to do. I juz don't get /Newform??



From rodney at aflyingstart.net Thu Jun 13 09:24:11 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Thu, 13 Jun 2002 15:24:11 +0100 Subject: [Javascript] Script transferring values - so close References: Message-ID: <3D08AB0B.6A9950FF@aflyingstart.net> Why not use METHOD="GET" and then parse the values out of the query string ? Rodney Glenn Morris wrote: > I have this script which works almost the way I want it. What I want > it to do is take the values(fname, lname) and pass them to a new form > in the same browser window. The problem with this script is that it > creates a default form showing the values. What I want it for it to > place the values in a form (NewForm.html) that I have created and sits > in the same directory. I'm sure I'm just a little tweak away from > getting it to work but I can't seem to figure out how. Thanks for any > help. > 1. Person presses Click > 2. My html form called NewForm.html shows up with fname, lname in > editable field. > 3. All done in same browser. > This is all I want it to do. > > > > I juz don't get /Newform?? > > > > >


> > > > >
>

> ="Click"> >
> >
> > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Thu Jun 13 10:29:29 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 13 Jun 2002 10:29:29 -0500 Subject: [Javascript] Script transferring values - so close In-Reply-To: Message-ID: Glenn, In the script below, you are specifying a form called "form1" that does not exist. If you were to change "form1" to "mno", you would of course get the data in the textarea called "Newform"... but apparently that's not quite what you want. Have you considered a server-side solution? Parsing the querystring (as Rodney suggested) would definitely work, but if you have the option to use CGI, ASP, PHP, etc. I would definitely recommend doing so. Your server admin will know what tools you can use; it's probably worth the call. Regards, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Glenn Morris |Sent: Thursday, June 13, 2002 8:48 AM |To: javascript at LaTech.edu |Subject: [Javascript] Script transferring values - so close | | |I have this script which works almost the way I want it. What I want |it to do is take the values(fname, lname) and pass them to a new form |in the same browser window. The problem with this script is that it |creates a default form showing the values. What I want it for it to |place the values in a form (NewForm.html) that I have created and sits |in the same directory. I'm sure I'm just a little tweak away from |getting it to work but I can't seem to figure out how. Thanks for any |help. |1. Person presses Click |2. My html form called NewForm.html shows up with fname, lname in |editable field. |3. All done in same browser. |This is all I want it to do. | | | | I juz don't get /Newform?? | | | | |


| | | | |
|

| |
| |
| | | | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | From phumes1 at rogers.com Thu Jun 13 10:37:57 2002 From: phumes1 at rogers.com (phumes1) Date: Thu, 13 Jun 2002 11:37:57 -0400 Subject: [Javascript]
Hi, How can I use a
there is a print function - print() which prints the page. This works in IE6(not sure about previous versions)NS4,NS6 Opera 6 -----Original Message----- From: javascript-request at LaTech.edu [mailto:javascript-request at LaTech.edu] Sent: 13 June 2002 16:23 To: javascript at LaTech.edu Subject: Javascript digest, Vol 1 #666 - 7 msgs Send Javascript mailing list submissions to javascript at LaTech.edu To subscribe or unsubscribe via the World Wide Web, visit https://lists.LaTech.edu/mailman/listinfo/javascript or, via email, send a message with subject or body 'help' to javascript-request at LaTech.edu You can reach the person managing the list at javascript-admin at LaTech.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Javascript digest..." Today's Topics: 1. RE: curious frame and event handle question (Josiah Gordon) 2. Printing in JS (Allen Wayne) 3. RE: Printing in JS (Selvaraj, Murugan (Indsys)) 4. Eval() question (Yann.DeChamplain at molson.com) 5. Script transferring values - so close (Glenn Morris) 6. Re: Script transferring values - so close (Rodney Myers) 7. RE: Script transferring values - so close (Peter Brunone) --__--__-- Message: 1 From: "Josiah Gordon" To: Subject: RE: [Javascript] curious frame and event handle question Date: Wed, 12 Jun 2002 14:16:47 -0700 Reply-To: javascript at LaTech.edu This is a multi-part message in MIME format. ------=_NextPart_000_0035_01C2121B.C9BF0030 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit MessageMy guess is that the frameset page will get it unless you set something else. That seems to be the default page (at least in IE). Go to a frame page and hit Edit-View Source. You'll always get the frameset. --JG -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Scott.Wiseman Sent: Wednesday, June 12, 2002 1:38 PM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] curious frame and event handle question onKeyPress="return submitenter(this,event)" ------=_NextPart_000_0035_01C2121B.C9BF0030 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
My=20 guess is that the frameset page will get it unless you set something = else. That=20 seems to be the default page (at least in IE). Go to a frame page and = hit=20 Edit-View Source. You'll always get the frameset.
 
 
--JG
-----Original Message-----
From: = javascript-admin at LaTech.edu=20 [mailto:javascript-admin at LaTech.edu]On Behalf Of=20 Scott.Wiseman
Sent: Wednesday, June 12, 2002 1:38=20 PM
To: 'javascript at LaTech.edu'
Subject: RE: = [Javascript]=20 curious frame and event handle question


 
 <SCRIPT=20 TYPE=3D"text/javascript">
<!--
function=20 submitenter(myfield,e)
{
var keycode;
if (window.event) = keycode =3D=20 window.event.keyCode;
else if (e) keycode =3D e.which;
else = return=20 true;
 
if (keycode =3D=3D = 13)
  =20 {
   myfield.form.submit();
   return=20 false;
   }
else
   return=20 true;
}
//-->
</SCRIPT>
 

onKeyPress=3D"return=20 submitenter(this,event)"
------=_NextPart_000_0035_01C2121B.C9BF0030-- --__--__-- Message: 2 From: Allen Wayne To: "'javascript at LaTech.edu'" Date: Thu, 13 Jun 2002 09:29:26 +0100 Subject: [Javascript] Printing in JS Reply-To: javascript at LaTech.edu This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C212B4.6D8967D0 Content-Type: text/plain; charset="iso-8859-1" Any ideas how to print the current window, without the user having to use the toolbar? i.e. I want to open the window and send it to the printer in one operation, also is there anyway to print a web page without the title bits that IE buts on the top and bottom pointers and ideas welcome Wayne ------_=_NextPart_001_01C212B4.6D8967D0 Content-Type: text/html; charset="iso-8859-1" Message
Any ideas how to print the current window, without the user having to use the toolbar? i.e. I want to open the window and send it to the printer in one operation, also is there anyway to print a web page without the title bits that IE buts on the top and bottom
 
 
pointers and ideas welcome
 
 
Wayne
 
------_=_NextPart_001_01C212B4.6D8967D0-- --__--__-- Message: 3 From: "Selvaraj, Murugan (Indsys)" To: javascript at LaTech.edu Subject: RE: [Javascript] Printing in JS Date: Thu, 13 Jun 2002 14:22:31 +0530 Reply-To: javascript at LaTech.edu This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C212B7.A7441FD0 Content-Type: text/plain; charset="iso-8859-1" Hi Wayne Try window.print to print the current window. -----Original Message----- From: Allen Wayne [mailto:Wayne.Allen at rhul.ac.uk] Sent: Thursday, June 13, 2002 1:59 PM To: 'javascript at LaTech.edu' Subject: [Javascript] Printing in JS Any ideas how to print the current window, without the user having to use the toolbar? i.e. I want to open the window and send it to the printer in one operation, also is there anyway to print a web page without the title bits that IE buts on the top and bottom pointers and ideas welcome Wayne "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." ------_=_NextPart_001_01C212B7.A7441FD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
Hi=20 Wayne
 
Try window.print to print the current=20 window.
-----Original Message-----
From: Allen Wayne=20 [mailto:Wayne.Allen at rhul.ac.uk]
Sent: Thursday, June 13, = 2002 1:59=20 PM
To: 'javascript at LaTech.edu'
Subject: = [Javascript]=20 Printing in JS

Any=20 ideas how to print the current window, without the user having to use = the=20 toolbar? i.e. I want to open the window and send it to the printer in = one=20 operation, also is there anyway to print a web page without the title = bits=20 that IE buts on the top and bottom
 
 
pointers and ideas welcome
 
 
Wayne
 


"THIS E-MAIL MESSAGE ALONG WITH ANY = ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain = confidential and privileged information.

If the reader of this message is not = the intended recipient,

you are notified that any = dissemination, distribution or copy of this

communication is strictly Prohibited. =

If you have received this message by = error, please notify us

immediately, return the original mail = to the sender and delete the

message from your system."


------_=_NextPart_001_01C212B7.A7441FD0-- --__--__-- Message: 4 From: Yann.DeChamplain at molson.com To: javascript at LaTech.edu Date: Thu, 13 Jun 2002 09:07:42 -0400 Subject: [Javascript] Eval() question Reply-To: javascript at LaTech.edu This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C212DB.4D9B5B00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm trying now to create variable in a for loop and I got an error: I tested some ways and I got something like "impossible to assign a = value to a funtion". These functions work on the style of a
(TR). After I change = the display style option I can't correctly reevaluate the new value in the = style property of the TR id so I wanna create a status variable for each row = in the table to set a status. var curNum; var maxcurNum; curNum =3D 2; maxcurNum =3D 12=20 =09 for(var count =3D curNum; count <=3D maxcurNum; count++){ -----------------------> eval("status" + count) =3D "none"; } function addr(){ while(curNum <=3D maxcurNum){ rid =3D "r" + curNum; sid =3D "status" + curNum; if(eval(sid) =3D "none"){ eval(daid).style.display =3D "Block";=20 eval(sid) =3D "Block"; //alert('i found a "none" value at id:' + daid); return true; break; } curNum++; alert(curNum++); } curNum =3D 2; //back to initial value after exit from while loop. } Bye! Yann de Champlain Consultant Web Senior Molson Canada =20 T=E9l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com = =20 =20 ------_=_NextPart_001_01C212DB.4D9B5B00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Eval() question

I'm trying now to create variable in a = for loop and I got an error:
I tested some ways and I got = something like "impossible to assign a value to a = funtion".
These functions work on the style of = a <table> (TR).  After I change the display style option I = can't correctly reevaluate the new value in the style property of the = TR id so I wanna create a status variable for each row in the table to = set a status.


        var curNum;
        var maxcurNum;
        curNum =3D 2;
        maxcurNum =3D 12
        =         =        =20
        for(var count =3D curNum; count <=3D maxcurNum; = count++){
-----------------------> = eval("status" + count) =3D "none";


        }
        function addr(){
        =         while(curNum <=3D maxcurNum){
        =         =         rid =3D "r" + curNum;
        =         =         sid =3D "status" + curNum;
        =         =         if(eval(sid) =3D "none"){
        =         =         =         eval(daid).style.display =3D "Block";
        =         =         =         eval(sid) =3D "Block";
        =         =         =         //alert('i found a "none" value at id:' + = daid);
        =         =         return true;
        =         =         break;
        =         =         }
        =         =         curNum++;
        =         =         alert(curNum++);
        =         }
        =         curNum =3D 2; //back to initial value after exit from = while loop.
        }


Bye!

Yann de Champlain
=A0=A0Consultant Web Senior
=A0=A0Molson Canada
=A0
T=E9l=A0=A0=A0=A0=A0=A0=A0=A0 (514) = 521-1786 Ext: 5041
Fax=A0=A0=A0=A0=A0=A0=A0 (514) = 598-6923
Internet=A0=A0 Yann.deChamplain at Molson.com
=A0

------_=_NextPart_001_01C212DB.4D9B5B00-- --__--__-- Message: 5 To: javascript at LaTech.edu From: "Glenn Morris" Date: Thu, 13 Jun 2002 09:47:58 -0400 Subject: [Javascript] Script transferring values - so close Reply-To: javascript at LaTech.edu I have this script which works almost the way I want it. What I want it to do is take the values(fname, lname) and pass them to a new form in the same browser window. The problem with this script is that it creates a default form showing the values. What I want it for it to place the values in a form (NewForm.html) that I have created and sits in the same directory. I'm sure I'm just a little tweak away from getting it to work but I can't seem to figure out how. Thanks for any help. 1. Person presses Click 2. My html form called NewForm.html shows up with fname, lname in editable field. 3. All done in same browser. This is all I want it to do. I juz don't get /Newform??



--__--__-- Message: 6 Date: Thu, 13 Jun 2002 15:24:11 +0100 From: Rodney Myers To: javascript at LaTech.edu Subject: Re: [Javascript] Script transferring values - so close Reply-To: javascript at LaTech.edu Why not use METHOD="GET" and then parse the values out of the query string ? Rodney Glenn Morris wrote: > I have this script which works almost the way I want it. What I want > it to do is take the values(fname, lname) and pass them to a new form > in the same browser window. The problem with this script is that it > creates a default form showing the values. What I want it for it to > place the values in a form (NewForm.html) that I have created and sits > in the same directory. I'm sure I'm just a little tweak away from > getting it to work but I can't seem to figure out how. Thanks for any > help. > 1. Person presses Click > 2. My html form called NewForm.html shows up with fname, lname in > editable field. > 3. All done in same browser. > This is all I want it to do. > > > > I juz don't get /Newform?? > > > > >


> > > > >
>

> ="Click"> >
> >
> > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript --__--__-- Message: 7 From: "Peter Brunone" To: Subject: RE: [Javascript] Script transferring values - so close Date: Thu, 13 Jun 2002 10:29:29 -0500 Organization: Your Name Here Reply-To: javascript at LaTech.edu Glenn, In the script below, you are specifying a form called "form1" that does not exist. If you were to change "form1" to "mno", you would of course get the data in the textarea called "Newform"... but apparently that's not quite what you want. Have you considered a server-side solution? Parsing the querystring (as Rodney suggested) would definitely work, but if you have the option to use CGI, ASP, PHP, etc. I would definitely recommend doing so. Your server admin will know what tools you can use; it's probably worth the call. Regards, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Glenn Morris |Sent: Thursday, June 13, 2002 8:48 AM |To: javascript at LaTech.edu |Subject: [Javascript] Script transferring values - so close | | |I have this script which works almost the way I want it. What I want |it to do is take the values(fname, lname) and pass them to a new form |in the same browser window. The problem with this script is that it |creates a default form showing the values. What I want it for it to |place the values in a form (NewForm.html) that I have created and sits |in the same directory. I'm sure I'm just a little tweak away from |getting it to work but I can't seem to figure out how. Thanks for any |help. |1. Person presses Click |2. My html form called NewForm.html shows up with fname, lname in |editable field. |3. All done in same browser. |This is all I want it to do. | | | | I juz don't get /Newform?? | | | | |


| | | | |
|

| |
| |
| | | | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | --__--__-- _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript End of Javascript Digest DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From peter at brunone.com Thu Jun 13 10:58:04 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 13 Jun 2002 10:58:04 -0500 Subject: [Javascript]
Message-ID: It depends on what the work is. Would this be a server-side or client-side task? See http://aspalliance.com/peterbrunone/pleasewait.asp for a full server/client side solution that you can adapt for just client side if necessary. Cheers, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |Hi, | |How can I use a
Thanks Rodney and Peter but I have already tried the Query string option. I cannot use it because on the actual form I will have to much data coming over (I just used two as an example). Also I cannot use any other method but Javascript (to many details to go into). There has to be a way in Javascript to pass values from one page to another page(an html form I created and is sitting in same dir. as original) in the same browser. Believe me when I say I have no other option. Why not use METHOD="GET" and then parse the values out of the query string ? Rodney ------------------------------------------------------------------------------------- Glenn, In the script below, you are specifying a form called "form1" that does not exist. If you were to change "form1" to "mno", you would of course get the data in the textarea called "Newform"... but apparently that's not quite what you want. Have you considered a server-side solution? Parsing the querystring (as Rodney suggested) would definitely work, but if you have the option to use CGI, ASP, PHP, etc. I would definitely recommend doing so. Your server admin will know what tools you can use; it's probably worth the call. Regards, Peter From swiseman at remax-cahi.com Thu Jun 13 11:55:23 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 09:55:23 -0700 Subject: [Javascript] removing zeros? Message-ID: When I build an array from asp/ado/sql into javascript array it takes out the 00000's and office number is "0001" but the array shows "1" so when the user inputs 0001 it does not find the "1" office so how can I have the user input 0001, but I find "1" or How can I get the array to put in "0001"... any help would be appreciated...I need to get this done by friday... the pressure is killing me!!!!!!!!!!!! From swiseman at remax-cahi.com Thu Jun 13 12:03:09 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 10:03:09 -0700 Subject: [Javascript] any way to add a zero to a number Message-ID: where would I put this? <% '--------------------------------------------------------------- '--------------------------------------------------------------- '---------------------GET offices FROM DATBASE------------------ '--------------------------------------------------------------- '--------------------------------------------------------------- dim OfficeNameNumber(2000),countarray set cmd = nothing set cmd = server.CreateObject("ADODB.COMMAND") with cmd .ActiveConnection = cnn .CommandText = "get_active_offices" .CommandType = adCmdStoredProc end with set rst = cmd.execute DO WHILE not rst.eof if rst("franchiseid") then OfficeNameNumber(rst("franchiseid")) = rst("officename") end if rst.movenext LOOP ' ReDim Preserve OfficeNameNumber(countarray) rst.close set rst = nothing set cmd = nothing 'response.write "

"& OfficeNameNumber(789) %> -----Original Message----- From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho at twii.net] Sent: Thursday, June 13, 2002 10:05 AM To: 'javascript at LaTech.edu' Subject: FW: [Javascript] any way to add a zero to a number Hi scott I think Josiah Gordon already answer to that question Laurent -----Original Message----- From: Josiah Gordon [mailto:jgordon at directfile.com] Sent: 12 June 2002 02:01 To: javascript at LaTech.edu Subject: RE: [Javascript] any way to add a zero to a number Try creating a string variable and appending your variable to "000". In your database read the var in as an int. var str = "000"; var num = 1; str += num; document.write(str); // ==> 0001 That work? Josiah Gordon -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Scott.Wiseman Sent: Tuesday, June 11, 2002 5:51 PM To: 'javascript at LaTech.edu' Subject: [Javascript] any way to add a zero to a number I really want 0001 but I get 1.. this is not good for my database Scott p.s. Thanks for everyone's help so far. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From LMuchacho at twii.net Thu Jun 13 12:04:37 2002 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Thu, 13 Jun 2002 18:04:37 +0100 Subject: FW: [Javascript] any way to add a zero to a number Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03C5D036@lon.webmail.twii.net> Hi scott I think Josiah Gordon already answer to that question Laurent -----Original Message----- From: Josiah Gordon [mailto:jgordon at directfile.com] Sent: 12 June 2002 02:01 To: javascript at LaTech.edu Subject: RE: [Javascript] any way to add a zero to a number Try creating a string variable and appending your variable to "000". In your database read the var in as an int. var str = "000"; var num = 1; str += num; document.write(str); // ==> 0001 That work? Josiah Gordon -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Scott.Wiseman Sent: Tuesday, June 11, 2002 5:51 PM To: 'javascript at LaTech.edu' Subject: [Javascript] any way to add a zero to a number I really want 0001 but I get 1.. this is not good for my database Scott p.s. Thanks for everyone's help so far. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From swiseman at remax-cahi.com Thu Jun 13 12:11:14 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 10:11:14 -0700 Subject: [Javascript] RE: Script transferring values - so close (Peter Brunone) Message-ID: -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Thursday, June 13, 2002 10:13 AM To: javascript at LaTech.edu Subject: RE: [Javascript] RE: Script transferring values - so close (Peter Brunone) How about setting a cookie? I don't think they share the same limitations as the querystring (which may or may not still be truncated at 255 these days). |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |Thanks Rodney and Peter but I have already tried the Query string |option. I cannot use it because on the actual form I will have to much |data coming over (I just used two as an example). Also I cannot use |any other method but Javascript (to many details to go into). There |has to be a way in Javascript to pass values from one page to another |page(an html form I created and is sitting in same dir. as original) |in the same browser. Believe me when I say I have no other option. | | |Why not use METHOD="GET" and then parse the values out of the query |string |? | |Rodney |------------------------------------------------------------------- |------------------ |Glenn, | | In the script below, you are specifying a form called |"form1" that does not |exist. If you were to change "form1" to "mno", you would of course |get the |data in the textarea called "Newform"... but apparently that's not |quite |what you want. | Have you considered a server-side solution? Parsing the |querystring (as |Rodney suggested) would definitely work, but if you have the option to |use |CGI, ASP, PHP, etc. I would definitely recommend doing so. Your |server |admin will know what tools you can use; it's probably worth the call. | |Regards, | |Peter | | | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Thu Jun 13 12:12:46 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 13 Jun 2002 12:12:46 -0500 Subject: [Javascript] RE: Script transferring values - so close (Peter Brunone) In-Reply-To: Message-ID: How about setting a cookie? I don't think they share the same limitations as the querystring (which may or may not still be truncated at 255 these days). |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |Thanks Rodney and Peter but I have already tried the Query string |option. I cannot use it because on the actual form I will have to much |data coming over (I just used two as an example). Also I cannot use |any other method but Javascript (to many details to go into). There |has to be a way in Javascript to pass values from one page to another |page(an html form I created and is sitting in same dir. as original) |in the same browser. Believe me when I say I have no other option. | | |Why not use METHOD="GET" and then parse the values out of the query |string |? | |Rodney |------------------------------------------------------------------- |------------------ |Glenn, | | In the script below, you are specifying a form called |"form1" that does not |exist. If you were to change "form1" to "mno", you would of course |get the |data in the textarea called "Newform"... but apparently that's not |quite |what you want. | Have you considered a server-side solution? Parsing the |querystring (as |Rodney suggested) would definitely work, but if you have the option to |use |CGI, ASP, PHP, etc. I would definitely recommend doing so. Your |server |admin will know what tools you can use; it's probably worth the call. | |Regards, | |Peter | | | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | From lshadoff at brazosport.cc.tx.us Thu Jun 13 12:16:01 2002 From: lshadoff at brazosport.cc.tx.us (Lewis Shadoff) Date: Thu, 13 Jun 2002 12:16:01 -0500 Subject: [Javascript] Re: Script transferring values - so close In-Reply-To: <20020613170100.E1609308BD6@LaTech.edu> Message-ID: <5.1.0.14.2.20020613121318.03191d60@pop3.brazosport.cc.tx.us> You can use a FRAMEd page with a zero height (invisible) lower frame to store all the JavaScript. Load all new pages in the upper frame, then anything stored in a variable is available from the new page. At 12:01 PM 6/13/02, you wrote: >There >has to be a way in Javascript to pass values from one page to another >page(an html form I created and is sitting in same dir. as original) >in the same browser. Believe me when I say I have no other option. Lewis A. Shadoff, Ph.D. Brazosport College Lake Jackson, TX From swiseman at remax-cahi.com Thu Jun 13 12:20:17 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 10:20:17 -0700 Subject: [Javascript] any way to add a zero to a number Message-ID: officearray[0001]='office test'; officearray[0004]='office test'; officearray[0006]='office test'; officearray[0008]='office test'; OK I got it to work with this code: <% for x = lbound(OfficeNameNumber) to ubound(OfficeNameNumber) %> <% if OfficeNameNumber(x) <> "" then %> <%response.write "officearray["&right("0000"&x,4)&"]='"&replace(OfficeNameNumber(x),"'","\'") &"';" &vbcrlf%> <% end if %> <%next%> but when I pass it "0001" it does not find the "0001" but when I pass it the "1" it finds the "0001" what is going on here... -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Thursday, June 13, 2002 10:26 AM To: javascript at LaTech.edu Subject: RE: [Javascript] any way to add a zero to a number Scott, It looks like you're doing exactly what you need to do already in the server-side VBScript. However, you're trying to use a string as the client-side array index, and I don't think you can do that. Either make two arrays (one for office name and one for office number), or just pull the number parameter in and ParseInt() it so it matches the array when you want to select it. Will this work, or is there more to the solution? Regards, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |where would I put this? | | | |<% | |'--------------------------------------------------------------- |'--------------------------------------------------------------- |'---------------------GET offices FROM DATBASE------------------ |'--------------------------------------------------------------- |'--------------------------------------------------------------- | dim OfficeNameNumber(2000),countarray | | set cmd = nothing | set cmd = server.CreateObject("ADODB.COMMAND") | with cmd | .ActiveConnection = cnn | .CommandText = "get_active_offices" | .CommandType = adCmdStoredProc | end with | set rst = cmd.execute | | DO WHILE not rst.eof | if rst("franchiseid") then | | OfficeNameNumber(rst("franchiseid")) = rst("officename") | | end if | rst.movenext | LOOP | |' ReDim Preserve OfficeNameNumber(countarray) | rst.close | set rst = nothing | set cmd = nothing | | |'response.write "

"& OfficeNameNumber(789) | | |%> | | | | |-----Original Message----- |From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho at twii.net] | |Hi scott | |I think Josiah Gordon already answer to that question | |Laurent | |-----Original Message----- |From: Josiah Gordon [mailto:jgordon at directfile.com] | |Try creating a string variable and appending your variable to |"000". In your |database read the var in as an int. | | var str = "000"; | var num = 1; | str += num; | document.write(str); // ==> 0001 | |That work? | |Josiah Gordon | | |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |I really want 0001 |but I get 1.. | |this is not good |for my database | |Scott | |p.s. Thanks for everyone's help so far. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Thu Jun 13 12:25:41 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 13 Jun 2002 12:25:41 -0500 Subject: [Javascript] any way to add a zero to a number In-Reply-To: Message-ID: Scott, It looks like you're doing exactly what you need to do already in the server-side VBScript. However, you're trying to use a string as the client-side array index, and I don't think you can do that. Either make two arrays (one for office name and one for office number), or just pull the number parameter in and ParseInt() it so it matches the array when you want to select it. Will this work, or is there more to the solution? Regards, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |where would I put this? | | | |<% | |'--------------------------------------------------------------- |'--------------------------------------------------------------- |'---------------------GET offices FROM DATBASE------------------ |'--------------------------------------------------------------- |'--------------------------------------------------------------- | dim OfficeNameNumber(2000),countarray | | set cmd = nothing | set cmd = server.CreateObject("ADODB.COMMAND") | with cmd | .ActiveConnection = cnn | .CommandText = "get_active_offices" | .CommandType = adCmdStoredProc | end with | set rst = cmd.execute | | DO WHILE not rst.eof | if rst("franchiseid") then | | OfficeNameNumber(rst("franchiseid")) = rst("officename") | | end if | rst.movenext | LOOP | |' ReDim Preserve OfficeNameNumber(countarray) | rst.close | set rst = nothing | set cmd = nothing | | |'response.write "

"& OfficeNameNumber(789) | | |%> | | | | |-----Original Message----- |From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho at twii.net] | |Hi scott | |I think Josiah Gordon already answer to that question | |Laurent | |-----Original Message----- |From: Josiah Gordon [mailto:jgordon at directfile.com] | |Try creating a string variable and appending your variable to |"000". In your |database read the var in as an int. | | var str = "000"; | var num = 1; | str += num; | document.write(str); // ==> 0001 | |That work? | |Josiah Gordon | | |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |I really want 0001 |but I get 1.. | |this is not good |for my database | |Scott | |p.s. Thanks for everyone's help so far. From swiseman at remax-cahi.com Thu Jun 13 12:28:42 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 10:28:42 -0700 Subject: [Javascript] any way to add a zero to a number Message-ID: I see the javascript function being passed the 0788 and the 0789 but it does not get the office when I pass it the 0001 it does get the office.. what gives officearray[0788]='office in the valley'; officearray[0789]='office in the hills'; -----Original Message----- From: Scott.Wiseman Sent: Thursday, June 13, 2002 10:20 AM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] any way to add a zero to a number officearray[0001]='office test'; officearray[0004]='office test'; officearray[0006]='office test'; officearray[0008]='office test'; OK I got it to work with this code: <% for x = lbound(OfficeNameNumber) to ubound(OfficeNameNumber) %> <% if OfficeNameNumber(x) <> "" then %> <%response.write "officearray["&right("0000"&x,4)&"]='"&replace(OfficeNameNumber(x),"'","\'") &"';" &vbcrlf%> <% end if %> <%next%> but when I pass it "0001" it does not find the "0001" but when I pass it the "1" it finds the "0001" what is going on here... -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Thursday, June 13, 2002 10:26 AM To: javascript at LaTech.edu Subject: RE: [Javascript] any way to add a zero to a number Scott, It looks like you're doing exactly what you need to do already in the server-side VBScript. However, you're trying to use a string as the client-side array index, and I don't think you can do that. Either make two arrays (one for office name and one for office number), or just pull the number parameter in and ParseInt() it so it matches the array when you want to select it. Will this work, or is there more to the solution? Regards, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |where would I put this? | | | |<% | |'--------------------------------------------------------------- |'--------------------------------------------------------------- |'---------------------GET offices FROM DATBASE------------------ |'--------------------------------------------------------------- |'--------------------------------------------------------------- | dim OfficeNameNumber(2000),countarray | | set cmd = nothing | set cmd = server.CreateObject("ADODB.COMMAND") | with cmd | .ActiveConnection = cnn | .CommandText = "get_active_offices" | .CommandType = adCmdStoredProc | end with | set rst = cmd.execute | | DO WHILE not rst.eof | if rst("franchiseid") then | | OfficeNameNumber(rst("franchiseid")) = rst("officename") | | end if | rst.movenext | LOOP | |' ReDim Preserve OfficeNameNumber(countarray) | rst.close | set rst = nothing | set cmd = nothing | | |'response.write "

"& OfficeNameNumber(789) | | |%> | | | | |-----Original Message----- |From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho at twii.net] | |Hi scott | |I think Josiah Gordon already answer to that question | |Laurent | |-----Original Message----- |From: Josiah Gordon [mailto:jgordon at directfile.com] | |Try creating a string variable and appending your variable to |"000". In your |database read the var in as an int. | | var str = "000"; | var num = 1; | str += num; | document.write(str); // ==> 0001 | |That work? | |Josiah Gordon | | |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |I really want 0001 |but I get 1.. | |this is not good |for my database | |Scott | |p.s. Thanks for everyone's help so far. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Thu Jun 13 12:30:39 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 10:30:39 -0700 Subject: [Javascript] is there a way to search and replace "0" with nothing??? Message-ID: -----Original Message----- From: Scott.Wiseman Sent: Thursday, June 13, 2002 10:29 AM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] any way to add a zero to a number I see the javascript function being passed the 0788 and the 0789 but it does not get the office when I pass it the 0001 it does get the office.. what gives officearray[0788]='office in the valley'; officearray[0789]='office in the hills'; -----Original Message----- From: Scott.Wiseman Sent: Thursday, June 13, 2002 10:20 AM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] any way to add a zero to a number officearray[0001]='office test'; officearray[0004]='office test'; officearray[0006]='office test'; officearray[0008]='office test'; OK I got it to work with this code: <% for x = lbound(OfficeNameNumber) to ubound(OfficeNameNumber) %> <% if OfficeNameNumber(x) <> "" then %> <%response.write "officearray["&right("0000"&x,4)&"]='"&replace(OfficeNameNumber(x),"'","\'") &"';" &vbcrlf%> <% end if %> <%next%> but when I pass it "0001" it does not find the "0001" but when I pass it the "1" it finds the "0001" what is going on here... -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Thursday, June 13, 2002 10:26 AM To: javascript at LaTech.edu Subject: RE: [Javascript] any way to add a zero to a number Scott, It looks like you're doing exactly what you need to do already in the server-side VBScript. However, you're trying to use a string as the client-side array index, and I don't think you can do that. Either make two arrays (one for office name and one for office number), or just pull the number parameter in and ParseInt() it so it matches the array when you want to select it. Will this work, or is there more to the solution? Regards, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |where would I put this? | | | |<% | |'--------------------------------------------------------------- |'--------------------------------------------------------------- |'---------------------GET offices FROM DATBASE------------------ |'--------------------------------------------------------------- |'--------------------------------------------------------------- | dim OfficeNameNumber(2000),countarray | | set cmd = nothing | set cmd = server.CreateObject("ADODB.COMMAND") | with cmd | .ActiveConnection = cnn | .CommandText = "get_active_offices" | .CommandType = adCmdStoredProc | end with | set rst = cmd.execute | | DO WHILE not rst.eof | if rst("franchiseid") then | | OfficeNameNumber(rst("franchiseid")) = rst("officename") | | end if | rst.movenext | LOOP | |' ReDim Preserve OfficeNameNumber(countarray) | rst.close | set rst = nothing | set cmd = nothing | | |'response.write "

"& OfficeNameNumber(789) | | |%> | | | | |-----Original Message----- |From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho at twii.net] | |Hi scott | |I think Josiah Gordon already answer to that question | |Laurent | |-----Original Message----- |From: Josiah Gordon [mailto:jgordon at directfile.com] | |Try creating a string variable and appending your variable to |"000". In your |database read the var in as an int. | | var str = "000"; | var num = 1; | str += num; | document.write(str); // ==> 0001 | |That work? | |Josiah Gordon | | |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On | |I really want 0001 |but I get 1.. | |this is not good |for my database | |Scott | |p.s. Thanks for everyone's help so far. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Thu Jun 13 12:41:46 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 10:41:46 -0700 Subject: [Javascript] any way to add a zero to a number Message-ID: can index be non-integers? I am reading in the book that I can have an array like this somearray['scott']='programmer' is this possible and if so why isn't this working -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Thursday, June 13, 2002 10:46 AM To: javascript at LaTech.edu Subject: RE: [Javascript] any way to add a zero to a number That's exactly what should happen. You pass it the index, and it finds the corresponding value in the array. |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman | |officearray[0001]='office test'; |officearray[0004]='office test'; |officearray[0006]='office test'; |officearray[0008]='office test'; | |OK I got it to work with this code: | | <% for x = lbound(OfficeNameNumber) to ubound(OfficeNameNumber) %> | <% if OfficeNameNumber(x) <> "" then %> | <%response.write |"officearray["&right("0000"&x,4)&"]='"&replace(OfficeNameNumber(x), |"'","\'") |&"';" &vbcrlf%> | <% end if %> | <%next%> | |but when I pass it "0001" it does not find the "0001" |but when I pass it the "1" it finds the "0001" | |what is going on here... | |-----Original Message----- |From: Peter Brunone [mailto:peter at brunone.com] | |Scott, | | It looks like you're doing exactly what you need to do already in |the |server-side VBScript. However, you're trying to use a string as the |client-side array index, and I don't think you can do that. | Either make two arrays (one for office name and one for office |number), or |just pull the number parameter in and ParseInt() it so it matches the array |when you want to select it. Will this work, or is there more to the |solution? | |Regards, | |Peter | ||-----Original Message----- ||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On || ||where would I put this? || || || ||<% || ||'--------------------------------------------------------------- ||'--------------------------------------------------------------- ||'---------------------GET offices FROM DATBASE------------------ ||'--------------------------------------------------------------- ||'--------------------------------------------------------------- || dim OfficeNameNumber(2000),countarray || || set cmd = nothing || set cmd = server.CreateObject("ADODB.COMMAND") || with cmd || .ActiveConnection = cnn || .CommandText = "get_active_offices" || .CommandType = adCmdStoredProc || end with || set rst = cmd.execute || || DO WHILE not rst.eof || if rst("franchiseid") then || || OfficeNameNumber(rst("franchiseid")) = rst("officename") || || end if || rst.movenext || LOOP || ||' ReDim Preserve OfficeNameNumber(countarray) || rst.close || set rst = nothing || set cmd = nothing || || ||'response.write "

"& OfficeNameNumber(789) || || ||%> || || || || ||-----Original Message----- ||From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho at twii.net] || ||Hi scott || ||I think Josiah Gordon already answer to that question || ||Laurent || ||-----Original Message----- ||From: Josiah Gordon [mailto:jgordon at directfile.com] || ||Try creating a string variable and appending your variable to ||"000". In your ||database read the var in as an int. || || var str = "000"; || var num = 1; || str += num; || document.write(str); // ==> 0001 || ||That work? || ||Josiah Gordon || || ||-----Original Message----- ||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On || ||I really want 0001 ||but I get 1.. || ||this is not good ||for my database || ||Scott || ||p.s. Thanks for everyone's help so far. | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Thu Jun 13 12:45:54 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 13 Jun 2002 12:45:54 -0500 Subject: [Javascript] any way to add a zero to a number In-Reply-To: Message-ID: That's exactly what should happen. You pass it the index, and it finds the corresponding value in the array. |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman | |officearray[0001]='office test'; |officearray[0004]='office test'; |officearray[0006]='office test'; |officearray[0008]='office test'; | |OK I got it to work with this code: | | <% for x = lbound(OfficeNameNumber) to ubound(OfficeNameNumber) %> | <% if OfficeNameNumber(x) <> "" then %> | <%response.write |"officearray["&right("0000"&x,4)&"]='"&replace(OfficeNameNumber(x), |"'","\'") |&"';" &vbcrlf%> | <% end if %> | <%next%> | |but when I pass it "0001" it does not find the "0001" |but when I pass it the "1" it finds the "0001" | |what is going on here... | |-----Original Message----- |From: Peter Brunone [mailto:peter at brunone.com] | |Scott, | | It looks like you're doing exactly what you need to do already in |the |server-side VBScript. However, you're trying to use a string as the |client-side array index, and I don't think you can do that. | Either make two arrays (one for office name and one for office |number), or |just pull the number parameter in and ParseInt() it so it matches the array |when you want to select it. Will this work, or is there more to the |solution? | |Regards, | |Peter | ||-----Original Message----- ||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On || ||where would I put this? || || || ||<% || ||'--------------------------------------------------------------- ||'--------------------------------------------------------------- ||'---------------------GET offices FROM DATBASE------------------ ||'--------------------------------------------------------------- ||'--------------------------------------------------------------- || dim OfficeNameNumber(2000),countarray || || set cmd = nothing || set cmd = server.CreateObject("ADODB.COMMAND") || with cmd || .ActiveConnection = cnn || .CommandText = "get_active_offices" || .CommandType = adCmdStoredProc || end with || set rst = cmd.execute || || DO WHILE not rst.eof || if rst("franchiseid") then || || OfficeNameNumber(rst("franchiseid")) = rst("officename") || || end if || rst.movenext || LOOP || ||' ReDim Preserve OfficeNameNumber(countarray) || rst.close || set rst = nothing || set cmd = nothing || || ||'response.write "

"& OfficeNameNumber(789) || || ||%> || || || || ||-----Original Message----- ||From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho at twii.net] || ||Hi scott || ||I think Josiah Gordon already answer to that question || ||Laurent || ||-----Original Message----- ||From: Josiah Gordon [mailto:jgordon at directfile.com] || ||Try creating a string variable and appending your variable to ||"000". In your ||database read the var in as an int. || || var str = "000"; || var num = 1; || str += num; || document.write(str); // ==> 0001 || ||That work? || ||Josiah Gordon || || ||-----Original Message----- ||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On || ||I really want 0001 ||but I get 1.. || ||this is not good ||for my database || ||Scott || ||p.s. Thanks for everyone's help so far. | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | From swiseman at remax-cahi.com Thu Jun 13 13:07:57 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 11:07:57 -0700 Subject: [Javascript] any way to add a zero to a number--got it...than ks for you help guys Message-ID: officearray['0789']='REtest PROs office'; function getofficename(number,thefield) { // when number is 0789; var num1; num1 = number.toString(); if(officearray[num1]>"") { thefield.value = officearray[num1]; } } -----Original Message----- From: Scott.Wiseman Sent: Thursday, June 13, 2002 10:42 AM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] any way to add a zero to a number can index be non-integers? I am reading in the book that I can have an array like this somearray['scott']='programmer' is this possible and if so why isn't this working -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Thursday, June 13, 2002 10:46 AM To: javascript at LaTech.edu Subject: RE: [Javascript] any way to add a zero to a number That's exactly what should happen. You pass it the index, and it finds the corresponding value in the array. |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman | |officearray[0001]='office test'; |officearray[0004]='office test'; |officearray[0006]='office test'; |officearray[0008]='office test'; | |OK I got it to work with this code: | | <% for x = lbound(OfficeNameNumber) to ubound(OfficeNameNumber) %> | <% if OfficeNameNumber(x) <> "" then %> | <%response.write |"officearray["&right("0000"&x,4)&"]='"&replace(OfficeNameNumber(x), |"'","\'") |&"';" &vbcrlf%> | <% end if %> | <%next%> | |but when I pass it "0001" it does not find the "0001" |but when I pass it the "1" it finds the "0001" | |what is going on here... | |-----Original Message----- |From: Peter Brunone [mailto:peter at brunone.com] | |Scott, | | It looks like you're doing exactly what you need to do already in |the |server-side VBScript. However, you're trying to use a string as the |client-side array index, and I don't think you can do that. | Either make two arrays (one for office name and one for office |number), or |just pull the number parameter in and ParseInt() it so it matches the array |when you want to select it. Will this work, or is there more to the |solution? | |Regards, | |Peter | ||-----Original Message----- ||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On || ||where would I put this? || || || ||<% || ||'--------------------------------------------------------------- ||'--------------------------------------------------------------- ||'---------------------GET offices FROM DATBASE------------------ ||'--------------------------------------------------------------- ||'--------------------------------------------------------------- || dim OfficeNameNumber(2000),countarray || || set cmd = nothing || set cmd = server.CreateObject("ADODB.COMMAND") || with cmd || .ActiveConnection = cnn || .CommandText = "get_active_offices" || .CommandType = adCmdStoredProc || end with || set rst = cmd.execute || || DO WHILE not rst.eof || if rst("franchiseid") then || || OfficeNameNumber(rst("franchiseid")) = rst("officename") || || end if || rst.movenext || LOOP || ||' ReDim Preserve OfficeNameNumber(countarray) || rst.close || set rst = nothing || set cmd = nothing || || ||'response.write "

"& OfficeNameNumber(789) || || ||%> || || || || ||-----Original Message----- ||From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho at twii.net] || ||Hi scott || ||I think Josiah Gordon already answer to that question || ||Laurent || ||-----Original Message----- ||From: Josiah Gordon [mailto:jgordon at directfile.com] || ||Try creating a string variable and appending your variable to ||"000". In your ||database read the var in as an int. || || var str = "000"; || var num = 1; || str += num; || document.write(str); // ==> 0001 || ||That work? || ||Josiah Gordon || || ||-----Original Message----- ||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On || ||I really want 0001 ||but I get 1.. || ||this is not good ||for my database || ||Scott || ||p.s. Thanks for everyone's help so far. | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Thu Jun 13 13:17:10 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 11:17:10 -0700 Subject: [Javascript] any way to add a zero to a number Message-ID: function getofficename(number,thefield) { var num1,num; num1 = number.toString(); alert(num1); ---------------this will give me the "0789" num = parseInt(num); alert(num); ------------------this will give me the 7 if(officearray[num]>"") { // alert(number); thefield.value = officearray[num]; } } -----Original Message----- From: Scott.Wiseman Sent: Thursday, June 13, 2002 10:42 AM To: 'javascript at LaTech.edu' Subject: RE: [Javascript] any way to add a zero to a number can index be non-integers? I am reading in the book that I can have an array like this somearray['scott']='programmer' is this possible and if so why isn't this working -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Thursday, June 13, 2002 10:46 AM To: javascript at LaTech.edu Subject: RE: [Javascript] any way to add a zero to a number That's exactly what should happen. You pass it the index, and it finds the corresponding value in the array. |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman | |officearray[0001]='office test'; |officearray[0004]='office test'; |officearray[0006]='office test'; |officearray[0008]='office test'; | |OK I got it to work with this code: | | <% for x = lbound(OfficeNameNumber) to ubound(OfficeNameNumber) %> | <% if OfficeNameNumber(x) <> "" then %> | <%response.write |"officearray["&right("0000"&x,4)&"]='"&replace(OfficeNameNumber(x), |"'","\'") |&"';" &vbcrlf%> | <% end if %> | <%next%> | |but when I pass it "0001" it does not find the "0001" |but when I pass it the "1" it finds the "0001" | |what is going on here... | |-----Original Message----- |From: Peter Brunone [mailto:peter at brunone.com] | |Scott, | | It looks like you're doing exactly what you need to do already in |the |server-side VBScript. However, you're trying to use a string as the |client-side array index, and I don't think you can do that. | Either make two arrays (one for office name and one for office |number), or |just pull the number parameter in and ParseInt() it so it matches the array |when you want to select it. Will this work, or is there more to the |solution? | |Regards, | |Peter | ||-----Original Message----- ||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On || ||where would I put this? || || || ||<% || ||'--------------------------------------------------------------- ||'--------------------------------------------------------------- ||'---------------------GET offices FROM DATBASE------------------ ||'--------------------------------------------------------------- ||'--------------------------------------------------------------- || dim OfficeNameNumber(2000),countarray || || set cmd = nothing || set cmd = server.CreateObject("ADODB.COMMAND") || with cmd || .ActiveConnection = cnn || .CommandText = "get_active_offices" || .CommandType = adCmdStoredProc || end with || set rst = cmd.execute || || DO WHILE not rst.eof || if rst("franchiseid") then || || OfficeNameNumber(rst("franchiseid")) = rst("officename") || || end if || rst.movenext || LOOP || ||' ReDim Preserve OfficeNameNumber(countarray) || rst.close || set rst = nothing || set cmd = nothing || || ||'response.write "

"& OfficeNameNumber(789) || || ||%> || || || || ||-----Original Message----- ||From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho at twii.net] || ||Hi scott || ||I think Josiah Gordon already answer to that question || ||Laurent || ||-----Original Message----- ||From: Josiah Gordon [mailto:jgordon at directfile.com] || ||Try creating a string variable and appending your variable to ||"000". In your ||database read the var in as an int. || || var str = "000"; || var num = 1; || str += num; || document.write(str); // ==> 0001 || ||That work? || ||Josiah Gordon || || ||-----Original Message----- ||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On || ||I really want 0001 ||but I get 1.. || ||this is not good ||for my database || ||Scott || ||p.s. Thanks for everyone's help so far. | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Thu Jun 13 13:31:05 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 13 Jun 2002 13:31:05 -0500 Subject: [Javascript] any way to add a zero to a number In-Reply-To: Message-ID: If you can do that, then you'll need to create the index as a string rather than an integer (i.e. delimit it with quotes), and pass a string rather than an integer to look up the value. <%response.write"officearray['"&right("0000"&x,4)&"']='"&replace(OfficeNameN umber(x), "'","\'")&"';" &vbcrlf%> |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman | |can index be non-integers? | |I am reading in the book | |that I can have an array like this | |somearray['scott']='programmer' | |is this possible |and if so why isn't this working | |-----Original Message----- |From: Peter Brunone [mailto:peter at brunone.com] | | That's exactly what should happen. You pass it the index, and it |finds the |corresponding value in the array. | ||-----Original Message----- ||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On ||Behalf Of Scott.Wiseman || ||officearray[0001]='office test'; ||officearray[0004]='office test'; ||officearray[0006]='office test'; ||officearray[0008]='office test'; || ||OK I got it to work with this code: || || <% for x = lbound(OfficeNameNumber) to ubound(OfficeNameNumber) %> || <% if OfficeNameNumber(x) <> "" then %> || <%response.write ||"officearray["&right("0000"&x,4)&"]='"&replace(OfficeNameNumber(x), ||"'","\'") ||&"';" &vbcrlf%> || <% end if %> || <%next%> || ||but when I pass it "0001" it does not find the "0001" ||but when I pass it the "1" it finds the "0001" || ||what is going on here... || ||-----Original Message----- ||From: Peter Brunone [mailto:peter at brunone.com] || ||Scott, || || It looks like you're doing exactly what you need to do already in ||the ||server-side VBScript. However, you're trying to use a string as the ||client-side array index, and I don't think you can do that. || Either make two arrays (one for office name and one for office ||number), or ||just pull the number parameter in and ParseInt() it so it matches |the array ||when you want to select it. Will this work, or is there more to the ||solution? || ||Regards, || ||Peter || |||-----Original Message----- |||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On ||| |||where would I put this? ||| ||| ||| |||<% ||| |||'--------------------------------------------------------------- |||'--------------------------------------------------------------- |||'---------------------GET offices FROM DATBASE------------------ |||'--------------------------------------------------------------- |||'--------------------------------------------------------------- ||| dim OfficeNameNumber(2000),countarray ||| ||| set cmd = nothing ||| set cmd = server.CreateObject("ADODB.COMMAND") ||| with cmd ||| .ActiveConnection = cnn ||| .CommandText = "get_active_offices" ||| .CommandType = adCmdStoredProc ||| end with ||| set rst = cmd.execute ||| ||| DO WHILE not rst.eof ||| if rst("franchiseid") then ||| ||| OfficeNameNumber(rst("franchiseid")) = rst("officename") ||| ||| end if ||| rst.movenext ||| LOOP ||| |||' ReDim Preserve OfficeNameNumber(countarray) ||| rst.close ||| set rst = nothing ||| set cmd = nothing ||| ||| |||'response.write "

"& OfficeNameNumber(789) ||| ||| |||%> ||| ||| ||| ||| |||-----Original Message----- |||From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho at twii.net] ||| |||Hi scott ||| |||I think Josiah Gordon already answer to that question ||| |||Laurent ||| |||-----Original Message----- |||From: Josiah Gordon [mailto:jgordon at directfile.com] ||| |||Try creating a string variable and appending your variable to |||"000". In your |||database read the var in as an int. ||| ||| var str = "000"; ||| var num = 1; ||| str += num; ||| document.write(str); // ==> 0001 ||| |||That work? ||| |||Josiah Gordon ||| ||| |||-----Original Message----- |||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On ||| |||I really want 0001 |||but I get 1.. ||| |||this is not good |||for my database ||| |||Scott ||| |||p.s. Thanks for everyone's help so far. || From aravindan_n at hotmail.com Thu Jun 13 13:33:56 2002 From: aravindan_n at hotmail.com (aravind narasimhan) Date: Thu, 13 Jun 2002 18:33:56 +0000 Subject: [Javascript] rollover/cascading menu problem Message-ID: hi i see a post by u on the menu rolling over problem, with flash components below it. i am facing the same problem. did you fix this or did u get a solution to this problem ? if so can u pls tell me how to take care of this. i'd greatly appreciate your help. thanks. Aravind _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From gmorris at sct.com Thu Jun 13 13:56:26 2002 From: gmorris at sct.com (Glenn Morris) Date: Thu, 13 Jun 2002 14:56:26 -0400 Subject: [Javascript] Need simple transfer form Message-ID: I posted an earlier script about transferring information and got alot of good responses. Unfortunately due to restrictions (no access to server, large amount of data etc.) I am unable to use them. If I can get a simple transfer form of data I will be set. This is what I need. 1) Two hidden values (fname, lname) 2) Person presses Button. 3) New form opens (this must be a form that I already have created called NewForm.html, it is in the same directory as original form). This NewForm.html must be in the same browser window. 4) NewForm.html has one editable field with both values (from fname & lname) in it. This is all i need but it must be in javascript. I am working with Lotus Notes/Domino so I have restriction on what I can do along with security that is preventing me from doing this 100 other ways. It must be these four steps and since I can't change the original form sending me the data I can't use frames either (though that was a good idea). Thanks for all your help. From swiseman at remax-cahi.com Thu Jun 13 14:25:29 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 12:25:29 -0700 Subject: [Javascript] any way to add a zero to a number Message-ID: thanks... I did that and it works...perfect thanks for your input -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Thursday, June 13, 2002 11:31 AM To: javascript at LaTech.edu Subject: RE: [Javascript] any way to add a zero to a number If you can do that, then you'll need to create the index as a string rather than an integer (i.e. delimit it with quotes), and pass a string rather than an integer to look up the value. <%response.write"officearray['"&right("0000"&x,4)&"']='"&replace(OfficeNameN umber(x), "'","\'")&"';" &vbcrlf%> |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman | |can index be non-integers? | |I am reading in the book | |that I can have an array like this | |somearray['scott']='programmer' | |is this possible |and if so why isn't this working | |-----Original Message----- |From: Peter Brunone [mailto:peter at brunone.com] | | That's exactly what should happen. You pass it the index, and it |finds the |corresponding value in the array. | ||-----Original Message----- ||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On ||Behalf Of Scott.Wiseman || ||officearray[0001]='office test'; ||officearray[0004]='office test'; ||officearray[0006]='office test'; ||officearray[0008]='office test'; || ||OK I got it to work with this code: || || <% for x = lbound(OfficeNameNumber) to ubound(OfficeNameNumber) %> || <% if OfficeNameNumber(x) <> "" then %> || <%response.write ||"officearray["&right("0000"&x,4)&"]='"&replace(OfficeNameNumber(x), ||"'","\'") ||&"';" &vbcrlf%> || <% end if %> || <%next%> || ||but when I pass it "0001" it does not find the "0001" ||but when I pass it the "1" it finds the "0001" || ||what is going on here... || ||-----Original Message----- ||From: Peter Brunone [mailto:peter at brunone.com] || ||Scott, || || It looks like you're doing exactly what you need to do already in ||the ||server-side VBScript. However, you're trying to use a string as the ||client-side array index, and I don't think you can do that. || Either make two arrays (one for office name and one for office ||number), or ||just pull the number parameter in and ParseInt() it so it matches |the array ||when you want to select it. Will this work, or is there more to the ||solution? || ||Regards, || ||Peter || |||-----Original Message----- |||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On ||| |||where would I put this? ||| ||| ||| |||<% ||| |||'--------------------------------------------------------------- |||'--------------------------------------------------------------- |||'---------------------GET offices FROM DATBASE------------------ |||'--------------------------------------------------------------- |||'--------------------------------------------------------------- ||| dim OfficeNameNumber(2000),countarray ||| ||| set cmd = nothing ||| set cmd = server.CreateObject("ADODB.COMMAND") ||| with cmd ||| .ActiveConnection = cnn ||| .CommandText = "get_active_offices" ||| .CommandType = adCmdStoredProc ||| end with ||| set rst = cmd.execute ||| ||| DO WHILE not rst.eof ||| if rst("franchiseid") then ||| ||| OfficeNameNumber(rst("franchiseid")) = rst("officename") ||| ||| end if ||| rst.movenext ||| LOOP ||| |||' ReDim Preserve OfficeNameNumber(countarray) ||| rst.close ||| set rst = nothing ||| set cmd = nothing ||| ||| |||'response.write "

"& OfficeNameNumber(789) ||| ||| |||%> ||| ||| ||| ||| |||-----Original Message----- |||From: Muchacho, Laurent (TWIi London) [mailto:LMuchacho at twii.net] ||| |||Hi scott ||| |||I think Josiah Gordon already answer to that question ||| |||Laurent ||| |||-----Original Message----- |||From: Josiah Gordon [mailto:jgordon at directfile.com] ||| |||Try creating a string variable and appending your variable to |||"000". In your |||database read the var in as an int. ||| ||| var str = "000"; ||| var num = 1; ||| str += num; ||| document.write(str); // ==> 0001 ||| |||That work? ||| |||Josiah Gordon ||| ||| |||-----Original Message----- |||From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On ||| |||I really want 0001 |||but I get 1.. ||| |||this is not good |||for my database ||| |||Scott ||| |||p.s. Thanks for everyone's help so far. || _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From rer at datacompusa.com Thu Jun 13 15:24:14 2002 From: rer at datacompusa.com (Roger Roelofs) Date: Thu, 13 Jun 2002 16:24:14 -0400 Subject: [Javascript] Re: Javascript digest, Vol 1 #670 - 8 msgs In-Reply-To: <20020613185901.47322308C8F@LaTech.edu> Message-ID: <87414B57-7F0B-11D6-BA63-000A2789959E@datacompusa.com> Glenn, You have three choices. 1. Save the data in a cookie. There are lots of available routines for this. 2. Useing a frameset, store the data in an invisible frame. 3. open a small window, put your data in the new window, switch forms, get data from window, close window. I vote for 1 if possible as long as your data is less than 4k in length. If 1 is not possible, 2 is better than 3 because the temporary window will distract users. Others have already suggested the first two options. Are they unusable in your situation? Have a nice day. On Thursday, June 13, 2002, at 02:59 PM, javascript-request at LaTech.edu wrote: > From: "Glenn Morris" > Date: Thu, 13 Jun 2002 14:56:26 -0400 > Subject: [Javascript] Need simple transfer form > > I posted an earlier script about transferring information and got alot > of good responses. Unfortunately due to restrictions (no access to > server, large amount of data etc.) I am unable to use them. If I can > get a simple transfer form of data I will be set. This is what I need. > 1) Two hidden values (fname, lname) > 2) Person presses Button. > 3) New form opens (this must be a form that I already have created > called NewForm.html, it is in the same directory as original form). > This NewForm.html must be in the same browser window. > 4) NewForm.html has one editable field with both values (from fname & > lname) in it. > This is all i need but it must be in javascript. > 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 rodney at aflyingstart.net Thu Jun 13 16:34:03 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Thu, 13 Jun 2002 22:34:03 +0100 Subject: [Javascript] Need simple transfer form References: Message-ID: <3D090FCB.5FD13D0C@aflyingstart.net> Glenn, I would like to help further but it seems you are not giving the full picture so that anyone other than you can judge what method might be appropriate. Earlier you wrote: "I have already tried the Query string option. I cannot use it because on the actual form I will have too much data coming over (I just used two as an example)." Rodney Glenn Morris wrote: > I posted an earlier script about transferring information and got alot > of good responses. Unfortunately due to restrictions (no access to > server, large amount of data etc.) I am unable to use them. If I can > get a simple transfer form of data I will be set. This is what I need. > 1) Two hidden values (fname, lname) > 2) Person presses Button. > 3) New form opens (this must be a form that I already have created > called NewForm.html, it is in the same directory as original form). > This NewForm.html must be in the same browser window. > 4) NewForm.html has one editable field with both values (from fname & > lname) in it. > This is all i need but it must be in javascript. > > I am working with Lotus Notes/Domino so I have restriction on what I > can do along with security that is preventing me from doing this 100 > other ways. It must be these four steps and since I can't change the > original form sending me the data I can't use frames either (though > that was a good idea). > > Thanks for all your help. > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Thu Jun 13 18:23:40 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 16:23:40 -0700 Subject: [Javascript] how can I check to see if a text box has a number or a string in it??? Message-ID: I am using a frame... and I am checking the bottom text box "ClosingYear" from the top frame... I get an error.. is this not the correct way to use the function???? // if( isNaN(parent.TransDetail.myform.ClosingYear.value)==true ) // { // alert("You must select a Year"); // return false; // } From peter at brunone.com Thu Jun 13 18:39:09 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 13 Jun 2002 18:39:09 -0500 Subject: [Javascript] how can I check to see if a text box has a number or a string in it??? In-Reply-To: Message-ID: Scott, A few questions/comments: What is the error? You don't have to say ==true; it's implied, i.e. you're asking for its existence. Generally, your form will be subordinate to the document object, so you'll need to say parent.FrameName.document.formName.fieldName.value (try putting .document after TransDetail). Other than that, make sure your names and cases are correct, and if you want to see if a form field value is numeric, don't forget to parseInt() or parseFloat(); otherwise, everything will be a string. Cheers, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman |Sent: Thursday, June 13, 2002 6:24 PM |To: 'javascript at LaTech.edu' |Subject: [Javascript] how can I check to see if a text box has a number |or a string in it??? | | |I am using a frame... | |and I am checking the bottom text box "ClosingYear" |from the top frame... | |I get an error.. | |is this not the correct way to use the function???? | |// if( isNaN(parent.TransDetail.myform.ClosingYear.value)==true ) |// { |// alert("You must select a Year"); |// return false; |// } |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | From swiseman at remax-cahi.com Thu Jun 13 18:40:37 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 16:40:37 -0700 Subject: [Javascript] how can I check to see if a text box has a numbe r or a string in it??? Message-ID: Thanks Peter alert(parseInt(parent.TransDetail.myform.ClosingMonth.value)); this gives me NaN both of these are not working... if( parseInt(parent.TransDetail.myform.ClosingMonth.value) == "NaN") { alert("You must select a Month"); return false; } ================== or ====================== if( parseInt(parent.TransDetail.myform.ClosingMonth.value) == NaN) { alert("You must select a Month"); return false; } this is not working what am I doing wrong? From swiseman at remax-cahi.com Thu Jun 13 18:51:53 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 13 Jun 2002 16:51:53 -0700 Subject: [Javascript] isNan and parseInt troubles....wannnn Message-ID: var helpme = parseInt(parent.TransDetail.myform.ClosingMonth.value); var helpme2 = parseInt(parent.TransDetail.myform.ClosingYear.value); (isNaN(helpme)) { alert("You must select a Month "& helpme); return false; } (isNaN(helpme2)) { alert("You must select a Year "& helpme2); return false; } From peter at brunone.com Thu Jun 13 19:05:21 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 13 Jun 2002 19:05:21 -0500 Subject: [Javascript] how can I check to see if a text box has a number or a string in it??? In-Reply-To: Message-ID: I believe you need to include the document in your object reference, i.e. parent.TransDetail.document.myform.ClosingMonth.value |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman | |Thanks Peter | | |alert(parseInt(parent.TransDetail.myform.ClosingMonth.value)); |this gives me NaN | | |both of these are not working... | |if( parseInt(parent.TransDetail.myform.ClosingMonth.value) == "NaN") | { | alert("You must select a Month"); | return false; | } |================== or ====================== |if( parseInt(parent.TransDetail.myform.ClosingMonth.value) == NaN) | { | alert("You must select a Month"); | return false; | } | |this is not working | |what am I doing wrong? | From peter at brunone.com Thu Jun 13 19:15:27 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 13 Jun 2002 19:15:27 -0500 Subject: [Javascript] changing the mouse pointer In-Reply-To: <000701c21335$2467ebe0$6a00a8c0@laubox> Message-ID: Lau, This can be done with a style attribute over items, so you should be able to change it for the entire body like so: document.body.style.cursor = 'hand; I only know "hand" -- don't have the chart handy :), but I believe the name of the hourglass cursor is "wait". Regards, Peter -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Lau Sent: Wednesday, June 12, 2002 10:49 PM To: javascript at LaTech.edu Subject: [Javascript] changing the mouse pointer Is it possible to change the mouse pointer to the hourglass while a piece of javascript is running? If so how? Thanks Lau -------------- next part -------------- An HTML attachment was scrubbed... URL: From rtilghman at nodalpt.com Fri Jun 14 00:58:38 2002 From: rtilghman at nodalpt.com (Richard Tilghman) Date: Fri, 14 Jun 2002 01:58:38 -0400 Subject: [Javascript] window.open in ie 4.5 mac Message-ID: <000e01c21368$873cf200$9865fea9@your6wz9c9s4x1> victor: hi there. I found a post you wrote regarding ie 4.5 on the mac and window.open. I don't have any answers, but I'm wondering if you ever found out the reason? Currently working on a client site and am experiencing this same problem. I've analyzed the script using strategically placed alerts and found that IE 4.5 mac is running the whole thing, it just refuses to launch the window. The only post I've found discusses how the window.focus command right after a window.open command can cause an error... maybe this keeps it from opening? Anyway, if you ever found information on this I'd love to hear it. I'm calling it from javascript in an external js file... I placed a delay on the focus command and am planning on testing it tomorrow. regards, rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Richard A. Tilghman, III Principal Nodal PT From Murugan.Selvaraj at geind.ge.com Fri Jun 14 01:31:08 2002 From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys)) Date: Fri, 14 Jun 2002 12:01:08 +0530 Subject: [Javascript] How do i communicate the applet tho' java script Message-ID: <05C613689F01D611AC820002A54177C0019F76BA@GIAHYDMSX2.SGE.INDSYS.GE.COM> Hi all In my project , we are using the thid party tool to view the file. Basically this third party tool is a web based viewer (applet) to view the file.When the user click on the file hyper link, the file will be displaying on the applet. When i view the text file on the applet , i am experiencing some problem.The text file is not displaying the on the applet with proper intendation.Since the third perty holding the jar file , I can;t do any modification. I have to do expliclity.So my thought is read the data from the file and write the on the applet. Here is the java script to call the setFile method available in the jvue class(applet file) function scriptOverlay() { if (window.jVueLoaded) { var japplet = window.document.applets["JVue"]; japplet.setFile(file1); } } Here is the html code to dowload the applet I know the applet name , is there any way to write the data on the applet from the javascript.since the applet is not viewieng the text file properly ,I don't want to user the setFile method. AutoVue for Java' ' '); ' "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From rodney at aflyingstart.net Fri Jun 14 03:42:48 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Fri, 14 Jun 2002 09:42:48 +0100 Subject: [Javascript] changing the mouse pointer References: Message-ID: <3D09AC88.7B3E8D73@aflyingstart.net> According to O'Reilly / Dynamic HTML / Goodman these are the styles available in IE4+ Book was published too early to comment on NN6 but NN4 does not support this style. default (arrow similar to nw-resize) crosshair hand move text wait help (Following are arrows pointing in the compass direction indicated) n-resize s-resize e-resize w-resize ne-resize se-resize nw-resize sw-resize Rodney Peter Brunone wrote: > This can be done with a style attribute over items, so you should > be able to change it for the entire body like > so:document.body.style.cursor = 'hand; I only know "hand" -- don't > have the chart handy :), but I believe the name of the hourglass > cursor is "wait". > > Is it possible to change the mouse pointer to the hourglass > while a piece of javascript is running? If so how?ThanksLau > From alan.easton at unn.ac.uk Fri Jun 14 08:51:52 2002 From: alan.easton at unn.ac.uk (Alan Easton) Date: Fri, 14 Jun 2002 14:51:52 +0100 Subject: [Javascript] opener window refresh Message-ID: <8CB72D8EAD84D411B3D600508BCF7B6C04A512BA@colorado.unn.ac.uk> Hi All, Problem: I have a window that opens a smaller window for some ASP calculations. Now I have the parent window(opener) refreshing okay when the ASP calculations have finished, but I have a further problem. I would like the opener window not only to refresh, but go to a certain tag on the opener window page. Any Ideas. I use "window.opener.navigate(window.opener.document.location.href);" to refresh the opener window, but I need it to refresh and go to a particular part of that opener window. I've tried "window.opener.navigate('profile.asp#teach');" but IE doesn't like that, also window.location('profile.asp#teach');" after an initial refresh of the opener window, but IE doesn't like that either. As usual, any help or ideas are much appreciated, Thanks, Alan... -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3634 bytes Desc: not available URL: From swiseman at remax-cahi.com Fri Jun 14 11:04:22 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Fri, 14 Jun 2002 09:04:22 -0700 Subject: [Javascript] RE: opener window refresh Message-ID: opener.myform.myfield.focus(); this is from an window that was opened from a Frame window -----Original Message----- From: Alan Easton [mailto:alan.easton at unn.ac.uk] Sent: Friday, June 14, 2002 6:52 AM To: 'Java-List' Subject: opener window refresh Hi All, Problem: I have a window that opens a smaller window for some ASP calculations. Now I have the parent window(opener) refreshing okay when the ASP calculations have finished, but I have a further problem. I would like the opener window not only to refresh, but go to a certain tag on the opener window page. Any Ideas. I use "window.opener.navigate(window.opener.document.location.href);" to refresh the opener window, but I need it to refresh and go to a particular part of that opener window. I've tried "window.opener.navigate('profile.asp#teach');" but IE doesn't like that, also window.location('profile.asp#teach');" after an initial refresh of the opener window, but IE doesn't like that either. As usual, any help or ideas are much appreciated, Thanks, Alan... -------------- next part -------------- An HTML attachment was scrubbed... URL: From espositogc at hotmail.com Fri Jun 14 12:04:43 2002 From: espositogc at hotmail.com (GC Esposito) Date: Fri, 14 Jun 2002 10:04:43 -0700 Subject: [Javascript] I have your same problem about a lint to local apps using JavaScript... Message-ID: Hi Reuben: My name is GC and I found this email of yours in a forum on the web: Hi, I am building a web application for my local intranet network. I am wondering if there is anyway we can make a link in a website to run a local application in local machine (win 98) using javascript. Something like Run this app ? I am having the same issue and so far I haven't found an answer yet. How about you? Have you come to a solution for that problem? And, if so, would you mind sharing that 'secret' with me?Thanks in advance for your time. Sincerely, GC Esposito -------------- next part -------------- An HTML attachment was scrubbed... URL: From walter at torres.ws Fri Jun 14 12:10:24 2002 From: walter at torres.ws (Walter Torres) Date: Fri, 14 Jun 2002 12:10:24 -0500 Subject: [Javascript] Q on access CCS values In-Reply-To: <87414B57-7F0B-11D6-BA63-000A2789959E@datacompusa.com> Message-ID: <004d01c213c6$60462fa0$2a65a8c0@eloyaltyco.com> I have this... #areaOne { color: white; position:absolute; left:300; top:100; width:110; height:120; clip:rect(0,300,300,0); border: 1px solid red; background-color:red; layer-background-color:red; text-align : center; vertical-align : middle; font-weight : bold; z-index : 2; } and... alert ( document.all[strItem].style.pixelWidth ); will display - 110 but... alert ( document.all[strItem].style.color ); will display - '' [nothing] My question is, how can I retrieve any and all style attributes via JS? Also, can I place my own attributes in there and then retrieve these values? Thanks Walter PS: I don't have the option of defining styles inline. From HSenior at twii.net Fri Jun 14 12:38:21 2002 From: HSenior at twii.net (Senior, Henry (TWIi London)) Date: Fri, 14 Jun 2002 18:38:21 +0100 Subject: [Javascript] Navigating to a named anchor from a remote window Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03B82313@lon.webmail.twii.net> Alan, I've never tried this, but there is a 'hash' property of document.location that is read/write(javascript 1.1). Try something like document.location.hash='teach' after the window has refreshed. Failing that, there is an IE4+only method element.scrollIntoView() -----Original Message----- From: javascript-request at LaTech.edu [mailto:javascript-request at LaTech.edu] Sent: 14 June 2002 18:01 To: javascript at LaTech.edu Subject: Javascript digest, Vol 1 #672 - 3 msgs Send Javascript mailing list submissions to javascript at LaTech.edu To subscribe or unsubscribe via the World Wide Web, visit https://lists.LaTech.edu/mailman/listinfo/javascript or, via email, send a message with subject or body 'help' to javascript-request at LaTech.edu You can reach the person managing the list at javascript-admin at LaTech.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Javascript digest..." Today's Topics: 1. Re: changing the mouse pointer (Rodney Myers) 2. opener window refresh (Alan Easton) 3. RE: opener window refresh (Scott.Wiseman) --__--__-- Message: 1 Date: Fri, 14 Jun 2002 09:42:48 +0100 From: Rodney Myers To: javascript at LaTech.edu Subject: Re: [Javascript] changing the mouse pointer Reply-To: javascript at LaTech.edu According to O'Reilly / Dynamic HTML / Goodman these are the styles available in IE4+ Book was published too early to comment on NN6 but NN4 does not support this style. default (arrow similar to nw-resize) crosshair hand move text wait help (Following are arrows pointing in the compass direction indicated) n-resize s-resize e-resize w-resize ne-resize se-resize nw-resize sw-resize Rodney Peter Brunone wrote: > This can be done with a style attribute over items, so you should > be able to change it for the entire body like > so:document.body.style.cursor = 'hand; I only know "hand" -- don't > have the chart handy :), but I believe the name of the hourglass > cursor is "wait". > > Is it possible to change the mouse pointer to the hourglass > while a piece of javascript is running? If so how?ThanksLau > --__--__-- Message: 2 From: Alan Easton To: 'Java-List' Date: Fri, 14 Jun 2002 14:51:52 +0100 Subject: [Javascript] opener window refresh Reply-To: javascript at LaTech.edu This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C213AA.A382EDB0 Content-Type: text/plain; charset="iso-8859-1" Hi All, Problem: I have a window that opens a smaller window for some ASP calculations. Now I have the parent window(opener) refreshing okay when the ASP calculations have finished, but I have a further problem. I would like the opener window not only to refresh, but go to a certain tag on the opener window page. Any Ideas. I use "window.opener.navigate(window.opener.document.location.href);" to refresh the opener window, but I need it to refresh and go to a particular part of that opener window. I've tried "window.opener.navigate('profile.asp#teach');" but IE doesn't like that, also window.location('profile.asp#teach');" after an initial refresh of the opener window, but IE doesn't like that either. As usual, any help or ideas are much appreciated, Thanks, Alan... ------_=_NextPart_000_01C213AA.A382EDB0 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IigNAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAA0gcGAA4ADgAzADQABQBnAQEggAMADgAAANIHBgAO AA4AOAAmAAUAXgEBCYABACEAAAAzQjU5Q0FBMTk4N0ZENjExQjNGNzAwNTA4QkNGN0I2QwBPBwEE gAEAFgAAAG9wZW5lciB3aW5kb3cgcmVmcmVzaABQCAENgAQAAgAAAAIAAgABA5AGAFANAAAyAAAA AwAAgAggBgAAAAAAwAAAAAAAAEYAAAAAUoUAACdqAQAeAAGACCAGAAAAAADAAAAAAAAARgAAAABU hQAAAQAAAAQAAAA5LjAACwACgAggBgAAAAAAwAAAAAAAAEYAAAAABoUAAAAAAAADAAOACCAGAAAA AADAAAAAAAAARgAAAAABhQAAAAAAAAsABIAIIAYAAAAAAMAAAAAAAABGAAAAAAOFAAAAAAAACwAF gAggBgAAAAAAwAAAAAAAAEYAAAAADoUAAAAAAAADAAaACCAGAAAAAADAAAAAAAAARgAAAAAQhQAA AAAAAAMAB4AIIAYAAAAAAMAAAAAAAABGAAAAABGFAAAAAAAAAwAIgAggBgAAAAAAwAAAAAAAAEYA AAAAGIUAAAAAAAAeAAmACCAGAAAAAADAAAAAAAAARgAAAAA2hQAAAQAAAAEAAAAAAAAAHgAKgAgg BgAAAAAAwAAAAAAAAEYAAAAAN4UAAAEAAAABAAAAAAAAAB4AC4AIIAYAAAAAAMAAAAAAAABGAAAA ADiFAAABAAAAAQAAAAAAAAAeABCACCAGAAAAAADAAAAAAAAARgAAAACDhQAAAQAAABMAAAA5ODE0 NzQwMTMtMTQwNjIwMDIAAAIBCRABAAAApQcAAKEHAACUIgAATFpGdSPWl44DAAoAcmNwZzEyNYIy A0NodG1sMQMwPwEDAfcKgAKkA+MCAGNowQrAc2V0MCAHEwKA/xADAFAEVghVB7IR1Q5RAwHdENcy BgAGwxHVMwRGENn5Eu9mNAPGEYUR4wjvCfe2OxofDjA1EdIMYGMAUDMLCQFkMzYRYAulNCBZEAIq XA6yAZBnHsAzACA8IURPQ1RZAFBFIEhUTUwgAFBVQkxJQyAiQC0vL1czQyGARCRURCCUNC4RYFRy OQBydGkCIAdAIYBFTnwiPhHjHzcf4AqjI+wxPjkf8CCiI94e0CZARUG+RCPdDvEk/yjvJcQ2DvDA PE1FVEEgBaACMDEJ8HQ9IgXgIKM1LqA1MC40MSeALh4wmDAiICNQB4A9RyOgwEVSQVRPUiPdLYD9 H/AvJ88foSpfH5EtUB/wcEJPRFkj3R5BMa9nxDk2H/BESVYj0B9DPQAhIAAANiURYB8ZNjQXNg83 Eh77OCeRU1BBDk4sIAtgBBA9OTgxUDQ3NDAtkC07UDByNgHQMDI1/zkvDhA0Ajgf8EZPTlQgZtcA 0C5QBxMgAJB6LlA8TJ8YMAOyAdADMDbHSGke7ENBETRjQWxsLCVMNb01kS8+0jxZPGc5XTkU8P8w IDqCRW83DgHAPGcKokYY+wqAJUwwJ5Eh4DXbRh8zz/803zXvSS84D05POi87PzxP/1RfPm8/dAqj P99A71i/RM8fTb9G70f/YB9VRSZuYoxzcAKAV7dcJ2EBQP9SD0oPSx9ML00/Yv9PX1Bv/1ffUo9u L2NPVb9Wz3BPWO9vWf9bX1xvbvNQA2ACYGUgbTogSSARAHZlHCBhQl9sUwPwbmRvzQfgdBEABUBv cAnwBCD9eyBzAMBDwBMxfJUCEFtBOwNwewBBcnAsIAdAY3XzC2AjInMuB7B80Xq1fQC/ewB7T2xi CrEscX5FKH1SuQSQKSAaIANQB5BoC4DiZ31Aa2F5fkCBMAOgd4Eif156xGYLgAQAgTBkZiyBX2xT YnUFQHq3ZncIcIEhBcBwejSAUHqwd4EIYGxkIGxpa4EEk4OUfkZub30xbmyE8Hx0b4efbFOEFYeA iPJnf41gjVF7IHcwACALcXFfJnsfgGSpPG6oeyAuIpCvZ/2Ryj5uqHzwH6CM8YufB+DjjY+CdGdl Ll3PXt9qr/9g/5rvZf9nD2gfaS+d32tP/2xfbW9uf2+PdN9xr3K/c8//qV9171pPd794z64fmi+j H/+cT51ftX9j32Tvnr+fz6Df/6Hvt6+kD6Ufpi+nP6hPrZ//qm+rf6yPxg+ur3b/sR+yL9xBboTw l8/B0kkBAMhQ/5lftD/AD7Zf0v+7X7xvvX//vo/V78Cvwb/Cz8PfxO/KP//HD8gfyS/hb8tPzF/N b85//+Z/54+wf+lf6m/R/9rv75//8K/xv9R/1Y/0/7lfum/W7//X/9kP2h/3L9w/3U/eX99v/+B/ 5c/in+Ov5L8Fj+tf5+937c/u3nqwdREwz88BMyIVfJQuluQuI1B2aWf5fSBlKBDMfMCGEJNwLFBO LhmwheAjIi5ohBEp/jsuAI1RhBWBH0MnluuPRPd6sIPAh2AgIxAUqiLgizD/j6btMSMghhKKIRpB fUCSYP99AxWvFr/Rf/Ov/3/1zx9f//rP+9/87/3/Ik8AHwEvAj//A08EXwmvBn8HjwifLc8Kv//s T+1fDZ8yjx6fJ48gvyHP/znv+K/5vyMvJD8lTyZfPB//KH8pjyqfK68svzIPLt8v738w/0p/Mx8L zzWPNp96oCe/gPJRYBhhG78QfxGJJ4pBy4cAemAuTNBwIxIANGDMaCcUcojzRSATEI8Q/G4niRCL VX0gh49GNIXw/38AN784z0SfOu9dvz/vQP//Qg9DH2CvRT9GT0dfSG9Jf/9Oz0ufTK9Nv2wvT980 P1GvP1K/aoNWJROmV49YlWFm/xIAiiAZcBiAhyCGUHMhFOa/GzMVjxyvF6dZXxuBZRiQ/4oBHd9d P2YvX1+AL2F/Yo//Y59kr4MfZs9n32jvaf9rD/9wX20vbj9vT46fcW9yf3OP/3Sfk19/b4hfgY+C n5q/Pb//Ps+D/4UPhh+HL5zviU+KX/+Lb4x/jY+S34+vkL+Rz6tPX5PvUN+WX5dvz4BzDxF1n1vw WoAZcM+wekBscHpvO3t0lgBp0TIaABRAIG2WdViQGgBwdxBlY5WQ+RIAZCyYj5mfpW+bv7rP/6C/ oc+i36Pvvb+mD6cfqC//qT+qT6+frG+tf66PyT+wr/+VD7J/s4/N/7oPwv+8L70//9Vfnp+fr76f v6/Av8HP14//w+/E/8YPxx/IL81/yk/LX3/Mb+Xvzo/Pn9Cv0b/kQ1TxWlBua3O5P9Qf3+/WP//x r9s/3E/dX95v9J/gj+Gf/+Kv47/kz+of5u/n/+kPAB//6y/sP+1P7l8E3/Dv+d/zD//0Hww/2R/a L/V/9o/3n/iv/w5v+s/73/zv/f//DwRfAS//Aj8DTxzPBW8GfwePCJ+0hfkfEG4uJvAKDwsfFu8N P38orxI/E08UXxVvK58XjDXBItEvQk9EWSSwF5uEMjcwEUhUTUwzPQozGHV9NjAAAAAeAHAAAQAA ABYAAABvcGVuZXIgd2luZG93IHJlZnJlc2gAAAACAXEAAQAAABYAAAABwhOqFRE2o9/Wf2gR1qH5 AAEC2DQVAAALAAIAAQAAAAMAAlkAABYAAwAJWQIAAAADAN4/r28AAEAAOQCw7YKjqhPCAQMA8T8J BAAAHgAxQAEAAAAGAAAATEFBRTEAAAADABpAAAAAAB4AMEABAAAABgAAAExBQUUxAAAAAwAZQAAA AAADAP0/5AQAAAMAJgAAAAAAAwA2AAAAAAADAIAQ/////wIBRwABAAAALwAAAGM9R0I7YT0gO3A9 VU5OO2w9Q09MT1JBRE8tMDIwNjE0MTM1MTUyWi0xNzIyMTAAAAIB+T8BAAAAXAAAAAAAAADcp0DI wEIQGrS5CAArL+GCAQAAAAAAAAAvTz1VTk4vT1U9VU5JVkVSU0lUWSBPRiBOT1JUSFVNQlJJQS9D Tj1TT0NJQUwgU0NJRU5DRVMvQ049TEFBRTEAHgD4PwEAAAAMAAAAQWxhbiBFYXN0b24AHgA4QAEA AAAGAAAATEFBRTEAAAACAfs/AQAAAFwAAAAAAAAA3KdAyMBCEBq0uQgAKy/hggEAAAAAAAAAL089 VU5OL09VPVVOSVZFUlNJVFkgT0YgTk9SVEhVTUJSSUEvQ049U09DSUFMIFNDSUVOQ0VTL0NOPUxB QUUxAB4A+j8BAAAADAAAAEFsYW4gRWFzdG9uAB4AOUABAAAABgAAAExBQUUxAAAAQAAHMJSWnRWq E8IBQAAIMFLhv02rE8IBHgA9AAEAAAABAAAAAAAAAB4AHQ4BAAAAFgAAAG9wZW5lciB3aW5kb3cg cmVmcmVzaAAAAB4ANRABAAAAPgAAADw4Q0I3MkQ4RUFEODRENDExQjNENjAwNTA4QkNGN0I2QzA0 QTUxMkJBQGNvbG9yYWRvLnVubi5hYy51az4AAAALACkAAAAAAAsAIwAAAAAAAwAGEKiHh3wDAAcQ fQIAAAMAEBAAAAAAAwAREAMAAAAeAAgQAQAAAGUAAABISUFMTCxQUk9CTEVNOklIQVZFQVdJTkRP V1RIQVRPUEVOU0FTTUFMTEVSV0lORE9XRk9SU09NRUFTUENBTENVTEFUSU9OU05PV0lIQVZFVEhF UEFSRU5UV0lORE9XKE9QRU5FAAAAAAIBfwABAAAAPgAAADw4Q0I3MkQ4RUFEODRENDExQjNENjAw NTA4QkNGN0I2QzA0QTUxMkJBQGNvbG9yYWRvLnVubi5hYy51az4AAABjQQ== ------_=_NextPart_000_01C213AA.A382EDB0-- --__--__-- Message: 3 From: "Scott.Wiseman" To: "'javascript at LaTech.edu'" Date: Fri, 14 Jun 2002 09:04:22 -0700 Subject: [Javascript] RE: opener window refresh Reply-To: javascript at LaTech.edu This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C213BD.26252370 Content-Type: text/plain; charset="iso-8859-1" opener.myform.myfield.focus(); this is from an window that was opened from a Frame window -----Original Message----- From: Alan Easton [mailto:alan.easton at unn.ac.uk] Sent: Friday, June 14, 2002 6:52 AM To: 'Java-List' Subject: opener window refresh Hi All, Problem: I have a window that opens a smaller window for some ASP calculations. Now I have the parent window(opener) refreshing okay when the ASP calculations have finished, but I have a further problem. I would like the opener window not only to refresh, but go to a certain tag on the opener window page. Any Ideas. I use "window.opener.navigate(window.opener.document.location.href);" to refresh the opener window, but I need it to refresh and go to a particular part of that opener window. I've tried "window.opener.navigate('profile.asp#teach');" but IE doesn't like that, also window.location('profile.asp#teach');" after an initial refresh of the opener window, but IE doesn't like that either. As usual, any help or ideas are much appreciated, Thanks, Alan... ------_=_NextPart_001_01C213BD.26252370 Content-Type: text/html; charset="iso-8859-1"
opener.myform.myfield.focus();
 
 
this is from an window that was opened from a Frame window
 

<script language="JavaScript">

// opener.location.reload();

<% if popup then

response.write "alert('Not All Values Were Entered');" &vbcrlf

response.write "self.close();"&vbcrlf

else

response.write "opener.parent.TransDetail.myform.propertyaddress.focus();"

response.write "self.setTimeout('self.close()',1000) ;"

end if

%>

</script>

-----Original Message-----
From: Alan Easton [mailto:alan.easton at unn.ac.uk]
Sent: Friday, June 14, 2002 6:52 AM
To: 'Java-List'
Subject: opener window refresh

Hi All,
 
Problem: I have a window that opens a smaller window for some ASP calculations. Now I have the parent window(opener) refreshing okay when the ASP calculations have finished, but I have a further problem. I would like the opener window not only to refresh, but go to a certain <a name> tag on the opener window page.
 
Any Ideas.
 
I use "window.opener.navigate(window.opener.document.location.href);" to refresh the opener window, but I need it to refresh and go to a particular part of that opener window.
 
I've tried "window.opener.navigate('profile.asp#teach');" but IE doesn't like that, also
window.location('profile.asp#teach');" after an initial refresh of the opener window, but IE doesn't like that either.
 
As usual, any help or ideas are much appreciated,
 
Thanks,
 
Alan...
------_=_NextPart_001_01C213BD.26252370-- --__--__-- _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript End of Javascript Digest DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From merchant at LATECH.EDU Fri Jun 14 16:01:02 2002 From: merchant at LATECH.EDU (David Merchant) Date: Fri, 14 Jun 2002 16:01:02 -0500 Subject: [Javascript] JavaScript List Unsubscirbe, Subscribe & Posting Info. Message-ID: <5.1.0.14.2.20020614160047.027dada8@mail.latech.edu> There are two sets of instructions, first for those who joined the list directly and second for those who joined the list via egroups (at present I cannot manually unsubscribe anyone who joined via Yahoo Groups or eGroups). 1. If you wish to subscribe or unsubscribe, visit https://lists.LaTech.edu/mailman/listinfo/javascript or send a message with the word `help' in it to the request address, javascript-request at LaTech.edu, for further instructions. To post to the list, send your posts to javascript at latech.edu 2. For those who subscribed to the Javascript list via Yahoo Groups (formally eGroups), here is how to unsubscribe: To unsubscribe via email: From your email program, send a blank message to: javascript-unsubscribe at yahoogroups.com To unsubscribe via the Web: * Sign in to Yahoo! Groups and go to the My Groups page. * Click on the Edit Message Settings link at the top of the page. * Look for the group you wish to unsubscribe from, and select Unsubscribe from the pull-down list on the right. * Click Update to save your changes. The group will no longer be listed on the My Groups page, and you will no longer receive messages. Note: If you own a group, you must first give up your ownership in the Members section of your group before you can unsubscribe on the My Groups page. I CANNOT manually unsubscribe you if you subscribed to the list via eGroups or Yahoo Groups. I have complained _repeatedly_ about this to the folks at Yahoo Groups, but to no avail. I can only manually unsubscribe those who joined via https://lists.LaTech.edu/mailman/listinfo/javascript. TTFN, David Systems Librarian, Louisiana Tech University merchant at latech.edu JavaScript List Administrator (www.mountaindragon.com/javascript/) Webmaster, HTML Encyclopedia (www.mountaindragon.com/html/) Webmaster, Memorial Day Page (www.usmemorialday.org/) Webmaster, Midori Ito Site (www.mountaindragon.com/midori/) From andyg at ihug.co.nz Fri Jun 14 17:49:14 2002 From: andyg at ihug.co.nz (Andrew Gibson) Date: Sat, 15 Jun 2002 10:49:14 +1200 Subject: [Javascript] Creating a new
References: <8C987B8472B8A84FB42BD34E6C8A58CA2442AF@srv-w2k-exchang.datadec2000.es> Message-ID: <003901c213f5$b5c05030$28cbadcb@k1n8i8> is there any way I can get the height of an
in Netscape 4.7 (sigh, yes I know) eg
content placed in here say from database....
I want to then get the height of div test so i can place other hidden elements directly below it, or is there another way... Andrew From gassinaumasis at hotmail.com Sat Jun 15 05:55:20 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Sat, 15 Jun 2002 10:55:20 +0000 Subject: [Javascript] Creating a new
Message-ID: >is there any way I can get the height of an
in Netscape 4.7 (sigh, >yes I know) > >eg > >
>content placed in here say from database.... >
> >I want to then get the height of div test so i can place other hidden >elements directly below it, or is there another way... document.layers['test'].document.height Of course the layer *must* have a position: absolute in the style sheet. ppk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From sachinz at dpsl.net Mon Jun 17 11:19:36 2002 From: sachinz at dpsl.net (Sachin Zingade) Date: Mon, 17 Jun 2002 21:49:36 +0530 Subject: [Javascript] Problem with focussing in Netscape6.1 and above References: Message-ID: <003101c2161a$c6df9f20$310410ac@comp179> Hi Friends, I have a problem in Netscape with respect to Focussing. I have 4 divs, |---4--|------------3-----------------| |-------|------------------------------| | | | | | | | 1 | 2 | | | | | | | |------ |------------------------------| As shown above i have 4 divs, Now on the Div 1 i have the Toc.html file and it links to a page on the div 2 some where at the bottom. I want the focus to be at the correct location rather that at the Top. Can any one help me in this regard. Its really urgent Thanking everyone in advance Regards, Sachin Zingade, Engineering division, DX Technologies, Ph: +91 20 6136028 / 38, Ext: 320, Fax: 6052426 e-mail: sachinz at dpsl.net web: http://www.dpsl.net From swiseman at remax-cahi.com Mon Jun 17 14:56:26 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Mon, 17 Jun 2002 12:56:26 -0700 Subject: [Javascript] is numberic?? Message-ID: I have tried the alert ( isNaN(parseInt(window.document.myform.RMList.value)) ); to figure this out. but it will allow me to enter this "11dd44" this is not a number so what gives? From swiseman at remax-cahi.com Mon Jun 17 15:11:54 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Mon, 17 Jun 2002 13:11:54 -0700 Subject: [Javascript] is numberic?? Message-ID: I just want numbers. I want to strip away letters or anything other then a number then I have to add this field check the other field for the same criteria and add both to a total field Scott -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Monday, June 17, 2002 1:14 PM To: javascript at LaTech.edu Subject: RE: [Javascript] is numberic?? Scott, What do you mean when you say it won't let you enter that? What does the alert say? Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman | |I have tried the | |alert ( isNaN(parseInt(window.document.myform.RMList.value)) ); | |to figure this out. | |but it will allow me to enter this "11dd44" |this is not a number | |so what gives? | _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Mon Jun 17 15:14:29 2002 From: peter at brunone.com (Peter Brunone) Date: Mon, 17 Jun 2002 15:14:29 -0500 Subject: [Javascript] is numberic?? In-Reply-To: Message-ID: Scott, What do you mean when you say it won't let you enter that? What does the alert say? Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman | |I have tried the | |alert ( isNaN(parseInt(window.document.myform.RMList.value)) ); | |to figure this out. | |but it will allow me to enter this "11dd44" |this is not a number | |so what gives? | From tutwabee at hotmail.com Mon Jun 17 15:27:22 2002 From: tutwabee at hotmail.com (Trey H) Date: Mon, 17 Jun 2002 20:27:22 +0000 Subject: [Javascript] is numberic?? Message-ID: It may ignore the "dd" in the string and think the number you meant was 1144. I think Perl does this so JavaScript may too. ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: "Scott.Wiseman" >Reply-To: javascript at LaTech.edu >To: "'javascript at LaTech.edu'" >Subject: [Javascript] is numberic?? >Date: Mon, 17 Jun 2002 12:56:26 -0700 > >I have tried the > >alert ( isNaN(parseInt(window.document.myform.RMList.value)) ); > >to figure this out. > >but it will allow me to enter this "11dd44" >this is not a number > >so what gives? >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From lkmckinn at ingr.com Mon Jun 17 15:31:21 2002 From: lkmckinn at ingr.com (Mckinney, Lori K) Date: Mon, 17 Jun 2002 15:31:21 -0500 Subject: [Javascript] is numberic?? Message-ID: <3206D8FDDF2F2541A7715A8252289377EFAFAD@hq2.pcmail.ingr.com> parseInt will give you back digits as long as it can. In your case, you would get 11 for the parseInt value which is a number so isNaN is false. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsmthparseint.asp The example from this reference is as follows: parseInt("12abc") // Returns 12. > >I have tried the > >alert ( isNaN(parseInt(window.document.myform.RMList.value)) ); > >to figure this out. > >but it will allow me to enter this "11dd44" >this is not a number > >so what gives? From swiseman at remax-cahi.com Mon Jun 17 15:54:44 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Mon, 17 Jun 2002 13:54:44 -0700 Subject: [Javascript] is numberic?? this is what I meant...thanks for your help and suggestions... you ROCK!!!! Message-ID: function anyNumbers(str) { // Loop through and check for these numbers var numbers=new Array("1","2","3","4","5","6","7","8","9","0"); str=str.toString(); var isbad1=true; var sendback; sendback=""; // loop through the string that was sent to this function for(i=0; i >I have tried the > >alert ( isNaN(parseInt(window.document.myform.RMList.value)) ); > >to figure this out. > >but it will allow me to enter this "11dd44" >this is not a number > >so what gives? _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From lkmckinn at ingr.com Mon Jun 17 16:31:24 2002 From: lkmckinn at ingr.com (Mckinney, Lori K) Date: Mon, 17 Jun 2002 16:31:24 -0500 Subject: [Javascript] is numberic?? Message-ID: <3206D8FDDF2F2541A7715A8252289377EFB24B@hq2.pcmail.ingr.com> You could also use a regular expression to strip out the non-digit characters. var str = window.document.myform.RMList.value; var ns = str.replace(/\D/ig,""); > >I have tried the > >alert ( isNaN(parseInt(window.document.myform.RMList.value)) ); > >to figure this out. > >but it will allow me to enter this "11dd44" >this is not a number > >so what gives? _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Mon Jun 17 16:34:14 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Mon, 17 Jun 2002 14:34:14 -0700 Subject: [Javascript] is numberic?? Message-ID: thank you Lori... -----Original Message----- From: Mckinney, Lori K [mailto:lkmckinn at ingr.com] Sent: Monday, June 17, 2002 2:31 PM To: javascript at LaTech.edu Subject: RE: [Javascript] is numberic?? You could also use a regular expression to strip out the non-digit characters. var str = window.document.myform.RMList.value; var ns = str.replace(/\D/ig,""); > >I have tried the > >alert ( isNaN(parseInt(window.document.myform.RMList.value)) ); > >to figure this out. > >but it will allow me to enter this "11dd44" >this is not a number > >so what gives? _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From dyee at AMSResponse.com Mon Jun 17 17:24:09 2002 From: dyee at AMSResponse.com (David Yee) Date: Mon, 17 Jun 2002 15:24:09 -0700 Subject: [Javascript] Javascript Keyboard Navigation Message-ID: <2781DE01B41DD211AE7300A0C9C52F0E8C85D0@dpserver.amsresponse.com> Hi- is it possible to use Javascript to have a page navigate to predefined url's depending on which key was pressed? Thanks. David From hrothenb at bcpl.net Mon Jun 17 21:23:14 2002 From: hrothenb at bcpl.net (Howard Rothenburg) Date: Mon, 17 Jun 2002 22:23:14 -0400 (EDT) Subject: [Javascript] Javascript Keyboard Navigation In-Reply-To: <2781DE01B41DD211AE7300A0C9C52F0E8C85D0@dpserver.amsresponse.com> Message-ID: launch the url you want, based on event.keycode On Mon, 17 Jun 2002, David Yee wrote: > Date: Mon, 17 Jun 2002 15:24:09 -0700 > From: David Yee > Reply-To: javascript at LaTech.edu > To: "'javascript at LaTech.edu'" > Subject: [Javascript] Javascript Keyboard Navigation > > Hi- is it possible to use Javascript to have a page navigate to predefined > url's depending on which key was pressed? Thanks. > > David > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From nancybv at flyinglemon.com Mon Jun 17 23:57:57 2002 From: nancybv at flyinglemon.com (Flying Lemon Systems) Date: Tue, 18 Jun 2002 00:57:57 -0400 Subject: [Javascript] Flash, DHTML, IE6 References: <003101c2161a$c6df9f20$310410ac@comp179> Message-ID: <001201c21684$b9d40810$6401a8c0@Nancy> I have a dhtml menu (floating menu) that works fine cross-browser, except on pages with Flash embedded. There it does not work for IE6 - it can apparently not read the line if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop} ie4 has been defined as document.all?1:0 offsettop is a number (I've tried changing this number dramatically to see if it makes any difference. It doesn't. That's why I think it can't read the line. If I take the Flash out, it reads this line fine.) Something to do with the z-index I think, but does anybody know this problem and how to solve it? Does Flash automatically assign itself to the highest possible Z-level? Is the Flash file automatically object1? Any ideas much appreciated. Nancy From andrew at d2k.com.au Tue Jun 18 00:09:43 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Tue, 18 Jun 2002 15:09:43 +1000 Subject: [Javascript] Form field time and date check Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151ED9@chimaera.d2k.com.au> Hi, Any one know a good function to check if the form fields are of correct time and date values (if the user has entered in a time or date value) Thanks. From peter at brunone.com Tue Jun 18 00:19:44 2002 From: peter at brunone.com (Peter Brunone) Date: Tue, 18 Jun 2002 00:19:44 -0500 Subject: [Javascript] Flash, DHTML, IE6 In-Reply-To: <001201c21684$b9d40810$6401a8c0@Nancy> Message-ID: Nancy, Supercool corporate name there :) Have you tried changing the name of object1 to test your second idea? -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Flying Lemon Systems | |I have a dhtml menu (floating menu) that works fine cross-browser, |except on |pages with Flash embedded. There it does not work for IE6 - it can |apparently not read the line | |if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop} | |ie4 has been defined as document.all?1:0 |offsettop is a number (I've tried changing this number dramatically to see |if it makes any difference. It doesn't. That's why I think it |can't read the |line. If I take the Flash out, it reads this line fine.) | |Something to do with the z-index I think, but does anybody know |this problem |and how to solve it? Does Flash automatically assign itself to the highest |possible Z-level? Is the Flash file automatically object1? | |Any ideas much appreciated. | |Nancy | From gassinaumasis at hotmail.com Tue Jun 18 01:56:52 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Tue, 18 Jun 2002 06:56:52 +0000 Subject: [Javascript] Flash, DHTML, IE6 Message-ID: >I have a dhtml menu (floating menu) that works fine cross-browser, except >on >pages with Flash embedded. There it does not work for IE6 - it can >apparently not read the line > >if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop} That's because you use a doctype which switches IE6 into compatibility mode. In that mode you need to read out document.documentElement.scrollTop Solutions: 1) Remove the doctype 2) Put before the doctype. This is perfectly standards compliant but switches the IE6 mode off again. ppk _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From pspriya2001 at yahoo.co.in Tue Jun 18 01:57:44 2002 From: pspriya2001 at yahoo.co.in (=?iso-8859-1?q?shanmuga=20priya?=) Date: Tue, 18 Jun 2002 07:57:44 +0100 (BST) Subject: [Javascript] To use "click" method of Input Type File control Message-ID: <20020618065744.23479.qmail@web8004.mail.in.yahoo.com> Hi, i have a situation where i would like to use the "click()" method of Input Type 'File' control. The steps followed by me. 1. I put a Input type File control and i made it invisible 2. I put one Button control and one Text control. 3. I am calling the "click()" method of File control from the OnClick event of the button control. 4. Then i am assigning the File value to the Text control. 5. I put one more Button control. 6. Then Onclick event of this button i am calling "SubmitPage" function to submit the page to an target asp file. When i run this page and on clicking the Send button i am getting an error as "Access is denied". If u find the solution for this please clarify me. Regards PSNathan. The code used by me : <%@ Language=VBScript %> <% Option Explicit %>
________________________________________________________________________ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com From pspriya2001 at yahoo.co.in Tue Jun 18 02:05:06 2002 From: pspriya2001 at yahoo.co.in (=?iso-8859-1?q?shanmuga=20priya?=) Date: Tue, 18 Jun 2002 08:05:06 +0100 (BST) Subject: [Javascript] To use "click" method of Input Type File control Message-ID: <20020618070506.32354.qmail@web8006.mail.in.yahoo.com> Hi, i have a situation where i would like to use the "click()" method of Input Type 'File' control. The steps followed by me. 1. I put a Input type File control and i made it invisible 2. I put one Button control and one Text control. 3. I am calling the "click()" method of File control from the OnClick event of the button control. 4. Then i am assigning the File value to the Text control. 5. I put one more Button control. 6. Then Onclick event of this button i am calling "SubmitPage" function to submit the page to an target asp file. When i run this page and on clicking the Send button i am getting an error as "Access is denied". If u find the solution for this please clarify me. Regards PSNathan. The code used by me : <%@ Language=VBScript %> <% Option Explicit %>
________________________________________________________________________ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com From pspriya2001 at yahoo.co.in Tue Jun 18 02:08:10 2002 From: pspriya2001 at yahoo.co.in (=?iso-8859-1?q?shanmuga=20priya?=) Date: Tue, 18 Jun 2002 08:08:10 +0100 (BST) Subject: [Javascript] To use "click" method of Input Type File control Message-ID: <20020618070810.95573.qmail@web8005.mail.in.yahoo.com> Hi, i have a situation where i would like to use the "click()" method of Input Type 'File' control. The steps followed by me. 1. I put a Input type File control and i made it invisible 2. I put one Button control and one Text control. 3. I am calling the "click()" method of File control from the OnClick event of the button control. 4. Then i am assigning the File value to the Text control. 5. I put one more Button control. 6. Then Onclick event of this button i am calling "SubmitPage" function to submit the page to an target asp file. When i run this page and on clicking the Send button i am getting an error as "Access is denied". If u find the solution for this please clarify me. Regards PSNathan. The code used by me : <%@ Language=VBScript %> <% Option Explicit %>
________________________________________________________________________ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com From nancybv at idirect.ca Tue Jun 18 05:55:44 2002 From: nancybv at idirect.ca (Nancy Burton-Vulovic) Date: Tue, 18 Jun 2002 06:55:44 -0400 Subject: [Javascript] Flash, DHTML, IE6 References: Message-ID: <006a01c216b6$b204e780$6401a8c0@Nancy> Son of a gun, ppk, that works beautifully! Thank you so very much! (I am SO grateful for this list, you have no idea.) Going to learn about doctypes now. Thanks again! Nancy ----- Original Message ----- From: "Peter-Paul Koch" To: Sent: Tuesday, June 18, 2002 2:56 AM Subject: Re: [Javascript] Flash, DHTML, IE6 > > >I have a dhtml menu (floating menu) that works fine cross-browser, except > >on > >pages with Flash embedded. There it does not work for IE6 - it can > >apparently not read the line > > > >if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop} > > That's because you use a doctype which switches IE6 into compatibility mode. > In that mode you need to read out document.documentElement.scrollTop > > Solutions: > > 1) Remove the doctype > 2) Put before the doctype. This > is perfectly standards compliant but switches the IE6 mode off again. > > ppk > > _________________________________________________________________ > Join the world's largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From nancybv at idirect.ca Tue Jun 18 06:03:19 2002 From: nancybv at idirect.ca (Nancy Burton-Vulovic) Date: Tue, 18 Jun 2002 07:03:19 -0400 Subject: [Javascript] Flash, DHTML, IE6 References: Message-ID: <009201c216b7$c1516b40$6401a8c0@Nancy> Damn. On second try, it doesn't work, because I'm a little bleary-eyed this morning and realized after my original jubilant message that I'd commented out the Flash before saving it last night.When I uncomment it, I'm back to where I was. Memo to self - have shower and open eyes before attempting to code after 4 hours sleep. N ----- Original Message ----- From: "Peter-Paul Koch" To: Sent: Tuesday, June 18, 2002 2:56 AM Subject: Re: [Javascript] Flash, DHTML, IE6 > > >I have a dhtml menu (floating menu) that works fine cross-browser, except > >on > >pages with Flash embedded. There it does not work for IE6 - it can > >apparently not read the line > > > >if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop} > > That's because you use a doctype which switches IE6 into compatibility mode. > In that mode you need to read out document.documentElement.scrollTop > > Solutions: > > 1) Remove the doctype > 2) Put before the doctype. This > is perfectly standards compliant but switches the IE6 mode off again. > > ppk > > _________________________________________________________________ > Join the world's largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From gassinaumasis at hotmail.com Tue Jun 18 06:55:17 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Tue, 18 Jun 2002 11:55:17 +0000 Subject: [Javascript] Flash, DHTML, IE6 Message-ID: >Son of a gun, ppk, that works beautifully! Thank you so very much! >(I am SO grateful for this list, you have no idea.) > >Going to learn about doctypes now. Thanks again! Unfortunately there's little to learn about them: the situation just doesn't make sense. See http://www.xs4all.nl/~ppk/js/index.html?doctypes.html for more information (though it won't particularly help you to get a clearer picture). ppk > > In that mode you need to read out document.documentElement.scrollTop > > > > Solutions: > > > > 1) Remove the doctype > > 2) Put before the doctype. >This > > is perfectly standards compliant but switches the IE6 mode off again. > > > > ppk > > > > _________________________________________________________________ > > Join the world's largest e-mail service with MSN Hotmail. > > http://www.hotmail.com > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From rodney at aflyingstart.net Tue Jun 18 10:54:09 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Tue, 18 Jun 2002 16:54:09 +0100 Subject: [Javascript] Using FileSystemObject when on-line Message-ID: <3D0F57A1.6E496A39@aflyingstart.net> The page below works in IE6.0 in file mode but the same page, when loaded from an on-line location, fails with the error : Line 5: Automation server can't create object. The page is closely based on an example in Pure Javascript by Wyke et al. The object of the exercise is to prove that a local file can be written to hard disk from a file originating on a website. The development that will result from this will be a site restricted in access to a group of company representatives. (i.e. It is most definitely NOT for public use.) Is there something I have to add? tia Rodney Write to testfso_02

This should write to c:\temp\testfso_02.txt

From walter at torres.ws Tue Jun 18 11:04:27 2002 From: walter at torres.ws (Walter Torres) Date: Tue, 18 Jun 2002 11:04:27 -0500 Subject: [Javascript] Form field time and date check In-Reply-To: <1D0255E75622D51185DB00D0B7E3FF44151ED9@chimaera.d2k.com.au> Message-ID: <000601c216e1$d37db9c0$2a65a8c0@eloyaltyco.com> Below is what I use for Date and Time checking... Hope this helps Walter ==================================== function isDate (year, month, day) { // Original post: Dan Osborne // 4/26/1999 // JavaScript // Modified by: Walter Torres // 4/29/2001 // This is an interesting way to do validation of dates! // First, decrement the given month; // since humans think in base ONE and // JavaScript dates for months think in base ZERO. // Human month range : 1 - 12 // JavaScript month range : 0 - 11 month--; // Then, create a new JS Date Object based upon given values. // NOTICE: This will convert 2/32/2000 to 3/3/2000 // JavaScript 'helps' you like this. var objTempDate = new Date(year,month,day); // Now, tear that new Data Object apart and see if the // values it gives back matches what we gave it. return ( ( objTempDate.getFullYear() == year ) && ( objTempDate.getMonth() == month ) && ( objTempDate.getDate() == day) ) ? true : false // Very nice method Dan! } function isTime (intHour, intMinute, intSecond) { // Baased upon: Dan Osborne // 4/26/1999 // JavaScript // Modified by: Walter Torres // 4/29/2001 // This is an interesting way to do validation of Time! // Create a new JS Date Object based upon given values. var objTempTime = new Date( 0, 0, 1, intHour, intMinute, intSecond ); // Now, tear that new Data Object apart and see if the // values it gives back matches what we gave it. return ( ( objTempTime.getHours() == intHour ) && ( objTempTime.getMinutes() == intMinute ) && ( objTempTime.getSeconds() == intSecond ) ) ? true : false } ==================================== From dyee at AMSResponse.com Tue Jun 18 11:24:14 2002 From: dyee at AMSResponse.com (David Yee) Date: Tue, 18 Jun 2002 09:24:14 -0700 Subject: [Javascript] Javascript Keyboard Navigation Message-ID: <2781DE01B41DD211AE7300A0C9C52F0E8C85D1@dpserver.amsresponse.com> Thanks Howard. > -----Original Message----- > From: Howard Rothenburg [mailto:hrothenb at bcpl.net] > Sent: Monday, June 17, 2002 7:23 PM > To: 'javascript at LaTech.edu' > Subject: Re: [Javascript] Javascript Keyboard Navigation > > > > launch the url you want, based on event.keycode > > > > > > On Mon, 17 Jun 2002, David Yee wrote: > > > Date: Mon, 17 Jun 2002 15:24:09 -0700 > > From: David Yee > > Reply-To: javascript at LaTech.edu > > To: "'javascript at LaTech.edu'" > > Subject: [Javascript] Javascript Keyboard Navigation > > > > Hi- is it possible to use Javascript to have a page > navigate to predefined > > url's depending on which key was pressed? Thanks. > > > > David > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From peter at brunone.com Tue Jun 18 11:30:35 2002 From: peter at brunone.com (Peter Brunone) Date: Tue, 18 Jun 2002 11:30:35 -0500 Subject: [Javascript] Using FileSystemObject when on-line In-Reply-To: <3D0F57A1.6E496A39@aflyingstart.net> Message-ID: Actually, I believe that's the point; you can't access the file system with javascript from a remote web page, because it would be a huge security risk. -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Rodney Myers | |The page below works in IE6.0 in file mode but the same page, when |loaded from an on-line location, fails with the error : | |Line 5: |Automation server can't create object. | |The page is closely based on an example in Pure Javascript by Wyke et |al. |The object of the exercise is to prove that a local file can be written |to hard disk from a file originating on a website. | |The development that will result from this will be a site restricted in |access to a group of company representatives. (i.e. It is most |definitely NOT for public use.) | |Is there something I have to add? | |tia | |Rodney | | | |Write to testfso_02 | | | |

This should write to c:\temp\testfso_02.txt

| | From phermansson at home.se Tue Jun 18 11:30:39 2002 From: phermansson at home.se (Per Hermansson) Date: Tue, 18 Jun 2002 18:30:39 +0200 Subject: [Javascript] Using FileSystemObject when on-line In-Reply-To: References: <3D0F57A1.6E496A39@aflyingstart.net> Message-ID: <5.1.0.14.0.20020618182552.038e2df0@imap.axiell.se> I agree with Peter, but you could try and add the remote site to a trusted zone in IE, and set the security for that zone to very low settings (I don't know which settings affect this behavior). If that fails, you have to use something besides javascript. (Active X control ? I have an ActiveX control that is run on a trusted site, and it can access the local printer, so file system might be ok too ? ) But that requires IE afaik, but you seem to have that as a pre-req. anyway. /Per H. At 18:30 2002-06-18, you wrote: > Actually, I believe that's the point; you can't access the file > system with >javascript from a remote web page, because it would be a huge security risk. > >-Peter > >|-----Original Message----- >|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On >|Behalf Of Rodney Myers >| >|The page below works in IE6.0 in file mode but the same page, when >|loaded from an on-line location, fails with the error : >| >|Line 5: >|Automation server can't create object. >| >|The page is closely based on an example in Pure Javascript by Wyke et >|al. >|The object of the exercise is to prove that a local file can be written >|to hard disk from a file originating on a website. >| >|The development that will result from this will be a site restricted in >|access to a group of company representatives. (i.e. It is most >|definitely NOT for public use.) >| >|Is there something I have to add? >| >|tia >| >|Rodney >| >| >| >|Write to testfso_02 >| >| >| >|

This should write to c:\temp\testfso_02.txt

>| >| From rodney at aflyingstart.net Tue Jun 18 11:57:42 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Tue, 18 Jun 2002 17:57:42 +0100 Subject: [Javascript] Using FileSystemObject when on-line References: <3D0F57A1.6E496A39@aflyingstart.net> <5.1.0.14.0.20020618182552.038e2df0@imap.axiell.se> Message-ID: <3D0F6686.828CBFBB@aflyingstart.net> Per, You are right on target! Yes IE5.0+ is required to run FileSystemObject and there is no worry about that since the users must all be personally briefed on set-up. I added the website root address to trusted sites using Tools -> Internet options Since the site was http and not https I also had to uncheck the box that required https checking. Then I ran the page successfully. Of course there is a warning about the danger of the Active X object that is automatically generated by the browser. Often Norton Anti Virus chips in to warn and stop/restrict useage of the script. For the users, the trusted site will be that of their employer. Thank you very much! And thanks to PB also for highlighting the security issue. Rodney Per Hermansson wrote: > I agree with Peter, but you could try and add the remote site > to a trusted zone in IE, and set the security for that zone to > very low settings (I don't know which settings affect this behavior). > > If that fails, you have to use something besides javascript. > (Active X control ? I have an ActiveX control that is run on > a trusted site, and it can access the local printer, so file > system might be ok too ? ) > > But that requires IE afaik, but you seem to have that as a pre-req. > anyway. > > /Per H. > > At 18:30 2002-06-18, you wrote: > > > Actually, I believe that's the point; you can't access the file > > system with > >javascript from a remote web page, because it would be a huge security risk. > > > >-Peter > > > >|-----Original Message----- > >|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On > >|Behalf Of Rodney Myers > >| > >|The page below works in IE6.0 in file mode but the same page, when > >|loaded from an on-line location, fails with the error : > >| > >|Line 5: > >|Automation server can't create object. > >| > >|The page is closely based on an example in Pure Javascript by Wyke et > >|al. > >|The object of the exercise is to prove that a local file can be written > >|to hard disk from a file originating on a website. > >| > >|The development that will result from this will be a site restricted in > >|access to a group of company representatives. (i.e. It is most > >|definitely NOT for public use.) > >| > >|Is there something I have to add? > >| > >|tia > >| > >|Rodney > >| > >| > >| > >|Write to testfso_02 > >| > >| > >| > >|

This should write to c:\temp\testfso_02.txt

> >| > >| > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From tom at wheelercreek.com Tue Jun 18 13:57:01 2002 From: tom at wheelercreek.com (Tom Wheeler) Date: Tue, 18 Jun 2002 11:57:01 -0700 Subject: [Javascript] Flash, DHTML, IE6 Message-ID: <200206181848.g5IImkm64818@eris.domainnameservers.net> An embedded object like a flash movie does NOT allow anything to be positioned above it in Z-index. I've never been able to get around this in any browser. I think its built into the tag, i don't think its related to Flash... it would probably do the same with a QuickTime movie too. tom w. From cutterbl at hotmail.com Tue Jun 18 15:53:33 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Tue, 18 Jun 2002 16:53:33 -0400 Subject: [Javascript] Flash, DHTML, IE6 Message-ID: I have also found this to be true. Hate it (and Flash), but true. Cutter http://www.falcon-knives.com ----Original Message Follows---- From: "Tom Wheeler" Reply-To: javascript at LaTech.edu To: Javascript at latech.edu Subject: [Javascript] Flash, DHTML, IE6 Date: Tue, 18 Jun 2002 11:57:01 -0700 An embedded object like a flash movie does NOT allow anything to be positioned above it in Z-index. I've never been able to get around this in any browser. I think its built into the tag, i don't think its related to Flash... it would probably do the same with a QuickTime movie too. tom w. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From andrew at d2k.com.au Tue Jun 18 21:01:46 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Wed, 19 Jun 2002 12:01:46 +1000 Subject: [Javascript] Try to submit a form Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151EDD@chimaera.d2k.com.au> Hi there, I have 5 forms on one page when I try to submit the first form (form[0]), it's ok and the form submits, but when I try to submit another form (eg form[2]) it doesn't appear that the form does anything and certainly doesn't put anything in to the database. Some code is below (see line with ***) the condition on submitting a form is the visibility of a div, as I have a few div's which appear as tabs. if (eval("visible_1.style.visibility == 'visible'")) { //submit personal info (including notes) document.forms[0].submit(); } else if (eval("visible_2.style.visibility == 'visible'")) { //submit personal info (including notes) document.forms[0].submit(); } else if (eval("visible_3.style.visibility == 'visible'")) { alert("enquiry"); } else if (eval("visible_4.style.visibility == 'visible'")) { //*** document.forms[2].submit(); } else if (eval("visible_5.style.visibility == 'visible'")) { alert("deposit"); } else if (eval("visible_6.style.visibility == 'visible'")) { alert("resident"); } Would anyone know why this form would not submit? Thanks. Andrew. From peter at brunone.com Tue Jun 18 22:03:01 2002 From: peter at brunone.com (Peter Brunone) Date: Tue, 18 Jun 2002 22:03:01 -0500 Subject: [Javascript] Try to submit a form In-Reply-To: <1D0255E75622D51185DB00D0B7E3FF44151EDD@chimaera.d2k.com.au> Message-ID: Andrew, I could be wrong, but once you submit a form which targets the current page, don't you lose control of that page? You might have to aim the form somewhere else (either another frame or another window). -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Andrew Dunn | |Hi there, | |I have 5 forms on one page when I try to submit the first form (form[0]), |it's ok and the form submits, but when I try to submit another form (eg |form[2]) it doesn't appear that the form does anything and |certainly doesn't |put anything in to the database. | |Some code is below (see line with ***) the condition on submitting |a form is |the visibility of a div, as I have a few div's which appear as tabs. | |if (eval("visible_1.style.visibility == 'visible'")) { | //submit personal info (including notes) | document.forms[0].submit(); | } | else if (eval("visible_2.style.visibility == 'visible'")) { | //submit personal info (including notes) | document.forms[0].submit(); | } | else if (eval("visible_3.style.visibility == 'visible'")) { | alert("enquiry"); | } | else if (eval("visible_4.style.visibility == 'visible'")) { | //*** | document.forms[2].submit(); | } | else if (eval("visible_5.style.visibility == 'visible'")) { | alert("deposit"); | } | else if (eval("visible_6.style.visibility == 'visible'")) { | alert("resident"); | } | |Would anyone know why this form would not submit? | |Thanks. |Andrew. | From nancybv at flyinglemon.com Tue Jun 18 22:15:59 2002 From: nancybv at flyinglemon.com (Flying Lemon Systems) Date: Tue, 18 Jun 2002 23:15:59 -0400 Subject: [Javascript] Flash, DHTML, IE6 References: Message-ID: <00d401c2173f$a597e950$6401a8c0@Nancy> Ok, team. I found the problem. It was, of course, a stupid little thing. Having solved it now, I can tell you that yes, you can include Flash and DHTML in the same page, and it isn't too difficult either. Here is the code: var ns4=document.layers?1:0 var ie4=document.getElementById&&document.all?1:0 var ns6=document.getElementById&&!document.all?1:0 function makeStatic() { if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop} else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop} else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));} setTimeout("makeStatic()",0); } I had set my ie4 (assuming ie4, ie5, ie5.5, and ie6 would be covered by it) to var ie4=document.all?1:0 Since I hadn't included the document.getElementById part, apparently this meant that IE6 couldn't handle it properly. I would have expected that one should then use object1.style.pixelTop=document.documentElement.scrollTop+offsettop but it doesn't seem to make any difference. Now, of course, it may not work properly for IE4, 5, and 5.5, but I'm going to have to find somebody who can check those out since I don't have them loaded. I would upload it but this is not public yet, and so I'm not free to. If it all gets approved I'd like to show it to you! N From andrew at d2k.com.au Tue Jun 18 22:39:08 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Wed, 19 Jun 2002 13:39:08 +1000 Subject: [Javascript] Try to submit a form Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151EDF@chimaera.d2k.com.au> Peter, The forms are each aimed at a different page, here is a tag from one:
Here also is a
tag that when clicked will call the form to submit, I have images simulating tabs (like on a windows application) I really don't know why it won't submit, it's a bit strange. Andrew. -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Wednesday, 19 June 2002 1:03 PM To: javascript at LaTech.edu Subject: RE: [Javascript] Try to submit a form Andrew, I could be wrong, but once you submit a form which targets the current page, don't you lose control of that page? You might have to aim the form somewhere else (either another frame or another window). -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu |[mailto:javascript-admin at LaTech.edu]On |Behalf Of Andrew Dunn | |Hi there, | |I have 5 forms on one page when I try to submit the first form |(form[0]), it's ok and the form submits, but when I try to submit |another form (eg |form[2]) it doesn't appear that the form does anything and |certainly doesn't |put anything in to the database. | |Some code is below (see line with ***) the condition on submitting a |form is the visibility of a div, as I have a few div's which appear as |tabs. | |if (eval("visible_1.style.visibility == 'visible'")) { | //submit personal info (including notes) | document.forms[0].submit(); | } | else if (eval("visible_2.style.visibility == 'visible'")) { | //submit personal info (including notes) | document.forms[0].submit(); | } | else if (eval("visible_3.style.visibility == 'visible'")) { | alert("enquiry"); | } | else if (eval("visible_4.style.visibility == 'visible'")) { | //*** | document.forms[2].submit(); | } | else if (eval("visible_5.style.visibility == 'visible'")) { | alert("deposit"); | } | else if (eval("visible_6.style.visibility == 'visible'")) { | alert("resident"); | } | |Would anyone know why this form would not submit? | |Thanks. |Andrew. | _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From andrew at d2k.com.au Tue Jun 18 23:07:43 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Wed, 19 Jun 2002 14:07:43 +1000 Subject: [Javascript] Try to submit a form Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151EE3@chimaera.d2k.com.au> Hi, I'ts an intranet app, so there is no problems with that. I don't really want the forms to multi-submit I only want one to submit at a time. I have added a submit button to each and that works well, but I can't submit via code. -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Wednesday, 19 June 2002 2:08 PM To: javascript at LaTech.edu Subject: RE: [Javascript] Try to submit a form This may be a dumb question, but have you tried removing the visibility criteria to see if the forms will multi-submit at all? Also, is this an internet or intranet site? If the former, then you may run into problems if vital functions depend on the viability of client scripting (you've probably already thought this through, but just in case, there it is). -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu |[mailto:javascript-admin at LaTech.edu]On |Behalf Of Andrew Dunn | |Peter, | |The forms are each aimed at a different page, here is a tag from one: | | | |Here also is a tag that when clicked will call the form to submit, |I have images simulating tabs (like on a windows application) | | | | | |I really don't know why it won't submit, it's a bit strange. | |Andrew. | |-----Original Message----- |From: Peter Brunone [mailto:peter at brunone.com] | |Andrew, | | I could be wrong, but once you submit a form which targets the current |page, don't you lose control of that page? You might have to aim the |form somewhere else (either another frame or another window). | |-Peter | ||-----Original Message----- ||From: javascript-admin at LaTech.edu ||[mailto:javascript-admin at LaTech.edu]On ||Behalf Of Andrew Dunn || ||Hi there, || ||I have 5 forms on one page when I try to submit the first form ||(form[0]), it's ok and the form submits, but when I try to submit ||another form (eg ||form[2]) it doesn't appear that the form does anything and certainly ||doesn't put anything in to the database. || ||Some code is below (see line with ***) the condition on submitting a ||form is the visibility of a div, as I have a few div's which appear as ||tabs. || ||if (eval("visible_1.style.visibility == 'visible'")) { || //submit personal info (including notes) || document.forms[0].submit(); || } || else if (eval("visible_2.style.visibility == 'visible'")) { || //submit personal info (including notes) || document.forms[0].submit(); || } || else if (eval("visible_3.style.visibility == 'visible'")) { || alert("enquiry"); || } || else if (eval("visible_4.style.visibility == 'visible'")) { || //*** || document.forms[2].submit(); || } || else if (eval("visible_5.style.visibility == 'visible'")) { || alert("deposit"); || } || else if (eval("visible_6.style.visibility == 'visible'")) { || alert("resident"); || } || ||Would anyone know why this form would not submit? || ||Thanks. ||Andrew. || _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From tutwabee at hotmail.com Tue Jun 18 23:08:11 2002 From: tutwabee at hotmail.com (Trey H) Date: Wed, 19 Jun 2002 04:08:11 +0000 Subject: [Javascript] Try to submit a form Message-ID: To submit via code type document.formname.submit(). Just make a function that the button calls that submits both. ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: Andrew Dunn >Reply-To: javascript at LaTech.edu >To: "'javascript at LaTech.edu'" >Subject: RE: [Javascript] Try to submit a form >Date: Wed, 19 Jun 2002 14:07:43 +1000 > >Hi, > >I'ts an intranet app, so there is no problems with that. I don't really >want >the forms to multi-submit I only want one to submit at a time. I have added >a submit button to each and that works well, but I can't submit via code. > >-----Original Message----- >From: Peter Brunone [mailto:peter at brunone.com] >Sent: Wednesday, 19 June 2002 2:08 PM >To: javascript at LaTech.edu >Subject: RE: [Javascript] Try to submit a form > > > > This may be a dumb question, but have you tried removing the >visibility criteria to see if the forms will multi-submit at all? > Also, is this an internet or intranet site? If the former, then you >may run into problems if vital functions depend on the viability of client >scripting (you've probably already thought this through, but just in case, >there it is). > >-Peter > >|-----Original Message----- >|From: javascript-admin at LaTech.edu >|[mailto:javascript-admin at LaTech.edu]On >|Behalf Of Andrew Dunn >| >|Peter, >| >|The forms are each aimed at a different page, here is a tag from one: >| >||id=efs> >| >|Here also is a tag that when clicked will call the form to submit, >|I have images simulating tabs (like on a windows application) >| >||onclick="check_for_save(); >|change_div('the_notes','deposit','resident','personal','enquiry','ef'); >|window.status='EF Member Information'" href="javascript:void(0)"> >| >| >| >|I really don't know why it won't submit, it's a bit strange. >| >|Andrew. >| >|-----Original Message----- >|From: Peter Brunone [mailto:peter at brunone.com] >| >|Andrew, >| >| I could be wrong, but once you submit a form which targets the >current >|page, don't you lose control of that page? You might have to aim the >|form somewhere else (either another frame or another window). >| >|-Peter >| >||-----Original Message----- >||From: javascript-admin at LaTech.edu >||[mailto:javascript-admin at LaTech.edu]On >||Behalf Of Andrew Dunn >|| >||Hi there, >|| >||I have 5 forms on one page when I try to submit the first form >||(form[0]), it's ok and the form submits, but when I try to submit >||another form (eg >||form[2]) it doesn't appear that the form does anything and certainly >||doesn't put anything in to the database. >|| >||Some code is below (see line with ***) the condition on submitting a >||form is the visibility of a div, as I have a few div's which appear as >||tabs. >|| >||if (eval("visible_1.style.visibility == 'visible'")) { >|| //submit personal info (including notes) >|| document.forms[0].submit(); >|| } >|| else if (eval("visible_2.style.visibility == 'visible'")) { >|| //submit personal info (including notes) >|| document.forms[0].submit(); >|| } >|| else if (eval("visible_3.style.visibility == 'visible'")) { >|| alert("enquiry"); >|| } >|| else if (eval("visible_4.style.visibility == 'visible'")) { >|| //*** >|| document.forms[2].submit(); >|| } >|| else if (eval("visible_5.style.visibility == 'visible'")) { >|| alert("deposit"); >|| } >|| else if (eval("visible_6.style.visibility == 'visible'")) { >|| alert("resident"); >|| } >|| >||Would anyone know why this form would not submit? >|| >||Thanks. >||Andrew. >|| > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From peter at brunone.com Tue Jun 18 23:08:19 2002 From: peter at brunone.com (Peter Brunone) Date: Tue, 18 Jun 2002 23:08:19 -0500 Subject: [Javascript] Try to submit a form In-Reply-To: <1D0255E75622D51185DB00D0B7E3FF44151EDF@chimaera.d2k.com.au> Message-ID: This may be a dumb question, but have you tried removing the visibility criteria to see if the forms will multi-submit at all? Also, is this an internet or intranet site? If the former, then you may run into problems if vital functions depend on the viability of client scripting (you've probably already thought this through, but just in case, there it is). -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Andrew Dunn | |Peter, | |The forms are each aimed at a different page, here is a tag from one: | | | |Here also is a tag that when clicked will call the form to submit, I |have images simulating tabs (like on a windows application) | | | | | |I really don't know why it won't submit, it's a bit strange. | |Andrew. | |-----Original Message----- |From: Peter Brunone [mailto:peter at brunone.com] | |Andrew, | | I could be wrong, but once you submit a form which targets the |current page, don't you lose control of that page? You might have to aim |the form somewhere else (either another frame or another window). | |-Peter | ||-----Original Message----- ||From: javascript-admin at LaTech.edu ||[mailto:javascript-admin at LaTech.edu]On ||Behalf Of Andrew Dunn || ||Hi there, || ||I have 5 forms on one page when I try to submit the first form ||(form[0]), it's ok and the form submits, but when I try to submit ||another form (eg ||form[2]) it doesn't appear that the form does anything and ||certainly doesn't ||put anything in to the database. || ||Some code is below (see line with ***) the condition on submitting a ||form is the visibility of a div, as I have a few div's which appear as ||tabs. || ||if (eval("visible_1.style.visibility == 'visible'")) { || //submit personal info (including notes) || document.forms[0].submit(); || } || else if (eval("visible_2.style.visibility == 'visible'")) { || //submit personal info (including notes) || document.forms[0].submit(); || } || else if (eval("visible_3.style.visibility == 'visible'")) { || alert("enquiry"); || } || else if (eval("visible_4.style.visibility == 'visible'")) { || //*** || document.forms[2].submit(); || } || else if (eval("visible_5.style.visibility == 'visible'")) { || alert("deposit"); || } || else if (eval("visible_6.style.visibility == 'visible'")) { || alert("resident"); || } || ||Would anyone know why this form would not submit? || ||Thanks. ||Andrew. || From andrew at d2k.com.au Tue Jun 18 23:34:22 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Wed, 19 Jun 2002 14:34:22 +1000 Subject: [Javascript] Try to submit a form Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151EE5@chimaera.d2k.com.au> No worries, Its working now, don't know why I'm using document.efs.submit(); Which is just the form name, don't know why it works, but it does. -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: Wednesday, 19 June 2002 2:37 PM To: javascript at LaTech.edu Subject: RE: [Javascript] Try to submit a form Ack. Speaking of dumb, it's past my bedtime. I completely misread your code; sorry about that. I see now that you're only trying to submit one at a time. A few more addled questions, if I still may :) 1) Have you tried an alert in place of each submit (instead of just some) to make sure the "else if" clause is triggered? It could be a mis-typing error in your div references. If on the other hand you are sure the problem is in the submit() command, can you verify for certain that the form is not submitting, i.e. might the missing database changes be the result of a problem in the processing page? 2) Why are you testing eval("visible_1.style.visibility == 'visible'") when you could just test for visible_1.style.visibility == 'visible' ? 3) You may have a problem with form indices in a page. I can't say for sure how this works out, but I know that the order isn't always what you think it is. Have you tried using the form name instead? In Sanity, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu |[mailto:javascript-admin at LaTech.edu]On |Behalf Of Andrew Dunn | |Hi, | |I'ts an intranet app, so there is no problems with that. I don't really |want the forms to multi-submit I only want one to submit at a time. I |have added a submit button to each and that works well, but I can't |submit via code. | |-----Original Message----- |From: Peter Brunone [mailto:peter at brunone.com] | | This may be a dumb question, but have you tried removing the |visibility criteria to see if the forms will multi-submit at all? | Also, is this an internet or intranet site? If the former, then you |may run into problems if vital functions depend on the viability of |client scripting (you've probably already thought this through, but |just in case, there it is). | |-Peter | ||-----Original Message----- ||From: javascript-admin at LaTech.edu ||[mailto:javascript-admin at LaTech.edu]On ||Behalf Of Andrew Dunn || ||Peter, || ||The forms are each aimed at a different page, here is a tag from one: || || || ||Here also is a tag that when clicked will call the form to submit, ||I have images simulating tabs (like on a windows application) || || || || || ||I really don't know why it won't submit, it's a bit strange. || ||Andrew. || ||-----Original Message----- ||From: Peter Brunone [mailto:peter at brunone.com] || ||Andrew, || || I could be wrong, but once you submit a form which targets the |current ||page, don't you lose control of that page? You might have to aim the ||form somewhere else (either another frame or another window). || ||-Peter || |||-----Original Message----- |||From: javascript-admin at LaTech.edu |||[mailto:javascript-admin at LaTech.edu]On |||Behalf Of Andrew Dunn ||| |||Hi there, ||| |||I have 5 forms on one page when I try to submit the first form |||(form[0]), it's ok and the form submits, but when I try to submit |||another form (eg |||form[2]) it doesn't appear that the form does anything and certainly |||doesn't put anything in to the database. ||| |||Some code is below (see line with ***) the condition on submitting a |||form is the visibility of a div, as I have a few div's which appear |||as tabs. ||| |||if (eval("visible_1.style.visibility == 'visible'")) { ||| //submit personal info (including notes) ||| document.forms[0].submit(); ||| } ||| else if (eval("visible_2.style.visibility == 'visible'")) { ||| //submit personal info (including notes) ||| document.forms[0].submit(); ||| } ||| else if (eval("visible_3.style.visibility == 'visible'")) { ||| alert("enquiry"); ||| } ||| else if (eval("visible_4.style.visibility == 'visible'")) { ||| //*** ||| document.forms[2].submit(); ||| } ||| else if (eval("visible_5.style.visibility == 'visible'")) { ||| alert("deposit"); ||| } ||| else if (eval("visible_6.style.visibility == 'visible'")) { ||| alert("resident"); ||| } ||| |||Would anyone know why this form would not submit? ||| |||Thanks. |||Andrew. ||| _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Tue Jun 18 23:36:39 2002 From: peter at brunone.com (Peter Brunone) Date: Tue, 18 Jun 2002 23:36:39 -0500 Subject: [Javascript] Try to submit a form In-Reply-To: <1D0255E75622D51185DB00D0B7E3FF44151EE3@chimaera.d2k.com.au> Message-ID: Ack. Speaking of dumb, it's past my bedtime. I completely misread your code; sorry about that. I see now that you're only trying to submit one at a time. A few more addled questions, if I still may :) 1) Have you tried an alert in place of each submit (instead of just some) to make sure the "else if" clause is triggered? It could be a mis-typing error in your div references. If on the other hand you are sure the problem is in the submit() command, can you verify for certain that the form is not submitting, i.e. might the missing database changes be the result of a problem in the processing page? 2) Why are you testing eval("visible_1.style.visibility == 'visible'") when you could just test for visible_1.style.visibility == 'visible' ? 3) You may have a problem with form indices in a page. I can't say for sure how this works out, but I know that the order isn't always what you think it is. Have you tried using the form name instead? In Sanity, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Andrew Dunn | |Hi, | |I'ts an intranet app, so there is no problems with that. I don't |really want |the forms to multi-submit I only want one to submit at a time. I have added |a submit button to each and that works well, but I can't submit via code. | |-----Original Message----- |From: Peter Brunone [mailto:peter at brunone.com] | | This may be a dumb question, but have you tried removing the |visibility criteria to see if the forms will multi-submit at all? | Also, is this an internet or intranet site? If the former, then you |may run into problems if vital functions depend on the viability of client |scripting (you've probably already thought this through, but just in case, |there it is). | |-Peter | ||-----Original Message----- ||From: javascript-admin at LaTech.edu ||[mailto:javascript-admin at LaTech.edu]On ||Behalf Of Andrew Dunn || ||Peter, || ||The forms are each aimed at a different page, here is a tag from one: || || || ||Here also is a tag that when clicked will call the form to submit, ||I have images simulating tabs (like on a windows application) || || || || || ||I really don't know why it won't submit, it's a bit strange. || ||Andrew. || ||-----Original Message----- ||From: Peter Brunone [mailto:peter at brunone.com] || ||Andrew, || || I could be wrong, but once you submit a form which targets the |current ||page, don't you lose control of that page? You might have to aim the ||form somewhere else (either another frame or another window). || ||-Peter || |||-----Original Message----- |||From: javascript-admin at LaTech.edu |||[mailto:javascript-admin at LaTech.edu]On |||Behalf Of Andrew Dunn ||| |||Hi there, ||| |||I have 5 forms on one page when I try to submit the first form |||(form[0]), it's ok and the form submits, but when I try to submit |||another form (eg |||form[2]) it doesn't appear that the form does anything and certainly |||doesn't put anything in to the database. ||| |||Some code is below (see line with ***) the condition on submitting a |||form is the visibility of a div, as I have a few div's which appear as |||tabs. ||| |||if (eval("visible_1.style.visibility == 'visible'")) { ||| //submit personal info (including notes) ||| document.forms[0].submit(); ||| } ||| else if (eval("visible_2.style.visibility == 'visible'")) { ||| //submit personal info (including notes) ||| document.forms[0].submit(); ||| } ||| else if (eval("visible_3.style.visibility == 'visible'")) { ||| alert("enquiry"); ||| } ||| else if (eval("visible_4.style.visibility == 'visible'")) { ||| //*** ||| document.forms[2].submit(); ||| } ||| else if (eval("visible_5.style.visibility == 'visible'")) { ||| alert("deposit"); ||| } ||| else if (eval("visible_6.style.visibility == 'visible'")) { ||| alert("resident"); ||| } ||| |||Would anyone know why this form would not submit? ||| |||Thanks. |||Andrew. ||| From gschandrabose at infotech.stph.net Wed Jun 19 02:13:40 2002 From: gschandrabose at infotech.stph.net (Suresh Chandra Bose) Date: Wed, 19 Jun 2002 12:43:40 +0530 Subject: [Javascript] problem with linking Message-ID: <000001c21761$41c76b90$a1c513ac@bose> Hi I have an exe.On running the exe,a tool is opened with data's of some manuals. Can i directly link my application to the manual from the tool ?? Pl give me some suggestions. Regards Suresh chandra Bose From gschandrabose at infotech.stph.net Wed Jun 19 02:17:48 2002 From: gschandrabose at infotech.stph.net (Suresh Chandra Bose) Date: Wed, 19 Jun 2002 12:47:48 +0530 Subject: [Javascript] Problem with Linking Message-ID: <000001c2184d$4719b250$a1c513ac@bose> Hi I have an exe.On running the exe,a tool is opened with data's of some manuals. Can i directly link my application to the manual from the tool ?? Pl give me some suggestions. Regards Suresh Chandra Bose From gschandrabose at infotech.stph.net Wed Jun 19 04:30:34 2002 From: gschandrabose at infotech.stph.net (Suresh Chandra Bose) Date: Wed, 19 Jun 2002 15:00:34 +0530 Subject: [Javascript] Problem with Linking Message-ID: <001001c21773$f66cf990$a1c513ac@bose> Hi I have an exe.On running the exe,a tool is opened with data's of some manuals. Can i directly link my application to the manual from the tool ?? Or can i convert the dat files along with the exe to any readable format ?? Pl give me some suggestions. Regards Suresh Chandra Bose -------------- next part -------------- An HTML attachment was scrubbed... URL: From tutwabee at hotmail.com Wed Jun 19 11:10:27 2002 From: tutwabee at hotmail.com (Trey H) Date: Wed, 19 Jun 2002 16:10:27 +0000 Subject: [Javascript] Problem with Linking Message-ID: I think what you are trying to do is link an exe file from the webpage. Or is it the other way around? Well, you can just type in the file name in a link command: The File and a dialog box should pop up that asks if the user wants to save or open. If you are trying to link the other way around I am not sure, but I have seen it done. ==================================== Trey: tutwabee at hotmail.com Get free JavaScripts at the Blue Dragon! Just go to: http://www.websiter.biz ==================================== Make money by being online: http://www.degoo.com/index.php?refid=tutwabee =================================== Earn free traffic for your website easily: http://tools.addme.com/servlet/popview?id=52260 ==================================== >From: "Suresh Chandra Bose" >Reply-To: javascript at LaTech.edu >To: >Subject: [Javascript] Problem with Linking >Date: Wed, 19 Jun 2002 15:00:34 +0530 > >Hi >I have an exe.On running the exe,a tool is opened with data's of some >manuals. >Can i directly link my application to the manual from the tool ?? >Or can i convert the dat files along with the exe to any readable format ?? > >Pl give me some suggestions. > >Regards >Suresh Chandra Bose _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From Yann.DeChamplain at molson.com Wed Jun 19 14:20:53 2002 From: Yann.DeChamplain at molson.com (Yann.DeChamplain at molson.com) Date: Wed, 19 Jun 2002 15:20:53 -0400 Subject: [Javascript] JavaScript Debuger Message-ID: <02Jun19.150742edt.37789@natgtw01.molson.com> Do you know a better debugger then MS Script Debugger? Thanx Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodney at aflyingstart.net Wed Jun 19 14:41:57 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Wed, 19 Jun 2002 20:41:57 +0100 Subject: [Javascript] Using FileSystemObject when on-line References: <3D0F57A1.6E496A39@aflyingstart.net> <5.1.0.14.0.20020618182552.038e2df0@imap.axiell.se> <3D0F6686.828CBFBB@aflyingstart.net> Message-ID: <3D10DE85.5776807@aflyingstart.net> Further tests conducted today were around the issue of the use of the file now successfully written to hard disk after changing the trusted sites settings. The file will be a .js file but it will be on the local hard disk while the site is at a remote http location. I had thought that I would have to have users define a folder to which the file could be written using a windows path, while the same file would be picked up as an included script file with an http://localhost address by making a virtual directory in PWS/IIS/Apache. However a colleague prompted me to try the inclusion with a windows address so that no local webserver would be required if the format worked. This did work, somewhat to my surprise not only when the htm file was local but also when remote: Although Netscape will not feature in this development due to having no built in Active_X handling I could not resist trying a test file in Netscape, using its own file format, which also worked in 4.x and 7 (Preview): If it was important, one could script the inclusion to suit the detected browser. BTW, the written file will contain customer and order information and, after some hard scripting, will have the effect of "extending the cookie system" (It is technically nothing at all to do with cookies but functionally there is some similarity) so that all customers the salesperson sees will have data available. Another file will contain a data array of customer names and the corresponding file names which will be used to generate links to facilitate choice of customer data to 'load' hth somebody Rodney Rodney Myers wrote: > Per, > > You are right on target! > Yes IE5.0+ is required to run FileSystemObject and there is no worry about that > since the users must all be personally briefed on set-up. > > I added the website root address to trusted sites using > Tools -> Internet options > Since the site was http and not https I also had to uncheck the box that required > https checking. > > Then I ran the page successfully. > > Of course there is a warning about the danger of the Active X object that is > automatically generated by the browser. Often Norton Anti Virus chips in to warn > and stop/restrict useage of the script. > > For the users, the trusted site will be that of their employer. > > Thank you very much! And thanks to PB also for highlighting the security issue. > > Rodney From jgordon at directfile.com Wed Jun 19 14:52:23 2002 From: jgordon at directfile.com (Josiah Gordon) Date: Wed, 19 Jun 2002 12:52:23 -0700 Subject: [Javascript] JavaScript Debuger In-Reply-To: <02Jun19.150742edt.37789@natgtw01.molson.com> Message-ID: Download Netscape 7 PR 1 and go to Tools, Web Development, JavaScript Console. It's much better than any MS debugger I've tried. BTW: I have Netscape installed *only* for this debugger... HTH, Josiah Gordon -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Yann.DeChamplain at molson.com Sent: Wednesday, June 19, 2002 12:21 PM To: JS-Jive at yahoogroups.com; javascript at LaTech.edu Subject: [Javascript] JavaScript Debuger Do you know a better debugger then MS Script Debugger? Thanx Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com From Yann.DeChamplain at molson.com Wed Jun 19 14:54:10 2002 From: Yann.DeChamplain at molson.com (Yann.DeChamplain at molson.com) Date: Wed, 19 Jun 2002 15:54:10 -0400 Subject: [Javascript] JavaScript Debuger Message-ID: <02Jun19.154101edt.37638@natgtw01.molson.com> Oh thanx... I'll at it. Hope I wont have cross browser debugging problem. That's a little bit strange that a language of that kind havent much choice of debuggers tools. Thanx again for your answer. Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com -----Message d'origine----- De : Josiah Gordon [mailto:jgordon at directfile.com] Envoy? : June 19, 2002 15:52 ? : javascript at LaTech.edu Objet : RE: [Javascript] JavaScript Debuger Download Netscape 7 PR 1 and go to Tools, Web Development, JavaScript Console. It's much better than any MS debugger I've tried. BTW: I have Netscape installed *only* for this debugger... HTH, Josiah Gordon -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Yann.DeChamplain at molson.com Sent: Wednesday, June 19, 2002 12:21 PM To: JS-Jive at yahoogroups.com; javascript at LaTech.edu Subject: [Javascript] JavaScript Debuger Do you know a better debugger then MS Script Debugger? Thanx Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From Wayne.Allen at rhul.ac.uk Thu Jun 20 05:29:33 2002 From: Wayne.Allen at rhul.ac.uk (Allen Wayne) Date: Thu, 20 Jun 2002 11:29:33 +0100 Subject: [Javascript] Kill the history????? Message-ID: <0A5DF42D7014D411A58900D0B73E92AE056E2DD8@exch1.rhul.ac.uk> Hi All, any ideas how to stop a page appearing where a user hits the back button? I have tried the html cash control and page expires with now sucess... now into javascript. The problem is if a user logs out I dont want anyone to hit the back button and see the previous page (before the logout) any ideas???? Wayne From peter at brunone.com Thu Jun 20 09:15:24 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 20 Jun 2002 09:15:24 -0500 Subject: [Javascript] Kill the history????? In-Reply-To: <0A5DF42D7014D411A58900D0B73E92AE056E2DD8@exch1.rhul.ac.uk> Message-ID: Wayne, How are you trying to control the cache? This is better done from the server than from the browser. If this might work for you, you can find the proper headers at http://learnasp.com/learn/cachenomore.asp (the headers work regardless of server type, but the commands will be slightly different for other platforms). Clearing history is generally frowned upon (and is also rather difficult). Covering your tracks, however, is acceptable. Use JavaScript's window.location.replace("yourpagehere.html") to log out, and you'll find that the page before that has ceased to exist. You could extend this to work throughout your site, so from the moment you step in, there is no history of your logged-in self. A third way would be to use cookies, but of course not everyone supports them... then again, if you're going to have private content of some sort, they must obviously care enough about the site to log in, so you could just make it a requirement. Cheers, Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Allen Wayne | |Hi All, | |any ideas how to stop a page appearing where a user hits the back button? I |have tried the html cash control and page expires with now sucess... now |into javascript. The problem is if a user logs out I dont want |anyone to hit |the back button and see the previous page (before the logout) any ideas???? | | |Wayne | From lists at mahonyconsulting.com Thu Jun 20 09:53:25 2002 From: lists at mahonyconsulting.com (Michael J. Mahony) Date: Thu, 20 Jun 2002 07:53:25 -0700 Subject: [Javascript] URGENT: Object required error in onClick event Message-ID: <3D1189F5.22409.4C06560@localhost> Hi, I'm getting frustrated by this code and thought I would ask for some help. I've got a simple onClick handler in my code. However, when I click the item I want to fire off the onClick handler I'm told that an object is required. It basically just does not see the function I've designed to handle the onClick event. Here is the relevant portion of the HTML code:

And here is the relevant JavaScript code: I've also tried modifying this as follows: but it still fails. What am I doing wrong? Thanks! From peter at brunone.com Thu Jun 20 10:06:27 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 20 Jun 2002 10:06:27 -0500 Subject: [Javascript] URGENT: Object required error in onClick event In-Reply-To: <3D1189F5.22409.4C06560@localhost> Message-ID: Michael, Are you sure the problem isn't a misspelled form name or the fact that you're using integers to identify objects? -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Michael J. Mahony |Sent: Thursday, June 20, 2002 9:53 AM |To: javascript at latech.edu |Subject: [Javascript] URGENT: Object required error in onClick event | | |Hi, | |I'm getting frustrated by this code and thought I would ask for some |help. | |I've got a simple onClick handler in my code. However, when I click the |item I want to fire off the onClick handler I'm told that an object is |required. It basically just does not see the function I've designed to |handle the onClick event. Here is the relevant portion of the HTML |code: | | | | |And here is the relevant JavaScript code: | | | |I've also tried modifying this as follows: | | | |but it still fails. | |What am I doing wrong? | |Thanks! |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | From LMuchacho at twii.net Thu Jun 20 10:12:36 2002 From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London)) Date: Thu, 20 Jun 2002 16:12:36 +0100 Subject: [Javascript] URGENT: Object required error in onClick event Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03C5D046@lon.webmail.twii.net> Hi I see an other thing you should write document.orderoptions instead of document.forms.orderoptions that will make your life a bit easier and Peter was right for the integer you can't use integer directly like at list put one charater in front Laurent -----Original Message----- From: Peter Brunone [mailto:peter at brunone.com] Sent: 20 June 2002 16:06 To: javascript at LaTech.edu Subject: RE: [Javascript] URGENT: Object required error in onClick event Michael, Are you sure the problem isn't a misspelled form name or the fact that you're using integers to identify objects? -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Michael J. Mahony |Sent: Thursday, June 20, 2002 9:53 AM |To: javascript at latech.edu |Subject: [Javascript] URGENT: Object required error in onClick event | | |Hi, | |I'm getting frustrated by this code and thought I would ask for some |help. | |I've got a simple onClick handler in my code. However, when I click the |item I want to fire off the onClick handler I'm told that an object is |required. It basically just does not see the function I've designed to |handle the onClick event. Here is the relevant portion of the HTML |code: | | | | |And here is the relevant JavaScript code: | | | |I've also tried modifying this as follows: | | | |but it still fails. | |What am I doing wrong? | |Thanks! |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From swiseman at remax-cahi.com Thu Jun 20 11:40:45 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Thu, 20 Jun 2002 09:40:45 -0700 Subject: [Javascript] Set objWord = CreateObject("Word.Application") CAN i do this i n javascript??? Message-ID: this works locally :-) but not on the server can I do this with javascript and run it locally??? Launch Word

From peter at brunone.com Thu Jun 20 12:07:23 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 20 Jun 2002 12:07:23 -0500 Subject: [Javascript] Set objWord = CreateObject("Word.Application") CAN i do this i n javascript??? In-Reply-To: Message-ID: I don't know if the JavaScript engine has the same access as the VBScript engine, but you can try. Other than that, if the permissions are there for the browser (locally, or low-security mode remotely), then you should be fine. -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Scott.Wiseman | |this works locally :-) |but not on the server | |can I do this with javascript and run it locally??? | | | | | Launch Word | | | |

| | |_______________________________________________ |Javascript mailing list |Javascript at LaTech.edu |https://lists.LaTech.edu/mailman/listinfo/javascript | From MAILER-DAEMON16806 at google.com Thu Jun 20 12:19:49 2002 From: MAILER-DAEMON16806 at google.com (Farmgirl20504) Date: Thu, 20 Jun 2002 21:19:49 +0400 Subject: [Javascript] Real ZOO web site, welcome! ID Message-ID: <20020620171636.B5B62308B4E@LaTech.edu> An HTML attachment was scrubbed... URL: From lists at mahonyconsulting.com Thu Jun 20 13:11:17 2002 From: lists at mahonyconsulting.com (Michael J. Mahony) Date: Thu, 20 Jun 2002 11:11:17 -0700 Subject: [Javascript] URGENT: Object required error in onClick event In-Reply-To: <76A6F0FCCA27D4119DEF00805F5700AC03C5D046@lon.webmail.twii.net> Message-ID: <3D11B855.22305.57595D9@localhost> The problem, though, is that even if I remove everything from the function but an alert, the function never runs. The failure is at the onClick= line of the code. I've even tried changing the name of the function and only including an alert inside the function to no avail...still gives me the object required error. From peter at brunone.com Thu Jun 20 13:24:48 2002 From: peter at brunone.com (Peter Brunone) Date: Thu, 20 Jun 2002 13:24:48 -0500 Subject: [Javascript] URGENT: Object required error in onClick event In-Reply-To: <3D11B855.22305.57595D9@localhost> Message-ID: Then it sounds like you have a discontinuity in your code somewhere; without seeing the whole page, it's hard to tell. Also, make sure there are no errors on loading; this is a dead giveaway that something else may be causing the problem. -Peter |-----Original Message----- |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On |Behalf Of Michael J. Mahony | |The problem, though, is that even if I remove everything from the |function but an alert, the function never runs. The failure is at the |onClick= line of the code. I've even tried changing the name of the |function and only including an alert inside the function to no |avail...still |gives me the object required error. | From merchant at LATECH.EDU Thu Jun 20 13:49:49 2002 From: merchant at LATECH.EDU (David Merchant) Date: Thu, 20 Jun 2002 13:49:49 -0500 Subject: [Javascript] ADMIN: Real ZOO web site, welcome! email now blocked In-Reply-To: <20020620171636.B5B62308B4E@LaTech.edu> Message-ID: <5.1.0.14.2.20020620133840.02723d18@mail.latech.edu> Thanks, folks, for letting me place this spam quietly into the "kill file" without taking up a lot of list bandwidth complaining about the spam. TTFN, David Systems Librarian, Louisiana Tech University merchant at latech.edu JavaScript List Administrator (www.mountaindragon.com/javascript/) Webmaster, HTML Encyclopedia (www.mountaindragon.com/html/) Webmaster, Memorial Day Page (www.usmemorialday.org/) Webmaster, Midori Ito Site (www.mountaindragon.com/midori/) -------------- next part -------------- An HTML attachment was scrubbed... URL: From cutterbl at hotmail.com Thu Jun 20 15:52:11 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Thu, 20 Jun 2002 16:52:11 -0400 Subject: [Javascript] Kill the history????? Message-ID: You could put use something like onunload="javascript:history.forward()", but this may really annoy some users and only works if you have one page. Cutter http://www.falcon-knives.com ----Original Message Follows---- From: Allen Wayne Reply-To: javascript at LaTech.edu To: "'javascript at LaTech.edu'" Subject: [Javascript] Kill the history????? Date: Thu, 20 Jun 2002 11:29:33 +0100 Hi All, any ideas how to stop a page appearing where a user hits the back button? I have tried the html cash control and page expires with now sucess... now into javascript. The problem is if a user logs out I dont want anyone to hit the back button and see the previous page (before the logout) any ideas???? Wayne _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From tsimmons at employmentlawadvisors.com Thu Jun 20 17:13:43 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Thu, 20 Jun 2002 17:13:43 -0500 Subject: [Javascript] ADMIN: Real ZOO web site, welcome! email now blocked References: <5.1.0.14.2.20020620133840.02723d18@mail.latech.edu> Message-ID: <014e01c218a7$be7a3400$0000a398@sndmgr122> David, I think these days a lot of lists get hit with various spam messages, and most realize there's not a whole lot that can be done about it. Plus that particular one was so spectacularly bad that a lot of people may have been rendered the virtual equivalent of speechless. Usually I'm muttering curses as I hit the Delete button, but for that one I was LOL, it was so "out there"! Thanks for your work on this list! That's a great HTML site, that HTML Encyclopedia, BTW. Sincerely, Tommy Simmons Employment Law Advisory Network www.employmentlawadvisors.com ----- Original Message ----- From: David Merchant To: javascript at LaTech.edu Sent: Thursday, June 20, 2002 1:49 PM Subject: [Javascript] ADMIN: Real ZOO web site, welcome! email now blocked Thanks, folks, for letting me place this spam quietly into the "kill file" without taking up a lot of list bandwidth complaining about the spam. TTFN, David Systems Librarian, Louisiana Tech University merchant at latech.edu JavaScript List Administrator (www.mountaindragon.com/javascript/) Webmaster, HTML Encyclopedia (www.mountaindragon.com/html/) Webmaster, Memorial Day Page (www.usmemorialday.org/) Webmaster, Midori Ito Site (www.mountaindragon.com/midori/) -------------- next part -------------- An HTML attachment was scrubbed... URL: From merchant at LATECH.EDU Thu Jun 20 17:32:21 2002 From: merchant at LATECH.EDU (David Merchant) Date: Thu, 20 Jun 2002 17:32:21 -0500 Subject: [Javascript] ADMIN: Real ZOO web site, welcome! email now blocked In-Reply-To: <014e01c218a7$be7a3400$0000a398@sndmgr122> References: <5.1.0.14.2.20020620133840.02723d18@mail.latech.edu> Message-ID: <5.1.0.14.2.20020620172521.02734f58@mail.latech.edu> >I think these days a lot of lists get hit with various spam messages, and >most realize there's not a whole lot that can be done about it. Plus that >particular one was so spectacularly bad that a lot of people may have been >rendered the virtual equivalent of speechless. True, true. >Usually I'm muttering curses as I hit the Delete button, but for that one >I was LOL, it was so "out there"! Thanks for your work on this list! >That's a great HTML site, that HTML Encyclopedia, BTW. Thanks, the Encyclopedia is going to become the companion site for a "compare-contrast" cross-platform HTML book I'm finishing up for Scarecrow press, so it's going to expand greatly, with screenshots of the HTML tags on different "rebel" or "minority" browsers/platform combinations (the major ones, plus a few rebel ones, will have their screenshots in the book. Hopefully later on I'll be able to add those screenshots as well), showing how the tag is interpreted by those different browsers/platform combinations, plus some added interactive online tools. TTFN, David Systems Librarian, Louisiana Tech University merchant at latech.edu JavaScript List Administrator (www.mountaindragon.com/javascript/) Webmaster, HTML Encyclopedia (www.mountaindragon.com/html/) Webmaster, Memorial Day Page (www.usmemorialday.org/) Webmaster, Midori Ito Site (www.mountaindragon.com/midori/) -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at d2k.com.au Fri Jun 21 00:24:54 2002 From: andrew at d2k.com.au (Andrew Dunn) Date: Fri, 21 Jun 2002 15:24:54 +1000 Subject: [Javascript] querystring? Message-ID: <1D0255E75622D51185DB00D0B7E3FF44151F16@chimaera.d2k.com.au> I don't know where else to ask. Anyone know how to get the querystring using asp when there is a frame involved? -------------- next part -------------- An HTML attachment was scrubbed... URL: From walter at torres.ws Fri Jun 21 00:43:24 2002 From: walter at torres.ws (Walter Torres) Date: Fri, 21 Jun 2002 00:43:24 -0500 Subject: [Javascript] How do I retrieve values from custom attributes on a DIV? In-Reply-To: <3D1189F5.22409.4C06560@localhost> Message-ID: <00cd01c218e6$8fc8ee50$2a65a8c0@eloyaltyco.com> I have a DIV with several custom attributes on it...

Area 2
In IE 4/5 I can retrieve these values, but I can't find a way to get them in NN4/6. Any ideas? Walter From gassinaumasis at hotmail.com Fri Jun 21 03:40:23 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Fri, 21 Jun 2002 08:40:23 +0000 Subject: [Javascript] How do I retrieve values from custom attributes on a DIV? Message-ID: >I have a DIV with several custom attributes on it... > >
name="areaTwo" > bgColor="red" > sizeControl="false" > minH="50" > minW="50" > bufRt="100" > bufBt="50" > onClick='displayIt()'>Area 2
> >In IE 4/5 I can retrieve these values, but I can't find a way to get them >in >NN4/6. NN4: Impossible. NN6: Try document.getElementById('areaTwo').getAttribute('sizeControl'); Not sure if this works, but it's your best chance. ppk _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From rodney at aflyingstart.net Fri Jun 21 04:03:09 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Fri, 21 Jun 2002 10:03:09 +0100 Subject: [Javascript] querystring? References: <1D0255E75622D51185DB00D0B7E3FF44151F16@chimaera.d2k.com.au> Message-ID: <3D12EBCD.92BACF38@aflyingstart.net> Hi Andrew, Rather than attempt to "get the querystring using asp" I would structure the query string as if from a submitted get i.e. ?AAA=aaa&BBB=bbbb&CCC=ccc Then ASP will yield the values of the fields AAA BBB and CCC in the Request.Querystring collection. hth Rodney Andrew Dunn wrote: > I don't know where else to ask. Anyone know how to get the > querystring using asp when there is a frame involved? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Yann.DeChamplain at molson.com Fri Jun 21 07:17:32 2002 From: Yann.DeChamplain at molson.com (Yann.DeChamplain at molson.com) Date: Fri, 21 Jun 2002 08:17:32 -0400 Subject: [Javascript] Permission denied with Mozilla browser (Netscape) Message-ID: <02Jun21.080438edt.37664@natgtw01.molson.com> Hello, I'm sorry if this is a bit off topic. I wanna install netscape to get a decent Javascript Debugger. I do so but now everytime I acces anypage in my server I get permission denied. Everything is working with IE. Sound very strange. Hope some of you guys already got that problem. I really need a working javascript debugger! Thanx. Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mallard at serv.net Fri Jun 21 09:11:19 2002 From: mallard at serv.net (TomMallard) Date: Fri, 21 Jun 2002 07:11:19 -0700 Subject: [Javascript] Permission denied with Mozilla browser (Netscape) In-Reply-To: <02Jun21.080438edt.37664@natgtw01.molson.com> Message-ID: Permission denied with Mozilla browser (Netscape)You may have to give script permissions for IUSR_TEMPLATE for win2k to the folder (right-click, web sharing). If you have win98, use IUSR_machineName. tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Yann.DeChamplain at molson.com Sent: Friday, June 21, 2002 5:18 AM To: JS-Jive at yahoogroups.com; javascript at LaTech.edu Subject: [Javascript] Permission denied with Mozilla browser (Netscape) Hello, I'm sorry if this is a bit off topic. I wanna install netscape to get a decent Javascript Debugger. I do so but now everytime I acces anypage in my server I get permission denied. Everything is working with IE. Sound very strange. Hope some of you guys already got that problem. I really need a working javascript debugger! Thanx. Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mallard at serv.net Fri Jun 21 09:38:21 2002 From: mallard at serv.net (TomMallard) Date: Fri, 21 Jun 2002 07:38:21 -0700 Subject: [Javascript] How do I retrieve values from custom attributes on a DIV? In-Reply-To: <00cd01c218e6$8fc8ee50$2a65a8c0@eloyaltyco.com> Message-ID: did you try document.all.item("areaTwo").value tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Walter Torres Sent: Thursday, June 20, 2002 10:43 PM To: javascript at LaTech.edu Subject: [Javascript] How do I retrieve values from custom attributes on a DIV? I have a DIV with several custom attributes on it...
Area 2
In IE 4/5 I can retrieve these values, but I can't find a way to get them in NN4/6. Any ideas? Walter _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From mallard at serv.net Fri Jun 21 09:44:18 2002 From: mallard at serv.net (TomMallard) Date: Fri, 21 Jun 2002 07:44:18 -0700 Subject: [Javascript] querystring? In-Reply-To: <1D0255E75622D51185DB00D0B7E3FF44151F16@chimaera.d2k.com.au> Message-ID: MessageDid you try... top.document.frameName.location.search or... top.document.frameName.document.location.search tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Andrew Dunn Sent: Thursday, June 20, 2002 10:25 PM To: 'javascript at LaTech.edu' Subject: [Javascript] querystring? I don't know where else to ask. Anyone know how to get the querystring using asp when there is a frame involved? -------------- next part -------------- An HTML attachment was scrubbed... URL: From walter at torres.ws Fri Jun 21 09:53:48 2002 From: walter at torres.ws (Walter Torres) Date: Fri, 21 Jun 2002 09:53:48 -0500 Subject: [Javascript] How do I retrieve values from custom attributes on a DIV? In-Reply-To: Message-ID: <002e01c21933$73aba350$2a65a8c0@eloyaltyco.com> Thanks for the reply... But document.all does not work in IE, also, "areaTwo" is not a form object, it is a DIV, therefore it does not have a "value". My question concerns retrieving the value of a custom attribute from a DIV within NN 4. Thanks Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of TomMallard > Sent: Friday, June 21, 2002 9:38 AM > To: javascript at LaTech.edu > Subject: RE: [Javascript] How do I retrieve values from custom > attributes on a DIV? > > > did you try > > document.all.item("areaTwo").value > > tom mallard > seattle > > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Walter Torres > Sent: Thursday, June 20, 2002 10:43 PM > To: javascript at LaTech.edu > Subject: [Javascript] How do I retrieve values from custom > attributes on > a DIV? > > > I have a DIV with several custom attributes on it... > >
name="areaTwo" > bgColor="red" > sizeControl="false" > minH="50" > minW="50" > bufRt="100" > bufBt="50" > onClick='displayIt()'>Area 2
> > In IE 4/5 I can retrieve these values, but I can't find a way > to get them in > NN4/6. > > Any ideas? > > Walter > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From mallard at serv.net Fri Jun 21 09:53:58 2002 From: mallard at serv.net (TomMallard) Date: Fri, 21 Jun 2002 07:53:58 -0700 Subject: [Javascript] How do I retrieve values from custom attributes on a DIV? In-Reply-To: Message-ID: Forgot to say that's javascript 1.2, won't work for NS4, NS6 has the 1.2 engine so it's OK to use document.all tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of TomMallard Sent: Friday, June 21, 2002 7:38 AM To: javascript at LaTech.edu Subject: RE: [Javascript] How do I retrieve values from custom attributes on a DIV? did you try document.all.item("areaTwo").value tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Walter Torres Sent: Thursday, June 20, 2002 10:43 PM To: javascript at LaTech.edu Subject: [Javascript] How do I retrieve values from custom attributes on a DIV? I have a DIV with several custom attributes on it...
Area 2
In IE 4/5 I can retrieve these values, but I can't find a way to get them in NN4/6. Any ideas? Walter _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From gassinaumasis at hotmail.com Fri Jun 21 09:57:10 2002 From: gassinaumasis at hotmail.com (Peter-Paul Koch) Date: Fri, 21 Jun 2002 14:57:10 +0000 Subject: [Javascript] How do I retrieve values from custom attributes on a DIV? Message-ID: >Forgot to say that's javascript 1.2, won't work for NS4, NS6 has the 1.2 >engine so it's OK to use document.all 1) NN4 supports JavaScript 1.2 (though with some peculiarities) 2) The document.all container is not supported by any Netscape version. The DOM has nothing to do with the JavaScript version. ppk _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From phumes1 at rogers.com Fri Jun 21 10:23:36 2002 From: phumes1 at rogers.com (phumes1) Date: Fri, 21 Jun 2002 11:23:36 -0400 Subject: [Javascript] Frame refresh Message-ID: <004653728151562NTPAGER@ntpager.ca.cch.com> Hi, My site is plsit into 3 frames. | leftframe | middleframe | rightframe | I have a setTimeout("self.close()",10); // top.display.location.middle="../index.html"; From mallard at serv.net Fri Jun 21 10:34:57 2002 From: mallard at serv.net (TomMallard) Date: Fri, 21 Jun 2002 08:34:57 -0700 Subject: [Javascript] How do I retrieve values from custom attributes on a DIV? In-Reply-To: <002e01c21933$73aba350$2a65a8c0@eloyaltyco.com> Message-ID: I'd never tried item() before...anyway, your hang up is NS4, have you tried this idea? document.style.idName.property I don't have a DOM chart for netscape here, have you checked their website? http://developer.netscape.com/find/ tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Walter Torres Sent: Friday, June 21, 2002 7:54 AM To: javascript at LaTech.edu Subject: RE: [Javascript] How do I retrieve values from custom attributes on a DIV? Thanks for the reply... But document.all does not work in IE, also, "areaTwo" is not a form object, it is a DIV, therefore it does not have a "value". My question concerns retrieving the value of a custom attribute from a DIV within NN 4. Thanks Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of TomMallard > Sent: Friday, June 21, 2002 9:38 AM > To: javascript at LaTech.edu > Subject: RE: [Javascript] How do I retrieve values from custom > attributes on a DIV? > > > did you try > > document.all.item("areaTwo").value > > tom mallard > seattle > > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Walter Torres > Sent: Thursday, June 20, 2002 10:43 PM > To: javascript at LaTech.edu > Subject: [Javascript] How do I retrieve values from custom > attributes on > a DIV? > > > I have a DIV with several custom attributes on it... > >
name="areaTwo" > bgColor="red" > sizeControl="false" > minH="50" > minW="50" > bufRt="100" > bufBt="50" > onClick='displayIt()'>Area 2
> > In IE 4/5 I can retrieve these values, but I can't find a way > to get them in > NN4/6. > > Any ideas? > > Walter > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From swiseman at remax-cahi.com Fri Jun 21 12:11:28 2002 From: swiseman at remax-cahi.com (Scott.Wiseman) Date: Fri, 21 Jun 2002 10:11:28 -0700 Subject: [Javascript] Frame refresh Message-ID: opener.location.reload(); -----Original Message----- From: phumes1 [mailto:phumes1 at rogers.com] Sent: Friday, June 21, 2002 8:24 AM To: Javascript @ LaTech.edu Subject: [Javascript] Frame refresh Hi, My site is plsit into 3 frames. | leftframe | middleframe | rightframe | I have a setTimeout("self.close()",10); // top.display.location.middle="../index.html"; _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From HSenior at twii.net Fri Jun 21 12:24:14 2002 From: HSenior at twii.net (Senior, Henry (TWIi London)) Date: Fri, 21 Jun 2002 18:24:14 +0100 Subject: [Javascript] ASP Framesets and custom attributes. Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03B82346@lon.webmail.twii.net> Regarding the properties in NS4, I dont't think this can be done in NS4 or NS6 and only in IE if expando is set to true. One way of achieving this end might be to create a javascript object one of whose properties would be a reference to the layer object and the rest of the properties would be the custom properties you wish to set. ie.(this eg is for NS4 you will have to find a x-browser method of referencing the layers) var myObj = new Object(); myObj.layer=document.layers['mylayer']; myObj.property1="property1" myObj.property2="property2" myObj.property3="property3" you can then do your scripting using these objects rather than the layer and trying to find properties set in HTML. ____________________________________________________________________________ ______________ ____________________________________________________________________________ ______________ Regarding the ASP frameset, one way to do this might be to pass the querystring values from the frameset to the individual pages in ASP: -----Original Message----- From: javascript-request at LaTech.edu [mailto:javascript-request at LaTech.edu] Sent: 21 June 2002 18:01 To: javascript at LaTech.edu Subject: Javascript digest, Vol 1 #680 - 8 msgs Send Javascript mailing list submissions to javascript at LaTech.edu To subscribe or unsubscribe via the World Wide Web, visit https://lists.LaTech.edu/mailman/listinfo/javascript or, via email, send a message with subject or body 'help' to javascript-request at LaTech.edu You can reach the person managing the list at javascript-admin at LaTech.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Javascript digest..." Today's Topics: 1. RE: Permission denied with Mozilla browser (Netscape) (TomMallard) 2. RE: How do I retrieve values from custom attributes on a DIV? (TomMallard) 3. RE: querystring? (TomMallard) 4. RE: How do I retrieve values from custom attributes on a DIV? (TomMallard) 5. RE: How do I retrieve values from custom attributes on a DIV? (Walter Torres) 6. RE: How do I retrieve values from custom attributes on a DIV? (Peter-Paul Koch) 7. Frame refresh (phumes1) 8. RE: How do I retrieve values from custom attributes on a DIV? (TomMallard) --__--__-- Message: 1 From: "TomMallard" To: Subject: RE: [Javascript] Permission denied with Mozilla browser (Netscape) Date: Fri, 21 Jun 2002 07:11:19 -0700 Reply-To: javascript at LaTech.edu This is a multi-part message in MIME format. ------=_NextPart_000_001A_01C218F2.D81C97E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Permission denied with Mozilla browser (Netscape)You may have to give script permissions for IUSR_TEMPLATE for win2k to the folder (right-click, web sharing). If you have win98, use IUSR_machineName. tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Yann.DeChamplain at molson.com Sent: Friday, June 21, 2002 5:18 AM To: JS-Jive at yahoogroups.com; javascript at LaTech.edu Subject: [Javascript] Permission denied with Mozilla browser (Netscape) Hello, I'm sorry if this is a bit off topic. I wanna install netscape to get a decent Javascript Debugger. I do so but now everytime I acces anypage in my server I get permission denied. Everything is working with IE. Sound very strange. Hope some of you guys already got that problem. I really need a working javascript debugger! Thanx. Bye! Yann de Champlain Consultant Web Senior Molson Canada T?l (514) 521-1786 Ext: 5041 Fax (514) 598-6923 Internet Yann.deChamplain at Molson.com ------=_NextPart_000_001A_01C218F2.D81C97E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Permission denied with Mozilla browser = (Netscape)
You=20 may have to give script permissions for IUSR_TEMPLATE for = win2k to the=20 folder (right-click, web sharing). If you have win98, use=20 IUSR_machineName.
 
tom=20 mallard
seattle
-----Original Message-----
From: = javascript-admin at LaTech.edu=20 [mailto:javascript-admin at LaTech.edu]On Behalf Of=20 Yann.DeChamplain at molson.com
Sent: Friday, June 21, 2002 = 5:18=20 AM
To: JS-Jive at yahoogroups.com;=20 javascript at LaTech.edu
Subject: [Javascript] Permission = denied with=20 Mozilla browser (Netscape)


Hello,=20
        I'm=20 sorry if this is a bit off topic.

I wanna install netscape to get a = decent Javascript=20 Debugger.

I do so but now everytime I acces = anypage in my=20 server I get permission denied.

Everything is working with IE. =

Sound very strange.

Hope some of you guys already got that=20 problem.  I really need a working javascript debugger! =

Thanx.

Bye!

Yann de Champlain
  Consultant Web Senior
  Molson Canada
 
T=E9l         (514) = 521-1786 Ext:=20 5041
Fax        (514) = 598-6923=20
Internet   Yann.deChamplain at Molson.com =
 

------=_NextPart_000_001A_01C218F2.D81C97E0-- --__--__-- Message: 2 From: "TomMallard" To: Subject: RE: [Javascript] How do I retrieve values from custom attributes on a DIV? Date: Fri, 21 Jun 2002 07:38:21 -0700 Reply-To: javascript at LaTech.edu did you try document.all.item("areaTwo").value tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Walter Torres Sent: Thursday, June 20, 2002 10:43 PM To: javascript at LaTech.edu Subject: [Javascript] How do I retrieve values from custom attributes on a DIV? I have a DIV with several custom attributes on it...
Area 2
In IE 4/5 I can retrieve these values, but I can't find a way to get them in NN4/6. Any ideas? Walter _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript --__--__-- Message: 3 From: "TomMallard" To: Subject: RE: [Javascript] querystring? Date: Fri, 21 Jun 2002 07:44:18 -0700 Reply-To: javascript at LaTech.edu This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C218F7.72D14020 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit MessageDid you try... top.document.frameName.location.search or... top.document.frameName.document.location.search tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Andrew Dunn Sent: Thursday, June 20, 2002 10:25 PM To: 'javascript at LaTech.edu' Subject: [Javascript] querystring? I don't know where else to ask. Anyone know how to get the querystring using asp when there is a frame involved? ------=_NextPart_000_0026_01C218F7.72D14020 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
Did=20 you try...
 
top.document.frameName.location.search
 
or...
 
top.document.frameName.document.location.search
 
tom=20 mallard
seattle
-----Original Message-----
From: = javascript-admin at LaTech.edu=20 [mailto:javascript-admin at LaTech.edu]On Behalf Of Andrew=20 Dunn
Sent: Thursday, June 20, 2002 10:25 PM
To:=20 'javascript at LaTech.edu'
Subject: [Javascript]=20 querystring?

I=20 don't know where else to ask. Anyone know how to get the querystring = using asp=20 when there is a frame = involved?
------=_NextPart_000_0026_01C218F7.72D14020-- --__--__-- Message: 4 From: "TomMallard" To: Subject: RE: [Javascript] How do I retrieve values from custom attributes on a DIV? Date: Fri, 21 Jun 2002 07:53:58 -0700 Reply-To: javascript at LaTech.edu Forgot to say that's javascript 1.2, won't work for NS4, NS6 has the 1.2 engine so it's OK to use document.all tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of TomMallard Sent: Friday, June 21, 2002 7:38 AM To: javascript at LaTech.edu Subject: RE: [Javascript] How do I retrieve values from custom attributes on a DIV? did you try document.all.item("areaTwo").value tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Walter Torres Sent: Thursday, June 20, 2002 10:43 PM To: javascript at LaTech.edu Subject: [Javascript] How do I retrieve values from custom attributes on a DIV? I have a DIV with several custom attributes on it...
Area 2
In IE 4/5 I can retrieve these values, but I can't find a way to get them in NN4/6. Any ideas? Walter _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript --__--__-- Message: 5 From: "Walter Torres" To: Subject: RE: [Javascript] How do I retrieve values from custom attributes on a DIV? Date: Fri, 21 Jun 2002 09:53:48 -0500 Reply-To: javascript at LaTech.edu Thanks for the reply... But document.all does not work in IE, also, "areaTwo" is not a form object, it is a DIV, therefore it does not have a "value". My question concerns retrieving the value of a custom attribute from a DIV within NN 4. Thanks Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of TomMallard > Sent: Friday, June 21, 2002 9:38 AM > To: javascript at LaTech.edu > Subject: RE: [Javascript] How do I retrieve values from custom > attributes on a DIV? > > > did you try > > document.all.item("areaTwo").value > > tom mallard > seattle > > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Walter Torres > Sent: Thursday, June 20, 2002 10:43 PM > To: javascript at LaTech.edu > Subject: [Javascript] How do I retrieve values from custom > attributes on > a DIV? > > > I have a DIV with several custom attributes on it... > >
name="areaTwo" > bgColor="red" > sizeControl="false" > minH="50" > minW="50" > bufRt="100" > bufBt="50" > onClick='displayIt()'>Area 2
> > In IE 4/5 I can retrieve these values, but I can't find a way > to get them in > NN4/6. > > Any ideas? > > Walter > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript --__--__-- Message: 6 From: "Peter-Paul Koch" To: javascript at LaTech.edu Subject: RE: [Javascript] How do I retrieve values from custom attributes on a DIV? Date: Fri, 21 Jun 2002 14:57:10 +0000 Reply-To: javascript at LaTech.edu >Forgot to say that's javascript 1.2, won't work for NS4, NS6 has the 1.2 >engine so it's OK to use document.all 1) NN4 supports JavaScript 1.2 (though with some peculiarities) 2) The document.all container is not supported by any Netscape version. The DOM has nothing to do with the JavaScript version. ppk _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx --__--__-- Message: 7 From: "phumes1" To: "Javascript @ LaTech.edu" Date: Fri, 21 Jun 2002 11:23:36 -0400 Subject: [Javascript] Frame refresh Reply-To: javascript at LaTech.edu Hi, My site is plsit into 3 frames. | leftframe | middleframe | rightframe | I have a setTimeout("self.close()",10); // top.display.location.middle="../index.html"; --__--__-- Message: 8 From: "TomMallard" To: Subject: RE: [Javascript] How do I retrieve values from custom attributes on a DIV? Date: Fri, 21 Jun 2002 08:34:57 -0700 Reply-To: javascript at LaTech.edu I'd never tried item() before...anyway, your hang up is NS4, have you tried this idea? document.style.idName.property I don't have a DOM chart for netscape here, have you checked their website? http://developer.netscape.com/find/ tom -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Walter Torres Sent: Friday, June 21, 2002 7:54 AM To: javascript at LaTech.edu Subject: RE: [Javascript] How do I retrieve values from custom attributes on a DIV? Thanks for the reply... But document.all does not work in IE, also, "areaTwo" is not a form object, it is a DIV, therefore it does not have a "value". My question concerns retrieving the value of a custom attribute from a DIV within NN 4. Thanks Walter > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of TomMallard > Sent: Friday, June 21, 2002 9:38 AM > To: javascript at LaTech.edu > Subject: RE: [Javascript] How do I retrieve values from custom > attributes on a DIV? > > > did you try > > document.all.item("areaTwo").value > > tom mallard > seattle > > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of Walter Torres > Sent: Thursday, June 20, 2002 10:43 PM > To: javascript at LaTech.edu > Subject: [Javascript] How do I retrieve values from custom > attributes on > a DIV? > > > I have a DIV with several custom attributes on it... > >
name="areaTwo" > bgColor="red" > sizeControl="false" > minH="50" > minW="50" > bufRt="100" > bufBt="50" > onClick='displayIt()'>Area 2
> > In IE 4/5 I can retrieve these values, but I can't find a way > to get them in > NN4/6. > > Any ideas? > > Walter > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript --__--__-- _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript End of Javascript Digest DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. From peter_brunone at yahoo.com Fri Jun 21 13:34:09 2002 From: peter_brunone at yahoo.com (Peter Brunone) Date: Fri, 21 Jun 2002 11:34:09 -0700 (PDT) Subject: [Javascript] SELECT size in IE Message-ID: <20020621183409.67037.qmail@web20305.mail.yahoo.com> This doesn't seem to be adjustable, but is there any way to fix the width of a SELECT in IE so that no matter what entries are in it, it's always the same size? I'm currently filling it with a dummy entry made of underscores when empty, and padding the name value when I put rows into it, but without a fixed-width font, I'm not able to really maintain the width of the box. Any thoughts? Cheers, Peter Brunone --------------------------------- Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup -------------- next part -------------- An HTML attachment was scrubbed... URL: From ziggy at winks.com Fri Jun 21 13:42:27 2002 From: ziggy at winks.com (Ziggy) Date: Fri, 21 Jun 2002 14:42:27 -0400 Subject: [Javascript] SELECT size in IE In-Reply-To: <20020621183409.67037.qmail@web20305.mail.yahoo.com> Message-ID: <009f01c21953$644e7ac0$0201a8c0@Virtumundo.com> Peter, You can use style sheets for that, either create a class for the select to use which has width: 200; in it, for example, and reference that with CLASS="MyStyles"... or just add STYLE="width: 200;" to the tag. I don't know the unit of measurement it uses, but it works on selects, input boxes, buttons, etc. Cheers, Kim -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] On Behalf Of Peter Brunone Sent: Friday, June 21, 2002 2:34 PM To: javascript at latech.edu Subject: [Javascript] SELECT size in IE This doesn't seem to be adjustable, but is there any way to fix the width of a SELECT in IE so that no matter what entries are in it, it's always the same size? I'm currently filling it with a dummy entry made of underscores when empty, and padding the name value when I put rows into it, but without a fixed-width font, I'm not able to really maintain the width of the box. Any thoughts? Cheers, Peter Brunone --------------------------------- Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup --------------------------------- Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup -------------- next part -------------- An HTML attachment was scrubbed... URL: From emailaddresses98037 at yahoo.com Fri Jun 21 17:30:32 2002 From: emailaddresses98037 at yahoo.com (Martha Johnson) Date: Fri, 21 Jun 2002 18:30:32 -0400 Subject: [Javascript] >>>INCREASE SALES AT 50 TIMES WHAT THEY ARE TODAY...GUARANTEED! Message-ID: <20020621234304.5E072308A0E@LaTech.edu> Dear, javascript at latech.edu INCREASE YOUR SALES AT LEAST 50 TIMES WHAT THEY ARE TODAY...GUARANTEED! Below is everything you will ever need to market your product or service over the Internet! Besides that...It's the only real way to market on the Internet...Period! HOW WOULD YOU LIKE TO HAVE YOUR MESSAGE SEEN BY OVER 14.5 MILLION TARGETED PROSPECTS DAILY? EARN MEGA-PROFITS WITH THE RIGHT FORMULA If you have a product, service, or message that you would like to get out to Thousands, Hundreds of Thousands, or even Millions of people, you have several options. Traditional methods include print advertising, direct mail, radio, and television advertising. They are all effective, but they all have two catches: They're EXPENSIVE and TIME CONSUMING. Not only that, you only get ONE SHOT at making your message heard, by the right people. Now this has all changed! Thanks to the top programmers in the world and their NEW EMAIL TECHNOLOGY, You can send over 14,500,000 Emails Daily for FREE... Without getting terminated from your current Internet connection! It's very simple to do and you can be increasing sales within minutes of installing this new extraordinary software! PLUS...OVER $2,000 IN MARKETING SOFTWARE INCLUDED FREE! including...... Email extraction software List manager software Email sending software and much...much more! HURRY!.....OFFER ENDS IN 2 DAYS To find out more information, Do not respond by email. Instead, Please Call our marketing department at.... 1- (203) - 467-5378 Cybernet Marketing _____________________________________________________ Want to be removed from our list? Simply send an email to us at cybernetremovals at excite.com and type "remove" in the "subject" line and you will be removed from any future mailings. From hapu at correo.com.ar Sat Jun 22 18:17:57 2002 From: hapu at correo.com.ar (Ariel Filipiak) Date: Sat, 22 Jun 2002 20:17:57 -0300 Subject: [Javascript] A greeting from YOUR ARGENTINIAN COUSIN!!! Message-ID: <3D14DB75.3699.4840FDA@localhost> Hi Bob... My english is poor I hope you can understand me... I just looking for a script in google and found your name... and is NOT EASY here, in Argentina, found someone with our last name!!! I think in all Argentina, are only 3, my father, my little son (2 years) and me =o) My grandfather (died) come from Poland in 1928 (I think) and has only one son, my father, who has only one son... (In my country Ariel is a male name) We lost all contacts with the Filipiak family at less 50 years ago... (I have 34) Now I finding "javascript +replace" in google the 3rd. row say "[Javascript] replace. Filipiak, Bob (Contractor) javascript at LaTech.edu" and I can't resist the temptation to write you... maybe we are the same family!!! Best whises from Argentina Ariel Filipiak From cutterbl at hotmail.com Mon Jun 24 07:25:01 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Mon, 24 Jun 2002 08:25:01 -0400 Subject: [Javascript] Override browser disabling Javascript Message-ID: That would be the tags, right? Cutter http://www.falcon-knives.com ----Original Message Follows---- From: Peter Brunone Reply-To: javascript at LaTech.edu To: javascript at LaTech.edu Subject: Re: [Javascript] Override browser disabling Javascript Date: Fri, 21 Jun 2002 12:04:48 -0700 (PDT) Ranjit, Your best option is probably to create a page or DHTML element that tells the user to enable JavaScript. Then, if it's already enabled, you can change or turn off your notice with Javascript... but if the user has disabled scripting, your message will show. Regards, Peter Ranjit Babu wrote: Hi all.. I'm working on some code where it's imperative that my Javascript code runs. But.. it is possible to disable Javascripts on webpages through settings in the Security-->Custm settings dialog box in IE. How do I work around this? Can I do any one or both of the following.. - Identify on load whether the browser has Javascript disabled so I can alert the user - Enable Javascript on the browser automatically(programatically) ..? Thanx in advance for any answers.. -Ranjit _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript --------------------------------- Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From cutterbl at hotmail.com Mon Jun 24 07:27:08 2002 From: cutterbl at hotmail.com (Cutter Bl) Date: Mon, 24 Jun 2002 08:27:08 -0400 Subject: [Javascript] SELECT size in IE Message-ID: I think you would need a custom Active X control (IE only) to do something like that. Cutter http://www.falcon-knives.com ----Original Message Follows---- From: Peter Brunone Reply-To: javascript at LaTech.edu To: javascript at LaTech.edu Subject: RE: [Javascript] SELECT size in IE Date: Fri, 21 Jun 2002 12:22:42 -0700 (PDT) Well, I'm glad we have this list; for some reason, that possibility escaped my notice :) Thanks for the wake-up call, Kim; that worked just fine. NOW if I could only figure out how to format fixed-width columns *inside* the select box... Ziggy wrote: Peter, You can use style sheets for that, either create a class for the select to use which has width: 200; in it, for example, and reference that with CLASS="MyStyles"... or just add STYLE="width: 200;" to the >do you remember your posting below? did you finally find a solution? > >document.createElement(" >... works but it's not very nice ... Does this work in NN6? I doubt it. >Today's problem for me is: > >How in Javascript can I 'Check' a checkbox box when I add it as an >element in code? >The code below will add it to the new row but I want to check it as well >and if possible make it invisible >var addObj = document.createElement("INPUT"); ////// a add check box >addObj.type = "checkbox"; >addObj.name = "ADDLINK"; >addObj.id = "A1"; Try: addObj.checked = true; >var addObjParent = newRowObj.lastChild.previousSibling; >addObjParent.appendChild(addObj); ppk _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From cbeltran at futura-aer.com Sat Jun 29 05:51:00 2002 From: cbeltran at futura-aer.com (Carlos Beltran) Date: Sat, 29 Jun 2002 12:51:00 +0200 Subject: [Javascript] =?iso-8859-1?Q?Informaci=F3n?= Message-ID: <005d01c21f5a$dbf85d40$71c8a8c0@futuraaer.local> Hola, Te agradecer?a y estoy interesado en recibir informaci?n y precios ref los coches ; AUDI A-3, AUDI TT,W GOLF Muchas gracias, Carlos Beltr?n cbeltran at futura-aer.com Este correo electr?nico y cualquier fichero adjunto a ?l pueden contener informaci?n confidencial para uso estricto de destinatario autorizado. Si usted ha recibido ?ste correo electr?nico por error, por favor b?rrelo y notif?quelo al remitente. Gracias por su colaboraci?n. FUTURA INTERNATIONAL AIRWAYS. _______________________________________________________________________________________________________________________ This e-mail and any attachments to it may contain confidential information which is strictly intended for the use of the authorised recipient. If you have received this e-mail in error, please delete it and notify the sender by replying to this e-mail. Thank you for your cooperation. FUTURA INTERNATIONAL AIRWAYS. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodney at aflyingstart.net Sat Jun 29 16:18:19 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Sat, 29 Jun 2002 22:18:19 +0100 Subject: [Javascript] Including a javascript generated from a Perl cgi (?) Message-ID: <3D1E241B.97D5242F@aflyingstart.net> We probably all use script inclusions like is it permissible to generate javascript from Perl? tia Rodney From mallard at serv.net Sat Jun 29 20:22:57 2002 From: mallard at serv.net (TomMallard) Date: Sat, 29 Jun 2002 18:22:57 -0700 Subject: [Javascript] Including a javascript generated from a Perl cgi (?) In-Reply-To: <3D1E241B.97D5242F@aflyingstart.net> Message-ID: Shoulda' worked, did you try it? What's the exact output of the cgi, did you write that to the screen? tom mallard seattle -----Original Message----- From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On Behalf Of Rodney Myers Sent: Saturday, June 29, 2002 2:18 PM To: Javascript List Subject: [Javascript] Including a javascript generated from a Perl cgi (?) We probably all use script inclusions like is it permissible to generate javascript from Perl? tia Rodney _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From rodney at aflyingstart.net Sun Jun 30 08:40:41 2002 From: rodney at aflyingstart.net (Rodney Myers) Date: Sun, 30 Jun 2002 14:40:41 +0100 Subject: [Javascript] Including a javascript generated from a Perl cgi (?) References: Message-ID: <3D1F0A59.2DBD1431@aflyingstart.net> TomMallard wrote: > Shoulda' worked, did you try it? Not yet - but I will now. Thanks. Rodney > What's the exact output of the cgi, did you > write that to the screen? > > tom mallard > seattle > > -----Original Message----- > Subject: [Javascript] Including a javascript generated from a Perl cgi (?) > > We probably all use script inclusions like > > > > is it permissible to generate javascript from Perl? > > > > tia > > Rodney > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript
Add Kid's Shake(add 0.99)
      Vanilla(add 0.00)
      Chocolate(add 0.00)
      Strawberry(add 0.00)Add Kid's Shake(add |0.99)
      |Vanilla(add |0.00)
      |Chocolate(add |0.00)
      |Strawberry(add |0.00)Add Kid's Shake(add |0.99)
      |Vanilla(add |0.00)
      |Chocolate(add |0.00)
      |Strawberry(add |0.00)