From skyscanner at eircom.net Sat Oct 1 08:48:05 2005 From: skyscanner at eircom.net (SkyScanner) Date: Sat, 1 Oct 2005 14:48:05 +0100 Subject: [Javascript] OT - User Management Software References: <00f601c5c589$4e7af6c0$ab882ec2@ic7g> <5.1.0.14.2.20050930075143.03321a00@mail.latech.edu> Message-ID: <001c01c5c68e$cd5ff200$b0892ec2@ic7g> A quick summary of advice received: (thanks to those who responded!!) Various content management systems were suggested, such as Plone http://plone.org/ Drupal www.drupal.org Other CMS packages are reviewed here: http://www.opensourcecms.com/ http://www.cmsmatrix.org/ However these were all rather over the top for what I needed: a simple User-Management script that could be tacked on to some pages. Two resources surfaced: http://evolt.org/node/60384 http://www.phpfreaks.com/tutorials/78/0.php and I will be checking them out shortly. Tim in Ireland. From apwebdesign at yahoo.com Tue Oct 4 11:34:54 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 4 Oct 2005 09:34:54 -0700 (PDT) Subject: [Javascript] javascript and id's Message-ID: <20051004163454.9462.qmail@web51110.mail.yahoo.com> Ok, so I have a
Is this the best way to access descendents of ? By keying off the ancestor, and then looping through it's elements? Or should I give each form element it's own id... I want to change the value of an attribute of an input field: want to change it to What I ended up doing was giving the element an id="searchfield", and then looping through it's attributes using '.attributes' on the input object, and testing the name of the attribute == 'name'. and then replacing it's value with 'bar'. Is there an easier way to access an attribute of an element if I know it's direct path? Seems to me very inefficient to have to do looping if it's not necessary. Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From flavio at economisa.com.br Tue Oct 4 11:53:28 2005 From: flavio at economisa.com.br (Flavio Gomes) Date: Tue, 04 Oct 2005 13:53:28 -0300 Subject: [Javascript] javascript and id's In-Reply-To: <20051004163454.9462.qmail@web51110.mail.yahoo.com> References: <20051004163454.9462.qmail@web51110.mail.yahoo.com> Message-ID: <4342B388.90002@economisa.com.br> Having a form named* "myForm" and an input named "myInput": You can access it by "document.myForm.myInput" in the majority of the browsers. * Yeah, by "named" I mean giving the "name" atribute a value.
-- Flavio Gomes flavio at economisa.com.br Anthony Ettinger wrote: >Ok, so I have a
> >Is this the best way to access descendents of ? >By keying off the ancestor, and then looping through >it's elements? > >Or should I give each form element it's own id... > >I want to change the value of an attribute of an input >field: > > > >want to change it to > > > > >What I ended up doing was giving the element >an id="searchfield", and then looping through it's >attributes using '.attributes' on the input object, >and testing the name of the attribute == 'name'. and >then replacing it's value with 'bar'. > >Is there an easier way to access an attribute of an >element if I know it's direct path? > >Seems to me very inefficient to have to do looping if >it's not necessary. > >Anthony Ettinger >ph: (408) 656-2473 >blog: http://www.chovy.com > > > >__________________________________ >Yahoo! Mail - PC Magazine Editors' Choice 2005 >http://mail.yahoo.com >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > From flavio at economisa.com.br Tue Oct 4 11:56:43 2005 From: flavio at economisa.com.br (Flavio Gomes) Date: Tue, 04 Oct 2005 13:56:43 -0300 Subject: [Javascript] javascript and id's In-Reply-To: <4342B388.90002@economisa.com.br> References: <20051004163454.9462.qmail@web51110.mail.yahoo.com> <4342B388.90002@economisa.com.br> Message-ID: <4342B44B.2080204@economisa.com.br> OT: The "onkeyup" instead of onkeydown would give a better effect on the script. -- Flavio Gomes flavio at economisa.com.br Flavio Gomes wrote: > > Having a form named* "myForm" and an input named "myInput": > You can access it by "document.myForm.myInput" in the majority of the > browsers. > > * Yeah, by "named" I mean giving the "name" atribute a value. > > > > >
> > > From apwebdesign at yahoo.com Tue Oct 4 11:57:03 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 4 Oct 2005 09:57:03 -0700 (PDT) Subject: [Javascript] javascript and id's In-Reply-To: <4342B388.90002@economisa.com.br> Message-ID: <20051004165703.31028.qmail@web51106.mail.yahoo.com> Yes, you can. But it's my understanding that method is quickly becoming obsolete, infavor of var object = document.getElementById('foo'); --- Flavio Gomes wrote: > > Having a form named* "myForm" and an input named > "myInput": > You can access it by "document.myForm.myInput" in > the majority of the > browsers. > > * Yeah, by "named" I mean giving the "name" atribute > a value. > >
> /> > >
> > > > -- > Flavio Gomes > flavio at economisa.com.br > > > > Anthony Ettinger wrote: > > >Ok, so I have a
> > > >Is this the best way to access descendents of > ? > >By keying off the ancestor, and then looping > through > >it's elements? > > > >Or should I give each form element it's own id... > > > >I want to change the value of an attribute of an > input > >field: > > > > > > > >want to change it to > > > > > > > > > >What I ended up doing was giving the > element > >an id="searchfield", and then looping through it's > >attributes using '.attributes' on the input object, > >and testing the name of the attribute == 'name'. > and > >then replacing it's value with 'bar'. > > > >Is there an easier way to access an attribute of an > >element if I know it's direct path? > > > >Seems to me very inefficient to have to do looping > if > >it's not necessary. > > > >Anthony Ettinger > >ph: (408) 656-2473 > >blog: http://www.chovy.com > > > > > > > >__________________________________ > >Yahoo! Mail - PC Magazine Editors' Choice 2005 > >http://mail.yahoo.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 > Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From paul at novitskisoftware.com Tue Oct 4 12:08:42 2005 From: paul at novitskisoftware.com (Paul Novitski) Date: Tue, 04 Oct 2005 10:08:42 -0700 Subject: [Javascript] javascript and id's In-Reply-To: <20051004163454.9462.qmail@web51110.mail.yahoo.com> References: <20051004163454.9462.qmail@web51110.mail.yahoo.com> Message-ID: <6.2.3.4.2.20051004095016.04acc4e0@mail.spamarrest.com> At 09:34 AM 10/4/2005, Anthony Ettinger wrote: ... >I want to change the value of an attribute of an input >field: > > > >want to change it to > > > >What I ended up doing was giving the element >an id="searchfield", and then looping through it's >attributes using '.attributes' on the input object, >and testing the name of the attribute == 'name'. and >then replacing it's value with 'bar'. > >Is there an easier way to access an attribute of an >element if I know it's direct path? > >Seems to me very inefficient to have to do looping if >it's not necessary. Anthony, Giving an element an id so you can point to it without searching is great if your situation allows. I can think of situations in which I might choose to search (loop) for an element -- e.g., if I potentially needed to select more than one element in a group, or if I needed to select on the basis of attributes other than id or tagName, or if I didn't have control over the markup. In your case you need to select an element by its name attribute and therefore have to either search or add an id. However, I can't see why you'd need to loop through the attributes in the target element. If you're using id to point to the element, you don't need to test for the current name so just set the name and you're done. If you've found the target element by searching, you can use the getAttribute() method to check each element's name as you cycle through them. __________________________ Either: < input id="inputFoo" name="foo" ... /> // point to it var oInput = document.getElementById("inputFoo"); // if it exists, set its name if (oInput) oInput.setAttribute("bar"); __________________________ Or: < form id="foo" ... > < input name="foo" ... />
// point to the form var oForm = document.getElementById("foo"); // bail if not found if (!oForm) return; // get array of all INPUT elements var aInputs = oForm.getElementsByTagName("INPUT"); // search for foo for (var iInput = 0; iInput < aInputs.length; iInput++) { // if found... if (aInputs[iInput].getAttribute("name") == "foo") { // change name aInputs[iInput].setAttribute("name", "bar"); // exit the FOR loop break; } } __________________________ Caveat: Seat-of-the-pants coding, needs testing. Paul From peter at brunone.com Tue Oct 4 12:09:21 2005 From: peter at brunone.com (Peter Brunone) Date: Tue, 4 Oct 2005 10:09:21 -0700 Subject: [Javascript] javascript and id's Message-ID: <0f2a1fb16f954792a8a597655b88ce66@brunone.com> Based on what source? Is the name attribute becoming obsolete? I find it hard to believe they'd change the form object model like that, but stranger things have happened... From: Anthony Ettinger apwebdesign at yahoo.com Yes, you can. But it's my understanding that method is quickly becoming obsolete, infavor of var object = document.getElementById('foo'); --- Flavio Gomes wrote: > > Having a form named* "myForm" and an input named > "myInput": > You can access it by "document.myForm.myInput" in > the majority of the > browsers. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at novitskisoftware.com Tue Oct 4 12:14:35 2005 From: paul at novitskisoftware.com (Paul Novitski) Date: Tue, 04 Oct 2005 10:14:35 -0700 Subject: [Javascript] javascript and id's Message-ID: <6.2.3.4.2.20051004101307.03017ed8@mail.spamarrest.com> ...and of course I meant to write: __________________________ Either: < input id="inputFoo" name="foo" ... /> // point to it var oInput = document.getElementById("inputFoo"); // if it exists, set its name if (oInput) oInput.setAttribute("name", "bar"); __________________________ NOT: if (oInput) oInput.setAttribute("bar"); Paul From apwebdesign at yahoo.com Tue Oct 4 12:20:20 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 4 Oct 2005 10:20:20 -0700 (PDT) Subject: [Javascript] javascript and id's In-Reply-To: <6.2.3.4.2.20051004095016.04acc4e0@mail.spamarrest.com> Message-ID: <20051004172021.38102.qmail@web51107.mail.yahoo.com> --- Paul Novitski wrote: > At 09:34 AM 10/4/2005, Anthony Ettinger wrote: > ... > >I want to change the value of an attribute of an > input > >field: > > > > > > > >want to change it to > > > > > > > >What I ended up doing was giving the > element > >an id="searchfield", and then looping through it's > >attributes using '.attributes' on the input object, > >and testing the name of the attribute == 'name'. > and > >then replacing it's value with 'bar'. > > > >Is there an easier way to access an attribute of an > >element if I know it's direct path? > > > >Seems to me very inefficient to have to do looping > if > >it's not necessary. > > Anthony, > > Giving an element an id so you can point to it > without searching is > great if your situation allows. I can think of > situations in which I > might choose to search (loop) for an element -- > e.g., if I > potentially needed to select more than one element > in a group, or if > I needed to select on the basis of attributes other > than id or > tagName, or if I didn't have control over the > markup. In your case > you need to select an element by its name attribute > and therefore > have to either search or add an id. > > However, I can't see why you'd need to loop through > the attributes in > the target element. If you're using id to point to > the element, you > don't need to test for the current name so just set > the name and > you're done. If you've found the target element by > searching, you > can use the getAttribute() method to check each > element's name as you > cycle through them. > __________________________ > Either: > < input id="inputFoo" name="foo" ... /> > > // point to it > var oInput = > document.getElementById("inputFoo"); > > // if it exists, set its name > if (oInput) > oInput.setAttribute("bar"); > __________________________ > Or: > < form id="foo" ... > > < input name="foo" ... /> > > > // point to the form > var oForm = document.getElementById("foo"); > > // bail if not found > if (!oForm) return; > > // get array of all INPUT elements > var aInputs = > oForm.getElementsByTagName("INPUT"); > > // search for foo > for (var iInput = 0; iInput < > aInputs.length; iInput++) > { > // if found... > if > (aInputs[iInput].getAttribute("name") == "foo") > { > // change name > > aInputs[iInput].setAttribute("name", "bar"); > > // exit the FOR loop > break; > } > } Yes, this is what I came up with: function changeAttrib(id, attrib, newValue) { var elemObj = document.getElementById(id); elemObj.setAttribute(attrib, newValue); return true; } Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From apwebdesign at yahoo.com Tue Oct 4 12:22:09 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 4 Oct 2005 10:22:09 -0700 (PDT) Subject: [Javascript] javascript and id's In-Reply-To: <0f2a1fb16f954792a8a597655b88ce66@brunone.com> Message-ID: <20051004172210.71035.qmail@web51113.mail.yahoo.com> Well, from what I've talked with some co-workers, they are saying 'id' should be used instead of 'name'. Although I'm sure they will always be backwards compatible. The problem I raised was what do you do in a radio group? where id would/should be the name (but id implies only one per page). I don't know who is right/wrong. But the latest javascript I've seen all seems to revolve around getElementById. --- Peter Brunone wrote: > Based on what source? > > Is the name attribute becoming obsolete? I find it > hard to believe they'd change the form object model > like that, but stranger things have happened... > > From: Anthony Ettinger apwebdesign at yahoo.com > > Yes, you can. But it's my understanding that method > is > quickly becoming obsolete, infavor of > > var object = document.getElementById('foo'); > > --- Flavio Gomes wrote: > > > > Having a form named* "myForm" and an input named > > "myInput": > > You can access it by "document.myForm.myInput" in > > the majority of the > > browsers. > > _____________________________________ Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From apwebdesign at yahoo.com Tue Oct 4 12:29:18 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 4 Oct 2005 10:29:18 -0700 (PDT) Subject: [Javascript] multidimensional associative arrays Message-ID: <20051004172918.39969.qmail@web51107.mail.yahoo.com> It's been a long time since I've done one of these in javascript. But I need the equivalent of a perl hashref: localToRemoteMapping[id][attrib] = value; How do I define a multidimensional array? Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From paul at novitskisoftware.com Tue Oct 4 12:29:56 2005 From: paul at novitskisoftware.com (Paul Novitski) Date: Tue, 04 Oct 2005 10:29:56 -0700 Subject: [Javascript] javascript and id's In-Reply-To: <20051004172021.38102.qmail@web51107.mail.yahoo.com> References: <6.2.3.4.2.20051004095016.04acc4e0@mail.spamarrest.com> <20051004172021.38102.qmail@web51107.mail.yahoo.com> Message-ID: <6.2.3.4.2.20051004102709.04dd8c68@mail.spamarrest.com> At 10:20 AM 10/4/2005, Anthony Ettinger wrote: >Yes, this is what I came up with: > >function changeAttrib(id, attrib, newValue) >{ > var elemObj = document.getElementById(id); > elemObj.setAttribute(attrib, newValue); > > return true; >} Looks good. But why are you returning true? You don't have to, especially in a case like this where your function ALWAYS returns the same value. Unlike some other languages (VBscript, for example), JavaScript lets you treat a function like a sub call, that is: x = doSomething(y); or simply: doSomething(y); Paul From apwebdesign at yahoo.com Tue Oct 4 12:36:59 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 4 Oct 2005 10:36:59 -0700 (PDT) Subject: [Javascript] javascript and id's In-Reply-To: <6.2.3.4.2.20051004102709.04dd8c68@mail.spamarrest.com> Message-ID: <20051004173659.24470.qmail@web51101.mail.yahoo.com> --- Paul Novitski wrote: > At 10:20 AM 10/4/2005, Anthony Ettinger wrote: > >Yes, this is what I came up with: > > > >function changeAttrib(id, attrib, newValue) > >{ > > var elemObj = document.getElementById(id); > > elemObj.setAttribute(attrib, newValue); > > > > return true; > >} > > > Looks good. But why are you returning true? You > don't have to, > especially in a case like this where your function > ALWAYS returns the > same value. Unlike some other languages (VBscript, > for example), > JavaScript lets you treat a function like a sub > call, that is: > > x = doSomething(y); > > or simply: > > doSomething(y); Agreed, I wasn't sure what the standard was. I've heard people say "always return true", and others only if it's returning a value should you use return. I've shortened the function: function changeAttrib(id, attrib, newValue) { document.getElementById(id).setAttribute(attrib, newValue); } Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From skyscanner at eircom.net Tue Oct 4 12:40:31 2005 From: skyscanner at eircom.net (SkyScanner) Date: Tue, 4 Oct 2005 18:40:31 +0100 Subject: [Javascript] multidimensional associative arrays References: <20051004172918.39969.qmail@web51107.mail.yahoo.com> Message-ID: <008d01c5c90a$cdcc4760$4e892ec2@ic7g> results = new Array(); results[0] = ["KQ2M", "4", "41.393200", "-73.320100"]; results[1] = ["N9RV", "5", "40.295400", "-85.262500"]; results[2] = ["KV0Q", "5", "39.504800", "-104.738200"]; results[3] = ["N2NT", "5", "40.379300", "-74.495900"]; results[4] = ["NX5M", "5", "30.440100", "-96.498500"]; results[5] = ["K1SE", "5", "38.747800", "-77.485300"]; results[6] = ["W0AIH", "5", "44.744100", "-91.294500"]; results[7] = ["W4MYA", "5", "37.717900", "-78.005900"]; results[8] = ["K9NW", "4", "39.328400", "-84.546500"]; results[9] = ["W9RE", "4", "39.661300", "-85.994900"]; or viewlist90 = { colname: ["Name","State","County","Fips","Area sq-mile","Area sq-m","Population","Pop Density"], colwidth: [20,6,20,6,12,12,12,12], coldata: [ {z0:"Anson",z1:"ME",z2:"Somerset",z3:"23-01360",z4:"1.3206",z5:"3420335",z6: "818",z7:"619.416"}, {z0:"Auburn",z1:"ME",z2:"Androscoggin",z3:"23-02060",z4:"59.7846",z5:"154841 502",z6:"23203",z7:"388.11"}, {z0:"Augusta",z1:"ME",z2:"Kennebec",z3:"23-02100",z4:"55.3812",z5:"143436533 ",z6:"18560",z7:"335.132"}, {z0:"Bangor",z1:"ME",z2:"Penobscot",z3:"23-02795",z4:"34.446",z5:"89214664", z6:"31473",z7:"913.692"}, {z0:"Bar Harbor",z1:"ME",z2:"Hancock",z3:"23-02830",z4:"3.14878",z5:"8155298",z6:"268 0",z7:"851.124"}, {z0:"Bath",z1:"ME",z2:"Sagadahoc",z3:"23-03355",z4:"9.1127",z5:"23601779",z6 :"9266",z7:"1016.82"}, {z0:"Belfast",z1:"ME",z2:"Waldo",z3:"23-03950",z4:"34.039",z5:"88160555",z6: "6381",z7:"187.462"}, {z0:"Berwick",z1:"ME",z2:"York",z3:"23-04685",z4:"1.53112",z5:"3965578",z6:" 1993",z7:"1301.66"} ] } Tim in Ireland ----- Original Message ----- From: "Anthony Ettinger" To: Sent: Tuesday, October 04, 2005 6:29 PM Subject: [Javascript] multidimensional associative arrays > It's been a long time since I've done one of these in > javascript. > > But I need the equivalent of a perl hashref: > > localToRemoteMapping[id][attrib] = value; > > How do I define a multidimensional array? > > > > > Anthony Ettinger > ph: (408) 656-2473 > blog: http://www.chovy.com > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From paul at novitskisoftware.com Tue Oct 4 12:47:59 2005 From: paul at novitskisoftware.com (Paul Novitski) Date: Tue, 04 Oct 2005 10:47:59 -0700 Subject: [Javascript] javascript and id's In-Reply-To: <20051004172210.71035.qmail@web51113.mail.yahoo.com> References: <0f2a1fb16f954792a8a597655b88ce66@brunone.com> <20051004172210.71035.qmail@web51113.mail.yahoo.com> Message-ID: <6.2.3.4.2.20051004103426.050d6b08@mail.spamarrest.com> At 10:22 AM 10/4/2005, Anthony Ettinger wrote: >Well, from what I've talked with some co-workers, they >are saying 'id' should be used instead of 'name'. >Although I'm sure they will always be backwards >compatible. The problem I raised was what do you do in >a radio group? where id would/should be the name (but >id implies only one per page). > >I don't know who is right/wrong. But the latest >javascript I've seen all seems to revolve around >getElementById. The NAME attribute isn't unique -- there can be more than one element with the same name on the page. This is exactly how radio buttons work -- they all share the same name, and only the selected element's value is transmitted on submit. If more than one active field has the same name in a form, their values are submitted as a comma-delimited list. As I understand it, the NAME attribute today is used to organize form fields for submission but isn't otherwise useful in the DOM. In the DOM, the two methods we're given to locate items immediately are getElementById() and getElementsByTagName(), but "getElementsByName()" doesn't exist. See the HTML 4.01 spec: http://www.w3.org/TR/html4/interact/forms.html#adef-name-FORM "name = cdata [CI] "This attribute names the element so that it may be referred to from style sheets or scripts. Note. This attribute has been included for backwards compatibility. Applications should use the id attribute to identify elements." It's always a good idea to run your HTML through the W3C validator http://validator.w3.org/ -- it will point out if & where your markup strays from the recommended path. Paul From paul at novitskisoftware.com Tue Oct 4 12:51:10 2005 From: paul at novitskisoftware.com (Paul Novitski) Date: Tue, 04 Oct 2005 10:51:10 -0700 Subject: [Javascript] javascript and id's In-Reply-To: <20051004173659.24470.qmail@web51101.mail.yahoo.com> References: <6.2.3.4.2.20051004102709.04dd8c68@mail.spamarrest.com> <20051004173659.24470.qmail@web51101.mail.yahoo.com> Message-ID: <6.2.3.4.2.20051004104918.048ce758@mail.spamarrest.com> At 10:36 AM 10/4/2005, you wrote: >I've shortened the function: > >function changeAttrib(id, attrib, newValue) >{ > document.getElementById(id).setAttribute(attrib, >newValue); >} I would argue for a safer coding practice: var oEl = document.getElementById(id); if (oEl) oEl.setAttribute(attrib, newValue); ...in order to avoid a javascript error message if the expected element doesn't exist on the page. Paul From apwebdesign at yahoo.com Tue Oct 4 13:18:20 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 4 Oct 2005 11:18:20 -0700 (PDT) Subject: [Javascript] javascript and id's In-Reply-To: <6.2.3.4.2.20051004103426.050d6b08@mail.spamarrest.com> Message-ID: <20051004181820.91976.qmail@web51111.mail.yahoo.com> --- Paul Novitski wrote: > At 10:22 AM 10/4/2005, Anthony Ettinger wrote: > >Well, from what I've talked with some co-workers, > they > >are saying 'id' should be used instead of 'name'. > >Although I'm sure they will always be backwards > >compatible. The problem I raised was what do you do > in > >a radio group? where id would/should be the name > (but > >id implies only one per page). > > > >I don't know who is right/wrong. But the latest > >javascript I've seen all seems to revolve around > >getElementById. > > > The NAME attribute isn't unique -- there can be more > than one element > with the same name on the page. This is exactly how > radio buttons > work -- they all share the same name, and only the > selected element's > value is transmitted on submit. If more than one > active field has > the same name in a form, their values are submitted > as a comma-delimited list. > > As I understand it, the NAME attribute today is used > to organize form > fields for submission but isn't otherwise useful in > the DOM. > > In the DOM, the two methods we're given to locate > items immediately > are getElementById() and getElementsByTagName(), but > > "getElementsByName()" doesn't exist. > > See the HTML 4.01 spec: > http://www.w3.org/TR/html4/interact/forms.html#adef-name-FORM > "name = cdata [CI] > "This attribute names the element so that it > may be referred to > from style sheets or scripts. Note. This attribute > has been included > for backwards compatibility. Applications should use > the id attribute > to identify elements." > > It's always a good idea to run your HTML through the > W3C validator > http://validator.w3.org/ -- it will point out if & > where your markup > strays from the recommended path. I haven't tested it, but if you leave name attribute off, the id gets sent as the parameter name. The only case I see this being a problem is when you have objects with the same name (ie- a radio list). So I'm guessing 'name' will not be deprecated in the future. Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From apwebdesign at yahoo.com Tue Oct 4 13:20:17 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 4 Oct 2005 11:20:17 -0700 (PDT) Subject: [Javascript] javascript and id's In-Reply-To: <6.2.3.4.2.20051004104918.048ce758@mail.spamarrest.com> Message-ID: <20051004182017.20062.qmail@web51104.mail.yahoo.com> --- Paul Novitski wrote: > At 10:36 AM 10/4/2005, you wrote: > >I've shortened the function: > > > >function changeAttrib(id, attrib, newValue) > >{ > > > document.getElementById(id).setAttribute(attrib, > >newValue); > >} > > I would argue for a safer coding practice: > > var oEl = document.getElementById(id); > if (oEl) oEl.setAttribute(attrib, > newValue); > > ...in order to avoid a javascript error message if > the expected > element doesn't exist on the page. > Great. So you recommend testing for getElementById first, good idea. Would you bother with an else in that statement? Or simply break it. I personally don't care to support older versions of IE and NS. Accessible means screen readers, mobile devices, etc. ANY javascript would break on those. Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From flavio at economisa.com.br Tue Oct 4 13:25:58 2005 From: flavio at economisa.com.br (Flavio Gomes) Date: Tue, 04 Oct 2005 15:25:58 -0300 Subject: [Javascript] multidimensional associative arrays In-Reply-To: <008d01c5c90a$cdcc4760$4e892ec2@ic7g> References: <20051004172918.39969.qmail@web51107.mail.yahoo.com> <008d01c5c90a$cdcc4760$4e892ec2@ic7g> Message-ID: <4342C936.9090107@economisa.com.br> Sending my Example: -- Flavio Gomes flavio at economisa.com.br SkyScanner wrote: >results = new Array(); > >results[0] = ["KQ2M", "4", "41.393200", "-73.320100"]; >results[1] = ["N9RV", "5", "40.295400", "-85.262500"]; >results[2] = ["KV0Q", "5", "39.504800", "-104.738200"]; >results[3] = ["N2NT", "5", "40.379300", "-74.495900"]; >results[4] = ["NX5M", "5", "30.440100", "-96.498500"]; >results[5] = ["K1SE", "5", "38.747800", "-77.485300"]; >results[6] = ["W0AIH", "5", "44.744100", "-91.294500"]; >results[7] = ["W4MYA", "5", "37.717900", "-78.005900"]; >results[8] = ["K9NW", "4", "39.328400", "-84.546500"]; >results[9] = ["W9RE", "4", "39.661300", "-85.994900"]; > >or > >viewlist90 = { >colname: ["Name","State","County","Fips","Area sq-mile","Area >sq-m","Population","Pop Density"], >colwidth: [20,6,20,6,12,12,12,12], >coldata: [ >{z0:"Anson",z1:"ME",z2:"Somerset",z3:"23-01360",z4:"1.3206",z5:"3420335",z6: >"818",z7:"619.416"}, >{z0:"Auburn",z1:"ME",z2:"Androscoggin",z3:"23-02060",z4:"59.7846",z5:"154841 >502",z6:"23203",z7:"388.11"}, >{z0:"Augusta",z1:"ME",z2:"Kennebec",z3:"23-02100",z4:"55.3812",z5:"143436533 >",z6:"18560",z7:"335.132"}, >{z0:"Bangor",z1:"ME",z2:"Penobscot",z3:"23-02795",z4:"34.446",z5:"89214664", >z6:"31473",z7:"913.692"}, >{z0:"Bar >Harbor",z1:"ME",z2:"Hancock",z3:"23-02830",z4:"3.14878",z5:"8155298",z6:"268 >0",z7:"851.124"}, >{z0:"Bath",z1:"ME",z2:"Sagadahoc",z3:"23-03355",z4:"9.1127",z5:"23601779",z6 >:"9266",z7:"1016.82"}, >{z0:"Belfast",z1:"ME",z2:"Waldo",z3:"23-03950",z4:"34.039",z5:"88160555",z6: >"6381",z7:"187.462"}, >{z0:"Berwick",z1:"ME",z2:"York",z3:"23-04685",z4:"1.53112",z5:"3965578",z6:" >1993",z7:"1301.66"} >] >} > > >Tim in Ireland > >----- Original Message ----- >From: "Anthony Ettinger" >To: >Sent: Tuesday, October 04, 2005 6:29 PM >Subject: [Javascript] multidimensional associative arrays > > > > >>It's been a long time since I've done one of these in >>javascript. >> >>But I need the equivalent of a perl hashref: >> >>localToRemoteMapping[id][attrib] = value; >> >>How do I define a multidimensional array? >> >> >> >> >>Anthony Ettinger >>ph: (408) 656-2473 >>blog: http://www.chovy.com >> >> >> >>__________________________________ >>Yahoo! Mail - PC Magazine Editors' Choice 2005 >>http://mail.yahoo.com >>_______________________________________________ >>Javascript mailing list >>Javascript at LaTech.edu >>https://lists.LaTech.edu/mailman/listinfo/javascript >> >> >> > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > From paul at novitskisoftware.com Tue Oct 4 14:06:06 2005 From: paul at novitskisoftware.com (Paul Novitski) Date: Tue, 04 Oct 2005 12:06:06 -0700 Subject: [Javascript] javascript and id's In-Reply-To: <20051004182017.20062.qmail@web51104.mail.yahoo.com> References: <6.2.3.4.2.20051004104918.048ce758@mail.spamarrest.com> <20051004182017.20062.qmail@web51104.mail.yahoo.com> Message-ID: <6.2.3.4.2.20051004114343.04cd05e8@mail.spamarrest.com> At 11:20 AM 10/4/2005, Anthony Ettinger wrote: >--- Paul Novitski wrote: > > I would argue for a safer coding practice: > > > > var oEl = document.getElementById(id); > > if (oEl) oEl.setAttribute(attrib, > > newValue); > > > > ...in order to avoid a javascript error message if > > the expected > > element doesn't exist on the page. > > > >Great. So you recommend testing for getElementById >first, good idea. Anthony, Well, no, actually, I wasn't testing for the getElementById() capability, I was testing for the existence of the identified element (id) on the page. It might seem twitchy if not downright neurotically fussy to test for the existence of a page element that you yourself are placing in the markup, but the history of software development is littered with the bodies of dead code that won't run because the programmers made one too many assumptions about the predictability of future contexts... I do test for DOM capability, but I only do so once: None of my javascript functions are triggered directly from the HTML file (I don't use inline behavior in the markup like ). Instead, my linked javascript file contains a window.onload statement that runs an initialization function; that function assigns behaviors as needed to various page elements. In this way, no javascript is executed unless the initialization function completes. If the init function begins by testing for the DOM capabilities it requires, effectively all subroutines are protected from being run by non-DOM-aware browsers, so there's no need to keep testing for DOM capability anywhere else. function Initialize() { if (!document.getElementById) return; if (!document.getElementsByTagName) return; // etc. } >Would you bother with an else in that statement? Or >simply break it. I personally don't care to support >older versions of IE and NS. Accessible means screen >readers, mobile devices, etc. ANY javascript would >break on those. If an expected page element doesn't exist, or a browser lacks DOM capability, I suppose you could bring up an alert() notifying the user if the lacking functionality is critical. In most cases I simply end silently if running in a DOM-unaware browser. Missing page elements are more troublesome and might indicate that someone has made a mistake in editing the markup or that the script is being run with an inappropriate page, and therefore might deserve a warning message so the user can notify the developer. Paul From apwebdesign at yahoo.com Tue Oct 4 14:26:09 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 4 Oct 2005 12:26:09 -0700 (PDT) Subject: [Javascript] multidimensional associative arrays In-Reply-To: <4342C936.9090107@economisa.com.br> Message-ID: <20051004192609.9349.qmail@web51111.mail.yahoo.com> associative array uses a word, not a number for the index. --- Flavio Gomes wrote: > Sending my Example: > > > > -- > Flavio Gomes > flavio at economisa.com.br > > > > SkyScanner wrote: > > >results = new Array(); > > > >results[0] = ["KQ2M", "4", "41.393200", > "-73.320100"]; > >results[1] = ["N9RV", "5", "40.295400", > "-85.262500"]; > >results[2] = ["KV0Q", "5", "39.504800", > "-104.738200"]; > >results[3] = ["N2NT", "5", "40.379300", > "-74.495900"]; > >results[4] = ["NX5M", "5", "30.440100", > "-96.498500"]; > >results[5] = ["K1SE", "5", "38.747800", > "-77.485300"]; > >results[6] = ["W0AIH", "5", "44.744100", > "-91.294500"]; > >results[7] = ["W4MYA", "5", "37.717900", > "-78.005900"]; > >results[8] = ["K9NW", "4", "39.328400", > "-84.546500"]; > >results[9] = ["W9RE", "4", "39.661300", > "-85.994900"]; > > > >or > > > >viewlist90 = { > >colname: ["Name","State","County","Fips","Area > sq-mile","Area > >sq-m","Population","Pop Density"], > >colwidth: [20,6,20,6,12,12,12,12], > >coldata: [ > >{z0:"Anson",z1:"ME",z2:"Somerset",z3:"23-01360",z4:"1.3206",z5:"3420335",z6: > >"818",z7:"619.416"}, > >{z0:"Auburn",z1:"ME",z2:"Androscoggin",z3:"23-02060",z4:"59.7846",z5:"154841 > >502",z6:"23203",z7:"388.11"}, > >{z0:"Augusta",z1:"ME",z2:"Kennebec",z3:"23-02100",z4:"55.3812",z5:"143436533 > >",z6:"18560",z7:"335.132"}, > >{z0:"Bangor",z1:"ME",z2:"Penobscot",z3:"23-02795",z4:"34.446",z5:"89214664", > >z6:"31473",z7:"913.692"}, > >{z0:"Bar > >Harbor",z1:"ME",z2:"Hancock",z3:"23-02830",z4:"3.14878",z5:"8155298",z6:"268 > >0",z7:"851.124"}, > >{z0:"Bath",z1:"ME",z2:"Sagadahoc",z3:"23-03355",z4:"9.1127",z5:"23601779",z6 > >:"9266",z7:"1016.82"}, > >{z0:"Belfast",z1:"ME",z2:"Waldo",z3:"23-03950",z4:"34.039",z5:"88160555",z6: > >"6381",z7:"187.462"}, > >{z0:"Berwick",z1:"ME",z2:"York",z3:"23-04685",z4:"1.53112",z5:"3965578",z6:" > >1993",z7:"1301.66"} > >] > >} > > > > > >Tim in Ireland > > > >----- Original Message ----- > >From: "Anthony Ettinger" > >To: > >Sent: Tuesday, October 04, 2005 6:29 PM > >Subject: [Javascript] multidimensional associative > arrays > > > > > > > > > >>It's been a long time since I've done one of these > in > >>javascript. > >> > >>But I need the equivalent of a perl hashref: > >> > >>localToRemoteMapping[id][attrib] = value; > >> > >>How do I define a multidimensional array? > >> > >> > >> > >> > >>Anthony Ettinger > >>ph: (408) 656-2473 > >>blog: http://www.chovy.com > >> > >> > >> > >>__________________________________ > >>Yahoo! Mail - PC Magazine Editors' Choice 2005 > >>http://mail.yahoo.com > >>_______________________________________________ > >>Javascript mailing list > >>Javascript at LaTech.edu > >>https://lists.LaTech.edu/mailman/listinfo/javascript > >> > >> > >> > > > >_______________________________________________ > >Javascript mailing list > >Javascript at LaTech.edu > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From wdlists at triche-osborne.com Tue Oct 4 17:45:56 2005 From: wdlists at triche-osborne.com (Triche Osborne) Date: Tue, 04 Oct 2005 17:45:56 -0500 Subject: [Javascript] javascript and id's In-Reply-To: <20051004181820.91976.qmail@web51111.mail.yahoo.com> References: <20051004181820.91976.qmail@web51111.mail.yahoo.com> Message-ID: <43430624.8040904@triche-osborne.com> Anthony Ettinger wrote: > > So I'm guessing 'name' will not be deprecated in the > future. > Not until POST and GET methods quit using it for their associated array keys I hope. ;-) Triche From davidh126 at writeme.com Tue Oct 4 23:34:37 2005 From: davidh126 at writeme.com (David Hucklesby) Date: Tue, 4 Oct 2005 21:34:37 -0700 Subject: [Javascript] javascript and id's In-Reply-To: <20051004163454.9462.qmail@web51110.mail.yahoo.com> Message-ID: <2005104213437.669757@IBM-7079CBA4897> Anthony Ettinger wrote: > Or should I give each form element it's own id... One other consideration that makes getElementById the easy way to access form elements is the use of the LABEL element. Adding a unique id to each form element and targetting it with a FOR attribute in the LABEL makes the form elements easier to access - you can click the LABEL's text to give the INPUT focus and to set a radio button or checkbox. Cordially, David -- David Hucklesby, on 10/4/2005 -- From nick at nickfitz.co.uk Wed Oct 5 03:10:57 2005 From: nick at nickfitz.co.uk (Nick Fitzsimons) Date: Wed, 5 Oct 2005 09:10:57 +0100 (BST) Subject: [Javascript] multidimensional associative arrays In-Reply-To: <20051004192609.9349.qmail@web51111.mail.yahoo.com> References: <4342C936.9090107@economisa.com.br> <20051004192609.9349.qmail@web51111.mail.yahoo.com> Message-ID: <26580.193.195.164.58.1128499857.squirrel@www.easilymail.co.uk> > associative array uses a word, not a number for the > index. > In JavaScript, you can assign named properties to objects without any fuss. Therefore, you can just use something like: var hashmap = new Object(); hashmap['Gorillas'] = new Object(); hashmap['Gorillas']['alpha'] = 'Frank'; hashmap['Gorillas']['juvenile'] = 'Gus'; hashmap['Chimpanzees'] = new Object(); hashmap['Chimpanzees']['alpha'] = 'Charly'; hashmap['Chimpanzees']['juvenile'] = 'Isaac'; and so on. You could also use: hashmap.Chimpanzees = new Object(); hashmap.Chimpanzees.alpha = 'Charly'; but if the strings are potentially going to include reserved words or weird characters, you're better off using the bracketed string method. This means you can easily access properties using variables: function retrieveApe(species, status) { return hashmap[species][status]; } alert(retrieveApe("Chimpanzees", "juvenile")); will give you 'Isaac'. If you're not cataloguing an assortment of apes, feel free to change the names :-) HTH, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ From borchers at tridem.de Wed Oct 5 06:07:13 2005 From: borchers at tridem.de (Michael Borchers) Date: Wed, 5 Oct 2005 13:07:13 +0200 Subject: [Javascript] DOM book Message-ID: does anydbody know a good javascript book dealing with the latest DOM features? From javascript at mattbarton.org Wed Oct 5 06:18:08 2005 From: javascript at mattbarton.org (Matt Barton) Date: Wed, 05 Oct 2005 12:18:08 +0100 Subject: [Javascript] DOM book In-Reply-To: References: Message-ID: <4343B670.3080607@mattbarton.org> I use O'Reilly's "Dynamic HTML: The Definitive Reference" by Danny Goodman. I find it an invaluable resource. I have the second edition, which is a couple of years old by now, so it might not be what you want when you mention "the latest" DOM features, but I find it excellent on the whole. http://www.amazon.co.uk/exec/obidos/ASIN/0596003161/qid=1128511041/sr=8-1/ref=sr_8_xs_ap_i1_xgl/026-7978538-9855621 Matt Michael Borchers wrote: > does anydbody know a good javascript book dealing with > the latest DOM features? > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > -- > This email has been verified as Virus free > Virus Protection and more available at http://www.plus.net > From massimo at amila.ch Wed Oct 5 06:31:20 2005 From: massimo at amila.ch (Massimo Foti) Date: Wed, 5 Oct 2005 13:31:20 +0200 Subject: [Javascript] DOM book References: Message-ID: <003501c5c9a0$4f8ce030$2301a8c0@Massimo2000> > does anydbody know a good javascript book dealing with > the latest DOM features? This book is pretty good: http://www.amazon.com/exec/obidos/ASIN/0764579088/ It deals with JavaScript and the DOM following modern techniques. I think it could be worth a look (see my review on Amazon) ---------------------------- Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ---------------------------- From nick at nickfitz.co.uk Wed Oct 5 06:40:03 2005 From: nick at nickfitz.co.uk (Nick Fitzsimons) Date: Wed, 5 Oct 2005 12:40:03 +0100 (BST) Subject: [Javascript] DOM book In-Reply-To: References: Message-ID: <14994.193.195.164.58.1128512403.squirrel@www.easilymail.co.uk> > does anydbody know a good javascript book dealing with > the latest DOM features? You should have a look at Stuart Langridge's DHTML Utopia: Despite the DHTML in the title (insisted on by the publishers, apparently), the blurb on the site explains: " DHTML Utopia: Modern Web Design Using JavaScript & DOM doesn?t cover old-style, browser-specific DHTML. Modern DHTML, as presented in this book, utilizes Web standards, separates the code from the markup, and degrades gracefully. "So your code will enhance sites? interactivity and usability in browsers that can handle it, but won?t break the functionality on those that can?t. You can use DHTML on any Website, without having to worry about causing problems for even a small percent of your visitors. " Stuart is a founder member of the Web Standard's Project's DOM Scripting Task Force , and knows what he's talking about. (Openness and honesty: I'm also a founder member of WaSP DOM Scripting TF... but that doesn't bias me in his favour :-) HTH, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ From alaneaston666 at hotmail.com Wed Oct 5 06:53:47 2005 From: alaneaston666 at hotmail.com (Alan Easton) Date: Wed, 05 Oct 2005 12:53:47 +0100 Subject: [Javascript] Refresh frame to a specific Message-ID: An HTML attachment was scrubbed... URL: From alaneaston666 at hotmail.com Wed Oct 5 07:20:15 2005 From: alaneaston666 at hotmail.com (Alan Easton) Date: Wed, 05 Oct 2005 13:20:15 +0100 Subject: [Javascript] Move to a name in frame Message-ID: An HTML attachment was scrubbed... URL: From nick at nickfitz.co.uk Wed Oct 5 07:52:45 2005 From: nick at nickfitz.co.uk (Nick Fitzsimons) Date: Wed, 5 Oct 2005 13:52:45 +0100 (BST) Subject: [Javascript] Move to a name in frame In-Reply-To: References: Message-ID: <22957.193.195.164.58.1128516765.squirrel@www.easilymail.co.uk> >I have been using: > >self.parent.middle.location = self.parent.middle.location; > >to refresh the page which works fine. I already know the new ID of the >record, so I >now need to go to that after the frame has refreshed. Try: var recordID = "fred"; self.parent.middle.location.reload(); self.parent.middle.location.hash = recordID; using ASP to put the record ID in wherever it's appropriate - you could just use self.parent.middle.location.reload(); self.parent.middle.location.hash = "<%=recordID%>"; if you wanted. HTH, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ From Micha.Schopman at modernmedia.nl Wed Oct 5 09:14:14 2005 From: Micha.Schopman at modernmedia.nl (Micha Schopman) Date: Wed, 5 Oct 2005 16:14:14 +0200 Subject: [Javascript] DOM book Message-ID: <669F60D6099E75468FA74F2C4FBBA73F6DE164@mmaft01.modernmedia.local> I 2nd that ... and not because we have reviewed it. It just IS a very good book. Micha Schopman Project Manager Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 ------------------------------------------------------------------------ ------------------------------------------------------------------------ ----- Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl ------------------------------------------------------------------------ ------------------------------------------------------------------------ ----- -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of Massimo Foti Sent: woensdag 5 oktober 2005 12:31 To: [JavaScript List] Subject: Re: [Javascript] DOM book > does anydbody know a good javascript book dealing with > the latest DOM features? This book is pretty good: http://www.amazon.com/exec/obidos/ASIN/0764579088/ It deals with JavaScript and the DOM following modern techniques. I think it could be worth a look (see my review on Amazon) ---------------------------- Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ---------------------------- _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From apwebdesign at yahoo.com Wed Oct 5 09:57:22 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Wed, 5 Oct 2005 07:57:22 -0700 (PDT) Subject: [Javascript] javascript and id's In-Reply-To: <2005104213437.669757@IBM-7079CBA4897> Message-ID: <20051005145722.84639.qmail@web51105.mail.yahoo.com> --- David Hucklesby wrote: > Anthony Ettinger wrote: > > > Or should I give each form element it's own id... > > One other consideration that makes getElementById > the easy way to access > form elements is the use of the LABEL element. > Adding a unique id to each > form element and targetting it with a FOR attribute > in the LABEL makes the > form elements easier to access - you can click the > LABEL's text to give the > INPUT focus and to set a radio button or checkbox. You're suggesting this I assume? Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From paulsturgess at gmail.com Wed Oct 5 17:58:40 2005 From: paulsturgess at gmail.com (Paul Sturgess) Date: Wed, 5 Oct 2005 23:58:40 +0100 Subject: [Javascript] DOM book In-Reply-To: <669F60D6099E75468FA74F2C4FBBA73F6DE164@mmaft01.modernmedia.local> References: <669F60D6099E75468FA74F2C4FBBA73F6DE164@mmaft01.modernmedia.local> Message-ID: <41ddbab50510051558q63e8fc8cw@mail.gmail.com> definitely check this book out by jeremy keith: http://www.amazon.co.uk/exec/obidos/ASIN/1590595335/qid%3D1128552974/202-2282632-7616655 brand new out, all about unobtrusive javascript/dom scripting that keeps your mark-up clean. highly recommend it. > > does anydbody know a good javascript book dealing with > > the latest DOM features? From trojani2000 at hotmail.com Thu Oct 6 20:20:11 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Fri, 07 Oct 2005 03:20:11 +0200 Subject: [Javascript] DOM book In-Reply-To: <669F60D6099E75468FA74F2C4FBBA73F6DE164@mmaft01.modernmedia.local> Message-ID: An HTML attachment was scrubbed... URL: From peter at brunone.com Thu Oct 6 21:14:50 2005 From: peter at brunone.com (Peter Brunone) Date: Thu, 6 Oct 2005 21:14:50 -0500 Subject: [Javascript] DOM book In-Reply-To: Message-ID: <000c01c5cae4$e63e3d40$0500a8c0@monkeyhouse> What's with the link? All I saw was a site that would make me instantly close my browser for fear of spyware (if I hadn't been using Firefox today). -----Original Message----- From: javascript-bounces at LaTech.edu On Behalf Of Troy III Ajnej Well, here is something that might interest you: John Wiley & Sons - JavaScript Bible, 5th Ed(2004) PDF This new edition streamlines previous 4th and Gold editions into one handy volume that covers it all! All code examples have been updated to the latest XHTML standards and re-integrated into the printed portions of the book -- no more flipping back and forth between printed and electronic versions to read all information from a chapter. If you are new to JavaScript or use the book in your classroom, the updated tutorial teaches you the latest Worldwide Web Consortium(W3C DOM) techniques, preparing you to write scripts that work on today's and tomorrow's browsers. You get the same clear, example-filled explanations of all core JavaScript and features of modern browsers. Try this link: http://www.megaupload.com/?d=04IESU9U TROY III -------------- next part -------------- An HTML attachment was scrubbed... URL: From skyscanner at eircom.net Fri Oct 7 03:26:34 2005 From: skyscanner at eircom.net (SkyScanner) Date: Fri, 7 Oct 2005 09:26:34 +0100 Subject: [Javascript] DOM book References: <000c01c5cae4$e63e3d40$0500a8c0@monkeyhouse> Message-ID: <01be01c5cb19$ec92ed00$e9882ec2@ic7g> MessageTry this: http://www05.megaupload.com/files/9967fb183ea79d925697c8f7547829f6/John Wiley & Sons - JavaScript Bible, 5th Ed (2004).pdf The above link should be all on one line. Its 24.2MB so a Download Manager would be useful. Its a great resource - thanks for sharing. Tim in Ireland. ----- Original Message ----- From: Peter Brunone To: '[JavaScript List]' Sent: Friday, October 07, 2005 3:14 AM Subject: RE: [Javascript] DOM book What's with the link? All I saw was a site that would make me instantly close my browser for fear of spyware (if I hadn't been using Firefox today). -----Original Message----- From: javascript-bounces at LaTech.edu On Behalf Of Troy III Ajnej Well, here is something that might interest you: John Wiley & Sons - JavaScript Bible, 5th Ed(2004) PDF This new edition streamlines previous 4th and Gold editions into one handy volume that covers it all! All code examples have been updated to the latest XHTML standards and re-integrated into the printed portions of the book -- no more flipping back and forth between printed and electronic versions to read all information from a chapter. If you are new to JavaScript or use the book in your classroom, the updated tutorial teaches you the latest Worldwide Web Consortium(W3C DOM) techniques, preparing you to write scripts that work on today's and tomorrow's browsers. You get the same clear, example-filled explanations of all core JavaScript and features of modern browsers. Try this link: http://www.megaupload.com/?d=04IESU9U TROY III ------------------------------------------------------------------------------ _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From pnjaisan at yahoo.com Fri Oct 7 04:35:39 2005 From: pnjaisan at yahoo.com (Jai Sankar N) Date: Fri, 7 Oct 2005 02:35:39 -0700 (PDT) Subject: [Javascript] Request.querystring type mismatch problem Message-ID: <20051007093539.24673.qmail@web50307.mail.yahoo.com> Hi all I'm passing information from one asp page to another asp page. it is always fine. but i get type mismatch error. actully i'm passing number but it gives error Type mismatch [String: Undefined]. this is my program flow. un_com_det.asp . . . if request.querystring("lkcode")=1 then com=1 eselif request.querystring("lkcode")=2 then com=2 .... ... .. in Imageupload.asp file. i'm checking the querystring values if request.querystring("com")="1" then fld_nm="/Common\Temp\About_" elseif request.querystring("Com")="2" then fld_nm="/Common\Temp\Trust_" elseif request.querystring("Com")="6" then fld_nm="/Common\Temp\Faq_" elseif request.querystring("Com")="7" then fld_nm="/Common\Temp\Tour_" elseif request.querystring("Com")="8" then end if but i'm using session instead of request.querystring it is working fine. if trim(session("com"))="1" then fld_nm="/Common\Temp\About_" elseif session("Com")="2" then fld_nm="/Common\Temp\Trust_" elseif session("Com")="6" then fld_nm="/Common\Temp\Faq_" elseif session("Com")="7" then fld_nm="/Common\Temp\Tour_" elseif session("Com")="8" then ... what's the problem in request.querystring()... thankx. N Jai Sankar India. --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Micha.Schopman at modernmedia.nl Fri Oct 7 06:27:00 2005 From: Micha.Schopman at modernmedia.nl (Micha Schopman) Date: Fri, 7 Oct 2005 13:27:00 +0200 Subject: [Javascript] Request.querystring type mismatch problem Message-ID: <669F60D6099E75468FA74F2C4FBBA73F6DE1E0@mmaft01.modernmedia.local> Watch your code carefully, You are doing an assignment, not a comparison. Micha Schopman Project Manager Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 ------------------------------------------------------------------------ ------------------------------------------------------------------------ ----- Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl ------------------------------------------------------------------------ ------------------------------------------------------------------------ ----- ________________________________ From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of Jai Sankar N Sent: vrijdag 7 oktober 2005 10:36 To: javascript at LaTech.edu Subject: [Javascript] Request.querystring type mismatch problem Hi all I'm passing information from one asp page to another asp page. it is always fine. but i get type mismatch error. actully i'm passing number but it gives error Type mismatch [String: Undefined]. this is my program flow. un_com_det.asp . . . if request.querystring("lkcode")=1 then com=1 eselif request.querystring("lkcode")=2 then com=2 .... ... .. in Imageupload.asp file. i'm checking the querystring values if request.querystring("com")="1" then fld_nm="/Common\Temp\About_" elseif request.querystring("Com")="2" then fld_nm="/Common\Temp\Trust_" elseif request.querystring("Com")="6" then fld_nm="/Common\Temp\Faq_" elseif request.querystring("Com")="7" then fld_nm="/Common\Temp\Tour_" elseif request.querystring("Com")="8" then end if but i'm using session instead of request.querystring it is working fine. if trim(session("com"))="1" then fld_nm="/Common\Temp\About_" elseif session("Com")="2" then fld_nm="/Common\Temp\Trust_" elseif session("Com")="6" then fld_nm="/Common\Temp\Faq_" elseif session("Com")="7" then fld_nm="/Common\Temp\Tour_" elseif session("Com")="8" then ... what's the problem in request.querystring()... thankx. N Jai Sankar India. ________________________________ Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -------------- next part -------------- An HTML attachment was scrubbed... URL: From leeu at cfl.rr.com Fri Oct 7 07:54:54 2005 From: leeu at cfl.rr.com (Lee Underwood) Date: Fri, 07 Oct 2005 08:54:54 -0400 Subject: [Javascript] DOM book In-Reply-To: <01be01c5cb19$ec92ed00$e9882ec2@ic7g> References: <000c01c5cae4$e63e3d40$0500a8c0@monkeyhouse> <01be01c5cb19$ec92ed00$e9882ec2@ic7g> Message-ID: <6.2.1.2.0.20051007085155.03292d70@pop-server.cfl.rr.com> I'm a little concerned here Tim. The JavaScript Bible, 5th Edition (by Danny Goodman) is copyrighted. The link that you gave is to a PDF version of the book (with several extra chapters) that is on the CD that comes with the book when it is purchased. It's kind of like making a copy of the book and giving it away, isn't it? Lee On 10/7/05 04:26 AM, SkyScanner wrote: ........................................................ >Try this: > >http://www05.megaupload.com/files/9967fb183ea79d925697c8f7547829f6/John >Wiley & Sons - JavaScript Bible, 5th Ed (2004).pdf > >The above link should be all on one line. Its 24.2MB so a Download Manager >would be useful. > >Its a great resource - thanks for sharing. > >Tim in Ireland. >----- Original Message ----- >From: Peter Brunone >To: '[JavaScript List]' >Sent: Friday, October 07, 2005 3:14 AM >Subject: RE: [Javascript] DOM book > > ........................................................ -------------- next part -------------- An HTML attachment was scrubbed... URL: From wonsil at 4m-ent.com Fri Oct 7 08:11:52 2005 From: wonsil at 4m-ent.com (Mark Wonsil) Date: Fri, 7 Oct 2005 09:11:52 -0400 Subject: [Javascript] DOM book In-Reply-To: <6.2.1.2.0.20051007085155.03292d70@pop-server.cfl.rr.com> Message-ID: <001801c5cb40$afa7ea90$7b01a8c0@WONSILT42> > The JavaScript Bible, 5th Edition (by Danny Goodman) is copyrighted. The > link that you gave is to a PDF version of the book (with several extra > chapters) that is on the CD that comes with the book when it is purchased. > It's kind of like making a copy of the book and giving it away, isn't it? Lee is correct. At the end of the book/pdf is the copyright page and it specifically allows the owner to backup the file but not to make copies for others. I have deleted the file from my system. Thanks Lee. Mark W. From flavio at economisa.com.br Fri Oct 7 08:19:30 2005 From: flavio at economisa.com.br (Flavio Gomes) Date: Fri, 07 Oct 2005 10:19:30 -0300 Subject: [Javascript] Request.querystring type mismatch problem In-Reply-To: <669F60D6099E75468FA74F2C4FBBA73F6DE1E0@mmaft01.modernmedia.local> References: <669F60D6099E75468FA74F2C4FBBA73F6DE1E0@mmaft01.modernmedia.local> Message-ID: <434675E2.2000006@economisa.com.br> Let me be the boring guy this time: I believe Micha has found the problem, but next time send it to an .ASP list, ok? -- Flavio Gomes flavio at economisa.com.br Micha Schopman wrote: > Watch your code carefully, > > > > You are doing an assignment, not a comparison. > > > > Micha Schopman > Project Manager > > Modern Media, Databankweg 12 M, 3821 AL Amersfoort > Tel 033-4535377, Fax 033-4535388 > KvK Amersfoort 39081679, Rabo 39.48.05.380 > > ----------------------------------------------------------------------------------------------------------------------------------------------------- > > Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren > de interactie met uw doelgroep. > Wilt u meer omzet, lagere kosten of een beter service niveau? Voor > meer informatie zie www.modernmedia.nl > ----------------------------------------------------------------------------------------------------------------------------------------------------- > > ------------------------------------------------------------------------ > > *From:* javascript-bounces at LaTech.edu > [mailto:javascript-bounces at LaTech.edu] *On Behalf Of *Jai Sankar N > *Sent:* vrijdag 7 oktober 2005 10:36 > *To:* javascript at LaTech.edu > *Subject:* [Javascript] Request.querystring type mismatch problem > > > > Hi all > > > > I'm passing information from one asp page to another asp page. it is > always fine. but i get type mismatch error. actully i'm passing number > but it gives error Type mismatch [String: Undefined]. > > > > this is my program flow. > > > > un_com_det.asp > > . > > . > > . > > if request.querystring("lkcode")=1 then > > com=1 > > eselif request.querystring("lkcode")=2 then > > com=2 > > .... > > ... > > .. > > > > > > in Imageupload.asp file. > > > > i'm checking the querystring values > > if request.querystring("com")="1" then > fld_nm="/Common\Temp\About_" > elseif request.querystring("Com")="2" then > fld_nm="/Common\Temp\Trust_" > elseif request.querystring("Com")="6" then > fld_nm="/Common\Temp\Faq_" > elseif request.querystring("Com")="7" then > fld_nm="/Common\Temp\Tour_" > elseif request.querystring("Com")="8" then > end if > > > > > > but i'm using session instead of request.querystring it is working fine. > > > > if trim(session("com"))="1" then > fld_nm="/Common\Temp\About_" > elseif session("Com")="2" then > fld_nm="/Common\Temp\Trust_" > elseif session("Com")="6" then > fld_nm="/Common\Temp\Faq_" > elseif session("Com")="7" then > fld_nm="/Common\Temp\Tour_" > elseif session("Com")="8" then > ... > > > > what's the problem in request.querystring()... > > > > thankx. > > > > N Jai Sankar > > India. > > > > ------------------------------------------------------------------------ > > Yahoo! for Good > Click here to donate to the > Hurricane Katrina relief effort. > >------------------------------------------------------------------------ > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > From skyscanner at eircom.net Fri Oct 7 09:09:19 2005 From: skyscanner at eircom.net (SkyScanner) Date: Fri, 7 Oct 2005 15:09:19 +0100 Subject: [Javascript] DOM book References: <000c01c5cae4$e63e3d40$0500a8c0@monkeyhouse><01be01c5cb19$ec92ed00$e9882ec2@ic7g> <6.2.1.2.0.20051007085155.03292d70@pop-server.cfl.rr.com> Message-ID: <008d01c5cb48$b7b7ff60$b6882ec2@ic7g> Nothing to do with me - its not my upload. I was purely passing on the URL that appeared at the upload site when all the advertising stuff had passed by, for someone who had problems with the site. Don't have the original message any more, so can't remember who it was, or who gave the first link. Perhaps they'd like to comment where this upload came from, and whether it is legal... Tim in Ireland. ----- Original Message ----- From: Lee Underwood To: [JavaScript List] Sent: Friday, October 07, 2005 1:54 PM Subject: Re: [Javascript] DOM book I'm a little concerned here Tim. The JavaScript Bible, 5th Edition (by Danny Goodman) is copyrighted. The link that you gave is to a PDF version of the book (with several extra chapters) that is on the CD that comes with the book when it is purchased. It's kind of like making a copy of the book and giving it away, isn't it? Lee On 10/7/05 04:26 AM, SkyScanner wrote: ........................................................ Try this: http://www05.megaupload.com/files/9967fb183ea79d925697c8f7547829f6/John Wiley & Sons - JavaScript Bible, 5th Ed (2004).pdf The above link should be all on one line. Its 24.2MB so a Download Manager would be useful. Its a great resource - thanks for sharing. Tim in Ireland. ----- Original Message ----- From: Peter Brunone To: '[JavaScript List]' Sent: Friday, October 07, 2005 3:14 AM Subject: RE: [Javascript] DOM book ........................................................ ------------------------------------------------------------------------------ _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From merchant at LATECH.EDU Fri Oct 7 11:25:17 2005 From: merchant at LATECH.EDU (David Merchant) Date: Fri, 07 Oct 2005 11:25:17 -0500 Subject: ADMIN (Re: [Javascript] Request.querystring type mismatch problem) In-Reply-To: <434675E2.2000006@economisa.com.br> References: <669F60D6099E75468FA74F2C4FBBA73F6DE1E0@mmaft01.modernmedia.local> <669F60D6099E75468FA74F2C4FBBA73F6DE1E0@mmaft01.modernmedia.local> Message-ID: <5.1.0.14.2.20051007112120.03a4bf88@mail.latech.edu> At 10:19 AM 10/7/2005 -0300, you wrote: >Let me be the boring guy this time: > >I believe Micha has found the problem, but next time send it to an .ASP >list, ok? Aye. This list has close to a thousand members, so even more important to keep the list on topic. It is understandably tempting to ask OT questions here, as there are a lot of very helpful, patient, knowledgeable folk on the list, but we do have to stay on topic. Thanks, David Merchant List Admin Director of Integrated Technology CATALyST Louisiana Tech University catalyst.latech.edu From trojani2000 at hotmail.com Sat Oct 8 11:03:55 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sat, 08 Oct 2005 18:03:55 +0200 Subject: [Javascript] DOM book In-Reply-To: <6.2.1.2.0.20051007085155.03292d70@pop-server.cfl.rr.com> Message-ID: An HTML attachment was scrubbed... URL: From apwebdesign at yahoo.com Sat Oct 8 11:57:32 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Sat, 8 Oct 2005 09:57:32 -0700 (PDT) Subject: [Javascript] DOM book In-Reply-To: Message-ID: <20051008165732.73097.qmail@web51115.mail.yahoo.com> Warez is not a good idea, neither are ebookz. For me, open source cured the warez problem, copyleft and creative commons is curing the ebookz "problem". If you don't want to buy it, don't read it, only read copyleft/creative commons material. If you do use the copyrighted stuff. The author(s) have a fundamental right to collect on it. The rest is ethics as to whether or not you pay for it. Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ From harvey.ramer at designdelineations.com Sat Oct 8 12:10:57 2005 From: harvey.ramer at designdelineations.com (Harvey A. Ramer) Date: Sat, 8 Oct 2005 13:10:57 -0400 Subject: [Javascript] DOM book References: <20051008165732.73097.qmail@web51115.mail.yahoo.com> Message-ID: <005801c5cc2b$436241a0$2e01a8c0@hewlettsqusv2q> >From my limited experience with DOM books, this one seems very good: http://www.sitepoint.com/books/dhtml1/ - Harvey Ramer http://www.designdelineations.com ----- Original Message ----- From: "Anthony Ettinger" To: "[JavaScript List]" Sent: Saturday, October 08, 2005 12:57 PM Subject: Re: [Javascript] DOM book Warez is not a good idea, neither are ebookz. For me, open source cured the warez problem, copyleft and creative commons is curing the ebookz "problem". If you don't want to buy it, don't read it, only read copyleft/creative commons material. If you do use the copyrighted stuff. The author(s) have a fundamental right to collect on it. The rest is ethics as to whether or not you pay for it. Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From leeu at cfl.rr.com Sun Oct 9 00:46:13 2005 From: leeu at cfl.rr.com (Lee Underwood) Date: Sun, 09 Oct 2005 01:46:13 -0400 Subject: [Javascript] DOM book In-Reply-To: References: <6.2.1.2.0.20051007085155.03292d70@pop-server.cfl.rr.com> Message-ID: <6.2.1.2.0.20051009013333.039130e0@pop-server.cfl.rr.com> Troy, The link was for a download of the entire book, including several bonus chapters, which is illegal, no matter what the reasons. The way to check out the book is to go look at it in a book store. To share the download is illegal, and it puts an undue legal burden on the owners of this list. It's just like file sharing with music. It doesn't matter that the intention was for someone to review the book. It's illegal, plain and simple. To quote from the End-User License Agreement, "You may make only one copy of the Software for backup or archival purposes.... You may not copy or reproduce the Software through a LAN or other network system or through any computer subscriber system or bulletin-board system." I don't think any of us wants to get involved in copyright violations. Lee On 10/8/05 12:03 PM, Troy III Ajnej wrote: ........................................................ >From: Lee Underwood leeu at cfl.rr.com > >I'm a little concerned here Tim. > >The JavaScript Bible, 5th Edition (by Danny Goodman) is copyrighted. The >link that you gave is to a PDF version of the book (with several extra >chapters) that is on the CD that comes with the book when it is purchased. >It's kind of like making a copy of the book and giving it away, isn't it? > >I guess I'm getting a litle concerned too Lee :), -this book proposal was >a good one, but how do you know if it is a good one if you haven't seen >it? The link was provided for the potential costumer(s) to rewiew before >purchasing the hardcopy that ships with the extras. So if you like it, you >will buy it. But if not, you may delete it on your own. -After all, the >majority will accept this post as advertising this book?! > > SkyScanner wrote: >........................................................ >Try this: > >http://www05.megaupload.com/files/9967fb183ea79d925697c8f7547829f6/John >Wiley & Sons - JavaScript Bible, 5th Ed (2004).pdf > >The above link should be all on one line. Its 24.2MB so a Download Manager >would be useful. > >Its a great resource - thanks for sharing. > >Tim in Ireland. > >True, it doesn't accept DM's but its 3x faster than other srvrs that do >accept multipart downloads. (But you can allways paste the link to your DM) > >I hope you all accept this post as a book proposal and the link provided >as an oportunity to evaluate before you buy. >Troy III > > >---------- >FREE pop-up blocking with the new MSN Toolbar >MSN Toolbar Get it now! >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript ........................................................ -------------- next part -------------- An HTML attachment was scrubbed... URL: From trojani2000 at hotmail.com Sun Oct 9 09:25:26 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sun, 09 Oct 2005 16:25:26 +0200 Subject: [Javascript] DOM book In-Reply-To: <6.2.1.2.0.20051009013333.039130e0@pop-server.cfl.rr.com> Message-ID: An HTML attachment was scrubbed... URL: From leeu at cfl.rr.com Sun Oct 9 09:38:15 2005 From: leeu at cfl.rr.com (Lee Underwood) Date: Sun, 09 Oct 2005 10:38:15 -0400 Subject: [Javascript] DOM book In-Reply-To: References: <6.2.1.2.0.20051009013333.039130e0@pop-server.cfl.rr.com> Message-ID: <6.2.1.2.0.20051009103606.03318dc0@pop-server.cfl.rr.com> Well, Troy, you don't have to be smart about it. If you want to break the law and put the list owner in legal jeopardy, go for it. I guess that's you're right. Boy, this sure got out of hand! Lee On 10/9/05 10:25 AM, Troy III Ajnej wrote: ........................................................ >I believe you are right, no matter what I say. -Have you deleted your copy >of this book? -That's my hero. Somebody left this door open. I saw it >open, I told someone, someone broke into... Someone entered at his own risk. > > >From: Lee Underwood leeu at cfl.rr.com > >I don't think any of us wants to get involved in copyright violations. > >Than, Please Don't. > >Troy III > > >---------- >Express yourself instantly with MSN Messenger! >MSN Messenger Download today it's >FREE! >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript ........................................................ -------------- next part -------------- An HTML attachment was scrubbed... URL: From trojani2000 at hotmail.com Sun Oct 9 09:54:14 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sun, 09 Oct 2005 16:54:14 +0200 Subject: [Javascript] DOM book Message-ID: An HTML attachment was scrubbed... URL: From merchant at LATECH.EDU Sun Oct 9 15:07:04 2005 From: merchant at LATECH.EDU (David Merchant) Date: Sun, 09 Oct 2005 15:07:04 -0500 Subject: ADMIN: All Read (Re: [Javascript] DOM book) In-Reply-To: <6.2.1.2.0.20051009013333.039130e0@pop-server.cfl.rr.com> References: <6.2.1.2.0.20051007085155.03292d70@pop-server.cfl.rr.com> Message-ID: <5.1.0.14.2.20051009143713.027aa110@mail.latech.edu> My apologies, I got side-tracked for a couple of days and didn't catch this thread soon enough. This thread needs to end. Now. When it comes to possible violations of ethics and/or laws, we all should, and the list in particular, err on the side of caution. Some may feel they have a strong argument as to why the situation isn't plain and simple, or etc; however this is not the place to debate such topics, there are other venues more appropriate (it is OT here). As for this list, it is plain and simple: we need to advocate strict adherence to the laws as they now stand. If you think they need to be changed, contact your legislator. For those who didn't realize that the copyright for the material does not allow for sharing copies over the network, you've learned an important lesson, and please remove the download from your computer. Companies are getting aggressive about going after who the deem to be copyright violators. Speaking of deleting posts, I will contact the System Admin here at Tech and have him at least delete the posts with the download link in it. Again, this thread is over. If this thread continues I'll have to place those posters on moderation. Thank you for your understanding and cooperation. Regards, David Merchant List Admin From rholcomb at holc.biz Wed Oct 12 12:56:46 2005 From: rholcomb at holc.biz (Rick Holcomb) Date: Wed, 12 Oct 2005 13:56:46 -0400 Subject: [Javascript] Including one javascript file within another In-Reply-To: <5.1.0.14.2.20051009143713.027aa110@mail.latech.edu> Message-ID: <028801c5cf56$50593d90$c800a8c0@HOLC.BIZ> I have a script file that I want to use as a variable script (will be changed by the server). I want to include that file in another javascript file. The included file really only contains the definition of a variable. How can I do this. Contents of mainfile.js:
View Control:

