From Roger.Espiritu at MAIL.CUNY.EDU Wed Mar 1 08:26:07 2006 From: Roger.Espiritu at MAIL.CUNY.EDU (Roger.Espiritu at MAIL.CUNY.EDU) Date: Wed, 1 Mar 2006 09:26:07 -0500 Subject: [Javascript] JSpell implementation help. Message-ID: I am trying to implement a JSpell (spellchecker product script from Soltions Cafe: http://www.thesolutioncafe.com/), to check individual textboxes for spelling. Before I want to purchase the product from "Solutions Cafe". I want to have one button image per textbox that checks their specified textbox. I've downloaded and tested their JSpell Trial version on my local test server. The way how JSpell works is that with a button, it checks all textboxes simulateously. I basically wanted one button per text field. The folks at Jspell said yes it works and they gave me this code to use to check for individual textboxes using it's own proprietary image button (Sample 2 below). I've tested it but I can't get it to work. What only works for me is with a single button, it checks ALL fields within the form. Can someone help me correctly rewrite the script for either samples below to make this happen. I only know very basic Javascripting. Sample 1: This sample does work. (with one button checking all textfields): ----------start------------
Spell Check
-------end--------- Sample 2: This is what the folks at solutionscafe gave with a button per textbox... but it doesn't work. I get errors in return. ----------start------------ JSpell Test File
-----------------end-------------- Help! -Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at jwarner.com Wed Mar 1 09:46:48 2006 From: john at jwarner.com (John Warner) Date: Wed, 1 Mar 2006 10:46:48 -0500 Subject: [Javascript] JSpell implementation help. In-Reply-To: Message-ID: <00c201c63d47$5a5f3880$6b01a8c0@earth> Ouch, does it push the dictionary out to the client or is this server side? Can't speak for your users, but I'd rather take my chances with my poor typing and spelling skills then have you push a dictionary down to me every time I visit your form... John Warner -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of Roger.Espiritu at MAIL.CUNY.EDU Sent: Wednesday, March 01, 2006 9:26 AM To: javascript at LaTech.edu Subject: [Javascript] JSpell implementation help. I am trying to implement a JSpell (spellchecker product script from Soltions Cafe: http://www.thesolutioncafe.com/), to check individual textboxes for spelling. Before I want to purchase the product from "Solutions Cafe". I want to have one button image per textbox that checks their specified textbox. I've downloaded and tested their JSpell Trial version on my local test server. The way how JSpell works is that with a button, it checks all textboxes simulateously. I basically wanted one button per text field. The folks at Jspell said yes it works and they gave me this code to use to check for individual textboxes using it's own proprietary image button (Sample 2 below). I've tested it but I can't get it to work. What only works for me is with a single button, it checks ALL fields within the form. Can someone help me correctly rewrite the script for either samples below to make this happen. I only know very basic Javascripting. Sample 1: This sample does work. (with one button checking all textfields): ----------start------------
Spell Check
-------end--------- Sample 2: This is what the folks at solutionscafe gave with a button per textbox... but it doesn't work. I get errors in return. ----------start------------ JSpell Test File
-----------------end-------------- Help! -Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: From Conleyj at kubota-kma.com Wed Mar 1 09:52:19 2006 From: Conleyj at kubota-kma.com (James Conley) Date: Wed, 1 Mar 2006 10:52:19 -0500 Subject: [Javascript] JSpell implementation help. Message-ID: GMail has spellcheck. I love it. I presume it [GMAIL] is using AJAX. james c ________________________________ From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of John Warner Sent: Wednesday, March 01, 2006 10:47 AM To: '[JavaScript List]' Subject: RE: [Javascript] JSpell implementation help. Ouch, does it push the dictionary out to the client or is this server side? Can't speak for your users, but I'd rather take my chances with my poor typing and spelling skills then have you push a dictionary down to me every time I visit your form... John Warner -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at jwarner.com Wed Mar 1 10:00:18 2006 From: john at jwarner.com (John Warner) Date: Wed, 1 Mar 2006 11:00:18 -0500 Subject: [Javascript] JSpell implementation help. In-Reply-To: Message-ID: <00df01c63d49$3d0ee0d0$6b01a8c0@earth> I thought they were doing that on their side and not mine. Wonder how they push the dictionary out to me so quickly? John Warner -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of James Conley Sent: Wednesday, March 01, 2006 10:52 AM To: [JavaScript List] Subject: RE: [Javascript] JSpell implementation help. GMail has spellcheck. I love it. I presume it [GMAIL] is using AJAX. james c _____ From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of John Warner Sent: Wednesday, March 01, 2006 10:47 AM To: '[JavaScript List]' Subject: RE: [Javascript] JSpell implementation help. Ouch, does it push the dictionary out to the client or is this server side? Can't speak for your users, but I'd rather take my chances with my poor typing and spelling skills then have you push a dictionary down to me every time I visit your form... John Warner -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at novitskisoftware.com Wed Mar 1 10:34:27 2006 From: paul at novitskisoftware.com (Paul Novitski) Date: Wed, 01 Mar 2006 08:34:27 -0800 Subject: [Javascript] JSpell implementation help. In-Reply-To: <00df01c63d49$3d0ee0d0$6b01a8c0@earth> References: <00df01c63d49$3d0ee0d0$6b01a8c0@earth> Message-ID: <6.2.3.4.2.20060301083152.04af89e0@spamarrest.com> At 08:00 AM 3/1/2006, John Warner wrote: >I thought they were doing that on their side and not mine. Wonder >how they push the dictionary out to me so quickly? John, I don't think they're sending you the dictionary -- they're sending themselves your text, spellchecking on their server, and returning the results to you. The technology is undoubtedly Ajax/XMLHttpRequest which can exchange component data between client & server without reloading the whole page. Regards, Paul From Conleyj at kubota-kma.com Wed Mar 1 10:39:28 2006 From: Conleyj at kubota-kma.com (James Conley) Date: Wed, 1 Mar 2006 11:39:28 -0500 Subject: [Javascript] JSpell implementation help. Message-ID: Based on the at the FAQ on their website I would guess that it's even a bit more intelligent than that. It sounds like a slick algorithm : http://www.thesolutioncafe.com/jspell-spell-checker-faq.html#howitworks How does JSpell work? JSpell takes a block of text from either a GUI component or another source (an HTML Form, for example) and extracts individual words. JSpell then validates these words against a small in memory dictionary and then checks any words that were not found against either a disk based or network based dictionary (depending upon which version of the software you are using). james c -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of Paul Novitski Sent: Wednesday, March 01, 2006 11:34 AM To: [JavaScript List] Subject: RE: [Javascript] JSpell implementation help. At 08:00 AM 3/1/2006, John Warner wrote: >I thought they were doing that on their side and not mine. Wonder how >they push the dictionary out to me so quickly? John, I don't think they're sending you the dictionary -- they're sending themselves your text, spellchecking on their server, and returning the results to you. The technology is undoubtedly Ajax/XMLHttpRequest which can exchange component data between client & server without reloading the whole page. Regards, Paul From scott at randomchaos.com Wed Mar 1 10:48:20 2006 From: scott at randomchaos.com (Scott Reynen) Date: Wed, 1 Mar 2006 10:48:20 -0600 Subject: [Javascript] JSpell implementation help. In-Reply-To: <6.2.3.4.2.20060301083152.04af89e0@spamarrest.com> References: <00df01c63d49$3d0ee0d0$6b01a8c0@earth> <6.2.3.4.2.20060301083152.04af89e0@spamarrest.com> Message-ID: On Mar 1, 2006, at 10:34 AM, Paul Novitski wrote: > John, I don't think they're sending you the dictionary -- they're > sending themselves your text, spellchecking on their server, and > returning the results to you. > > The technology is undoubtedly Ajax/XMLHttpRequest which can > exchange component data between client & server without reloading > the whole page. Isn't this what you're all talking about: http://www.thesolutioncafe.com/html-spell-checker.html Because that's not AJAX; it's a pop-up window. And it specifically says "Spell check server is hosted on your equipment, i.e., no dependence on third party servers and networks." Peace, Scott From Roger.Espiritu at MAIL.CUNY.EDU Wed Mar 1 11:11:01 2006 From: Roger.Espiritu at MAIL.CUNY.EDU (Roger.Espiritu at MAIL.CUNY.EDU) Date: Wed, 1 Mar 2006 12:11:01 -0500 Subject: [Javascript] JSpell implementation help. Message-ID: So...after decyphering with how JSpell is being used... can anyone help me with the codes? Much appreciated. -roger -------------- next part -------------- An HTML attachment was scrubbed... URL: From trojani2000 at hotmail.com Wed Mar 1 17:32:14 2006 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Wed, 01 Mar 2006 23:32:14 +0000 Subject: [Javascript] disableselect in firefox In-Reply-To: Message-ID: How do you prevent selecting text and/or image in Firefox ? _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From scott at randomchaos.com Wed Mar 1 17:49:10 2006 From: scott at randomchaos.com (Scott Reynen) Date: Wed, 1 Mar 2006 17:49:10 -0600 Subject: [Javascript] disableselect in firefox In-Reply-To: References: Message-ID: <5DE55F28-3F07-4615-A3AD-025D40B389CF@randomchaos.com> On Mar 1, 2006, at 5:32 PM, Troy III Ajnej wrote: > How do you prevent selecting text and/or image in Firefox ? Use PDF. Peace, Scott From trojani2000 at hotmail.com Wed Mar 1 17:59:12 2006 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Wed, 01 Mar 2006 23:59:12 +0000 Subject: [Javascript] disableselect in firefox In-Reply-To: <5DE55F28-3F07-4615-A3AD-025D40B389CF@randomchaos.com> Message-ID: That's a good one :) But I tried that also, pdf get's selected too. How about some javascripting abilities? Peace,

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

>From: Scott Reynen >Reply-To: "\[JavaScript List\]" >To: "\[JavaScript List\]" >Subject: Re: [Javascript] disableselect in firefox >Date: Wed, 1 Mar 2006 17:49:10 -0600 > >On Mar 1, 2006, at 5:32 PM, Troy III Ajnej wrote: > >>How do you prevent selecting text and/or image in Firefox ? > >Use PDF. > >Peace, >Scott _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement From paul at novitskisoftware.com Wed Mar 1 18:05:03 2006 From: paul at novitskisoftware.com (Paul Novitski) Date: Wed, 01 Mar 2006 16:05:03 -0800 Subject: [Javascript] disableselect in firefox In-Reply-To: References: Message-ID: <6.2.3.4.2.20060301160226.04b1f118@spamarrest.com> At 03:32 PM 3/1/2006, Troy III Ajnej wrote: >How do you prevent selecting text and/or image in Firefox ? You can place a glass cover (transparent div) on top of things you don't want selected with a mouse-swipe. But will it prevent selection using CTL-A? Paul From trojani2000 at hotmail.com Wed Mar 1 18:24:31 2006 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Thu, 02 Mar 2006 00:24:31 +0000 Subject: [Javascript] disableselect in firefox In-Reply-To: <6.2.3.4.2.20060301160226.04b1f118@spamarrest.com> Message-ID: My problem involves, moving the nested elements inside a DIV around the page. It's a "Picture Gallery Navigator", it has 6 buttons, sample (of a currently selected) picture and an LCD-like monitor along with the caption that axpands and colapses (except the monitor) if clicked on. I've managed to make it draggable anywhere on the page and expand-colapse if not dragged for IE. But I'm not being able to find a way to make this happen in firefox. I'm not having a problem with Navigator 8, cause it allready has IE/FX switchable ability for browsing. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Troy III progressive art enterprise ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >From: Paul Novitski >Reply-To: "\[JavaScript List\]" >To: javascript at LaTech.edu >Subject: RE: [Javascript] disableselect in firefox >Date: Wed, 01 Mar 2006 16:05:03 -0800 > >At 03:32 PM 3/1/2006, Troy III Ajnej wrote: > >>How do you prevent selecting text and/or image in Firefox ? > > >You can place a glass cover (transparent div) on top of things you don't >want selected with a mouse-swipe. > >But will it prevent selection using CTL-A? > >Paul > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee? Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From paul at novitskisoftware.com Wed Mar 1 18:25:29 2006 From: paul at novitskisoftware.com (Paul Novitski) Date: Wed, 01 Mar 2006 16:25:29 -0800 Subject: [Javascript] disableselect in firefox In-Reply-To: References: <5DE55F28-3F07-4615-A3AD-025D40B389CF@randomchaos.com> Message-ID: <6.2.3.4.2.20060301161842.04b6b9e0@spamarrest.com> At 03:59 PM 3/1/2006, Troy III Ajnej wrote: >That's a good one :) >But I tried that also, pdf get's selected too. How about some >javascripting abilities? Troy, Are you trying to prevent selection or merely discourage it? Ultimately I don't think you can actually PREVENT selection of text or image. I can always view the generated source using the Firefox web developer toolbar and copy out text or image URLs. What is your specific goal? Paul From trojani2000 at hotmail.com Wed Mar 1 18:42:04 2006 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Thu, 02 Mar 2006 00:42:04 +0000 Subject: [Javascript] disableselect in firefox In-Reply-To: <6.2.3.4.2.20060301161842.04b6b9e0@spamarrest.com> Message-ID: Actually, I'm trying to prevent it happening while dragging a HTML object (my Picture Navigator) to a different location. Because, if it happens while drragging, the dragg functionality gets interrupted and it doesn't follow the mouse until the mouse button is released etc. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Troy III progressive art enterprise ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >From: Paul Novitski >Reply-To: "\[JavaScript List\]" >To: javascript at LaTech.edu >Subject: Re: [Javascript] disableselect in firefox >Date: Wed, 01 Mar 2006 16:25:29 -0800 > >At 03:59 PM 3/1/2006, Troy III Ajnej wrote: >>That's a good one :) >>But I tried that also, pdf get's selected too. How about some >>javascripting abilities? > > >Troy, > >Are you trying to prevent selection or merely discourage it? > >Ultimately I don't think you can actually PREVENT selection of text or >image. I can always view the generated source using the Firefox web >developer toolbar and copy out text or image URLs. > >What is your specific goal? > >Paul > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar ? get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ From leeu at cfl.rr.com Wed Mar 1 19:56:05 2006 From: leeu at cfl.rr.com (Lee Underwood) Date: Wed, 01 Mar 2006 20:56:05 -0500 Subject: [Javascript] disableselect in firefox In-Reply-To: References: <6.2.3.4.2.20060301161842.04b6b9e0@spamarrest.com> Message-ID: <6.2.5.6.0.20060301205543.024c0af8@cfl.rr.com> This might work for you or you could adapt it. http://javascript.internet.com/page-details/disable-text-selection.html Lee On 3/1/2006 07:42 PM, Troy III Ajnej wrote: ........................................................ >Actually, I'm trying to prevent it happening >while dragging a HTML object (my Picture >Navigator) to a different location. Because, if >it happens while drragging, the dragg >functionality gets interrupted and it doesn't >follow the mouse until the mouse button is released etc. > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Troy III >progressive art enterprise >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > >>From: Paul Novitski >>Reply-To: "\[JavaScript List\]" >>To: javascript at LaTech.edu >>Subject: Re: [Javascript] disableselect in firefox >>Date: Wed, 01 Mar 2006 16:25:29 -0800 >> >>At 03:59 PM 3/1/2006, Troy III Ajnej wrote: >>>That's a good one :) >>>But I tried that also, pdf get's selected too. >>>How about some javascripting abilities? >> >> >>Troy, >> >>Are you trying to prevent selection or merely discourage it? >> >>Ultimately I don't think you can actually >>PREVENT selection of text or image. I can >>always view the generated source using the >>Firefox web developer toolbar and copy out text or image URLs. >> >>What is your specific goal? >> >>Paul >> >>_______________________________________________ >>Javascript mailing list >>Javascript at LaTech.edu >>https://lists.LaTech.edu/mailman/listinfo/javascript > >_________________________________________________________________ >FREE pop-up blocking with the new MSN Toolbar ? >get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > > >-- >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.1.375 / Virus Database: 268.1.1/271 - Release Date: 2/28/2006 ........................................................ -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 268.1.1/271 - Release Date: 2/28/2006 From paul at novitskisoftware.com Wed Mar 1 20:14:45 2006 From: paul at novitskisoftware.com (Paul Novitski) Date: Wed, 01 Mar 2006 18:14:45 -0800 Subject: [Javascript] disableselect in firefox In-Reply-To: <6.2.5.6.0.20060301205543.024c0af8@cfl.rr.com> References: <6.2.3.4.2.20060301161842.04b6b9e0@spamarrest.com> <6.2.5.6.0.20060301205543.024c0af8@cfl.rr.com> Message-ID: <6.2.3.4.2.20060301180848.02f0bcf0@spamarrest.com> >On 3/1/2006 07:42 PM, Troy III Ajnej wrote: > >>Actually, I'm trying to prevent it happening while dragging a HTML >>object (my Picture Navigator) to a different location. Because, if >>it happens while drragging, the dragg functionality gets >>interrupted and it doesn't follow the mouse until the mouse button >>is released etc. At 05:56 PM 3/1/2006, Lee Underwood wrote: >This might work for you or you could adapt it. > >http://javascript.internet.com/page-details/disable-text-selection.html Interestingly, this technique disables text selection IFF begun in the identified area. I can begin my text-selection in the preceding section and carry the selection into the "disabled" section. Here's a text selection from the web page using my mouse and copied & pasted here: >selection before it starts. You can even attach the events to a >specific element. >[This section of text cannot be selected.] Lorem ipsum dolor sit >amet, consectetuer adipiscing elit ... Troy, you'd have to play with it to see if you could extend the boundaries of the disabled area widely enough to prevent this from occurring and without disabling the drag-&-drop functionality you're creating. Paul From web.listserv at gmail.com Wed Mar 1 21:51:09 2006 From: web.listserv at gmail.com (George Tsang) Date: Wed, 1 Mar 2006 22:51:09 -0500 Subject: [Javascript] How to create a web page that fits screens of all sizes via all browsers Message-ID: <884e5b7f0603011951x74d46d82h6d1ebc18b0e5b8df@mail.gmail.com> Greetins, I liked to find out how one can write a webpage that can fit perfectly the size of all monitor screens, big or small, via all browsers, IE or NN or Firefox? Thanks. George -------------- next part -------------- An HTML attachment was scrubbed... URL: From david at dorward.me.uk Thu Mar 2 01:36:15 2006 From: david at dorward.me.uk (David Dorward) Date: Thu, 02 Mar 2006 07:36:15 +0000 Subject: [Javascript] How to create a web page that fits screens of all sizes via all browsers In-Reply-To: <884e5b7f0603011951x74d46d82h6d1ebc18b0e5b8df@mail.gmail.com> References: <884e5b7f0603011951x74d46d82h6d1ebc18b0e5b8df@mail.gmail.com> Message-ID: <1141284976.7603.0.camel@cyberman.dorward.me.uk> On Wed, 2006-03-01 at 22:51 -0500, George Tsang wrote: > I liked to find out how one can write a webpage that can fit perfectly > the size of all monitor screens, big or small, via all browsers, IE or > NN or Firefox? That is the default, just don't do anything to stop it. http://allmyfaqs.net/faq.pl?AnySizeDesign -- David Dorward "Anybody remotely interesting is mad, in some way or another." -- The Greatest Show in the Galaxy From trojani2000 at hotmail.com Thu Mar 2 18:01:45 2006 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Fri, 03 Mar 2006 00:01:45 +0000 Subject: [Javascript] disableselect in firefox In-Reply-To: <6.2.3.4.2.20060301180848.02f0bcf0@spamarrest.com> Message-ID: Paul and Lee, thank's for your feedback. Since we are moving outwards the problem because of Scotts joke with PDF, I'll post the actual piece of my page I'm having problems with. This is the "Picture Navigator" part of the "Picture Gallery Page". This, of course, doesn't work in firefox. CSS alingn center doesn't work also, only toggle expand/collapse does. While JavaScript Console is empty and no errors are reported! As you'll see, I've removed some brackets from the code for mailling purpose. This is my IE variant with some modifications for Firefox. I have a seccond question: how does events buble in FX? Do they buble up or down? Why do they evaporate if not written in this manner? Example: function msefollower(e){ if(!e) e = window.event navigator.style.posLeft= (e.screenX-dx) navigator.style.posTop = (e.screenY-dy) } I remember having this issue with IE ver prior to 4.01, (a very long time ago). The following version reports ' e (or) event undefined' in FX but works since '98 in IE The IE version: function msefollower(){e = window.event navigator.style.posLeft= (e.screenX-dx) navigator.style.posTop = (e.screenY-dy) } Thank's in advance THE CODE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> html head style IMG { height: 45px; border: 2px ridge #444499; background: white; text-align: center; margin:1px} #display { width:204; color: #7B8EBD; text-indent: 6; font: bold 8pt arial; border: 2px solid #222233; background: black; text-align: center; margin:1px} #BASE { border-style:ridge; border-color:#63659C; width:200; height:150; text-align: center; margin:1px} INPUT,BUTTON { width: 98px; font: bold 8pt arial; text-align: center; margin:1px} #navigator { position: absolute; Top: 120px; Left: 10px; width:230px; height:460px; text-align: center;margin:1px} #navcapt { background: #202020; cursor: default; color: white; border: 1px outset white; font:bold 8pt Arial; text-align: center; margin:1px} #navbody { display:block; text-align: center;margin:1px} /style /head /body script var dx, dy, mobile='false', dragged='false' // vars added for W3C element refference compliance! var navigator=document.getElementById("navigator") var navcapt=document.getElementById("navcapt") var nv=document.getElementById("navbody") function expandcolapse(){ if(dragged=='false'){ if(nv.style.display!="none"){nv.style.display='none'}else{nv.style.display='block'} } } function enablemove(event){ if(!event) event = window.event //suppressing 'event not defined' in firefox mobile='true'; dragged='false'; //revive toggle navigator dx=event.screenX-navigator.offsetLeft // (a-b) always >= 0 dy=event.screenY-navigator.offsetTop } function disablemove(){mobile='false'} function mousefollower(event){ if(!event) event = window.event //suppressing 'event not defined' in firefox if(mobile=='true'){ navigator.style.posLeft= (event.screenX-dx) // IE supports "event.x" over "event.clientX" and "screenX" also. navigator.style.posTop = (event.screenY-dy) } } function canceldefault(){dragged='true'; return false} navigator.onmousedown=enablemove document.onmousemove=mousefollower //prevent mouse escaping from draged-el navigator.onmouseup=disablemove navigator.onselectstart=canceldefault //disable select navigator.ondragstart = canceldefault //disable image drag navcapt.onclick = expandcolapse /script /html <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Troy III progressive art enterprise ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From trojani2000 at hotmail.com Thu Mar 2 18:50:07 2006 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Fri, 03 Mar 2006 00:50:07 +0000 Subject: [Javascript] disableselect in firefox In-Reply-To: <6.2.3.4.2.20060301180848.02f0bcf0@spamarrest.com> Message-ID: This is a repost, since my original post is still cycling on servers, not being delivered for about an hour now. Thanks for your repllies. I'm sending my source code for IE somewhat modified for FX, but it doesn't work in it. One of the problems is that I'm not geting any error report in JavaScript Console with this version of code. Is it possible to make this code happen in FX as it does in IE? html head style IMG { height: 45px; border: 2px ridge #444499; background: white; text-align: center; margin:1px} #display { width:204; color: #7B8EBD; text-indent: 6; font: bold 8pt arial; border: 2px solid #222233; background: black; text-align: center; margin:1px} #BASE { border-style:ridge; border-color:#63659C; width:200; height:150; text-align: center; margin:1px} INPUT,BUTTON { width: 98px; font: bold 8pt arial; text-align: center; margin:1px} #navigator { position: absolute; Top: 120px; Left: 10px; width:230px; height:460px; text-align: center;margin:1px} #navcapt { background: #202020; cursor: default; color: white; border: 1px outset white; font:bold 8pt Arial; text-align: center; margin:1px} #navbody { display:block; text-align: center;margin:1px} /style /head /body script var dx, dy, mobile='false', dragged='false' // vars added for W3C element refference compliance! var navigator=document.getElementById("navigator") var navcapt=document.getElementById("navcapt") var nv=document.getElementById("navbody") function expandcolapse(){ if(dragged=='false'){ if(nv.style.display!="none"){nv.style.display='none'}else{nv.style.display='block'} } } function enablemove(event){ if(!event) event = window.event //suppressing 'event not defined' in firefox mobile='true'; dragged='false'; //revive toggle navigator dx=event.screenX-navigator.offsetLeft // (a-b) always >= 0 dy=event.screenY-navigator.offsetTop } function disablemove(){mobile='false'} function mousefollower(event){ if(!event) event = window.event //suppressing 'event not defined' in firefox if(mobile=='true'){ navigator.style.posLeft= (event.screenX-dx) // IE supports "event.x" over "event.clientX" and "screenX" also. navigator.style.posTop = (event.screenY-dy) } } function canceldefault(){dragged='true'; return false} navigator.onmousedown=enablemove document.onmousemove=mousefollower //prevent mouse escaping from draged-el navigator.onmouseup=disablemove navigator.onselectstart=canceldefault //disable select navigator.ondragstart = canceldefault //disable image drag navcapt.onclick = expandcolapse /script /html ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Troy III progressive art enterprise ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement From geoffreyk at seanet.com Fri Mar 3 12:11:08 2006 From: geoffreyk at seanet.com (Geoff Knutzen) Date: Fri, 3 Mar 2006 10:11:08 -0800 Subject: [Javascript] RE: Eolas IE ships and a possible work-around Message-ID: <000001c63eed$d9261240$150ca8c0@MB001> _____ From: Geoff Knutzen [mailto:gknutzen at farecast.com] Sent: Friday, March 03, 2006 7:59 AM To: 'javascript at LaTech.edu' Subject: Eolas IE ships and a possible work-around Looks like Microsoft has shipped the version of IE that will not properly interact with flash (and other external multi-media players) http://www.pcmag.com/article2/0,1895,1932738,00.asp microsoft's page http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ove rview/activating_activex.asp I have been working on a solution for my site this morning and have come up with the following code. I was wondering if there are any opinions on this technique and whether it really works on most browser/platform combinations. I added the following function to an external .js file that is called by my pages that have flash on them. function writeExCtrl(id){ if(document.getElementById && document.getElementById(id) && document.getElementById(id).innerHTML){ document.write(document.getElementById(id).innerHTML.replace(/>/gi, '>').replace(/</gi, '<')); } } Then I wrapped my existing object and embed tags with these lines So that it looks like this I like this because I don't have to change anything in the code that I use to embed the flash files. This is nice because some of the code is generated on the fly. It seems to work fine on all of the browsers that I have tried it on, but I would appreciate any other eyes on this. Also, are there any ways to make this better/faster/smaller? Just looking for feedback on this TIA -Geoffrey -------------- next part -------------- An HTML attachment was scrubbed... URL: From trojani2000 at hotmail.com Fri Mar 3 21:04:40 2006 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sat, 04 Mar 2006 03:04:40 +0000 Subject: [Javascript] How to create a web page that fits screens of allsizes via all In-Reply-To: <884e5b7f0603011951x74d46d82h6d1ebc18b0e5b8df@mail.gmail.com> Message-ID: The most recent version of NN is IE and FX compliant; alias switchable, -so no problem with that. Somebody at NN must have read one of my postings here a few months ago. Might be an year. If you like a page that will display in all monitors/browsers with the same proportions youll have to build a page that will calculate and parse dimensions proportional to the window size no matter what size accordingly. But that's a very tiresome job to do. There used to be a downloadable script that worked for NN3 or somethig (a decade ago) that you could be downloaded at that time from the net but coding elements were very simple at that time, today you'll have to work very hard to make something like that possible again.

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

>From: "George Tsang" >Reply-To: "\[JavaScript List\]" >To: javascript at LaTech.edu >Subject: [Javascript] How to create a web page that fits screens of >allsizes via all browsers >Date: Wed, 1 Mar 2006 22:51:09 -0500 > >Greetins, > >I liked to find out how one can write a webpage that can fit perfectly the >size of all monitor screens, big or small, via all browsers, IE or NN or >Firefox? > >Thanks. > >George >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee? Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From rer at datacompusa.com Fri Mar 3 21:47:22 2006 From: rer at datacompusa.com (Roger Roelofs) Date: Fri, 3 Mar 2006 22:47:22 -0500 Subject: [Javascript] How to create a web page that fits screens of allsizes via all In-Reply-To: References: Message-ID: <2a16634237d2f9e115dc0dcf5a53c979@datacompusa.com> Troy and George, On Mar 3, 2006, at 10:04 PM, Troy III Ajnej wrote: > The most recent version of NN is IE and FX compliant; alias > switchable, -so no problem with that. Somebody at NN must have read > one of my postings here a few months ago. Might be an year. > If you like a page that will display in all monitors/browsers with the > same proportions youll have to build a page that will calculate and > parse dimensions proportional to the window size no matter what size > accordingly. But that's a very tiresome job to do. There used to be a > downloadable script that worked for NN3 or somethig (a decade ago) > that you could be downloaded at that time from the net but coding > elements were very simple at that time, today you'll have to work > very hard to make something like that possible again. I didn't answer this one before because I didn't understand why javascript would be involved, or why it would be hard. It seems like a perfect job for css. ---------- ...
Whatever
more stuff
------------ What am I missing? -- Roger Roelofs Datacomp Appraisal Services From trojani2000 at hotmail.com Sat Mar 4 19:22:57 2006 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sun, 05 Mar 2006 01:22:57 +0000 Subject: [Javascript] How to create a web page that fits screens ofallsizes via all In-Reply-To: <2a16634237d2f9e115dc0dcf5a53c979@datacompusa.com> Message-ID: I guess that the point you were missing was the casse where all elements of the page created to be viewed on f.i. 1600x1200px monitor should perfectly fit in other lower/higher resolution monitors as well. All the gaphics paragraphs etc. At 1920x1440 or higher, the text size might become to small for reading and other elemends will tend to sllip in to fill empty space where not desired, etc., so the wholle layout will suffer. Or when screen reso lower than that, objects and text become bigger and many elements of the design will end up looking grotesque. 50% of the screen with res at 800x600 will differ very much from the 50% at res of 1920x1440. Disproportion will be as 960:400 that will be twice + extra 160px wider. The script (or java applet from '97) that I mentioned was capable of maintaining all the proportions no matter what resolution your screen has. It was capable of adjusting the font size gaphic size etc imediately as you resize your window while maintaining perfect layout as foreseen and designed originally. This was what I meant with a lot of hard decisions and a hard work while coding this kind of pages. But i think that it is not imposible with the right aproach from the script. Right now I have an Idea that I'm not willing to put in to work but might help guiding somebody into a (? right) direction onto solving this universally, that is: making a script that will perfectly adapt hight width and font size for every element on the fly. As the page loads the script should check for the users window width (solely for most designs), itierate all the elements checking for hight and width and calculate new size according to proprotion coeficient (extracted from width of the original page design/client width) than multiplied with elements width and hight than asigned. For the page designed in resolution of 1600x1400 to be viewed in 1024x768, the proportion koeficient should be calculated as: k=1600px/1024px=1.5625 (const) [px/px=null] Element of size 750x625px designed for 1600x1400px resolution at screen resolution of 1024x768 should be adjusted as: 750px/k=Xpx; that is: 750px/1.5625 = 480px; same goes for its height 625px/1.5625 = 400px x:y for the new dimensions will equal 480px:400px; to justify this claim we calculate the following: 750/625=1.2 as does 480/400=1.2; that is: 750/625 = 480/400 But calculating the font size will be a lot more trickyer than this and I'm not prepared to get into it this time. This formula will work for all screen sizes and page sizes independent of what resolution was used during design time. All that the coder will need to do is include this (!that) script in his page and invoke it during load time. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Troy III progressive art enterprise ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >From: Roger Roelofs >Reply-To: "\[JavaScript List\]" >To: "\[JavaScript List\]" >Subject: Re: [Javascript] How to create a web page that fits screens >ofallsizes via all Date: Fri, 3 Mar 2006 22:47:22 -0500 > >Troy and George, > >On Mar 3, 2006, at 10:04 PM, Troy III Ajnej wrote: > >>The most recent version of NN is IE and FX compliant; alias switchable, >>-so no problem with that. Somebody at NN must have read one of my postings >>here a few months ago. Might be an year. >>If you like a page that will display in all monitors/browsers with the >>same proportions youll have to build a page that will calculate and parse >>dimensions proportional to the window size no matter what size >>accordingly. But that's a very tiresome job to do. There used to be a >>downloadable script that worked for NN3 or somethig (a decade ago) that >>could be downloaded at that time from the net but coding elements were >>very simple at that time, today you'll have to work very hard to make >>something like that possible again. > > >I didn't answer this one before because I didn't understand why javascript >would be involved, or why it would be hard. It seems like a perfect job >for css. >---------- >... > > > >
Whatever
>
more stuff
> >------------ > >What am I missing? > > >-- >Roger Roelofs >Datacomp Appraisal Services > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar ? get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ From davidh126 at writeme.com Sat Mar 4 21:54:43 2006 From: davidh126 at writeme.com (David Hucklesby) Date: Sat, 4 Mar 2006 19:54:43 -0800 Subject: [Javascript] How to create a web page that fits screens ofallsizes via all In-Reply-To: Message-ID: <200634195443.403810@DAVIDS> On Sun, 05 Mar 2006, Troy III Ajnej wrote: > Right now I have an Idea that I'm not willing to put in to work but > might help guiding somebody into a (? right) direction onto solving > this universally, that is: making a script that will perfectly adapt > hight width and font size for every element on the fly. Umm-- How would you go about re-sizing background images? Cordially, David -- David Hucklesby, on 3/4/2006 -- From trojani2000 at hotmail.com Sat Mar 4 23:30:42 2006 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sun, 05 Mar 2006 05:30:42 +0000 Subject: [Javascript] How to create a web page that fits screensofallsizes via all In-Reply-To: <200634195443.403810@DAVIDS> Message-ID: I believe that background image support was added more or less for a strict use of textures and pattern-like fills that are built out of a very small tiled elements and not for supporting real pictures. This is why background images repeat by default through x,y axes, (it rethorically explains the reason why there is no buit in support for bgimage dimensions), this way making it posible to build rich backgrounds with far less wasted bits posible. But I agree that we do missuse this capability quite often for displaying a picture of some sort, wich is nonstandard and f.m.p.o.v. even wrong. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Troy III progressive art enterprise ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >From: David Hucklesby >Reply-To: "\[JavaScript List\]" >To: >Subject: Re: [Javascript] How to create a web page that fits >screensofallsizes via all >Date: Sat, 4 Mar 2006 19:54:43 -0800 > >On Sun, 05 Mar 2006, Troy III Ajnej wrote: > > > Right now I have an Idea that I'm not willing to put in to work but > > might help guiding somebody into a (? right) direction onto solving > > this universally, that is: making a script that will perfectly adapt > > hight width and font size for every element on the fly. > >Umm-- How would you go about re-sizing background images? > >Cordially, >David _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From rer at datacompusa.com Sun Mar 5 00:02:13 2006 From: rer at datacompusa.com (Roger Roelofs) Date: Sun, 5 Mar 2006 01:02:13 -0500 Subject: [Javascript] How to create a web page that fits screens ofallsizes via all In-Reply-To: References: Message-ID: <061d9cf0c2c011abad4c8e73ea25404e@datacompusa.com> Troy (and list), On Mar 4, 2006, at 8:22 PM, Troy III Ajnej wrote: > I guess that the point you were missing was the casse where all > elements of the page created to be viewed on f.i. 1600x1200px monitor > should perfectly fit in other lower/higher resolution monitors as > well. All the gaphics paragraphs etc. At 1920x1440 or higher, the text > size might become to small for reading and other elemends will tend to > sllip in to fill empty space where not desired, etc., so the wholle > layout will suffer. ... The first question is really what does 'all' mean. what about cell phones? What about browsers with css or javascript, or images turned off? Anytime we do site design, we have to find out what our users browse with and take that into account. There has never been, and never will be a 'one size fits all' solution. The best we can do is build in flexibility. If you have a css standards compliant browser you can do all this with no javascript. Even in ie/win you can get 90% of the way there. I particularly like the percentage solution because it already takes the window width and height into consideration. If you are worried about window size vs font size, you can set min and max widths in ems to constrain line lengths. Keep in mind that in css you can size anything (image, paragraph, flash object, etc) in percentages to get size relative to the parent (and eventually the window), or in ems to keep the elements size constant relative to the users' chosen font size. I realize that different screens have different dpi settings. But if I size all my text relative to the browsers default font-size setting, the font should be a comfortable size no matter what dpi the user has. Since, there is no correlation between screen size, dpi, and browser window width/height, I can't reliably set the font size for the user based on any data available in javascript. When you throw in users with multiple, different sized, monitors and those 'pivotable' ones, things get even wierder. I can easily imagine using javascript to switch to higher-rez graphics on larger window sizes so the graphic elements will look better. The size of the graphic can still be set in css, but you would need a bit of javascript to change the image src, or add a class to an element so it pulls in the higher resolution image file. Even this is problematic because there isn't a correlation between screen/window size and available bandwidth. Everything's a trade-off I guess. Digression: If you want different layouts based on user window width, you can easily do that by having javascript set a class on the body element after sniffing the window width/height. Media queries would also work when support for them gets built in to more browsers. Also, since I'm in future watch mode, CSS3 allows for scaling background images. If you are interested in what can be done with css, and can stand yet another mailing list, wander over to css-discuss.org and check out the archives, or join the list. As you've probably guessed by now, my standard operating procedure is to use css for presentational stuff as much as possible with some javascript to provide a helping hand where necessary. That gives javascript disabled users a good experience, and javascript enabled ones an even better one. -- Roger Roelofs Datacomp Appraisal Services From micky at ambiguism.com Sun Mar 5 00:02:52 2006 From: micky at ambiguism.com (Michael Hulse) Date: Sat, 4 Mar 2006 22:02:52 -0800 Subject: [Javascript] JS Help: Dynamic form control Message-ID: I can't seem to get the Javascript to target form elements that are wrapped in div tags... Hi, I can't seem to figure this one out... maybe someone on the list can point me in the right direction? Here is the JS: /****** ******/ var?counter?=?0; function?moreFields() { counter++; var newFields?=?document.getElementById('readroot').cloneNode(true); newFields.id?=?''; newFields.style.display?=?'block'; newFields.firstChild.nodeValue=counter?+?'.?'; var?newField?=?newFields.childNodes; for?(var?i=0;i=?1) { writeroot.parentNode.removeChild(writeroot.previousSibling); counter--; } } //setTimeout(moreFields,?100); /*window.onload = moreFields;*/ event_attach('onload', moreFields); The problem is this: I can't seem to get the Javascript to target form elements that are wrapped in div tags which are children of ID "readroot"... Example: Basically, when I remove the div tags (fm-req and fm-opt) the JS works perfectly... How can I tell the script to look at the form items that are children of the above mentioned divs? Any help would be greatly appreciated. TIA! Cheers, Micky From micky at ambiguism.com Sun Mar 5 00:20:40 2006 From: micky at ambiguism.com (Michael Hulse) Date: Sat, 4 Mar 2006 22:20:40 -0800 Subject: [Javascript] JS Help: Dynamic form control In-Reply-To: References: Message-ID: <90a8cf46114dc01ec39918e93e0f8091@ambiguism.com> On Mar 4, 2006, at 10:02 PM, Michael Hulse wrote: > I can't seem to get the Javascript to target form elements that are > wrapped in div tags... > > Hi, .......... Sorry, that first sentence was a copy/paste typo... please ignore. TIA. Micky From trojani2000 at hotmail.com Sun Mar 5 00:23:57 2006 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sun, 05 Mar 2006 06:23:57 +0000 Subject: [Javascript] JS Help: Dynamic form control In-Reply-To: Message-ID: Try changing, >