From BConner at huntsvilletx.gov Wed Oct 12 18:00:20 2005 From: BConner at huntsvilletx.gov (Barry Conner) Date: Wed, 12 Oct 2005 18:00:20 -0500 Subject: [Javascript] RE: Font size control bar Message-ID: <9B3006CF6C51E4498BC82AEDC60ABED347E721@SVRMAIL.cityofhuntsville.com> P.S. For Clarification: The popup window is a frames window. The control bar is displayed in one of the frames just below the header frame. Barry ________________________________ From: Barry Conner Sent: Wed 2005-10-12 5:59 PM To: Javascript at LaTech.edu Subject: Font size control bar I've created the following little view control bar which I designed to display in a frames navigation window for my HTML-based application interface. The frame is generated as a popup to exclude all of the undesirable toolbar & status bar overhead. The actual font manipulation here is handled via a set of JS & CSS files (as posted at http://www.alistapart.com/articles/relafont ) HERES THE QUESTION: This is intended as a mere view control bar, so how might I script the fontsize controls to act on the main frame rather than on itself??? Thanks for any thoughts you might have on a solution! Barry
View Control:

From elmuchacho at gmail.com Thu Oct 13 04:56:54 2005 From: elmuchacho at gmail.com (Laurent Muchacho) Date: Thu, 13 Oct 2005 10:56:54 +0100 Subject: [Javascript] RE: Font size control bar References: <9B3006CF6C51E4498BC82AEDC60ABED347E721@SVRMAIL.cityofhuntsville.com> Message-ID: <002d01c5cfdc$72734980$1400a8c0@persistenzl1> Hi Barry, If I understand right you must do something like this. You should includes the js file called "styleswitcher.js" in the source of the file you will like to change the font and not in the framed popup like that you don't have to do any change to the javascript function inside this file. Now in your frames popup window (this are 2 word defining evil) you must call the function first by referencing the main window and the opener who I guess will be something like this top.window.opener.fontsizedown() I have not tested this but it should work That way you actually calling the function from the page you will like the font to be changed. ps: if you trying to improve accessibility with this feature, I'm sorry to tell you that you are shooting yourself in the foot because 1) the popup aproach is really unfriendly and not accessible 2) frameset are not recommended when building almost anything and specially not when building accessibility functionnality. 3) I see a lot of this kind of functionnality implemented in site but the best so far was in this site http://www.dover.gov.uk/textsize.asp they actually trying to educate the user by discovering the functionnality in there browser. Regards Laurent ----- Original Message ----- From: "Barry Conner" To: Sent: Thursday, October 13, 2005 12:00 AM Subject: [Javascript] RE: Font size control bar P.S. For Clarification: The popup window is a frames window. The control bar is displayed in one of the frames just below the header frame. Barry ________________________________ From: Barry Conner Sent: Wed 2005-10-12 5:59 PM To: Javascript at LaTech.edu Subject: Font size control bar I've created the following little view control bar which I designed to display in a frames navigation window for my HTML-based application interface. The frame is generated as a popup to exclude all of the undesirable toolbar & status bar overhead. The actual font manipulation here is handled via a set of JS & CSS files (as posted at http://www.alistapart.com/articles/relafont ) HERES THE QUESTION: This is intended as a mere view control bar, so how might I script the fontsize controls to act on the main frame rather than on itself??? Thanks for any thoughts you might have on a solution! Barry
View Control:

_______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From flavio at economisa.com.br Thu Oct 13 07:50:02 2005 From: flavio at economisa.com.br (Flavio Gomes) Date: Thu, 13 Oct 2005 09:50:02 -0300 Subject: [Javascript] Font size control bar In-Reply-To: <9B3006CF6C51E4498BC82AEDC60ABED347E720@SVRMAIL.cityofhuntsville.com> References: <9B3006CF6C51E4498BC82AEDC60ABED347E720@SVRMAIL.cityofhuntsville.com> Message-ID: <434E57FA.2000807@economisa.com.br> You also copied the styleswitcher.js and all the .css files, right? Original: ================================================================================ function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = *document*.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } } ================================================================================= Then you'll have to change all references from document to parent.document. PS.: Watch out for popup-blockers. Hope to Help, -- Flavio Gomes flavio at economisa.com.br Barry Conner wrote: >I've created the following little view control bar which I designed to display in a frames navigation window for my HTML-based application interface. The frame is generated as a popup to exclude all of the undesirable toolbar & status bar overhead. > >The actual font manipulation here is handled via a set of JS & CSS files (as posted at http://www.alistapart.com/articles/relafont ) > >HERES THE QUESTION: This is intended as a mere view control bar, so how might I script the fontsize controls to act on the main frame rather than on itself??? > >Thanks for any thoughts you might have on a solution! > >Barry > > >
> > > > > > > > > >
> > View Control: > > > > > > > > > > > >
>
>
> > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at economisa.com.br Thu Oct 13 07:52:21 2005 From: flavio at economisa.com.br (Flavio Gomes) Date: Thu, 13 Oct 2005 09:52:21 -0300 Subject: [Javascript] Including one javascript file within another In-Reply-To: <3CFE4795-3FA5-4BA4-8907-EC038F97EBFD@junado.com> References: <028801c5cf56$50593d90$c800a8c0@HOLC.BIZ> <3CFE4795-3FA5-4BA4-8907-EC038F97EBFD@junado.com> Message-ID: <434E5885.6040401@economisa.com.br> Or create an invisible iframe and read it's contents or try XMLHTTP functions. But I'd go for the server side include though. -- Flavio Gomes flavio at economisa.com.br Julien Nadeau wrote: > There's 2 ways to do it. > > The first one, which is probably the best one since you seem to have > server scripting, is to use an "include" statement in the scripting > language available to you (php or asp). > > The other way would be to split your files in two, and use three > ... ... ... that function called in body onLoad event .. .. . . this function is working but it will do in loop. advance thanks for yours kind reply N.Jai Sankar, India --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From apwebdesign at yahoo.com Sat Oct 15 11:39:25 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Sat, 15 Oct 2005 09:39:25 -0700 (PDT) Subject: [Javascript] Page refresh only once - reg In-Reply-To: <20051015123906.89765.qmail@web50302.mail.yahoo.com> Message-ID: <20051015163925.6242.qmail@web51104.mail.yahoo.com> > my code is... > > > that function called in body onLoad event > > > > this function is working but it will do in loop. window.location.pagereload(); <-- is this what you mean? If so, you're calling it recursively. All you need is to put this at the top of your js file: window.onload = init(); function init() { //initialize form } Anthony Ettinger ph: (408) 656-2473 blog: http://www.chovy.com From pnjaisan at yahoo.com Mon Oct 17 02:52:13 2005 From: pnjaisan at yahoo.com (Jai Sankar N) Date: Mon, 17 Oct 2005 00:52:13 -0700 (PDT) Subject: [Javascript] Re:Refresh the page only once-reg Message-ID: <20051017075213.93320.qmail@web50313.mail.yahoo.com> Hi Anthony Ettinger, i'm put the my function in top of the script and it's called in only one location but it is recursively running... Jai Sankar N --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Micha.Schopman at modernmedia.nl Mon Oct 17 04:11:12 2005 From: Micha.Schopman at modernmedia.nl (Micha Schopman) Date: Mon, 17 Oct 2005 11:11:12 +0200 Subject: [Javascript] Re:Refresh the page only once-reg Message-ID: <669F60D6099E75468FA74F2C4FBBA73F6DE354@mmaft01.modernmedia.local> Because the function is invoked on each page reload. You could try setting a cookie, and only reload if the cookie has not been set yet. Or you can do a document.replace provided url parameters to notify the script not to reload anymore, etc. Bottomline, the script needs to know if the current page is the result of a reload. Micha Schopman Project Manager Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 ------------------------------------------------------------------------ ------------------------------------------------------------------------ ----- Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl ------------------------------------------------------------------------ ------------------------------------------------------------------------ ----- ________________________________ From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of Jai Sankar N Sent: maandag 17 oktober 2005 8:52 To: javascript at LaTech.edu Subject: [Javascript] Re:Refresh the page only once-reg Hi Anthony Ettinger, i'm put the my function in top of the script and it's called in only one location but it is recursively running... Jai Sankar N ________________________________ Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at economisa.com.br Mon Oct 17 07:29:25 2005 From: flavio at economisa.com.br (Flavio Gomes) Date: Mon, 17 Oct 2005 09:29:25 -0300 Subject: [Javascript] Page refresh only once - reg In-Reply-To: <20051015163925.6242.qmail@web51104.mail.yahoo.com> References: <20051015163925.6242.qmail@web51104.mail.yahoo.com> Message-ID: <43539925.60802@economisa.com.br> No, Anthony, he is refreshing the page on the *onload* event. Yes, that's a loop.. Instead of using *reload()* couldnt you try to use *window.location.href=window.location.href+ '?reloaded=yes'* Then you check the queryString for the *reloaded* var before *reload()'ing.* -- Flavio Gomes flavio at economisa.com.br Anthony Ettinger wrote: >>my code is... >> >> >> >> > > > >>that function called in body onLoad event >> >> >> >>this function is working but it will do in loop. >> >> > >window.location.pagereload(); <-- is this what you >mean? > > >If so, you're calling it recursively. > >All you need is to put this at the top of your js >file: > >window.onload = init(); > >function init() >{ > //initialize form >} > > >Anthony Ettinger >ph: (408) 656-2473 >blog: http://www.chovy.com >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trojani2000 at hotmail.com Mon Oct 17 10:42:15 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Mon, 17 Oct 2005 17:42:15 +0200 Subject: [Javascript] Re:Refresh the page only once-reg In-Reply-To: <20051017075213.93320.qmail@web50313.mail.yahoo.com> Message-ID: An HTML attachment was scrubbed... URL: From stevec at topdogstrategy.com Mon Oct 17 21:40:35 2005 From: stevec at topdogstrategy.com (Steve Clason) Date: Mon, 17 Oct 2005 20:40:35 -0600 Subject: [Javascript] Firefox and setAttribute Message-ID: <435460A3.9090802@topdogstrategy.com> Hi, Can anyone point me to a good source that explains Firefox's problem handling of setAttribute? I keep running into problems and would like to take the time to understand what's going on. Right now, I have this: var slide = document.createElement("img"); slide.setAttribute("src","images/image.gif"); slide.setAttribute("alt","this is alt text"); slide.setAttribute("id","slide"); document.appendChild(slide); The image element is placed and has an id and alt text attributes, but no src. If I try: slide.src = "images/image.gif"; I get the same thing--no image, but id and alt text. Both techniques work in IE and Opera so I'm pretty sure this is a FF peculiarity. I'll take all the help I can get on this. Thanks in advance, -- Steve Clason From schalk at volume4.com Tue Oct 18 05:12:13 2005 From: schalk at volume4.com (Schalk Neethling) Date: Tue, 18 Oct 2005 12:12:13 +0200 Subject: [Javascript] Firefox and setAttribute In-Reply-To: <435460A3.9090802@topdogstrategy.com> References: <435460A3.9090802@topdogstrategy.com> Message-ID: <4354CA7D.4020005@volume4.com> Steve Not sure if it will work, you might have even tried it but, have you tried a double forward slash? Steve Clason wrote: > Hi, > > Can anyone point me to a good source that explains Firefox's problem > handling of setAttribute? I keep running into problems and would like > to take the time to understand what's going on. > > Right now, I have this: > > > var slide = document.createElement("img"); > slide.setAttribute("src","images/image.gif"); > slide.setAttribute("alt","this is alt text"); > slide.setAttribute("id","slide"); > document.appendChild(slide); > > > The image element is placed and has an id and alt text attributes, but > no src. > > If I try: > > > slide.src = "images/image.gif"; > > > I get the same thing--no image, but id and alt text. > > Both techniques work in IE and Opera so I'm pretty sure this is a FF > peculiarity. > > I'll take all the help I can get on this. > > Thanks in advance, > -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solution.Developers emotionalize.conceptualize.visualize.realize Landlines Tel: +27125468436 US Tel: (440) 499-5484 Fax: +27125468436 Web email:schalk at volume4.com Global: www.volume4.com Messenger Yahoo!: v_olume4 AOL: v0lume4 MSN: volume4_ at hotmail.com We support OpenSource Get Firefox!- The browser reloaded - http://www.mozilla.org/products/firefox/ The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error, please contact the sender and please delete all traces of this material from all devices. From inbox.js at jlfx.com Tue Oct 18 05:34:16 2005 From: inbox.js at jlfx.com (jleonard) Date: Tue, 18 Oct 2005 06:34:16 -0400 Subject: [Javascript] DOM book In-Reply-To: References: Message-ID: How about being a stand up guy and just shut the door. > Somebody left this door open. I saw it open, I told > someone, someone broke into... Someone entered at his own risk. From ol.grossmann at bluewin.ch Tue Oct 18 07:33:15 2005 From: ol.grossmann at bluewin.ch (OIivier Grossmann) Date: Tue, 18 Oct 2005 14:33:15 +0200 Subject: [Javascript] Style Sheet in JavaScript In-Reply-To: <4354CA7D.4020005@volume4.com> Message-ID: <4330F9AB000C3608@mssazhb-int.msg.bluewin.ch> Hello, how can I define a style in JavaScript?? Thanks for your help. Greet Olivier From apwebdesign at yahoo.com Tue Oct 18 08:31:32 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 18 Oct 2005 06:31:32 -0700 (PDT) Subject: [Javascript] Style Sheet in JavaScript In-Reply-To: <4330F9AB000C3608@mssazhb-int.msg.bluewin.ch> Message-ID: <20051018133132.75992.qmail@web51114.mail.yahoo.com> object.style.visibility = 'hidden'; (I believe that's it, you'll have to check the DOM reference on mozdev). --- OIivier Grossmann wrote: > Hello, > > how can I define a style in JavaScript?? > > Thanks for your help. > > Greet Olivier > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > Anthony Ettinger ph: (408) 656-2473 web: http://www.apwebdesign.com From ol.grossmann at bluewin.ch Tue Oct 18 08:52:34 2005 From: ol.grossmann at bluewin.ch (OIivier Grossmann) Date: Tue, 18 Oct 2005 15:52:34 +0200 Subject: [Javascript] Style Sheet in JavaScript In-Reply-To: <43550AA6.3020506@economisa.com.br> Message-ID: <4330F9AB000C4422@mssazhb-int.msg.bluewin.ch> Its okay, but I had the problem one hour ago that I have to declare a css style in the JavaScript Code. Thanks anyway. Greet Olivier >-- Original-Nachricht -- >Date: Tue, 18 Oct 2005 11:45:58 -0300 >From: Flavio Gomes >To: "[JavaScript List]" >Subject: Re: [Javascript] Style Sheet in JavaScript >Reply-To: "[JavaScript List]" > > >You mean how to choose/change a document's stylesheet with JavaScript? >Be a little bit more specific, ok? > >-- >Flavio Gomes >flavio at economisa.com.br > > >OIivier Grossmann wrote: > >>Hello, >> >>how can I define a style in JavaScript?? >> >>Thanks for your help. >> >>Greet Olivier >> >>_______________________________________________ >>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 flavio at economisa.com.br Tue Oct 18 09:45:58 2005 From: flavio at economisa.com.br (Flavio Gomes) Date: Tue, 18 Oct 2005 11:45:58 -0300 Subject: [Javascript] Style Sheet in JavaScript In-Reply-To: <4330F9AB000C3608@mssazhb-int.msg.bluewin.ch> References: <4330F9AB000C3608@mssazhb-int.msg.bluewin.ch> Message-ID: <43550AA6.3020506@economisa.com.br> You mean how to choose/change a document's stylesheet with JavaScript? Be a little bit more specific, ok? -- Flavio Gomes flavio at economisa.com.br OIivier Grossmann wrote: >Hello, > >how can I define a style in JavaScript?? > >Thanks for your help. > >Greet Olivier > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > From apwebdesign at yahoo.com Tue Oct 18 11:17:48 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 18 Oct 2005 09:17:48 -0700 (PDT) Subject: [Javascript] regex Message-ID: <20051018161748.71309.qmail@web51113.mail.yahoo.com> I need to run a regex, simply replacing foo with bar in $string... any help? Anthony Ettinger ph: (408) 656-2473 web: http://www.apwebdesign.com From peter at brunone.com Tue Oct 18 11:22:47 2005 From: peter at brunone.com (Peter Brunone) Date: Tue, 18 Oct 2005 09:22:47 -0700 Subject: [Javascript] regex Message-ID: Do you really need a regex just to replace one string with another? How about myString.replace("foo", "bar")? From: Anthony Ettinger apwebdesign at yahoo.com I need to run a regex, simply replacing foo with bar in $string... any help? Anthony Ettinger ph: (408) 656-2473 web: http://www.apwebdesign.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From apwebdesign at yahoo.com Tue Oct 18 13:33:46 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 18 Oct 2005 11:33:46 -0700 (PDT) Subject: [Javascript] regex In-Reply-To: Message-ID: <20051018183347.32957.qmail@web51115.mail.yahoo.com> That should work, thanks. --- Peter Brunone wrote: > Do you really need a regex just to replace one > string with another? > > How about myString.replace("foo", "bar")? > > From: Anthony Ettinger apwebdesign at yahoo.com > > I need to run a regex, simply replacing foo with bar > in $string... > > any help? > > Anthony Ettinger > ph: (408) 656-2473 > web: http://www.apwebdesign.com > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > Anthony Ettinger ph: (408) 656-2473 web: http://www.apwebdesign.com From apwebdesign at yahoo.com Tue Oct 18 13:39:25 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 18 Oct 2005 11:39:25 -0700 (PDT) Subject: [Javascript] looping through nodeList Message-ID: <20051018183925.25555.qmail@web51107.mail.yahoo.com> Can't seem to get this down, I get an HTML object, but it's length is zero. var anchors = document.getElementsByTagName("a"); alert(anchors); // yields [object HTML Collection] for (anchor in anchors) { var item = anchor; alert(item); //yields length, item, namedItem (once) } at this point, I cannot figure out for the life of me how to access an instance of the anchors list. Basically, I just want to call getAttribute("href") on it. It seems as though anchors is not really a nodeList, more like a list of metadata about the nodeList. Thanks. Anthony Ettinger ph: (408) 656-2473 web: http://www.apwebdesign.com From rdong at advance.net Tue Oct 18 13:51:56 2005 From: rdong at advance.net (Roland Dong) Date: Tue, 18 Oct 2005 14:51:56 -0400 Subject: [Javascript] looping through nodeList In-Reply-To: <20051018183925.25555.qmail@web51107.mail.yahoo.com> Message-ID: <200510181851.OAA06180@mail.advance.net> for(var i=0; i -----Original Message----- > From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] > On Behalf Of Anthony Ettinger > Sent: Tuesday, October 18, 2005 2:39 PM > To: javascript at LaTech.edu > Subject: [Javascript] looping through nodeList > > Can't seem to get this down, I get an HTML object, but > it's length is zero. > > var anchors = document.getElementsByTagName("a"); > alert(anchors); // yields [object HTML Collection] > > for (anchor in anchors) > { > var item = anchor; > alert(item); //yields length, item, namedItem > (once) > } > > at this point, I cannot figure out for the life of me > how to access an instance of the anchors list. > Basically, I just want to call getAttribute("href") on > it. > > It seems as though anchors is not really a nodeList, > more like a list of metadata about the nodeList. > > Thanks. > > Anthony Ettinger > ph: (408) 656-2473 > web: http://www.apwebdesign.com > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From allard-schripsema at procergs.rs.gov.br Tue Oct 18 14:02:35 2005 From: allard-schripsema at procergs.rs.gov.br (Allard Schripsema) Date: Tue, 18 Oct 2005 17:02:35 -0200 Subject: [Javascript] looping through nodeList In-Reply-To: <20051018183925.25555.qmail@web51107.mail.yahoo.com> Message-ID: Hi there, i dont know about your loop, but this works: var anchors = document.getElementsByTagName("a"); for (var anchor = 0; anchor References: <20051018183925.25555.qmail@web51107.mail.yahoo.com> Message-ID: <43554904.4090206@webtuitive.com> Anthony Ettinger wrote: > Can't seem to get this down, I get an HTML object, but > it's length is zero. > > var anchors = document.getElementsByTagName("a"); > alert(anchors); // yields [object HTML Collection] > > for (anchor in anchors) > { > var item = anchor; > alert(item); //yields length, item, namedItem > (once) > } You want something like: for ( var count = 0; count < anchors.length; count++ ) { var item = anchors[count]; alert(item.getAttribute("href")); /* or whatever */ } HTH! -- Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. From apwebdesign at yahoo.com Tue Oct 18 14:55:05 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 18 Oct 2005 12:55:05 -0700 (PDT) Subject: [Javascript] looping through nodeList In-Reply-To: <20051018183925.25555.qmail@web51107.mail.yahoo.com> Message-ID: <20051018195506.65336.qmail@web51102.mail.yahoo.com> Ok, I tried all the suggestion before posting, but couldn't get it to work either as for (item in list) or as for (i=0;i wrote: > Can't seem to get this down, I get an HTML object, > but > it's length is zero. > > var anchors = document.getElementsByTagName("a"); > alert(anchors); // yields [object HTML Collection] > > for (anchor in anchors) > { > var item = anchor; > alert(item); //yields length, item, namedItem > (once) > } > > at this point, I cannot figure out for the life of > me > how to access an instance of the anchors list. > Basically, I just want to call getAttribute("href") > on > it. > > It seems as though anchors is not really a nodeList, > more like a list of metadata about the nodeList. > > Thanks. > > Anthony Ettinger > ph: (408) 656-2473 > web: http://www.apwebdesign.com > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > Anthony Ettinger ph: (408) 656-2473 web: http://www.apwebdesign.com From mdougherty at pbp.com Tue Oct 18 15:05:52 2005 From: mdougherty at pbp.com (Mike Dougherty) Date: Tue, 18 Oct 2005 16:05:52 -0400 Subject: [Javascript] looping through nodeList In-Reply-To: <20051018195506.65336.qmail@web51102.mail.yahoo.com> References: <20051018195506.65336.qmail@web51102.mail.yahoo.com> Message-ID: It has nothing to do with parameters When you use the window.onload=Name(); - you are assigning the results of having executed the Name function to the window.onload method. When you use the window.onload=Name; - you are assigning the function called Name to the window.onload method. On Tue, 18 Oct 2005 12:55:05 -0700 (PDT) Anthony Ettinger wrote: > Ok, I tried all the suggestion before posting, but > couldn't get it to work either as for (item in list) > or as for (i=0;i > Been driving me crazy. I did read that the "For In" > method won't work. > > The problem turns out though, is how I was calling the > function. > > window.onload=Name(); > > Needs to be without the ()'s: > > window.onload=Name; > > ..which makes sense, since you wouldn't be passing > parameters from anywhere on the initial routine call. > > > > --- Anthony Ettinger wrote: > >> Can't seem to get this down, I get an HTML object, >> but >> it's length is zero. >> >> var anchors = document.getElementsByTagName("a"); >> alert(anchors); // yields [object HTML Collection] >> >> for (anchor in anchors) >> { >> var item = anchor; >> alert(item); //yields length, item, namedItem >> (once) >> } >> >> at this point, I cannot figure out for the life of >> me >> how to access an instance of the anchors list. >> Basically, I just want to call getAttribute("href") >> on >> it. >> >> It seems as though anchors is not really a nodeList, >> more like a list of metadata about the nodeList. >> >> Thanks. >> >> Anthony Ettinger >> ph: (408) 656-2473 >> web: http://www.apwebdesign.com >> _______________________________________________ >> Javascript mailing list >> Javascript at LaTech.edu >> https://lists.LaTech.edu/mailman/listinfo/javascript >> > > > Anthony Ettinger > ph: (408) 656-2473 > web: http://www.apwebdesign.com > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > __________________________________________________________ > This message was scanned by ATX > 3:58:06 PM ET - 10/18/2005 From paul at novitskisoftware.com Tue Oct 18 15:22:14 2005 From: paul at novitskisoftware.com (Paul Novitski) Date: Tue, 18 Oct 2005 13:22:14 -0700 Subject: [Javascript] looping through nodeList In-Reply-To: <20051018195506.65336.qmail@web51102.mail.yahoo.com> References: <20051018183925.25555.qmail@web51107.mail.yahoo.com> <20051018195506.65336.qmail@web51102.mail.yahoo.com> Message-ID: <6.2.3.4.2.20051018130945.04becd88@mail.spamarrest.com> At 12:55 PM 10/18/2005, Anthony Ettinger wrote: >window.onload=Name(); > >Needs to be without the ()'s: > >window.onload=Name; > >..which makes sense, since you wouldn't be passing >parameters from anywhere on the initial routine call. The way I think of this: window.onload = DoSomething; is that the entire text of the function DoSomething() is copied to the window.onload "variable." If you then execute: alert(window.onload); you'll see the DoSomething() function script there in its entirety. One interesting ramification of this (which I've played with in other languages but never in javascript) is the feasibility of parsing and modifying function code stored in a variable. For example, a function can edit a copy of itself and then call this revised form of itself. Nasty-fun wrinkle on recursion! Those kinds of games can produce program code that's incredibly difficult to maintain, but it's fun to play with nonetheless. Paul From apwebdesign at yahoo.com Tue Oct 18 15:34:57 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 18 Oct 2005 13:34:57 -0700 (PDT) Subject: [Javascript] looping through nodeList In-Reply-To: <6.2.3.4.2.20051018130945.04becd88@mail.spamarrest.com> Message-ID: <20051018203457.81415.qmail@web51112.mail.yahoo.com> --- Paul Novitski wrote: > At 12:55 PM 10/18/2005, Anthony Ettinger wrote: > >window.onload=Name(); > > > >Needs to be without the ()'s: > > > >window.onload=Name; > > > >..which makes sense, since you wouldn't be passing > >parameters from anywhere on the initial routine > call. > > > The way I think of this: > > window.onload = DoSomething; > > is that the entire text of the function > DoSomething() is copied to > the window.onload "variable." If you then execute: > > alert(window.onload); > > you'll see the DoSomething() function script there > in its entirety. > > One interesting ramification of this (which I've > played with in other > languages but never in javascript) is the > feasibility of parsing and > modifying function code stored in a variable. For > example, a > function can edit a copy of itself and then call > this revised form of > itself. Nasty-fun wrinkle on recursion! Those > kinds of games can > produce program code that's incredibly difficult to > maintain, but > it's fun to play with nonetheless. > Haa...nice. Any input on this? I basically am rewriting mailto:, removing the non-working @. accessible, but doesn't work unless user changes the @ manually. I've seen the html entity solution, but seems rather easy to defeat to me. Would only have to convert entities back into symbols. ie - using . and @ Anthony Ettinger ph: (408) 656-2473 web: http://www.apwebdesign.com From paul at novitskisoftware.com Tue Oct 18 16:13:13 2005 From: paul at novitskisoftware.com (Paul Novitski) Date: Tue, 18 Oct 2005 14:13:13 -0700 Subject: [Javascript] looping through nodeList In-Reply-To: <20051018203457.81415.qmail@web51112.mail.yahoo.com> References: <6.2.3.4.2.20051018130945.04becd88@mail.spamarrest.com> <20051018203457.81415.qmail@web51112.mail.yahoo.com> Message-ID: <6.2.3.4.2.20051018140500.04c194e0@mail.spamarrest.com> At 01:34 PM 10/18/2005, Anthony Ettinger wrote: >Any input on this? I basically am rewriting mailto:, >removing the non-working @. Please clarify what you mean by "removing the non-working @." If your page downloads with email addresses intact, and then your javascript routine encrypts them on page load, please realize that this won't trick robots who will see the page in its pre-javascript form. Usually what people do to obfuscate email addresses on web pages is to store the address on the page in some cryptic form, then use javascript to assemble a properly-formed mailto: link on page-load or at the moment the user clicks or keys down on it. Paul From apwebdesign at yahoo.com Tue Oct 18 16:15:17 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 18 Oct 2005 14:15:17 -0700 (PDT) Subject: [Javascript] looping through nodeList In-Reply-To: Message-ID: <20051018211517.85972.qmail@web51102.mail.yahoo.com> --- Mike Dougherty wrote: > It has nothing to do with parameters > > When you use the window.onload=Name(); - you are > assigning the results of having executed the Name > function to the window.onload method. > > When you use the window.onload=Name; - you are > assigning the function called Name to the > window.onload method. How should I call function names then? If I run window.onload=Foo; it works, if I have: window.onload=Bar; function Bar() { Foo; } Foo does not get called. It only works in the 2nd instance if I call it as Foo(); What's going on here? Anthony Ettinger ph: (408) 656-2473 web: http://www.apwebdesign.com From apwebdesign at yahoo.com Tue Oct 18 16:20:03 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 18 Oct 2005 14:20:03 -0700 (PDT) Subject: [Javascript] looping through nodeList In-Reply-To: <6.2.3.4.2.20051018140500.04c194e0@mail.spamarrest.com> Message-ID: <20051018212003.66239.qmail@web51103.mail.yahoo.com> --- Paul Novitski wrote: > At 01:34 PM 10/18/2005, Anthony Ettinger wrote: > >Any input on this? I basically am rewriting > mailto:, > >removing the non-working @. > > Please clarify what you mean by "removing the > non-working @." > > If your page downloads with email addresses intact, > and then your > javascript routine encrypts them on page load, > please realize that > this won't trick robots who will see the page in its > pre-javascript form. > > Usually what people do to obfuscate email addresses > on web pages is > to store the address on the page in some cryptic > form, then use > javascript to assemble a properly-formed mailto: > link on page-load or > at the moment the user clicks or keys down on it. > Yes. The html entities got converted in the email but the &-#64-; and &-#46-; for the @ and "." I have foo--at--bar.org. And use js to rewrite them when the page loads. It's not accessible, because if no js, then the email client loads with the "foo--at--bar.org" version. I see lots of examples of using html entities to construct the email, but i would think the spammers have simply converted entities back to symbols by now in their scripts when the see "&(.*?);" in the "mailto" string. Whereas getting througha javascript layer would be more difficult? (maybe not). Anthony Ettinger ph: (408) 656-2473 web: http://www.apwebdesign.com From paul at novitskisoftware.com Tue Oct 18 16:56:44 2005 From: paul at novitskisoftware.com (Paul Novitski) Date: Tue, 18 Oct 2005 14:56:44 -0700 Subject: [Javascript] looping through nodeList In-Reply-To: <20051018211517.85972.qmail@web51102.mail.yahoo.com> References: <20051018211517.85972.qmail@web51102.mail.yahoo.com> Message-ID: <6.2.3.4.2.20051018142549.0519a008@mail.spamarrest.com> At 02:15 PM 10/18/2005, Anthony Ettinger wrote: >How should I call function names then? > >If I run window.onload=Foo; it works, > >if I have: > >window.onload=Bar; > >function Bar() >{ > Foo; >} > >Foo does not get called. It only works in the 2nd >instance if I call it as Foo(); > >What's going on here? To reiterate Mike's point: _____________________________ If your javascript statement is: Foo; then you are invoking the TEXT of the function Foo(). This is like writing: "funky"; It doesn't do anything, it just sits there. It's just an expression with no verb. _____________________________ If you state: Foo(); then you are executing the function Foo(). In this case, the browser's javascript interpreter performs the logic of the Foo() function _____________________________ The reason we generally write: window.onload = Foo; and not: window.onload = Foo(); is that we want window.onload to equal the TEXT of function Foo(); when the page finishes loading, the function text contained in window.onload will execute. It's an exact copy of your function Foo() and will perform identically. _____________________________ Rarely will you ever want to write: window.onload = Foo(); This would make sense only if function Foo() returned javscript code, something like this: window.onload = Foo(); function Foo() { return("alert('hello world')"); } window.onload would then contain the script: alert('hello world') which would execute when the page finished loading. Clear as mud? Paul From apwebdesign at yahoo.com Tue Oct 18 17:09:51 2005 From: apwebdesign at yahoo.com (Anthony Ettinger) Date: Tue, 18 Oct 2005 15:09:51 -0700 (PDT) Subject: [Javascript] looping through nodeList In-Reply-To: <6.2.3.4.2.20051018142549.0519a008@mail.spamarrest.com> Message-ID: <20051018220951.93457.qmail@web51109.mail.yahoo.com> --- Paul Novitski wrote: > At 02:15 PM 10/18/2005, Anthony Ettinger wrote: > >How should I call function names then? > > > >If I run window.onload=Foo; it works, > > > >if I have: > > > >window.onload=Bar; > > > >function Bar() > >{ > > Foo; > >} > > > >Foo does not get called. It only works in the 2nd > >instance if I call it as Foo(); > > > >What's going on here? > > > To reiterate Mike's point: > _____________________________ > > If your javascript statement is: > Foo; > then you are invoking the TEXT of the function > Foo(). This is like writing: > "funky"; > It doesn't do anything, it just sits there. It's > just an expression > with no verb. > _____________________________ > > If you state: > Foo(); > then you are executing the function Foo(). In this > case, the > browser's javascript interpreter performs the logic > of the Foo() function > _____________________________ > > The reason we generally write: > window.onload = Foo; > and not: > window.onload = Foo(); > is that we want window.onload to equal the TEXT of > function Foo(); > when the page finishes loading, the function text > contained in > window.onload will execute. It's an exact copy of > your function > Foo() and will perform identically. > _____________________________ > > > Rarely will you ever want to write: > > window.onload = Foo(); > > This would make sense only if function Foo() > returned javscript code, > something like this: > > window.onload = Foo(); > > function Foo() > { > return("alert('hello world')"); > } > > window.onload would then contain the script: > > alert('hello world') > > which would execute when the page finished loading. > > > Clear as mud? > Great, thanks! :-D Didn't know I could return code references. Anthony Ettinger ph: (408) 656-2473 web: http://www.apwebdesign.com From merchant at LATECH.EDU Wed Oct 19 13:19:26 2005 From: merchant at LATECH.EDU (David Merchant) Date: Wed, 19 Oct 2005 13:19:26 -0500 Subject: [Javascript] JavaScript List Unsubscirbe, Subscribe & Posting Info Message-ID: <5.1.0.14.2.20051019131251.02affec0@mail.latech.edu> The un-periodic reminder: 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, , for further instructions. If you still are unable to unsubscribe or subscribe, send a message to me at . I will try to process your request as soon as possible, but please be patient, I have many other duties with my "day job" that may delay me. Unfortunately because of spammers, only subscribers can post messages to the list. Once subscribed, to post to the list send your posts to TTFN, David Merchant, JavaScript List Admin Director of Integrated Technology CATALyST Louisiana Tech University catalyst.latech.edu From cmunozp at indap.cl Wed Oct 19 14:45:43 2005 From: cmunozp at indap.cl (=?iso-8859-1?Q?Mu=F1oz_Pe=F1aloza_Carlos_Alberto?=) Date: Wed, 19 Oct 2005 15:45:43 -0400 Subject: [Javascript] Microsoft.XMLDOM v/s MSXML2.DOMdocument Message-ID: <896D2E225C6459499C2840162BE53EE302EAB1BE@stgomail01.indap.nac> Hola a todos es un gusto poder ser parte de esta lista, tengo la siguiente duda, para mostrar un archivo xml en javascript realizo la siguiente rutina: var source= new ActiveXObject("Microsoft.XMLDOM"); source.async= false; source.load("pagina.xml"); que ventajas tendria utilizar MSXML2.DOMdocument, se que es una version mas actualizada, pero tendra un mejor rendimiento, una mejor performance??? Saludos y gracias -------------- next part -------------- An HTML attachment was scrubbed... URL: From riegel at clearimageonline.com Fri Oct 21 19:08:12 2005 From: riegel at clearimageonline.com (Terry Riegel) Date: Fri, 21 Oct 2005 20:08:12 -0400 Subject: [Javascript] Something better than getElementById In-Reply-To: References: Message-ID: I have a page that uses the code pasted below --- var a = document.getElementById(dest); a.className='sel' document.browseform["fm_list"].value = "|"+dest+b; document.browseform["fm_cmd"].value = ""; document.browseformhere["fm_cmd"].value = ""; document.browseformhere["fm_list"].value = "|"+dest+b; document.browseform.submit(); --- The only reason I need to getElementById is to set the background color to indicate the link is selected. Is there a way to set an attribute without looking up the id? I am looking for ways to speed up my pages, some have hundred's of ID's. Something like MyParentDiv.className='sel' Here is the HTML ---
--- From paul at novitskisoftware.com Sat Oct 22 01:53:58 2005 From: paul at novitskisoftware.com (Paul Novitski) Date: Fri, 21 Oct 2005 23:53:58 -0700 Subject: [Javascript] Something better than getElementById In-Reply-To: References: Message-ID: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com> At 05:08 PM 10/21/2005, Terry Riegel wrote: >The only reason I need to getElementById is to set the background >color to indicate the link is selected. Is there a way to set an >attribute without looking up the id? I am looking for ways to speed >up my pages, some have hundred's of ID's. Terry, You can pass references to the objects themselves instead of their ids: ... function doSomething(argObject) { argObject.className = "selected"; } If you prefer to avoid inline scripting, as I do, you can accomplish the same thing this way: function Initialize() { ... oObject.onclick = doSomething; } function doSomething(evt) { // cancel event-bubbling if (evt) { event = evt; } event.cancelBubble = true; // change class this.className = "selected"; } Peter-Paul Koch has some good tutorials on event processing in javascript at http://www.quirksmode.org/ Regards, Paul From javascript at webdesignofficina.com Sat Oct 22 07:50:04 2005 From: javascript at webdesignofficina.com (Guillaume) Date: Sat, 22 Oct 2005 14:50:04 +0200 Subject: [Javascript] Something better than getElementById In-Reply-To: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com> References: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com> Message-ID: <435A357C.4000800@webdesignofficina.com> PPK has also a very useful page wich summarize all properties you can use to work with W3C DOM and their support in major browsers. Take a look at: http://www.quirksmode.org/dom/w3c_core.html Hope this helps. Regards, Guillaume. > > Peter-Paul Koch has some good tutorials on event processing in > javascript at http://www.quirksmode.org/ > > Regards, > Paul > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From del at delweg.com Sat Oct 22 09:32:39 2005 From: del at delweg.com (Del Wegener) Date: Sat, 22 Oct 2005 09:32:39 -0500 Subject: [Javascript] Creating Word Document with JavaScript Message-ID: <009c01c5d715$74b2d810$2c89cf18@delano0dbywo7y> Good Morning; I have developed a simple flat file database consisting of JS Include files containing mathematics definitions, formulas, properties, etc. I have also written several little JS programs which place identified database items on a web page or on interactive flashcards. For example the function call myPut('Definition',def_null_set) returns the word Definition followed by the database item named def_null_set all properly formatted. See http://www.drdelmath.com/jeffco_intermediate_algebra/chapter_summaries/jeffco_intermediate_algebra_chapter1_summary.htm I would like to write similar JS programs which would create entries in an MS Word document instead of web pages. Ideally the program would request a list of items to be included and would create a Word document containing those items. Is this possible ? Can anyone point me to a source where I might learn how to do this ? Right now I do not have time to do all of this with a real database. Thanks for any pointers. Del del at delweg.com www.delweg.com www.drdelmath.com From paladin at fuse.net Sat Oct 22 18:18:22 2005 From: paladin at fuse.net (Scott Glasgow) Date: Sat, 22 Oct 2005 19:18:22 -0400 Subject: [Javascript] Creating Word Document with JavaScript References: <009c01c5d715$74b2d810$2c89cf18@delano0dbywo7y> Message-ID: <002c01c5d75e$e73009f0$4268ba0a@badboy2> Del Wegener wrote: > Good Morning; > > I have developed a simple flat file database consisting of JS Include > files containing mathematics definitions, formulas, properties, etc. > I have also written several little JS programs which place identified > database items on a web page or on interactive flashcards. For > example the function call myPut('Definition',def_null_set) returns > the word Definition followed by the database item named def_null_set > all properly formatted. > See > http://www.drdelmath.com/jeffco_intermediate_algebra/chapter_summaries/jeffco_intermediate_algebra_chapter1_summary.htm > > I would like to write similar JS programs which would create entries > in an MS Word document instead of web pages. Ideally the program > would request a list of items to be included and would create a Word > document containing those items. > > Is this possible ? Can anyone point me to a source where I might > learn how to do this ? > > Right now I do not have time to do all of this with a real database. > > Thanks for any pointers. > > Del <<::SNIP::>> Del, I could be mistaken, but I think you're out of luck with javascript. Although it is quite easy to use Word as a COM (automation) server from a fully-fledged language such as C++, VB, or Delphi, AFAIK javascript does not have the capability to act as a COM client. Since it is cross-platform, and never intended for such use, I would be greatly surprised to learn that this capability exists. Cheers, Scott From trojani2000 at hotmail.com Sat Oct 22 22:51:32 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sun, 23 Oct 2005 05:51:32 +0200 Subject: [Javascript] Creating Word Document with JavaScript In-Reply-To: <009c01c5d715$74b2d810$2c89cf18@delano0dbywo7y> Message-ID: If it is posible with excel, with word can't be more difficult: see this example: (it's from jscript 5.x documentation) var ExcelSheet; ExcelApp = new ActiveXObject("Excel.Application"); ExcelSheet = new ActiveXObject("Excel.Sheet"); // Make Excel visible through the Application object. ExcelSheet.Application.Visible = true; // Place some text in the first cell of the sheet. ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1"; // Save the sheet. ExcelSheet.SaveAs("C:\\TEST.XLS"); // Close Excel with the Quit method on the Application object. ExcelSheet.Application.Quit(); write this in a tex file and save it as *.js doubleclick and see what happens! Any further comment is sufficient. The only thing you need to nkow further is to see the commands neded to enter ms word formatings etc, you can make the app invisible dourin the operation if f you like.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Troy III
progressive art enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


From: "Del Wegener" <del at delweg.com>
Reply-To: "\[JavaScript List\]" <javascript at LaTech.edu>
To: <javascript at latech.edu>
Subject: [Javascript] Creating Word Document with JavaScript
Date: Sat, 22 Oct 2005 09:32:39 -0500
>Good Morning;
>
>I have developed a simple flat file database consisting of JS Include
>files containing mathematics definitions, formulas, properties, etc. I
>have also written several little JS programs which place identified
>database items on a web page or on interactive flashcards. For example
>the function call myPut('Definition',def_null_set) returns the word
>Definition followed by the database item named def_null_set all properly
>formatted.
>See
>http://www.drdelmath.com/jeffco_intermediate_algebra/chapter_summaries/jeffco_intermediate_algebra_chapter1_summary.htm
>
>I would like to write similar JS programs which would create entries in
>an MS Word document instead of web pages. Ideally the program would
>request a list of items to be included and would create a Word document
>containing those items.
>
>Is this possible ? Can anyone point me to a source where I might learn
>how to do this ?
>
>Right now I do not have time to do all of this with a real database.
>
>Thanks for any pointers.
>
>Del
>del at delweg.com
>www.delweg.com
>www.drdelmath.com
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From trojani2000 at hotmail.com Sat Oct 22 23:08:42 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sun, 23 Oct 2005 06:08:42 +0200 Subject: [Javascript] Something better than getElementById In-Reply-To: Message-ID: Sorry, but something like that is possible and still working only in IEssss. The document.getUgly('byW3C.happyforIt') is the 'standard' for now. -sorry if my post look's ugly, its because I've just installed the firefox, sort of W3C standard!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Troy III
progressive art enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


From: Terry Riegel <riegel at clearimageonline.com>
Reply-To: "\[JavaScript List\]" <javascript at LaTech.edu>
To: "\[JavaScript List\]" <javascript at LaTech.edu>
Subject: Re: [Javascript] Something better than getElementById
Date: Fri, 21 Oct 2005 20:08:12 -0400
>I have a page that uses the code pasted below
>
>---
> var a = document.getElementById(dest);
> a.className='sel'
> document.browseform["fm_list"].value = "|"+dest+b;
> document.browseform["fm_cmd"].value = "";
> document.browseformhere["fm_cmd"].value = "";
> document.browseformhere["fm_list"].value = "|"+dest+b;
> document.browseform.submit();
>---
>
>
>
>The only reason I need to getElementById is to set the background
>color to indicate the link is selected. Is there a way to set an
>attribute without looking up the id? I am looking for ways to speed
>up my pages, some have hundred's of ID's.
>
>Something like MyParentDiv.className='sel'
>
>
>
>Here is the HTML
>
>---
><div class="nor" id="images">
> <a href="javascript:changedest2('images','DIR')"><img src="/
>clearimage/images/dir-small.gif" border="0" width="12" height="12"
>align="left"></a>
> <a href="javascript:changedest('images','DIR')"
>ondblclick="changedest2('images','DIR')">images</a>
></div>
>---
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From rer at datacompusa.com Sun Oct 23 08:15:21 2005 From: rer at datacompusa.com (Roger Roelofs) Date: Sun, 23 Oct 2005 09:15:21 -0400 Subject: [Javascript] Something better than getElementById In-Reply-To: References: Message-ID: <6ddf648d7bf28cc38ad38c1918719220@datacompusa.com> Troy, On Oct 23, 2005, at 12:08 AM, Troy III Ajnej wrote: > Sorry, but something like that is possible and still working only in > IEssss. The document.getUgly('byW3C.happyforIt') is the 'standard' for > now. > > -sorry if my post look's ugly, its because I've just installed the > firefox, sort of W3C standard! You're welcome to prefer ie. It is still the majority browser. However, I'm not sure you post was helpful to the person asking the question in the first place. Are you referring to the ie only document.all[] collection? If so, and the original poster is in an ie only environment, he can write var a = document.all[dest]; a.className='sel' instead of var a = document.getElementById(dest); a.className='sel' If you hate typing long strings of stuff like document.getElementById, (I know that annoys me) you can do this getId = document.getElementById; ... later in code .... var a = getIe(dest); Troy, I am confidant you know all this, but I know there are scripters at all levels on this list who might benefit by an explanation of the technique you had in mind. In fact, I could have completely missed the boat in guessing at whet you meant. Have a great day! Roger, Roger Roelofs Datacomp Appraisal Services From trojani2000 at hotmail.com Sun Oct 23 18:14:10 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Mon, 24 Oct 2005 01:14:10 +0200 Subject: [Javascript] Something better than getElementById In-Reply-To: <6ddf648d7bf28cc38ad38c1918719220@datacompusa.com> Message-ID: Not that I'm preferring IE over other browsers, -a browser is a browser. I start browsing with whatever is in front of me. Still I agree that IE is the agent used by majority and I encounter it more often than other browsers. Your post was a good one and I appreciate it. For at least IE 4.1 and later, there is no need to call 'document.all' itieration. You can selectively call/select the element directly from D.O. In this/his case: pictures.className='sel' //direct set of property and still IE only /*this should rise a naming issue, as pictures is a collection entitiy, but it doesn't! That's because ... not so important*/ The mate's question was, I guess, something like 'faster method', not only (obviously) cleaner, but faster. I haven't run any tests in comparing IE original syntax with the new getElementById('pictures') adoption of standard, but as we can see. It involves D.O. collection look-up, as a first step and seccond step: compare them in string format. That is two actions and the sllower string method, instead of direct selection of D.O. (!Treat this, only as logical conclusion please). But possibly the mate noticed some impact on speed of ecxecution, therefore, he got curious to see if there is some other method that could speed his way out. None that I'm aware of. //-If, cross-browser compatibility is aquired! But this is an open list and anybody who knows more on this topic is free to post solutions. My 're:' was somewhat tentious because W3C knows how to piss me/lot of us off. But I get happier when I see that more browsers implement at least the 'innerHTML' property, dispite the W3C decision. As far as I'm concerned, W3C reinvented the wheel with their buggy nodes and made it somewhat: 'eliptic'. It doesn't Rock'n'Roll at all. Thank's again

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Troy III
progressive art enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


From: Roger Roelofs <rer at datacompusa.com>
Reply-To: "\[JavaScript List\]" <javascript at LaTech.edu>
To: "\[JavaScript List\]" <javascript at LaTech.edu>
Subject: Re: [Javascript] Something better than getElementById
Date: Sun, 23 Oct 2005 09:15:21 -0400
>Troy,
>
>On Oct 23, 2005, at 12:08 AM, Troy III Ajnej wrote:
>
>>Sorry, but something like that is possible and still working only
>>in IEssss. The document.getUgly('byW3C.happyforIt') is the
>>'standard' for now.
>>
>>-sorry if my post look's ugly, its because I've just installed the
>>firefox, sort of W3C standard!
>
>You're welcome to prefer ie. It is still the majority browser.
>However, I'm not sure you post was helpful to the person asking the
>question in the first place. Are you referring to the ie only
>document.all[] collection? If so, and the original poster is in an
>ie only environment, he can write
>
> var a = document.all[dest];
> a.className='sel'
>instead of
> var a = document.getElementById(dest);
> a.className='sel'
>
>If you hate typing long strings of stuff like
>document.getElementById, (I know that annoys me) you can do this
>
>getId = document.getElementById;
>... later in code ....
>var a = getIe(dest);
>
>Troy, I am confidant you know all this, but I know there are
>scripters at all levels on this list who might benefit by an
>explanation of the technique you had in mind. In fact, I could have
>completely missed the boat in guessing at whet you meant.
>
>Have a great day!
>
>Roger,
>
>Roger Roelofs
>Datacomp Appraisal Services
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From riegel at clearimageonline.com Mon Oct 24 10:14:14 2005 From: riegel at clearimageonline.com (Terry Riegel) Date: Mon, 24 Oct 2005 11:14:14 -0400 Subject: [Javascript] Something better than getElementById In-Reply-To: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com> References: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com> Message-ID: <3DF0D6A1-4C50-4632-89DA-846033F4A49E@clearimageonline.com> Paul, Thanks for your answer. It is very helpful. I am starting to recraft my pages and need a good tutorial on parsing stings with javascript for someone with a heavy background in BASIC style programming and very little understanding of Regular Expressions. Any ideas? Here is a BASIC style instruction I need to convert to Javascript a="nor pri" b="sel"+right(a,length(a)-3) RESULT: a="nor pri" b="sel pri" Thanks for any help. Terry On Oct 22, 2005, at 2:53 AM, Paul Novitski wrote: > At 05:08 PM 10/21/2005, Terry Riegel wrote: > >> The only reason I need to getElementById is to set the background >> color to indicate the link is selected. Is there a way to set an >> attribute without looking up the id? I am looking for ways to speed >> up my pages, some have hundred's of ID's. >> > > Terry, > > You can pass references to the objects themselves instead of their > ids: > > > ... > function doSomething(argObject) > { > argObject.className = "selected"; > } > > If you prefer to avoid inline scripting, as I do, you can > accomplish the same thing this way: > > function Initialize() > { > ... > oObject.onclick = doSomething; > } > > function doSomething(evt) > { > // cancel event-bubbling > if (evt) { event = evt; } > event.cancelBubble = true; > > // change class > this.className = "selected"; > } > > Peter-Paul Koch has some good tutorials on event processing in > javascript at http://www.quirksmode.org/ > > Regards, > Paul > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From riegel at clearimageonline.com Mon Oct 24 11:02:01 2005 From: riegel at clearimageonline.com (Terry Riegel) Date: Mon, 24 Oct 2005 12:02:01 -0400 Subject: [Javascript] Something better than getElementById In-Reply-To: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com> References: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com> Message-ID: Paul, I was able to implement your first suggestion, but I am not clear on how to implement the method that avoids inline scripting. Here is my simplified test page that isn't working. Any Ideas on what I might be missing? Terry
.TEMP
images
skel
users
archive.pak
authenticate.html
Thanks for any help. Terry On Oct 22, 2005, at 2:53 AM, Paul Novitski wrote: > At 05:08 PM 10/21/2005, Terry Riegel wrote: > >> The only reason I need to getElementById is to set the background >> color to indicate the link is selected. Is there a way to set an >> attribute without looking up the id? I am looking for ways to speed >> up my pages, some have hundred's of ID's. >> > > Terry, > > You can pass references to the objects themselves instead of their > ids: > > > ... > function doSomething(argObject) > { > argObject.className = "selected"; > } > > If you prefer to avoid inline scripting, as I do, you can > accomplish the same thing this way: > > function Initialize() > { > ... > oObject.onclick = doSomething; > } > > function doSomething(evt) > { > // cancel event-bubbling > if (evt) { event = evt; } > event.cancelBubble = true; > > // change class > this.className = "selected"; > } > > Peter-Paul Koch has some good tutorials on event processing in > javascript at http://www.quirksmode.org/ > > Regards, > Paul > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > -------------- next part -------------- An HTML attachment was scrubbed... URL: From merchant at LATECH.EDU Mon Oct 24 12:00:38 2005 From: merchant at LATECH.EDU (David Merchant) Date: Mon, 24 Oct 2005 12:00:38 -0500 Subject: [Javascript] Microsoft.XMLDOM v/s MSXML2.DOMdocument In-Reply-To: <896D2E225C6459499C2840162BE53EE302EAB1BE@stgomail01.indap. nac> Message-ID: <5.1.0.14.2.20051024115850.02a17180@mail.latech.edu> An HTML attachment was scrubbed... URL: From paul at novitskisoftware.com Mon Oct 24 14:02:51 2005 From: paul at novitskisoftware.com (Paul Novitski) Date: Mon, 24 Oct 2005 12:02:51 -0700 Subject: [Javascript] Something better than getElementById In-Reply-To: References: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com> Message-ID: <6.2.3.4.2.20051024114449.04cf2b50@mail.spamarrest.com> At 09:02 AM 10/24/2005, Terry Riegel wrote: >I was able to implement your first suggestion, but I am not clear on >how to implement the method that avoids inline scripting. Here is my >simplified test page that isn't working. Any Ideas on what I might be missing? ... >function changestate(evt) >{ > // cancel event-bubbling > if (evt) { event = evt; } > event.cancelBubble = true; > > > // change class > if (this.className.search('nor') == -1) > { > this.className=this.className.replace('sel','nor'); > } > else > { > this.className=this.className.replace('nor','sel'); > } >} > >function Initialize() >{ > div.onclick = changestate; >} ... > >
.TEMP
>
images
>
skel
>
users
>
archive.pak
>
authenticate.html
> > Terry, Your Initialize() function doesn't correctly identify an object: > div.onclick = changestate; This would work only if you had an element with the id "div", e.g.:

Instead, it looks like you need to loop through all the elements on the page that meet certain criteria and assign the onclick behavior to each one. For the moment I'll assume that they're all DIVs and they all have classNames beginning with "nor": ____________________________ function Initialize() { // get an array of all DIV elements on the page var aEls = document.getElementsByTagName("DIV"); // loop through them looking for matches for (var iEl=0; iEl < aEls.length; iEl++) { // check class sClass = aEls[iEl].className; if (sClass.search("^nor") == 0) { aEls[iEl].onclick = changestate; } } } ____________________________ In sClass.search("^nor") I'm using the regular expression "^nor" in which ^ represents the beginning of the string, so it will only find nor when it begins a className. You could also write this as: if (sClass.substr(0,3) == "nor") String.substr() may take fewer milliseconds to execute than String.search(RegExp), if as has been suggested the RegExp engine takes a few more machine cycles to fire up, but this difference isn't going to be humanly perceptible unless you're looping hundreds of times. Later, when you're replacing "nor" with "sel", I'd likewise use ^ to be really specific: // change class if (this.className.search('^nor') == -1) { this.className=this.className.replace('^sel','nor'); } else { this.className=this.className.replace('^nor','sel'); } Paul From riegel at clearimageonline.com Mon Oct 24 15:57:42 2005 From: riegel at clearimageonline.com (Terry Riegel) Date: Mon, 24 Oct 2005 16:57:42 -0400 Subject: [Javascript] Fire up a function in another frame? In-Reply-To: <6.2.3.4.2.20051024114449.04cf2b50@mail.spamarrest.com> References: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com> <6.2.3.4.2.20051024114449.04cf2b50@mail.spamarrest.com> Message-ID: Hello, Is there a way to run a function that exists in another frame? Terry From trojani2000 at hotmail.com Mon Oct 24 20:13:50 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Tue, 25 Oct 2005 03:13:50 +0200 Subject: [Javascript] a BASIC instruction 2 JS In-Reply-To: <3DF0D6A1-4C50-4632-89DA-846033F4A49E@clearimageonline.com> Message-ID: An HTML attachment was scrubbed... URL: From trojani2000 at hotmail.com Tue Oct 25 02:21:15 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Tue, 25 Oct 2005 09:21:15 +0200 Subject: [Javascript] Something better than getElementById In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: From skyscanner at eircom.net Tue Oct 25 02:28:20 2005 From: skyscanner at eircom.net (SkyScanner) Date: Tue, 25 Oct 2005 08:28:20 +0100 Subject: [Javascript] Fire up a function in another frame? References: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com><6.2.3.4.2.20051024114449.04cf2b50@mail.spamarrest.com> Message-ID: <011b01c5d936$125be1c0$69882ec2@ic7g> Sure - just call parent.otherframename.myfunction(); ----- Original Message ----- From: "Terry Riegel" To: "[JavaScript List]" Sent: Monday, October 24, 2005 9:57 PM Subject: [Javascript] Fire up a function in another frame? > Hello, > > Is there a way to run a function that exists in another frame? > > Terry > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From rhernandez at datadec.es Tue Oct 25 02:32:16 2005 From: rhernandez at datadec.es (=?iso-8859-1?Q?Rafael_Hern=E1ndez?=) Date: Tue, 25 Oct 2005 09:32:16 +0200 Subject: [Javascript] Fire up a function in another frame? Message-ID: <8C987B8472B8A84FB42BD34E6C8A58CAFCC16F@srv-w2k-exchang.datadec2000.es> Hi, This is a simple example. -----Mensaje original----- De: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] En nombre de Terry Riegel Enviado el: lunes, 24 de octubre de 2005 22:58 Para: [JavaScript List] Asunto: [Javascript] Fire up a function in another frame? Hello, Is there a way to run a function that exists in another frame? Terry _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From trojani2000 at hotmail.com Tue Oct 25 02:49:58 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Tue, 25 Oct 2005 09:49:58 +0200 Subject: [Javascript] Something better than... 2nd post In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: From javascript at mattbarton.org Tue Oct 25 05:56:33 2005 From: javascript at mattbarton.org (Matt Barton) Date: Tue, 25 Oct 2005 11:56:33 +0100 Subject: [Javascript] Fire up a function in another frame? In-Reply-To: <011b01c5d936$125be1c0$69882ec2@ic7g> References: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com><6.2.3.4.2.20051024114449.04cf2b50@mail.spamarrest.com> <011b01c5d936$125be1c0$69882ec2@ic7g> Message-ID: <435E0F61.3090102@mattbarton.org> As long as the two frames are both displaying content from the same domain. (Query: that is still true isn't it?) Matt SkyScanner wrote: > Sure - just call parent.otherframename.myfunction(); > > > ----- Original Message ----- > From: "Terry Riegel" > To: "[JavaScript List]" > Sent: Monday, October 24, 2005 9:57 PM > Subject: [Javascript] Fire up a function in another frame? > > > >>Hello, >> >>Is there a way to run a function that exists in another frame? >> >>Terry >>_______________________________________________ >>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 email has been verified as Virus free > Virus Protection and more available at http://www.plus.net > From nick at nickfitz.co.uk Tue Oct 25 07:29:48 2005 From: nick at nickfitz.co.uk (Nick Fitzsimons) Date: Tue, 25 Oct 2005 13:29:48 +0100 (BST) Subject: [Javascript] Something better than... 2nd post In-Reply-To: References: Message-ID: <37507.193.195.164.58.1130243388.squirrel@www.easilymail.co.uk> For your third post, you could remove the extra semicolon at the start of your function :-) if(!e); e = window.event; ------^ should be if(!e) e = window.event; (Also, it's usually better not to use HTML for email... but maybe that's just me.) Cheers, Nick. >

(No delivery confirmation > received!) Reposting script only:

>


<script>

function changestate(e){
> 	if(!e);  e = window.event;
>
> 	if(e.srcElement){
> 	   e = e.srcElement
> 	}
>
>    else if(e.target){
> 	   e=e.target
> 	}
>
> 	if(e.className.search('nor') == -1){
> 	   e.className=e.className.replace('sel','nor')
> 	}
>
>    else{   e.className=e.className.replace('nor','sel')
> 	}
>     }
>
> document.onclick=changestate;
> 
>

</script>


>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Troy > III
progressive art > enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>
>
> From: Terry Riegel href="mailto:riegel at clearimageonline.com">riegel at clearimageonline.com
>

 



Express yourself > instantly with MSN Messenger! href="http://g.msn.com/8HMAEN/2743??PS=47575" target="_top">MSN > Messenger Download today it's FREE! > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > -- Nick Fitzsimons http://www.nickfitz.co.uk/ From mdougherty at pbp.com Tue Oct 25 08:49:31 2005 From: mdougherty at pbp.com (Mike Dougherty) Date: Tue, 25 Oct 2005 09:49:31 -0400 Subject: [Javascript] Fire up a function in another frame? In-Reply-To: <435E0F61.3090102@mattbarton.org> References: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com> <6.2.3.4.2.20051024114449.04cf2b50@mail.spamarrest.com> <011b01c5d936$125be1c0$69882ec2@ic7g> <435E0F61.3090102@mattbarton.org> Message-ID: In the case of IE, you may need to specify the domain via script in each frame. We had a case where we wanted sub1.domain.com to open a frame on sub2.domain.com - the solution (at least for IE) was to set the domain of the script on both pages to "domain.com" (this solution is tolerable because it's an intranet application) On Tue, 25 Oct 2005 11:56:33 +0100 Matt Barton wrote: > As long as the two frames are both displaying content from the same domain. (Query: that is >still true isn't it?) > > Matt > > > SkyScanner wrote: >> Sure - just call parent.otherframename.myfunction(); >> >> >> ----- Original Message ----- >> From: "Terry Riegel" >> To: "[JavaScript List]" >> Sent: Monday, October 24, 2005 9:57 PM >> Subject: [Javascript] Fire up a function in another frame? >> >> >> >>>Hello, >>> >>>Is there a way to run a function that exists in another frame? >>> >>>Terry >>>_______________________________________________ >>>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 email has been verified as Virus free >> Virus Protection and more available at http://www.plus.net >> > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > __________________________________________________________ > This message was scanned by ATX > 9:17:54 AM ET - 10/25/2005 From trojani2000 at hotmail.com Tue Oct 25 19:00:15 2005 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Wed, 26 Oct 2005 02:00:15 +0200 Subject: [Javascript] Something better than... 2nd post In-Reply-To: <37507.193.195.164.58.1130243388.squirrel@www.easilymail.co.uk> Message-ID: An HTML attachment was scrubbed... URL: From iztok.polanic at amis.net Wed Oct 26 08:08:57 2005 From: iztok.polanic at amis.net (Iztok Polanic) Date: Wed, 26 Oct 2005 15:08:57 +0200 Subject: [Javascript] auto In-Reply-To: <3DF0D6A1-4C50-4632-89DA-846033F4A49E@clearimageonline.com> References: <6.2.3.4.2.20051021234354.04d9aed0@mail.spamarrest.com> <3DF0D6A1-4C50-4632-89DA-846033F4A49E@clearimageonline.com> Message-ID: <435F7FE9.5080101@amis.net> Hi! How to dissable horizontal ruler in IE, when I set scrolling to "auto" in