From spindrift at oceanfree.net Wed Sep 1 02:30:02 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Wed, 1 Sep 2004 08:30:02 +0100 Subject: [Javascript] Credit card page, processing before it's ready References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> Message-ID: <00fb01c48ff5$8364d740$5f95cbc1@ic7g> ----- Original Message ----- From: To: Sent: Tuesday, August 31, 2004 3:49 PM Subject: [Javascript] Credit card page, processing before it's ready > Hi, > > I have this Javascript that checks the details of credit card > submissions. It does the alert when the error is present, but > after I click ok and try to go and fix the error, the page processes > to the submission page.... You could also disable the submit button until certain criteria are met - see code below. Tim in Ireland. How to disable a submit button until a box is checked

I have read and agree to the terms and conditions of use

From kevin.atkins at nwa.com Wed Sep 1 09:19:57 2004 From: kevin.atkins at nwa.com (Atkins, Kevin D) Date: Wed, 1 Sep 2004 09:19:57 -0500 Subject: [Javascript] Dynamic breadcrumbs script Message-ID: Hi Paul, Paul, I am just getting caught up from being on vacation and starting to work on this again. Are you able to help/explain this further? The coding change you describe is valid, but not what I am trying to do. I guess I didn't explain this very clearly. I don't want to write the last nodes html file name on screen. I want the node that gets written to have the actual full url path including the html page written into the node. What I am seeing in my testing is like this. I have a home page called index.html, the node name gets written as Home, the url of the Home node gets written as http://www.something.com/, why is the code dropping index.html from the node url?. I want the url of the node to be written as http://www.something.com/index.html. By dropping the real html page it looks to me that the code assumes all pages in all folders will have an index.html file. On my site I have multiple folders and the main page in those folders is not called index.html. On the home page I have 2 url links called test page1 and test page 2. Test page 1 is called test-page1.html, found in a folder called page1. Test page 2 is called test-page2.html found under folder /page1/page2. When test page 1 is selected, the node gets written as Home > Page 1 > Test Page 1. The url for the Page 1 node gets written as http://www.something.com/page1, the node should be written as http://www.something.com/page1/test-page1.html. The same thing happens for the next node for test page 2 and so on. I hope this makes sense? If you can help me further to understand the code and make changes I would appreciate it, if not just let me know and I will move on. Thanks again. Kevin Atkins Sr. Analyst Flight Operations 612-727-6732 -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of Paul Novitski Sent: Tuesday, August 24, 2004 12:10 PM To: [JavaScript List] Subject: RE: [Javascript] Dynamic breadcrumbs script Kevin, I figured out what you meant by the possessive pronoun "your" in your posting: you were thinking that a script you found in the LaTech JavaScript archives is the collective child of the current listserve membership. Instead, this listserve is a loose collection of individuals each contributing their own bits to the collective soup. Any script contributed by a listserve member is the intellectual child of that member, and may not be known to or understood by other members. Not a critical distinction, but one worth noting for future reference. I suspect that the script you're referring to is the dynamic breadcrumbs script written by Harry Love, as described in https://lists.latech.edu/pipermail/javascript/2002-August/004019.html His script is located at http://healthlinks.washington. edu/scripts/dynacrumbs.js Quickly perusing Harry's script, I see that it creates breadcrumb links in the format Base > node > node > node from the current page's URL. In a quick test, I didn't see the final node (the html file itself) included in the breadcrumb array, regardless of its file name (index.html or dynacrumbs.html). It seems clear that Harry was deliberately omitting that node. The final for/next loop of the script begins this way (where urlL is the number of nodes in the URL): if(urlL>2) { for(x=startPoint+1;xPaul, > >Thanks for the reply. The script I found and am trying to use comes from >your site called Dynamic Breadcrumbs, I am attaching the code I am >using. I can also send a few test pages to see how I have added in the >javascript code to call the external breadcrumb file. > >You can't view any of the files on my site because it is a secured >Intranet site that only employees are allowed to login into and view. I >am hoping you don't need to view the actual pages on my site to help me >modify the script? > >I will try to describe my site and file structure in case this can help >to understand the layout and how I think the code is acting. I share a >server instance with another department, we both have a separate virtual >server to store our files. An example of my area is >www.something.com/fop at this level is my index.html page. > >I changed the var startname in the breadcrumb script to Home. When the >breadcrumb code runs it rights out Home > correctly on my index.html >page. The url assigned is www.something.com/fop, it does not show >index.html in the url link as the page to load. Clicking the Home >breadcrumb reloads the index.html page, leading me to think the >breadcrumb code thinks every breadcrumb link will have an index.html >file in the folders or directories. > >I created 2 test links on my test index page, the folder structure is >/fop/page1 and /fop/page1/page2. When Test page 1 is selected on the >index.html page the breadcrumb gets written ok as Home > Page1 > Test >Page 1. The breadcrumb url link for Test page1 is written as >www.something.com/fop/page1/. If you click the Page1 breadcrumb url it >does not reload test page1 called test-page1.html. Instead it displays a >file list of all files in the page1 folder. I think because it does not >see an index.html page in the page1 folder. > >What I am trying to get is the breadcrumb url to be written as >www.something.com/fop/page1/test-page1.html. The same thing happens for >test page 2. Is there a way for the breadcrumbs.js file to actually read >the url of the page you are on and write that into the breadcrumb url >link and not assume it is index.html? > >I am sorry if my explanation doesn't make sense, I hope it does? If you >can't help because you can't see the files in actual use, that's ok, I >will just have to look for another script somewhere. Thanks for your >time. > >Kevin Atkins >Sr. Analyst Flight Operations >612-727-6732 _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From paul at novitskisoftware.com Wed Sep 1 14:15:33 2004 From: paul at novitskisoftware.com (Paul Novitski) Date: Wed, 01 Sep 2004 12:15:33 -0700 Subject: [Javascript] Dynamic breadcrumbs script In-Reply-To: References: Message-ID: <6.0.1.1.2.20040901103339.02039e08@spamarrest.com> Kevin, Here's what I think you mean: The breadcrumbs script you're using provides a hyperlink for each node of the current page's URL, like so: If the complete URL is http://www.something.com/folder1/folder2/pageA.html then the script generates a series of breadcrumbs something like this: 1) Home http://www.something.com/ 2) Folder 1 http://www.something.com/folder1/ 3) Folder 2 http://www.something.com/folder1/folder2/ 4) Page 1 http://www.something.com/folder1/folder2/page1.html The script is assuming that if you want to back up from the current page to its parent folder, you will automatically want to go to the default page for that folder. As you probably know, if you navigate to an URL that terminates in a folder name, the server will attempt to deliver a default page in that folder. Typically the server will look for index.html, default.html, index.asp, etc., in a particular sequence until it finds a page to deliver; your web host or network administrator can tell you exactly what the sequence is. If it can't a default page, and if security allows, the server will deliver a folder & file tree branch instead. I gather that your problem is that you want the breadcrumbs script to insert a specific special page name for each folder that is not a typical default page name, so that the above breadcrumbs would become: 1) Home http://www.something.com/apple.html 2) Folder 1 http://www.something.com/folder1/banana.html 3) Folder 2 http://www.something.com/folder1/folder2/cranberry.html 4) Page 1 http://www.something.com/folder1/folder2/page1.html I can see two ways to go about this. One would be to modify the breadcrumbs script. If your folder structure is extremely simple you could hard-code page names into the script for each level of the for/next loop that iterates through the URL nodes. However, the script would doubtless be easier to manage if you created a two-dimensional array, e.g.: aPageNames["folder"] = "folder1" aPageNames["page"] = "banana.html" (for http://www.something.com/folder1/) aPageNames["folder"] = "folder1/folder2" aPageNames["page"] = "cranberry.html" (for http://www.something.com/folder1/folder2/) aPageNames["folder"] = "folder3/folder1" aPageNames["page"] = "elephant.html" (for http://www.something.com/folder3/folder1/) Then the script could be modified to look up the page name for each folder path it's processing in the for/next loop. Alternatively, if you're planning not to use the server default pages in your folders, you could create them as minimal pages containing only redirect commands to your desired page names: folder1/index.html: redirect to banana.html folder1/folder2/index.html: redirect to cranberry.html folder3/folder1/index.html: redirect to elephant.html The redirection can be handled several ways, including: a) a server-side script such as ASP or PHP can issue a redirect before the page is ever downloaded to the client; b) the index.html page's header can contain a meta refresh tag with a zero delay; c) the index.html page can contain a client-side script (such as JavaScript or VBscript) that resets the document.location.href. I hope at least some of this addresses your situation~ Paul At 07:19 AM 9/1/2004, Atkins, Kevin D wrote: >Hi Paul, > >Paul, > >I am just getting caught up from being on vacation and starting to work >on this again. Are you able to help/explain this further? The coding >change you describe is valid, but not what I am trying to do. I guess I >didn't explain this very clearly. I don't want to write the last nodes >html file name on screen. I want the node that gets written to have the >actual full url path including the html page written into the node. > >What I am seeing in my testing is like this. I have a home page called >index.html, the node name gets written as Home, the url of the Home node >gets written as http://www.something.com/, why is the code dropping >index.html from the node url?. I want the url of the node to be written >as http://www.something.com/index.html. By dropping the real html page >it looks to me that the code assumes all pages in all folders will have >an index.html file. On my site I have multiple folders and the main page >in those folders is not called index.html. > >On the home page I have 2 url links called test page1 and test page 2. >Test page 1 is called test-page1.html, found in a folder called page1. >Test page 2 is called test-page2.html found under folder /page1/page2. >When test page 1 is selected, the node gets written as Home > Page 1 > >Test Page 1. The url for the Page 1 node gets written as >http://www.something.com/page1, the node should be written as >http://www.something.com/page1/test-page1.html. The same thing happens >for the next node for test page 2 and so on. > >I hope this makes sense? If you can help me further to understand the >code and make changes I would appreciate it, if not just let me know and >I will move on. Thanks again. > >Kevin Atkins >Sr. Analyst Flight Operations >612-727-6732 > >-----Original Message----- >From: javascript-bounces at LaTech.edu >[mailto:javascript-bounces at LaTech.edu] On Behalf Of Paul Novitski >Sent: Tuesday, August 24, 2004 12:10 PM >To: [JavaScript List] >Subject: RE: [Javascript] Dynamic breadcrumbs script > >Kevin, > >I figured out what you meant by the possessive pronoun "your" in your >posting: you were thinking that a script you found in the LaTech >JavaScript >archives is the collective child of the current listserve >membership. Instead, this listserve is a loose collection of >individuals >each contributing their own bits to the collective soup. Any script >contributed by a listserve member is the intellectual child of that >member, >and may not be known to or understood by other members. Not a critical >distinction, but one worth noting for future reference. > >I suspect that the script you're referring to is the dynamic breadcrumbs > >script written by Harry Love, as described in >https://lists.latech.edu/pipermail/javascript/2002-August/004019.html > >His script is located at >httplthlinks.washington.edu/scripts/dynacrumbs.js>://healthlinks.washington. >edu/scripts/dynacrumbs.js > >Quickly perusing Harry's script, I see that it creates breadcrumb links >in >the format > Base > node > node > node >from the current page's URL. > >In a quick test, I didn't see the final node (the html file itself) >included in the breadcrumb array, regardless of its file name >(index.html >or dynacrumbs.html). It seems clear that Harry was deliberately >omitting >that node. > >The final for/next loop of the script begins this way (where urlL is the > >number of nodes in the URL): > > if(urlL>2) > { > for(x=startPoint+1;x { > if(x >In other words, that last if-test is excluding the final node of the >array. If you change that last line to: > > if(x >then your html file name will be displayed. You might wish to tweak the > >display by deleting the file extension, etc. > >Good luck, >Paul > > >At 07:18 AM 8/24/2004, Atkins, Kevin D wrote: > >Paul, > > > >Thanks for the reply. The script I found and am trying to use comes >from > >your site called Dynamic Breadcrumbs, I am attaching the code I am > >using. I can also send a few test pages to see how I have added in the > >javascript code to call the external breadcrumb file. > > > >You can't view any of the files on my site because it is a secured > >Intranet site that only employees are allowed to login into and view. I > >am hoping you don't need to view the actual pages on my site to help me > >modify the script? > > > >I will try to describe my site and file structure in case this can help > >to understand the layout and how I think the code is acting. I share a > >server instance with another department, we both have a separate >virtual > >server to store our files. An example of my area is > >www.something.com/fop at this level is my index.html page. > > > >I changed the var startname in the breadcrumb script to Home. When the > >breadcrumb code runs it rights out Home > correctly on my index.html > >page. The url assigned is www.something.com/fop, it does not show > >index.html in the url link as the page to load. Clicking the Home > >breadcrumb reloads the index.html page, leading me to think the > >breadcrumb code thinks every breadcrumb link will have an index.html > >file in the folders or directories. > > > >I created 2 test links on my test index page, the folder structure is > >/fop/page1 and /fop/page1/page2. When Test page 1 is selected on the > >index.html page the breadcrumb gets written ok as Home > Page1 > Test > >Page 1. The breadcrumb url link for Test page1 is written as > >www.something.com/fop/page1/. If you click the Page1 breadcrumb url it > >does not reload test page1 called test-page1.html. Instead it displays >a > >file list of all files in the page1 folder. I think because it does not > >see an index.html page in the page1 folder. > > > >What I am trying to get is the breadcrumb url to be written as > >www.something.com/fop/page1/test-page1.html. The same thing happens for > >test page 2. Is there a way for the breadcrumbs.js file to actually >read > >the url of the page you are on and write that into the breadcrumb url > >link and not assume it is index.html? > > > >I am sorry if my explanation doesn't make sense, I hope it does? If you > >can't help because you can't see the files in actual use, that's ok, I > >will just have to look for another script somewhere. Thanks for your > >time. > > > >Kevin Atkins > >Sr. Analyst Flight Operations > >612-727-6732 > > >_______________________________________________ >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 Travis.Falls at thehartford.com Wed Sep 1 14:25:46 2004 From: Travis.Falls at thehartford.com (Falls, Travis D (HTSC, CASD)) Date: Wed, 1 Sep 2004 15:25:46 -0400 Subject: [Javascript] document.write from a global variable. Message-ID: <951967FCF5C4D211B0610008C75D2AA12333F13D@ct01excmb01.thehartford.com> So I am trying to hack something together so I don't have to use a server side technology. I know hacking is never the answer. :-) Can I do something like this in javascript?


Travis D. Falls |Consultant, HTSC Web Services, iConnect IT | 860.547.4070 | travis.falls at thehartford.com -----Original Message----- From: Paul Novitski [mailto:paul at novitskisoftware.com] Sent: Wednesday, September 01, 2004 3:16 PM To: [JavaScript List] Subject: RE: [Javascript] Dynamic breadcrumbs script Kevin, Here's what I think you mean: The breadcrumbs script you're using provides a hyperlink for each node of the current page's URL, like so: If the complete URL is http://www.something.com/folder1/folder2/pageA.html then the script generates a series of breadcrumbs something like this: 1) Home http://www.something.com/ 2) Folder 1 http://www.something.com/folder1/ 3) Folder 2 http://www.something.com/folder1/folder2/ 4) Page 1 http://www.something.com/folder1/folder2/page1.html The script is assuming that if you want to back up from the current page to its parent folder, you will automatically want to go to the default page for that folder. As you probably know, if you navigate to an URL that terminates in a folder name, the server will attempt to deliver a default page in that folder. Typically the server will look for index.html, default.html, index.asp, etc., in a particular sequence until it finds a page to deliver; your web host or network administrator can tell you exactly what the sequence is. If it can't a default page, and if security allows, the server will deliver a folder & file tree branch instead. I gather that your problem is that you want the breadcrumbs script to insert a specific special page name for each folder that is not a typical default page name, so that the above breadcrumbs would become: 1) Home http://www.something.com/apple.html 2) Folder 1 http://www.something.com/folder1/banana.html 3) Folder 2 http://www.something.com/folder1/folder2/cranberry.html 4) Page 1 http://www.something.com/folder1/folder2/page1.html I can see two ways to go about this. One would be to modify the breadcrumbs script. If your folder structure is extremely simple you could hard-code page names into the script for each level of the for/next loop that iterates through the URL nodes. However, the script would doubtless be easier to manage if you created a two-dimensional array, e.g.: aPageNames["folder"] = "folder1" aPageNames["page"] = "banana.html" (for http://www.something.com/folder1/) aPageNames["folder"] = "folder1/folder2" aPageNames["page"] = "cranberry.html" (for http://www.something.com/folder1/folder2/) aPageNames["folder"] = "folder3/folder1" aPageNames["page"] = "elephant.html" (for http://www.something.com/folder3/folder1/) Then the script could be modified to look up the page name for each folder path it's processing in the for/next loop. Alternatively, if you're planning not to use the server default pages in your folders, you could create them as minimal pages containing only redirect commands to your desired page names: folder1/index.html: redirect to banana.html folder1/folder2/index.html: redirect to cranberry.html folder3/folder1/index.html: redirect to elephant.html The redirection can be handled several ways, including: a) a server-side script such as ASP or PHP can issue a redirect before the page is ever downloaded to the client; b) the index.html page's header can contain a meta refresh tag with a zero delay; c) the index.html page can contain a client-side script (such as JavaScript or VBscript) that resets the document.location.href. I hope at least some of this addresses your situation~ Paul At 07:19 AM 9/1/2004, Atkins, Kevin D wrote: >Hi Paul, > >Paul, > >I am just getting caught up from being on vacation and starting to work >on this again. Are you able to help/explain this further? The coding >change you describe is valid, but not what I am trying to do. I guess I >didn't explain this very clearly. I don't want to write the last nodes >html file name on screen. I want the node that gets written to have the >actual full url path including the html page written into the node. > >What I am seeing in my testing is like this. I have a home page called >index.html, the node name gets written as Home, the url of the Home node >gets written as http://www.something.com/, why is the code dropping >index.html from the node url?. I want the url of the node to be written >as http://www.something.com/index.html. By dropping the real html page >it looks to me that the code assumes all pages in all folders will have >an index.html file. On my site I have multiple folders and the main page >in those folders is not called index.html. > >On the home page I have 2 url links called test page1 and test page 2. >Test page 1 is called test-page1.html, found in a folder called page1. >Test page 2 is called test-page2.html found under folder /page1/page2. >When test page 1 is selected, the node gets written as Home > Page 1 > >Test Page 1. The url for the Page 1 node gets written as >http://www.something.com/page1, the node should be written as >http://www.something.com/page1/test-page1.html. The same thing happens >for the next node for test page 2 and so on. > >I hope this makes sense? If you can help me further to understand the >code and make changes I would appreciate it, if not just let me know and >I will move on. Thanks again. > >Kevin Atkins >Sr. Analyst Flight Operations >612-727-6732 > >-----Original Message----- >From: javascript-bounces at LaTech.edu >[mailto:javascript-bounces at LaTech.edu] On Behalf Of Paul Novitski >Sent: Tuesday, August 24, 2004 12:10 PM >To: [JavaScript List] >Subject: RE: [Javascript] Dynamic breadcrumbs script > >Kevin, > >I figured out what you meant by the possessive pronoun "your" in your >posting: you were thinking that a script you found in the LaTech >JavaScript >archives is the collective child of the current listserve >membership. Instead, this listserve is a loose collection of >individuals >each contributing their own bits to the collective soup. Any script >contributed by a listserve member is the intellectual child of that >member, >and may not be known to or understood by other members. Not a critical >distinction, but one worth noting for future reference. > >I suspect that the script you're referring to is the dynamic breadcrumbs > >script written by Harry Love, as described in >https://lists.latech.edu/pipermail/javascript/2002-August/004019.html > >His script is located at >httplthlinks.washington.edu/scripts/dynacrumbs.js>://healthlinks.washington. >edu/scripts/dynacrumbs.js > >Quickly perusing Harry's script, I see that it creates breadcrumb links >in >the format > Base > node > node > node >from the current page's URL. > >In a quick test, I didn't see the final node (the html file itself) >included in the breadcrumb array, regardless of its file name >(index.html >or dynacrumbs.html). It seems clear that Harry was deliberately >omitting >that node. > >The final for/next loop of the script begins this way (where urlL is the > >number of nodes in the URL): > > if(urlL>2) > { > for(x=startPoint+1;x { > if(x >In other words, that last if-test is excluding the final node of the >array. If you change that last line to: > > if(x >then your html file name will be displayed. You might wish to tweak the > >display by deleting the file extension, etc. > >Good luck, >Paul > > >At 07:18 AM 8/24/2004, Atkins, Kevin D wrote: > >Paul, > > > >Thanks for the reply. The script I found and am trying to use comes >from > >your site called Dynamic Breadcrumbs, I am attaching the code I am > >using. I can also send a few test pages to see how I have added in the > >javascript code to call the external breadcrumb file. > > > >You can't view any of the files on my site because it is a secured > >Intranet site that only employees are allowed to login into and view. I > >am hoping you don't need to view the actual pages on my site to help me > >modify the script? > > > >I will try to describe my site and file structure in case this can help > >to understand the layout and how I think the code is acting. I share a > >server instance with another department, we both have a separate >virtual > >server to store our files. An example of my area is > >www.something.com/fop at this level is my index.html page. > > > >I changed the var startname in the breadcrumb script to Home. When the > >breadcrumb code runs it rights out Home > correctly on my index.html > >page. The url assigned is www.something.com/fop, it does not show > >index.html in the url link as the page to load. Clicking the Home > >breadcrumb reloads the index.html page, leading me to think the > >breadcrumb code thinks every breadcrumb link will have an index.html > >file in the folders or directories. > > > >I created 2 test links on my test index page, the folder structure is > >/fop/page1 and /fop/page1/page2. When Test page 1 is selected on the > >index.html page the breadcrumb gets written ok as Home > Page1 > Test > >Page 1. The breadcrumb url link for Test page1 is written as > >www.something.com/fop/page1/. If you click the Page1 breadcrumb url it > >does not reload test page1 called test-page1.html. Instead it displays >a > >file list of all files in the page1 folder. I think because it does not > >see an index.html page in the page1 folder. > > > >What I am trying to get is the breadcrumb url to be written as > >www.something.com/fop/page1/test-page1.html. The same thing happens for > >test page 2. Is there a way for the breadcrumbs.js file to actually >read > >the url of the page you are on and write that into the breadcrumb url > >link and not assume it is index.html? > > > >I am sorry if my explanation doesn't make sense, I hope it does? If you > >can't help because you can't see the files in actual use, that's ok, I > >will just have to look for another script somewhere. Thanks for your > >time. > > > >Kevin Atkins > >Sr. Analyst Flight Operations > >612-727-6732 > > >_______________________________________________ >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 This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. From innerlab at hotmail.com Wed Sep 1 16:53:06 2004 From: innerlab at hotmail.com (Innerlab) Date: Wed, 1 Sep 2004 17:53:06 -0400 Subject: [Javascript] text input field acting up References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <00fb01c48ff5$8364d740$5f95cbc1@ic7g> Message-ID: Hello: I just cannot figure this one out. There's this search form that for some reason, reloads the page (or so it seems) when the mouse is clicked on its text input field. There's no command on this input field (onClick , onFocus , etc.), nor anywhere else in the page (like a function) that would instruct such thing to happen. Until I figure the nature of this (my code is mostly VBScript) , is there a way I can force this input filed to do ABSOLUTELY nothing when "onClick , onFocus , etc"? I've tried putting something like an alert onClick, to se if it would cancel the refresh/reload, but no, both things take place. Any suggestions? Thanks in advance. From innerlab at hotmail.com Wed Sep 1 17:35:23 2004 From: innerlab at hotmail.com (Innerlab) Date: Wed, 1 Sep 2004 18:35:23 -0400 Subject: [Javascript] text input field acting up References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><00fb01c48ff5$8364d740$5f95cbc1@ic7g> Message-ID: Hello: Nevermind my question. I've found the problem, which was some unterminated tag. Doh. From dev at qroute.net Wed Sep 1 20:42:53 2004 From: dev at qroute.net (dev at qroute.net) Date: Wed, 1 Sep 2004 18:42:53 -0700 Subject: [Javascript] Getting the file size References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><00fb01c48ff5$8364d740$5f95cbc1@ic7g> Message-ID: <003301c4908e$29cc09d0$0e859bcf@mustafa> How do you get the file size of an mpeg file so before upload it can be validated ? Looks like filesize is the right property to get to the info but how do you run it ? Thank you From hakan at backbase.com Thu Sep 2 03:22:29 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Thu, 02 Sep 2004 10:22:29 +0200 Subject: [Javascript] Getting the file size In-Reply-To: <003301c4908e$29cc09d0$0e859bcf@mustafa> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><00fb01c48ff5$8364d740$5f95cbc1@ic7g> <003301c4908e$29cc09d0$0e859bcf@mustafa> Message-ID: <4136D845.8010707@backbase.com> If you mean getting the size of a file specified in a fileupload form element, there is as far as I know no way of doing this client side. What you can do is check the post data on the server, look for the Content-length header (or something along those lines) and determine if it's too big/not big enough. Regards, H dev at qroute.net wrote: > How do you get the file size of an mpeg file so before upload it can be > validated ? > > Looks like filesize is the right property to get to the info but how do you > run it ? > Thank you > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > From alexis at 2000ecoles.net Fri Sep 3 09:52:51 2004 From: alexis at 2000ecoles.net (Alexis Doublier) Date: Fri, 03 Sep 2004 16:52:51 +0200 Subject: [Javascript] problem with parent Message-ID: <1094223171.16375.21.camel@tecras1.ecole.org> Hi, I trye to display an information from a select object of a first frame to a text input object of a seccond frame. so in my script of the first frame i use this: parent.frame2.form.text.value=MyValue But javaconsol return to me this error: parent.frame2 has no property Some one have an idea of the mystake? thanks a lot. Alexis My source: index.html: in.html:
out.html:
From allard-schripsema at procergs.rs.gov.br Fri Sep 3 09:56:29 2004 From: allard-schripsema at procergs.rs.gov.br (Allard Schripsema) Date: Fri, 3 Sep 2004 11:56:29 -0300 Subject: [Javascript] problem with parent In-Reply-To: <1094223171.16375.21.camel@tecras1.ecole.org> Message-ID: Your form in "out" is called form1, not form2 try parent.frame2.form1.texte.value=document.form1.select[i].value; (didn?t test it but seems a "name" problem) -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]On Behalf Of Alexis Doublier Sent: Friday, September 03, 2004 11:53 AM To: javascript at LaTech.edu Subject: [Javascript] problem with parent Hi, I trye to display an information from a select object of a first frame to a text input object of a seccond frame. so in my script of the first frame i use this: parent.frame2.form.text.value=MyValue But javaconsol return to me this error: parent.frame2 has no property Some one have an idea of the mystake? thanks a lot. Alexis My source: index.html: in.html:
out.html:
_______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From clanmesa at earthlink.net Fri Sep 3 09:59:25 2004 From: clanmesa at earthlink.net (Theresa Mesa) Date: Fri, 3 Sep 2004 07:59:25 -0700 Subject: [Javascript] Help! In-Reply-To: References: Message-ID: I have tried to unsubscribe from this group, *even following the unsubscribe instructions**, yet I continue to get emails. Can anyone help me out? From alexis at 2000ecoles.net Fri Sep 3 10:02:52 2004 From: alexis at 2000ecoles.net (Alexis Doublier) Date: Fri, 03 Sep 2004 17:02:52 +0200 Subject: [Javascript] problem with parent In-Reply-To: References: Message-ID: <1094223772.16375.25.camel@tecras1.ecole.org> thanks but I have allways the same error. Le ven 03/09/2004 ? 16:56, Allard Schripsema a ?crit : > Your form in "out" is called form1, not form2 > > try > parent.frame2.form1.texte.value=document.form1.select[i].value; > > (didn?t test it but seems a "name" problem) > > -----Original Message----- > From: javascript-bounces at LaTech.edu > [mailto:javascript-bounces at LaTech.edu]On Behalf Of Alexis Doublier > Sent: Friday, September 03, 2004 11:53 AM > To: javascript at LaTech.edu > Subject: [Javascript] problem with parent > > > Hi, > I trye to display an information from a select object of a first frame > to a text input object of a seccond frame. so in my script of the first > frame i use this: > parent.frame2.form.text.value=MyValue > > But javaconsol return to me this error: > parent.frame2 has no property > > > Some one have an idea of the mystake? > thanks a lot. > Alexis > > My source: > > index.html: > > > > > > > > > in.html: > > > > >
> >
> > > > out.html: > > >
> >
> > > _______________________________________________ > 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 LaurentM at london.virgin.net Fri Sep 3 10:09:57 2004 From: LaurentM at london.virgin.net (Laurent Muchacho) Date: Fri, 3 Sep 2004 16:09:57 +0100 Subject: [Javascript] problem with parent Message-ID: <1A847600F409D711B52C0001FAFFF337046F635D@vnetxu01.london.virgin.net> Hi Alexis personally I will have use top as top refer to the top window and parent refer to the parent window in your case it will work but don't get confuse when you get more complicated frameset You need to access the document in the frame that's why in NS mozilla it doesn't work the way you done it earlier try this syntax top.frame2.document.testForm.textField.value just in case I built an examples pages http://www.be-lovely.co.uk/examples/frames/default.html Regards Laurent -----Original Message----- From: Alexis Doublier [mailto:alexis at 2000ecoles.net] Sent: 03 September 2004 15:53 To: javascript at LaTech.edu Subject: [Javascript] problem with parent Hi, I trye to display an information from a select object of a first frame to a text input object of a seccond frame. so in my script of the first frame i use this: parent.frame2.form.text.value=MyValue But javaconsol return to me this error: parent.frame2 has no property Some one have an idea of the mystake? thanks a lot. Alexis My source: index.html: in.html:
out.html:
_______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript This E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail. From peter at brunone.com Fri Sep 3 10:12:35 2004 From: peter at brunone.com (Peter Brunone) Date: Fri, 3 Sep 2004 10:12:35 -0500 Subject: [Javascript] problem with parent In-Reply-To: <1094223772.16375.25.camel@tecras1.ecole.org> Message-ID: <006c01c491c8$71fd7820$0502a8c0@monkeyhouse> What about window.parent.frames.frame2? -----Original Message----- From: javascript-bounces at LaTech.edu On Behalf Of Alexis Doublier thanks but I have allways the same error. Le ven 03/09/2004 ? 16:56, Allard Schripsema a ?crit : > Your form in "out" is called form1, not form2 > > try parent.frame2.form1.texte.value=document.form1.select[i].value; > > (didn?t test it but seems a "name" problem) > > -----Original Message----- > From: javascript-bounces at LaTech.edu > [mailto:javascript-bounces at LaTech.edu]On Behalf Of Alexis Doublier > Sent: Friday, September 03, 2004 11:53 AM > To: javascript at LaTech.edu > Subject: [Javascript] problem with parent > > > Hi, > I trye to display an information from a select object of a first frame > to a text input object of a seccond frame. so in my script of the > first frame i use this: parent.frame2.form.text.value=MyValue > > But javaconsol return to me this error: > parent.frame2 has no property > > > Some one have an idea of the mystake? > thanks a lot. > Alexis > > My source: > > index.html: > > > > > > > > > in.html: > > > > >
> >
> > > > out.html: > > >
> >
> > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From peter at brunone.com Fri Sep 3 10:13:33 2004 From: peter at brunone.com (Peter Brunone) Date: Fri, 3 Sep 2004 10:13:33 -0500 Subject: [Javascript] Help! In-Reply-To: Message-ID: <006d01c491c8$949c3b50$0502a8c0@monkeyhouse> Are you sure you're unsubscribing the correct address? -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of Theresa Mesa Sent: Friday, September 03, 2004 9:59 AM To: [JavaScript List] Subject: [Javascript] Help! I have tried to unsubscribe from this group, *even following the unsubscribe instructions**, yet I continue to get emails. Can anyone help me out? _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From clanmesa at earthlink.net Fri Sep 3 10:21:53 2004 From: clanmesa at earthlink.net (Theresa Mesa) Date: Fri, 3 Sep 2004 08:21:53 -0700 Subject: [Javascript] Help! In-Reply-To: <006d01c491c8$949c3b50$0502a8c0@monkeyhouse> References: <006d01c491c8$949c3b50$0502a8c0@monkeyhouse> Message-ID: Absolutely sure. I did it twice. I kept my list instructions and unsubscribed at the address for unsubscribing using the unsubscribe protocol (say *that* 10 times fast). It didn't take. Now the list instructions are gone, but I continue to get the posts. Theresa Mesa Mesa Design House http://www.mesadesignhouse.com webmaster at mesadesignhouse.com On Sep 3, 2004, at 8:13 AM, Peter Brunone wrote: > > Are you sure you're unsubscribing the correct address? > > -----Original Message----- > From: javascript-bounces at LaTech.edu > [mailto:javascript-bounces at LaTech.edu] On Behalf Of Theresa Mesa > Sent: Friday, September 03, 2004 9:59 AM > To: [JavaScript List] > Subject: [Javascript] Help! > > > I have tried to unsubscribe from this group, *even following the > unsubscribe instructions**, yet I continue to get emails. Can anyone > help me out? > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From peter at brunone.com Fri Sep 3 10:28:12 2004 From: peter at brunone.com (Peter Brunone) Date: Fri, 3 Sep 2004 10:28:12 -0500 Subject: [Javascript] problem with parent In-Reply-To: <006c01c491c8$71fd7820$0502a8c0@monkeyhouse> Message-ID: <006f01c491ca$a1a5de80$0502a8c0@monkeyhouse> Oops... Should be frame2.document.form1 -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of Peter Brunone Sent: Friday, September 03, 2004 10:13 AM To: '[JavaScript List]' Subject: RE: [Javascript] problem with parent What about window.parent.frames.frame2? -----Original Message----- From: javascript-bounces at LaTech.edu On Behalf Of Alexis Doublier thanks but I have allways the same error. Le ven 03/09/2004 ? 16:56, Allard Schripsema a ?crit : > Your form in "out" is called form1, not form2 > > try parent.frame2.form1.texte.value=document.form1.select[i].value; > > (didn?t test it but seems a "name" problem) > > -----Original Message----- > From: javascript-bounces at LaTech.edu > [mailto:javascript-bounces at LaTech.edu]On Behalf Of Alexis Doublier > Sent: Friday, September 03, 2004 11:53 AM > To: javascript at LaTech.edu > Subject: [Javascript] problem with parent > > > Hi, > I trye to display an information from a select object of a first frame > to a text input object of a seccond frame. so in my script of the > first frame i use this: parent.frame2.form.text.value=MyValue > > But javaconsol return to me this error: > parent.frame2 has no property > > > Some one have an idea of the mystake? > thanks a lot. > Alexis > > My source: > > index.html: > > > > > > > > > in.html: > > > > >
> >
> > > > out.html: > > >
> >
> > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From alexis at 2000ecoles.net Fri Sep 3 10:28:21 2004 From: alexis at 2000ecoles.net (Alexis Doublier) Date: Fri, 03 Sep 2004 17:28:21 +0200 Subject: [Javascript] problem with parent In-Reply-To: <006f01c491ca$a1a5de80$0502a8c0@monkeyhouse> References: <006f01c491ca$a1a5de80$0502a8c0@monkeyhouse> Message-ID: <1094225300.16375.27.camel@tecras1.ecole.org> Thanks evryone I resolved the problem with frame2.document regards Alexis Le ven 03/09/2004 ? 17:28, Peter Brunone a ?crit : > Oops... Should be frame2.document.form1 > > -----Original Message----- > From: javascript-bounces at LaTech.edu > [mailto:javascript-bounces at LaTech.edu] On Behalf Of Peter Brunone > Sent: Friday, September 03, 2004 10:13 AM > To: '[JavaScript List]' > Subject: RE: [Javascript] problem with parent > > > > What about window.parent.frames.frame2? > > -----Original Message----- > From: javascript-bounces at LaTech.edu On Behalf Of Alexis Doublier > > thanks but I have allways the same error. > > Le ven 03/09/2004 ? 16:56, Allard Schripsema a ?crit : > > Your form in "out" is called form1, not form2 > > > > try parent.frame2.form1.texte.value=document.form1.select[i].value; > > > > (didn?t test it but seems a "name" problem) > > > > -----Original Message----- > > From: javascript-bounces at LaTech.edu > > [mailto:javascript-bounces at LaTech.edu]On Behalf Of Alexis Doublier > > Sent: Friday, September 03, 2004 11:53 AM > > To: javascript at LaTech.edu > > Subject: [Javascript] problem with parent > > > > > > Hi, > > I trye to display an information from a select object of a first frame > > > to a text input object of a seccond frame. so in my script of the > > first frame i use this: parent.frame2.form.text.value=MyValue > > > > But javaconsol return to me this error: > > parent.frame2 has no property > > > > > > Some one have an idea of the mystake? > > thanks a lot. > > Alexis > > > > My source: > > > > index.html: > > > > > > > > > > > > > > > > > > in.html: > > > > > > > > > >
> > > >
> > > > > > > > out.html: > > > > > >
> > > >
> > > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From innerlab at hotmail.com Fri Sep 3 14:37:57 2004 From: innerlab at hotmail.com (Innerlab) Date: Fri, 3 Sep 2004 15:37:57 -0400 Subject: [Javascript] text input field acting up References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><00fb01c48ff5$8364d740$5f95cbc1@ic7g> Message-ID: This is more of a CSS question, but I am not in any mailing list for that. In any case, the style changes I am dealing with now are quite dynamic and involve javascript. Below is an example of image parameters that can be changed using javascript. var jsPath = "img/myimage.jpg" var jsHeight = 20 var jsWidth = 200 document.write(''); Now, how can I change such parameters when the image it's used as a background ? Example: div.mydiv {background-image:url(img/bkg_01.jpg);} Any ideas? Thanks in advance. From flavio at economisa.com.br Fri Sep 3 14:47:57 2004 From: flavio at economisa.com.br (Flavio Gomes) Date: Fri, 03 Sep 2004 16:47:57 -0300 Subject: [Javascript] text input field acting up In-Reply-To: References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><00fb01c48ff5$8364d740$5f95cbc1@ic7g> Message-ID: <4138CA6D.7070602@economisa.com.br> document.write('div.mydiv {background-image:url('+jsPath +');}'); -- Flavio Gomes flavio at economisa.com.br Innerlab escreveu: >This is more of a CSS question, but I am not in any mailing list for that. In any case, the style changes I am dealing with now are >quite dynamic and involve javascript. > >Below is an example of image parameters that can be changed using javascript. > >var jsPath = "img/myimage.jpg" >var jsHeight = 20 >var jsWidth = 200 >document.write(''); > >Now, how can I change such parameters when the image it's used as a background ? > >Example: >div.mydiv {background-image:url(img/bkg_01.jpg);} > >Any ideas? > >Thanks in advance. > > From hassan at webtuitive.com Fri Sep 3 15:34:21 2004 From: hassan at webtuitive.com (Hassan Schroeder) Date: Fri, 03 Sep 2004 13:34:21 -0700 Subject: [Javascript] text input field acting up In-Reply-To: References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><00fb01c48ff5$8364d740$5f95cbc1@ic7g> Message-ID: <4138D54D.7080608@webtuitive.com> Innerlab wrote: > This is more of a CSS question, but I am not in any mailing list for that. In any case, the style changes I am dealing with now are > quite dynamic and involve javascript. > > Below is an example of image parameters that can be changed using javascript. > > var jsPath = "img/myimage.jpg" > var jsHeight = 20 > var jsWidth = 200 > document.write(''); > > Now, how can I change such parameters when the image it's used as a background ? > > Example: > div.mydiv {background-image:url(img/bkg_01.jpg);} > > Any ideas? Lots :-) 1/ it'd be good to start a new thread (with a relevant title) when you change the subject 2/ the CSS spec is your friend; it shows the standard properties available through the DOM -- ; in this case, background images don't have a height and width property, if you were looking for those specifically 3/ dude, it's the *21st century* :-) -- why use `document.write()` when you can manipulate directly with the DOM? e.g, document.getElementsByTagName("body")[0].style.backgroundImage = "url(" + jsPath + ")"; 4/ Mozilla's DOM inspector is a good way to see both standard and Moz-specific properties, and their current (computed) style FWIW! -- Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. From mwarden at gmail.com Fri Sep 3 16:27:08 2004 From: mwarden at gmail.com (Matt Warden) Date: Fri, 3 Sep 2004 17:27:08 -0400 Subject: [Javascript] cross browser dhtml - text replacement Message-ID: Hello, List. I have a series of 4 spans. Each span holds a day, hour, minute, or second value. And I am counting down the seconds. My script works in mozilla/firefox, but apparently it doesn't work in anything else. I have searched various sites, and they have some wonderful tutorials on how to write cross-browser functions for this, as long as by "cross browser" you mean nn4 and ie4. And they all use divs, not spans, which would be less semantically appropriate for what I am doing. Any thoughts? Here's basically where the problem is: var osec, omin, ohrs, oday; if (document.getElementById) { osec = document.getElementById('secs'); omin = document.getElementById('mins'); ohrs = document.getElementById('hrs'); oday = document.getElementById('days'); } else if (document.all) { osec = document.all['secs']; omin = document.all['mins']; ohrs = document.all['hrs']; oday = document.all['days']; } else if (document.layers) { osec = document.layers['secs']; omin = document.layers['mins']; ohrs = document.layers['hrs']; oday = document.layers['days']; } secs = (osec.innerHTML)-0; mins = (omin.innerHTML)-0; hrs = (ohrs.innerHTML)-0; days = (oday.innerHTML)-0; // ... snip snip ... then I'm updating the value(s) like thus: function setValue(o, v) { v = v-0; if (v < 10) v='0'+v; o.innerHTML = ''; o.innerHTML = v; } The setting innerHTML='' was an advised bug workaround. Anything jump out at you as incorrect? I also get a "osec has no properties" error in the JS console of firefox, but it seems to have no negative effects on the script. Thanks, -- Matt Warden Miami University Oxford, OH http://mattwarden.com This email proudly and graciously contributes to entropy. From paul at novitskisoftware.com Sat Sep 4 00:58:18 2004 From: paul at novitskisoftware.com (Paul Novitski) Date: Fri, 03 Sep 2004 22:58:18 -0700 Subject: [Javascript] cross browser dhtml - text replacement In-Reply-To: References: Message-ID: <6.0.1.1.2.20040903225224.03eb1828@spamarrest.com> At 02:27 PM 9/3/2004, Matt Warden wrote: > if (document.getElementById) > { > osec = document.getElementById('secs'); > omin = document.getElementById('mins'); > ohrs = document.getElementById('hrs'); > oday = document.getElementById('days'); > } > else if (document.all) > { > osec = document.all['secs']; > omin = document.all['mins']; > ohrs = document.all['hrs']; > oday = document.all['days']; > } > else if (document.layers) > { > osec = document.layers['secs']; > omin = document.layers['mins']; > ohrs = document.layers['hrs']; > oday = document.layers['days']; > } ... >Anything jump out at you as incorrect? > >I also get a "osec has no properties" error in the JS console of >firefox, but it seems to have no negative effects on the script. Just to cover my bets, I would end the if-test chain with else return; so you don't try to manipulate the four page elements if the browser can't find them. That sounds like what's happening, based on the error you're getting, although I'm not sure why. That's all my bleary eyes can see as a problem tonight. Paul From paul at novitskisoftware.com Sat Sep 4 01:25:36 2004 From: paul at novitskisoftware.com (Paul Novitski) Date: Fri, 03 Sep 2004 23:25:36 -0700 Subject: [Javascript] text input field acting up In-Reply-To: References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <00fb01c48ff5$8364d740$5f95cbc1@ic7g> Message-ID: <6.0.1.1.2.20040903231247.03eeeec0@spamarrest.com> At 12:37 PM 9/3/2004, Innerlab wrote: >Below is an example of image parameters that can be changed using javascript. > >var jsPath = "img/myimage.jpg" >var jsHeight = 20 >var jsWidth = 200 >document.write('height="+jsWidth +" />'); > >Now, how can I change such parameters when the image it's used as a >background ? To add a comment only slightly different from that of my learned colleagues: although a background image isn't given dimension in CSS, the element of which it's the background certainly can: CSS: div { background-image: url("frogs.jpg"); height: 100px; width: 200px; } which you can insert as an inline style: HTML:
Paul From hassan at webtuitive.com Sat Sep 4 09:58:42 2004 From: hassan at webtuitive.com (Hassan Schroeder) Date: Sat, 04 Sep 2004 07:58:42 -0700 Subject: [Javascript] cross browser dhtml - text replacement In-Reply-To: References: Message-ID: <4139D822.7050001@webtuitive.com> Matt Warden wrote: > I also get a "osec has no properties" error in the JS console of > firefox, but it seems to have no negative effects on the script. No? But first you wrote -- > My script works in > mozilla/firefox, but apparently it doesn't work in anything else. I'd suggest that if Moz reports an error, it's an error that should be fixed -- "doesn't work" sounds like a "negative effect" to me :-) The Moz JS interpreter's handling of that error isn't necessarily the same as that of other browsers... Do you have the relevant parts in try/catch blocks? Or perhaps you can give us a URL to look at? -- Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. From trojani2000 at hotmail.com Sat Sep 4 10:01:50 2004 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sat, 04 Sep 2004 17:01:50 +0200 Subject: [Javascript] document.write from a global variable. Message-ID: ... > >
> >
> >
> > Not sure what you're really up to with that but I'm sure that the 'document.write(size1)' will allways get written first and alone, (color2; size2; etc., will never get that chance). The first document.write command will overwrite the page along with the script so the following document write, will get wiped before it ever get called. _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From innerlab at hotmail.com Sat Sep 4 10:25:50 2004 From: innerlab at hotmail.com (Innerlab) Date: Sat, 4 Sep 2004 11:25:50 -0400 Subject: [Javascript] text input field acting up References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><00fb01c48ff5$8364d740$5f95cbc1@ic7g> <4138D54D.7080608@webtuitive.com> Message-ID: > > document.write(''); > > Now, how can I change such parameters when the image it's used as a background > > Any ideas? Hassan: > 1/ it'd be good to start a new thread (with a relevant title) when > you change the subject I know (shame). I just replied to an older post, but I forgot to rewrite the subject line. > 2/ the CSS spec is your friend; it shows the standard properties > available through the DOM -- ; > in this case, background images don't have a height and width > property, if you were looking for those specifically Yes, that feature would have been nice to have... Flavio: >document.write('div.mydiv {background-image:url('+jsPath +');}'); Yes, the background URL in my code is dynamic through JavaScript, but the height and width of that image cannot be specified. However, the container block (
in this case) can force that image to change dimension. Like Paul wrote: >
The problem here is that my image has to be repeated along X, and it's height is dynamic. It seems to me that specific div height doesn't work when the bkg. image is repeated. The div changes but the background stays at the original image height. I dunno.... I just joined a CSS list, because the solution to my problem lies on those
parameters, but so far it seems that I cannot get the results I want.... Thanks for the replies, guys From innerlab at hotmail.com Sat Sep 4 10:30:07 2004 From: innerlab at hotmail.com (Innerlab) Date: Sat, 4 Sep 2004 11:30:07 -0400 Subject: [Javascript] Re: background img dimensions References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><00fb01c48ff5$8364d740$5f95cbc1@ic7g> <4138D54D.7080608@webtuitive.com> Message-ID: Now I typed the right subject :) Before I just replied to an older post, but I forgot to rewrite the subject line. > > document.write(''); > > Now, how can I change such parameters when the image it's used as a background > > Any ideas? Hassan: > 2/ the CSS spec is your friend; it shows the standard properties > available through the DOM -- ; > in this case, background images don't have a height and width > property, if you were looking for those specifically Yes, that feature would be nice to have... Flavio: >document.write('div.mydiv {background-image:url('+jsPath +');}'); Yes, the background URL in my code is dynamic through JavaScript, but the height and width of that image cannot be specified. However, the container block (
in this case) can force that image to change dimension. Like Paul wrote: >
The problem here is that my image has to be repeated along X, and the height is dynamic. It seems to me that specific
height doesn't work when the bkg. image is repeated. The
itself changes height, but the background image stays at its original height. I dunno.... I just joined a CSS list, because the solution to my problem lies on those
parameters, but so far it seems that I cannot get the results I want.... Thanks for the replies, guys From hassan at webtuitive.com Sat Sep 4 10:52:31 2004 From: hassan at webtuitive.com (Hassan Schroeder) Date: Sat, 04 Sep 2004 08:52:31 -0700 Subject: [Javascript] Re: background img dimensions In-Reply-To: References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><00fb01c48ff5$8364d740$5f95cbc1@ic7g> <4138D54D.7080608@webtuitive.com> Message-ID: <4139E4BF.9080509@webtuitive.com> Innerlab wrote: > The problem here is that my image has to be repeated along X, and the height is dynamic. > It seems to me that specific
height doesn't work when the bkg. image is repeated. The
itself changes height, but the > background image stays at its original height. I dunno.... The only two options that come to mind are 1/ resize the image dynamically on the server, if you're specifying a fixed div height, or 2/ use absolute positioning and z-index within the div in question to place the images as regular (non-background) content with the rest of the content positioned above it. Of course, then you have to explicitly handle the repeat-x part, clipping a partial image at the end, etc. which sounds like an exercise I'd want to avoid! It'd make a good assignment for a JavaScript class, though :-) FWIW, -- Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. From paul at novitskisoftware.com Sat Sep 4 11:34:23 2004 From: paul at novitskisoftware.com (Paul Novitski) Date: Sat, 04 Sep 2004 09:34:23 -0700 Subject: [Javascript] Re: background img dimensions In-Reply-To: References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <00fb01c48ff5$8364d740$5f95cbc1@ic7g> <4138D54D.7080608@webtuitive.com> Message-ID: <6.0.1.1.2.20040904092902.01f815e0@spamarrest.com> At 08:30 AM 9/4/2004, Innerlab wrote: >The problem here is that my image has to be repeated along X, and the >height is dynamic. Can you predict the maximum height of your images? If so, then perhaps you could define all the divs to be that max height, with the background image displaying just once per div: div { background-image: url("frogs.jpg"); background-repeat: no-repeat; height: 300px; /* your maximum image height */ width: 200px; /* your fixed image width */ }
where "300px" is your maximum image height and "200px" is your fixed image width. Paul From java.script at seacrets.com Sat Sep 4 15:26:29 2004 From: java.script at seacrets.com (Cutter) Date: Sat, 04 Sep 2004 16:26:29 -0400 Subject: [Javascript] document.write from a global variable. In-Reply-To: References: Message-ID: <413A24F5.5040407@seacrets.com> How do ya figure? I use document write often in pages, placing my script tags right where that content may go, and it works fine for me... Cutter Troy III Ajnej wrote: > > > ... > >> >>
>> >>
>> >>
>> >> > > Not sure what you're really up to with that but I'm sure that the > 'document.write(size1)' will allways get written first and alone, > (color2; size2; etc., will never get that chance). The first > document.write command will overwrite the page along with the script > so the following document write, will get wiped before it ever get > called. > > _________________________________________________________________ > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From kim.hoogenberg at virgil.nl Sat Sep 4 15:37:03 2004 From: kim.hoogenberg at virgil.nl (Kim Hoogenberg) Date: Sat, 04 Sep 2004 22:37:03 +0200 Subject: [Javascript] document.write from a global variable. In-Reply-To: <413A24F5.5040407@seacrets.com> References: <413A24F5.5040407@seacrets.com> Message-ID: <413A276F.60107@virgil.nl> Cutter wrote: > How do ya figure? I use document write often in pages, placing my > script tags right where that content may go, and it works fine for me... > > Cutter > > Troy III Ajnej wrote: > >> >> >> ... >> >>> >>>
>>> >>>
>>> >>>
>>> >>> >> >> >> Not sure what you're really up to with that but I'm sure that the >> 'document.write(size1)' will allways get written first and alone, >> (color2; size2; etc., will never get that chance). The first >> document.write command will overwrite the page along with the script >> so the following document write, will get wiped before it ever get >> called. >> I don't know what you are talking about here.. javascript is interpreted along with html.. Exactly on the place after an html tag where you have included a document.write() statement, the html code will be dynamically included. A second document.write() will simply be appended to the rest of the html code... And that's just the way it is.. From mwarden at gmail.com Sat Sep 4 16:39:11 2004 From: mwarden at gmail.com (Matt Warden) Date: Sat, 4 Sep 2004 17:39:11 -0400 Subject: [Javascript] cross browser dhtml - text replacement In-Reply-To: <4139D822.7050001@webtuitive.com> References: <4139D822.7050001@webtuitive.com> Message-ID: On Sat, 04 Sep 2004 07:58:42 -0700, Hassan Schroeder wrote: > Do you have the relevant parts in try/catch blocks? No, I'm not. I use them in Java, but I was unaware they were available in Javascript. > Or perhaps you > can give us a URL to look at? Sure. I set up an example of the script, counting down to New Years Day 2005: http://mwarden.f2o.org/countdown_test.php This one does not seem to exhibit the "osec has no properties" error. However, it still does not work in IE/Win (not sure about IE/Mac). Thanks for any help you can provide. -- Matt Warden Miami University Oxford, OH http://mattwarden.com This email proudly and graciously contributes to entropy. From peter at brunone.com Sat Sep 4 16:58:16 2004 From: peter at brunone.com (Peter Brunone) Date: Sat, 4 Sep 2004 16:58:16 -0500 Subject: [Javascript] cross browser dhtml - text replacement In-Reply-To: Message-ID: <003901c492ca$485fe630$0502a8c0@monkeyhouse> Matt, I think IE is getting confused by the fact that you've named your variables the same thing as your HTML elements. http://easylistbox.com/wardenScript.html is a working version with just a few alterations. Cheers, Peter -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of Matt Warden On Sat, 04 Sep 2004 07:58:42 -0700, Hassan Schroeder wrote: > Do you have the relevant parts in try/catch blocks? No, I'm not. I use them in Java, but I was unaware they were available in Javascript. > Or perhaps you > can give us a URL to look at? Sure. I set up an example of the script, counting down to New Years Day 2005: http://mwarden.f2o.org/countdown_test.php This one does not seem to exhibit the "osec has no properties" error. However, it still does not work in IE/Win (not sure about IE/Mac). Thanks for any help you can provide. -- Matt Warden Miami University Oxford, OH http://mattwarden.com From hassan at webtuitive.com Sat Sep 4 17:42:11 2004 From: hassan at webtuitive.com (Hassan Schroeder) Date: Sat, 04 Sep 2004 15:42:11 -0700 Subject: [Javascript] cross browser dhtml - text replacement In-Reply-To: References: <4139D822.7050001@webtuitive.com> Message-ID: <413A44C3.9070101@webtuitive.com> Matt Warden wrote: >>Do you have the relevant parts in try/catch blocks? > > No, I'm not. I use them in Java, but I was unaware they were available > in Javascript. Yes, and it's a nice addition to your debugging repertoire. > http://mwarden.f2o.org/countdown_test.php > > This one does not seem to exhibit the "osec has no properties" error. > However, it still does not work in IE/Win (not sure about IE/Mac). Do you have the Microsoft Script Debugger installed? Because it's halting on this line: secs = (osec.innerHTML)-0; :: proving that even IE, in its secret heart of hearts, knows that innerHTML is the TOOL OF SATAN :-) OK, just ignore that; here's the fix: function decrement() { var secs = 0; var mins = 0; var hrs = 0; var days = 0; // get thee behind me, innerHTML! :-) secs = (osec.innerHTML)-0; secs = parseInt(osec.firstChild.nodeValue); mins = parseInt(omin.firstChild.nodeValue); hrs = parseInt(ohrs.firstChild.nodeValue); days = parseInt(oday.firstChild.nodeValue); ... I'd fix the setValue() to not use innerHTML, too, but that's me. And it works on Safari, but not IE5.2/Mac. Sigh. Big surprise. I'll try to take a look at that later but I've gotta run do something else now. HTH! -- Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. From mwarden at gmail.com Sat Sep 4 18:46:24 2004 From: mwarden at gmail.com (Matt Warden) Date: Sat, 4 Sep 2004 19:46:24 -0400 Subject: [Javascript] cross browser dhtml - text replacement In-Reply-To: <413A44C3.9070101@webtuitive.com> References: <4139D822.7050001@webtuitive.com> <413A44C3.9070101@webtuitive.com> Message-ID: On Sat, 04 Sep 2004 15:42:11 -0700, Hassan Schroeder wrote: > Do you have the Microsoft Script Debugger installed? No. I'm on Linux. > Because it's > halting on this line: > > secs = (osec.innerHTML)-0; > > :: proving that even IE, in its secret heart of hearts, knows that > innerHTML is the TOOL OF SATAN :-) I, too, was disturbed by this property. However, in what I read, it was suggested as the most cross-platform method of accessing and writing to the value of a node in the DOM. > secs = parseInt(osec.firstChild.nodeValue); > mins = parseInt(omin.firstChild.nodeValue); > hrs = parseInt(ohrs.firstChild.nodeValue); > days = parseInt(oday.firstChild.nodeValue); > ... > > I'd fix the setValue() to not use innerHTML, too, but that's me. And > it works on Safari, but not IE5.2/Mac. Sigh. Big surprise. I'll try > to take a look at that later but I've gotta run do something else now. While I don't give much of a hoot about IE5Mac, I would want to know how this performs across platforms. This little page seems to prove it works fine in Moz (as that's what I'm using): http://www10.brinkster.com/doctorunclear/HTMLJavascriptCSS/innerHTMLvsNodeValue.html I like the looks of this method much more than .innerHTML, as long as it does its job on a decent number of browsers. From what I can google up, it looks like this is the case. Any confirmation of contradiction of this would be appreciated. Thanks so much, list! -- Matt Warden Miami University Oxford, OH http://mattwarden.com This email proudly and graciously contributes to entropy. From innerlab at hotmail.com Sat Sep 4 19:29:36 2004 From: innerlab at hotmail.com (Innerlab) Date: Sat, 4 Sep 2004 20:29:36 -0400 Subject: [Javascript] Re: background img dimensions References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><00fb01c48ff5$8364d740$5f95cbc1@ic7g><4138D54D.7080608@webtuitive.com> <6.0.1.1.2.20040904092902.01f815e0@spamarrest.com> Message-ID: ----- Original Message ----- From: "Paul Novitski" > Can you predict the maximum height of your images? If so, then perhaps you > could define all the divs to be that max height, with the background image > displaying just once per div: I guess that's -more or less- the way I'll go. I'll use a long width image as background (it has to fit at least the average user screen width), and dynamically change the height of the
containing it. I hope it works, but the page download will slow down a bit. Thanks guys, I know this is off topic. But I got more responses here than in the CSS mailing list that I joined right after starting the thread here! Ed. From flavio at economisa.com.br Mon Sep 6 07:40:05 2004 From: flavio at economisa.com.br (Flavio Gomes) Date: Mon, 06 Sep 2004 09:40:05 -0300 Subject: [Javascript] document.write from a global variable. In-Reply-To: <413A276F.60107@virgil.nl> References: <413A24F5.5040407@seacrets.com> <413A276F.60107@virgil.nl> Message-ID: <413C5AA5.7080608@economisa.com.br> > I don't know what you are talking about here.. javascript is > interpreted along with html.. Exactly on the place after an html tag > where you have included a document.write() statement, the html code > will be dynamically included. A second document.write() will simply be > appended to the rest of the html code... And that's just the way it is.. This will append my_variable to the the code: This will overwrite all you document code: document.write will only overwrite the document when it's already loaded. ("onload=document.write" will append to the end) -- Flavio Gomes flavio at economisa.com.br From trojani2000 at hotmail.com Mon Sep 6 10:39:29 2004 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Mon, 06 Sep 2004 17:39:29 +0200 Subject: [Javascript] document.write from a global variable. Message-ID: Yeah, this is complete and correct answer >From: Flavio Gomes >Reply-To: "[JavaScript List]" >To: "[JavaScript List]" >Subject: Re: [Javascript] document.write from a global variable. >Date: Mon, 06 Sep 2004 09:40:05 -0300 > >>I don't know what you are talking about here.. javascript is interpreted >>along with html.. Exactly on the place after an html tag where you have >>included a document.write() statement, the html code will be dynamically >>included. A second document.write() will simply be appended to the rest of >>the html code... And that's just the way it is.. > > >This will append my_variable to the the code: > > > > >This will overwrite all you document code: > > > > > >document.write will only overwrite the document when it's already loaded. >("onload=document.write" will append to the end) > > >-- >Flavio Gomes >flavio at economisa.com.br >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From luciano at lugmen.org.ar Mon Sep 6 21:33:44 2004 From: luciano at lugmen.org.ar (Luciano Ruete) Date: Mon, 06 Sep 2004 22:33:44 -0400 Subject: [Javascript] Mozilla valid javascript not working in IE Message-ID: <413D1E08.9030502@lugmen.org.ar> The code is simple, a parent opens a popup on demand, and the popup child reads a textbox, and add a option with the typed text in the parent's select object. This code works ok in Mozilla and Firefox, but when i tested in Internet Explorer and Opera does not. parent.html: myPopup = ''; function openPopup(url) { myPopup = window.open(url,'popupWindow','width=640,height=480'); if (!myPopup.opener) myPopup.opener = window;//also tested with self and this } son.html: var i = opener.document.forms[0].comboXXX.length; myNewOption = new Option("nevo item" ,23, true); opener.document.forms[0].comboXXX.options[i] = myNewOption; window.close(); The code is generated whit php, here the php variables are hardcoded to simplify the script, also the function calls and the php if's. I discovery that forms[0] and options[i], must be forms[1] and options[i+1] in Opera (i do not have IE to test, sorry linux fan :-). But even with those changes, the parents select gets a new option, but whit no value, ie a blank select element. And the new option is not selected by default. Later test it in IE(a friend house) and same result: a new select blank option in the parent. I test a hardcoded.html version like i send in this post, no php involved. Attached father and son html's, with array starting at 1, working in opera with the blank option add. Regards! -- Luciano -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From luciano at lugmen.org.ar Mon Sep 6 22:09:19 2004 From: luciano at lugmen.org.ar (Luciano Ruete) Date: Mon, 06 Sep 2004 23:09:19 -0400 Subject: [Javascript] Re: [Solved] Mozilla valid javascript not working in IE In-Reply-To: <413D1E08.9030502@lugmen.org.ar> References: <413D1E08.9030502@lugmen.org.ar> Message-ID: <413D265F.5060908@lugmen.org.ar> Luciano Ruete escribiste : > The code is simple, a parent opens a popup on demand, and the popup > child reads a textbox, and add a option with the typed text in the > parent's select object. > This code works ok in Mozilla and Firefox, but when i tested in Internet > Explorer and Opera does not. > > parent.html: > > myPopup = ''; > function openPopup(url) { > myPopup = window.open(url,'popupWindow','width=640,height=480'); > if (!myPopup.opener) > myPopup.opener = window;//also tested with self and this > } > > > son.html: > > var i = opener.document.forms[0].comboXXX.length; > myNewOption = new Option("nevo item" ,23, true); > opener.document.forms[0].comboXXX.options[i] = myNewOption; > window.close(); > > > The code is generated whit php, here the php variables are hardcoded to > simplify the script, also the function calls and the php if's. > > I discovery that forms[0] and options[i], must be forms[1] and > options[i+1] in Opera (i do not have IE to test, sorry linux fan :-). > But even with those changes, the parents select gets a new option, but > whit no value, ie a blank select element. And the new option is not > selected by default. Later test it in IE(a friend house) and same > result: a new select blank option in the parent. > I test a hardcoded.html version like i send in this post, no php involved. > > Attached father and son html's, with array starting at 1, working in > opera with the blank option add. > > Regards! > I googled and try so far, finally i found this[1]: Explorer 5.0 problems: When it comes to dynamically generating options and selects, Explorer 5.0 on Windows has quite a few problems: 1. Generating options in another frame or window doesn't work. Put the script in the page that contains the select. So i moved the logic to the father, and it works, inline solution, works in mozilla, opera and finally in Internet Exploder. [1]http://www.quirksmode.org/js/options.html -- Luciano father.html -----BEGIN BLOCK-----
-----END BLOCK----- son.html -----BEGIN BLOCK-----
-----END BLOCK----- From luciano at lugmen.org.ar Mon Sep 6 22:22:35 2004 From: luciano at lugmen.org.ar (Luciano Ruete) Date: Mon, 06 Sep 2004 23:22:35 -0400 Subject: [Javascript] Mozilla valid javascript not working in IE In-Reply-To: <413D1E08.9030502@lugmen.org.ar> References: <413D1E08.9030502@lugmen.org.ar> Message-ID: <413D297B.5000309@lugmen.org.ar> Luciano Ruete escribiste : > The code is simple, a parent opens a popup on demand, and the popup > child reads a textbox, and add a option with the typed text in the > parent's select object. > This code works ok in Mozilla and Firefox, but when i tested in Internet > Explorer and Opera does not. > > parent.html: > > myPopup = ''; > function openPopup(url) { > myPopup = window.open(url,'popupWindow','width=640,height=480'); > if (!myPopup.opener) > myPopup.opener = window;//also tested with self and this > } > > > son.html: > > var i = opener.document.forms[0].comboXXX.length; > myNewOption = new Option("nevo item" ,23, true); > opener.document.forms[0].comboXXX.options[i] = myNewOption; > window.close(); > > > The code is generated whit php, here the php variables are hardcoded to > simplify the script, also the function calls and the php if's. > > I discovery that forms[0] and options[i], must be forms[1] and > options[i+1] in Opera (i do not have IE to test, sorry linux fan :-). > But even with those changes, the parents select gets a new option, but > whit no value, ie a blank select element. And the new option is not > selected by default. Later test it in IE(a friend house) and same > result: a new select blank option in the parent. > I test a hardcoded.html version like i send in this post, no php involved. i does not discover anything!, forget this paragraph, if i use a options[i+1], i steel could not put a new object in the father's select, but the index grows in 2 units, so the first shows as a blank option. The second never shows because IE restriction(not allow option add from other window). So index are the same in IE and Mozilla. -- Luciano From miguel_rdz at hotmail.com Tue Sep 7 16:54:04 2004 From: miguel_rdz at hotmail.com (Miguel Rodriguez) Date: Tue, 07 Sep 2004 16:54:04 -0500 Subject: [Javascript] Internet Explorer history Message-ID: An HTML attachment was scrubbed... URL: From ShawnMilo at runbox.com Wed Sep 8 09:27:14 2004 From: ShawnMilo at runbox.com (Shawn Milo) Date: Wed, 08 Sep 2004 10:27:14 -0400 (EDT) Subject: [Javascript] OT: GMail invites Message-ID: To any of those who have been on the list for a while and know me: I have a few extra GMail invites. Apparently the market is being flooded this week, but I have only just gotten invites for the first time. My close circle of friends apparently already have all they need. So, I'm offering them up, first come, first served to the people I recognize from this list, who have made fun of me for putting regexes into every script, whether they're necessary or not, and who have helped me when I have posted questions to the list. If there is not enough interest, I will offer them to anyone else on the list, first come, first served. Shawn From hakan at backbase.com Wed Sep 8 10:33:17 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Wed, 08 Sep 2004 17:33:17 +0200 Subject: [Javascript] OT: GMail invites In-Reply-To: References: Message-ID: <413F263D.2050904@backbase.com> GMail, is that Orkut or is it "only" the 1Gb mail-thingy? If it's the mail-thingy only (didn't like Orkut) and I'm entitled to an invite then I'd be happy to try it. I need a good free mail account, and the current selection of services (hotmail...) is not good at all. Regards, H Shawn Milo wrote: > To any of those who have been on the list for a while and know me: > > I have a few extra GMail invites. Apparently the market is being flooded > this week, but I have only just gotten invites for the first time. My close > circle of friends apparently already have all they need. So, I'm offering > them up, first come, first served to the people I recognize from this list, > who have made fun of me for putting regexes into every script, whether > they're necessary or not, and who have helped me when I have posted > questions to the list. > > If there is not enough interest, I will offer them to anyone else on the > list, first come, first served. > > Shawn > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > From Fbifido1 at hotmail.com Wed Sep 8 18:21:14 2004 From: Fbifido1 at hotmail.com (Fbifido1) Date: Wed, 8 Sep 2004 18:21:14 -0500 Subject: [Javascript] OT: GMail invites References: Message-ID: send me one ----- Original Message ----- From: "Shawn Milo" To: Sent: Wednesday, September 08, 2004 9:27 AM Subject: [Javascript] OT: GMail invites To any of those who have been on the list for a while and know me: I have a few extra GMail invites. Apparently the market is being flooded this week, but I have only just gotten invites for the first time. My close circle of friends apparently already have all they need. So, I'm offering them up, first come, first served to the people I recognize from this list, who have made fun of me for putting regexes into every script, whether they're necessary or not, and who have helped me when I have posted questions to the list. If there is not enough interest, I will offer them to anyone else on the list, first come, first served. Shawn _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From ShawnMilo at runbox.com Thu Sep 9 10:23:31 2004 From: ShawnMilo at runbox.com (Shawn Milo) Date: Thu, 09 Sep 2004 11:23:31 -0400 (EDT) Subject: [Javascript] OT: GMail invites In-Reply-To: References: Message-ID: Modification: > If there is not enough interest, I will offer them to anyone else on the > list, first come, first served. Add to that, anyone polite and able to complete and punctuate a sentence. Some kind of friendly banter is a plus! An example of a 'bad' request: > send me one I have two more invites remaining. Shawn From peter at brunone.com Thu Sep 9 10:26:00 2004 From: peter at brunone.com (Peter Brunone) Date: Thu, 9 Sep 2004 08:26:00 -0700 Subject: SPAM-LOW: Re: [Javascript] OT: GMail invites Message-ID: ???And also, let's please do this off the list (if Shawn doesn't have any left when you ask, hit me up for one). From: "Shawn Milo" ShawnMilo at runbox.com Modification: > If there is not enough interest, I will offer them to anyone else on the > list, first come, first served. Add to that, anyone polite and able to complete and punctuate a sentence. Some kind of friendly banter is a plus! An example of a 'bad' request: > send me one I have two more invites remaining. Shawn -------------- next part -------------- An HTML attachment was scrubbed... URL: From UGrinwald at dynamic.ca Thu Sep 9 10:55:32 2004 From: UGrinwald at dynamic.ca (Grinwald, Uri) Date: Thu, 9 Sep 2004 11:55:32 -0400 Subject: [Javascript] OT: GMail invites Message-ID: Hi Shawn. I actually acquired an interest in Gmail invites when I saw the first live broadcast of screensavers in L.A. I am part of the list and receive much appreciated advise, but rarely contribute due to my novice programming knowledge, so I hope I can still qualify. If you have some to spare I would really appreciate obtaining one. Thanks, Uri -----Original Message----- From: Shawn Milo [mailto:ShawnMilo at runbox.com] Sent: Thursday, September 09, 2004 11:24 AM To: javascript at LaTech.edu Subject: Re: [Javascript] OT: GMail invites Modification: > If there is not enough interest, I will offer them to anyone else on > the list, first come, first served. Add to that, anyone polite and able to complete and punctuate a sentence. Some kind of friendly banter is a plus! An example of a 'bad' request: > send me one I have two more invites remaining. Shawn _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From ShawnMilo at runbox.com Thu Sep 9 11:06:13 2004 From: ShawnMilo at runbox.com (Shawn Milo) Date: Thu, 09 Sep 2004 12:06:13 -0400 (EDT) Subject: [Javascript] OT: GMail invites In-Reply-To: References: Message-ID: As previously requested, please send these e-mails to me off-list. Uri, I will send you an invite. Thanks, Shawn > Hi Shawn. > > I actually acquired an interest in Gmail invites when I saw the first > live broadcast of screensavers in L.A. > I am part of the list and receive much appreciated advise, but rarely > contribute due to my novice programming knowledge, so I hope I can still > qualify. > > If you have some to spare I would really appreciate obtaining one. > > Thanks, > Uri > > -----Original Message----- > From: Shawn Milo [mailto:ShawnMilo at runbox.com] > Sent: Thursday, September 09, 2004 11:24 AM > To: javascript at LaTech.edu > Subject: Re: [Javascript] OT: GMail invites > > > Modification: > > > If there is not enough interest, I will offer them to anyone else on > > the list, first come, first served. > > Add to that, anyone polite and able to complete and punctuate a > sentence. Some kind of friendly banter is a plus! > > An example of a 'bad' request: > > > send me one > > I have two more invites remaining. > > Shawn > _______________________________________________ > 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 LaurentM at london.virgin.net Fri Sep 10 06:09:11 2004 From: LaurentM at london.virgin.net (Laurent Muchacho) Date: Fri, 10 Sep 2004 12:09:11 +0100 Subject: [Javascript] window screenX and screenY Message-ID: <1A847600F409D711B52C0001FAFFF337046F6392@vnetxu01.london.virgin.net> Hi Easy one is any one now what is the IE equivalent of window.screenX and window.screenY who are NS Mozilla. if(document.all){ alert(window.? + '\n' + window.?) }else{ alert(window.screenX + '\n' + window.screenY) } Thanks This E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail. From javascript at mattbarton.org Fri Sep 10 06:33:55 2004 From: javascript at mattbarton.org (Matt Barton) Date: Fri, 10 Sep 2004 12:33:55 +0100 Subject: [Javascript] window screenX and screenY References: <1A847600F409D711B52C0001FAFFF337046F6392@vnetxu01.london.virgin.net> Message-ID: <000b01c4972a$1a3a1050$2799a8c0@selima.co.uk> Afternoon, According to my O'Reilly flamingo book it's window.screenLeft and window.screenTop. Not tested myself, but the book is normally accurate. It lists the properties as being valid for "IE5(Win)". Ta ta, Matt ----- Original Message ----- From: "Laurent Muchacho" To: "'[JavaScript List]'" Sent: Friday, September 10, 2004 12:09 PM Subject: [Javascript] window screenX and screenY > Hi > > Easy one is any one now what is the IE equivalent of window.screenX and > window.screenY who are NS Mozilla. > > if(document.all){ > alert(window.? + '\n' + window.?) > }else{ > alert(window.screenX + '\n' + window.screenY) > } > > Thanks > > > This E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail. > _______________________________________________ > 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 LaurentM at london.virgin.net Fri Sep 10 07:46:41 2004 From: LaurentM at london.virgin.net (Laurent Muchacho) Date: Fri, 10 Sep 2004 13:46:41 +0100 Subject: [Javascript] window screenX and screenY Message-ID: <1A847600F409D711B52C0001FAFFF337046F6393@vnetxu01.london.virgin.net> Thanks Matt This as done the trick. Laurent -----Original Message----- From: Matt Barton [mailto:javascript at mattbarton.org] Sent: 10 September 2004 12:34 To: [JavaScript List] Subject: Re: [Javascript] window screenX and screenY Afternoon, According to my O'Reilly flamingo book it's window.screenLeft and window.screenTop. Not tested myself, but the book is normally accurate. It lists the properties as being valid for "IE5(Win)". Ta ta, Matt ----- Original Message ----- From: "Laurent Muchacho" To: "'[JavaScript List]'" Sent: Friday, September 10, 2004 12:09 PM Subject: [Javascript] window screenX and screenY > Hi > > Easy one is any one now what is the IE equivalent of window.screenX and > window.screenY who are NS Mozilla. > > if(document.all){ > alert(window.? + '\n' + window.?) > }else{ > alert(window.screenX + '\n' + window.screenY) > } > > Thanks > > > This E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail. > _______________________________________________ > 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 E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail. From UGrinwald at dynamic.ca Fri Sep 10 11:49:42 2004 From: UGrinwald at dynamic.ca (Grinwald, Uri) Date: Fri, 10 Sep 2004 12:49:42 -0400 Subject: [Javascript] URL Display Message-ID: This might not be javascript related but I thought you might be ble to point me in the right direction. I was visiting a website and noticed that in the Address bar I see a path with the ending of what seems to be a directory folder i.e. www.companyname.com/company. How come there is no extension dispalying like .html .jsp .asp ? Is it because the files are labelled as index or default under that folder? That is what I thought until I came across these... Which happen to be unde rthe same directory /company. How can I achieve the same results ? http://www.thindata.com/company/ http://www.thindata.com/company/management_profiles/ http://www.thindata.com/company/media_information/ Thanks in advance Uri From flavio at economisa.com.br Fri Sep 10 16:25:48 2004 From: flavio at economisa.com.br (Flavio Gomes) Date: Fri, 10 Sep 2004 18:25:48 -0300 Subject: [Javascript] URL Display In-Reply-To: References: Message-ID: <41421BDC.5060207@economisa.com.br> Grinwald, Uri escreveu: >This might not be javascript related but I thought you might be ble to >point me in the right direction. >I was visiting a website and noticed that in the Address bar I see a >path with the ending of what seems to be a directory folder i.e. >www.companyname.com/company. >How come there is no extension dispalying like .html .jsp .asp ? >Is it because the files are labelled as index or default under that >folder? >That is what I thought until I came across these... >Which happen to be unde rthe same directory /company. >How can I achieve the same results ? >http://www.thindata.com/company/ >http://www.thindata.com/company/management_profiles/ >http://www.thindata.com/company/media_information/ > >Thanks in advance >Uri >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > Most probably: Yes, that is a folder and the webserver reads some default file in that folder. But nothing would stop it from being a PHP or anyother server-side scripting language.. maybe the guy simply wanted to hide the extension for security reasons -- Flavio Gomes flavio at economisa.com.br From rakeshpai at gmail.com Fri Sep 10 23:30:27 2004 From: rakeshpai at gmail.com (Rakesh Pai) Date: Sat, 11 Sep 2004 10:00:27 +0530 Subject: [Javascript] URL Display In-Reply-To: <41421BDC.5060207@economisa.com.br> References: <41421BDC.5060207@economisa.com.br> Message-ID: And shouldn't you hide the extension? The URL is part of the user-interface, (If not google, this is the single most imporatant way your user will ever reach your site) and anyone will tell you that the user-interface should hide the underlying coding specifics. Ideally, the URL should be a short meaningful string that will help the user access the page he wants to. The URL is not necessarily the location of the file, complete with the folder structure and extension, and even worse, the URL should be intentionally devoid of the GET parameters. This might not be necessary, and might even be unavoidable at some times. This is why there are some sites that have scripts that read the URL, decipher it and point it to the right resource. Designing the URL is a very important and often neglected part of web design. However, Grinwald, for the question you have asked, in most probability, these are simply folders on the server, or maybe virtual folders. The file name, if not specified, defaults to index.htm, index.php or default.asp, depending on the server setting. so, might actually refer to . HTH, Rakesh Pai On Fri, 10 Sep 2004 18:25:48 -0300, Flavio Gomes wrote: > Grinwald, Uri escreveu: > > > > >This might not be javascript related but I thought you might be ble to > >point me in the right direction. > >I was visiting a website and noticed that in the Address bar I see a > >path with the ending of what seems to be a directory folder i.e. > >www.companyname.com/company. > >How come there is no extension dispalying like .html .jsp .asp ? > >Is it because the files are labelled as index or default under that > >folder? > >That is what I thought until I came across these... > >Which happen to be unde rthe same directory /company. > >How can I achieve the same results ? > >http://www.thindata.com/company/ > >http://www.thindata.com/company/management_profiles/ > >http://www.thindata.com/company/media_information/ > > > >Thanks in advance > >Uri > >_______________________________________________ > >Javascript mailing list > >Javascript at LaTech.edu > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > > Most probably: Yes, that is a folder and the webserver reads some > default file in that folder. > > But nothing would stop it from being a PHP or anyother server-side > scripting language.. maybe the guy simply wanted to hide the extension > for security reasons > > -- > Flavio Gomes > flavio at economisa.com.br > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > -- Rakesh Pai Mumbai, India. rakesh.pai at gmail.com http://piecesofrakesh.blogspot.com/ From peter at brunone.com Sun Sep 12 00:24:26 2004 From: peter at brunone.com (Peter Brunone) Date: Sun, 12 Sep 2004 00:24:26 -0500 Subject: [Javascript] Capturing event keycodes in Netscape/Mozilla Message-ID: <00e001c49888$c5777110$0502a8c0@monkeyhouse> Can someone please point me to a reference or tutorial so I can see how this is done? I can do IE in my sleep, but the Moz stuff seems to be considerably different. Cheers, Peter From liorean at gmail.com Sun Sep 12 07:10:32 2004 From: liorean at gmail.com (liorean) Date: Sun, 12 Sep 2004 14:10:32 +0200 Subject: [Javascript] Capturing event keycodes in Netscape/Mozilla In-Reply-To: <00e001c49888$c5777110$0502a8c0@monkeyhouse> References: <00e001c49888$c5777110$0502a8c0@monkeyhouse> Message-ID: On Sun, 12 Sep 2004 00:24:26 -0500, Peter Brunone wrote: > Can someone please point me to a reference or tutorial so I can see how this is done? I can do IE in my sleep, but the Moz stuff seems to be considerably different. Try the Mozilla DOM samples list for concrete examples of how it's done: Try the Gecko DOM Reference for reference: Read the [DOM2Events] specification: And finally, for explanation/tutorial go to BrainJar or Scott Andrew: -- David "liorean" Andersson From spindrift at oceanfree.net Mon Sep 13 05:25:54 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Mon, 13 Sep 2004 11:25:54 +0100 Subject: [Javascript] Array-Indexing Problem References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> Message-ID: <000c01c4997c$519489a0$6bad02d4@ic7g> Hi - please can you have a look at the script below. The first and second Alerts work OK, but the third one fails. Why is that, and how can I correct it ? Tim in Ireland. From LaurentM at london.virgin.net Mon Sep 13 05:31:26 2004 From: LaurentM at london.virgin.net (Laurent Muchacho) Date: Mon, 13 Sep 2004 11:31:26 +0100 Subject: [Javascript] Array-Indexing Problem Message-ID: <1A847600F409D711B52C0001FAFFF337046F6399@vnetxu01.london.virgin.net> Hi Tim, Try this and it work fine var alias = eval('viewlist'+ index_num); Mainly when you do the first alert alias is a string and it will still be evaluated as a string on the third alert but by putting your string into an eval() you will then have the object. Laurent -----Original Message----- From: Tim Makins [mailto:spindrift at oceanfree.net] Sent: 13 September 2004 11:26 To: [JavaScript List] Subject: [Javascript] Array-Indexing Problem Hi - please can you have a look at the script below. The first and second Alerts work OK, but the third one fails. Why is that, and how can I correct it ? Tim in Ireland. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript This E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail. From kim.hoogenberg at virgil.nl Mon Sep 13 05:32:04 2004 From: kim.hoogenberg at virgil.nl (Kim Hoogenberg) Date: Mon, 13 Sep 2004 12:32:04 +0200 Subject: [Javascript] Array-Indexing Problem In-Reply-To: <000c01c4997c$519489a0$6bad02d4@ic7g> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <000c01c4997c$519489a0$6bad02d4@ic7g> Message-ID: <41457724.2080509@virgil.nl> >var index_num = 2; >var alias = 'viewlist'+ index_num; >alert(alias); >alert(viewlist2.colname[0]); >alert(alias.colname[0]); > > Alias is a string variable here and it is not referring to your inline object. You could most probably use alert(eval(alias + ".colname[0]")); > > > > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > Cheers, Kim From spindrift at oceanfree.net Mon Sep 13 05:37:42 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Mon, 13 Sep 2004 11:37:42 +0100 Subject: [Javascript] Array-Indexing Problem References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl> Message-ID: <004401c4997d$bd451740$6bad02d4@ic7g> Yes, that works - thanks for a speedy reply !!! Tim in Ireland. ----- Original Message ----- From: "Kim Hoogenberg" To: "[JavaScript List]" Sent: Monday, September 13, 2004 11:32 AM Subject: Re: [Javascript] Array-Indexing Problem > > >var index_num = 2; > >var alias = 'viewlist'+ index_num; > >alert(alias); > >alert(viewlist2.colname[0]); > >alert(alias.colname[0]); > > > > > Alias is a string variable here and it is not referring to your inline > object. You could most probably use alert(eval(alias + ".colname[0]")); > > > > > > > > > > >_______________________________________________ > >Javascript mailing list > >Javascript at LaTech.edu > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > Cheers, > > Kim > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From kim.hoogenberg at virgil.nl Mon Sep 13 05:40:13 2004 From: kim.hoogenberg at virgil.nl (Kim Hoogenberg) Date: Mon, 13 Sep 2004 12:40:13 +0200 Subject: [Javascript] Array-Indexing Problem In-Reply-To: <004401c4997d$bd451740$6bad02d4@ic7g> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl> <004401c4997d$bd451740$6bad02d4@ic7g> Message-ID: <4145790D.8080505@virgil.nl> Tim Makins wrote: >Yes, that works - thanks for a speedy reply !!! > >Tim in Ireland. > > > Anytime! Kim in Holland From spindrift at oceanfree.net Mon Sep 13 05:41:27 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Mon, 13 Sep 2004 11:41:27 +0100 Subject: [Javascript] Array-Indexing Problem References: <1A847600F409D711B52C0001FAFFF337046F6399@vnetxu01.london.virgin.net> Message-ID: <004a01c4997e$3a9fd9a0$6bad02d4@ic7g> Yes, that works too. Many thanks for the speedy reply also, Laurent. I must learn some more about what is going on here - for some reason I keep making this mistake. Tim in Ireland. ----- Original Message ----- From: "Laurent Muchacho" To: "'[JavaScript List]'" Sent: Monday, September 13, 2004 11:31 AM Subject: RE: [Javascript] Array-Indexing Problem > Hi Tim, > > Try this and it work fine > > var alias = eval('viewlist'+ index_num); > > Mainly when you do the first alert alias is a string and it will still be > evaluated as a string on the third alert > but by putting your string into an eval() you will then have the object. > > Laurent > > -----Original Message----- > From: Tim Makins [mailto:spindrift at oceanfree.net] > Sent: 13 September 2004 11:26 > To: [JavaScript List] > Subject: [Javascript] Array-Indexing Problem > > > Hi - please can you have a look at the script below. The first and second > Alerts work OK, but the third one fails. Why is that, and how can I correct > it ? > > Tim in Ireland. > > > > > > > > > > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > This E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail. > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From mvinayakam at gmail.com Mon Sep 13 08:07:29 2004 From: mvinayakam at gmail.com (Vinayakam Murugan) Date: Mon, 13 Sep 2004 18:37:29 +0530 Subject: [Javascript] Clickable Image marquee Message-ID: Hi Can anyone guide of how to implement a clickable image marquee? The image paths are to be retrieved from a mysql database. Clicking on any image should get the user to another script. Any hints, pointers would be greatly appreciated. -- Warm Regards ~~~~~~~~~~~~ Vinayak From rer at datacompusa.com Mon Sep 13 08:39:27 2004 From: rer at datacompusa.com (Roger Roelofs) Date: Mon, 13 Sep 2004 09:39:27 -0400 Subject: [Javascript] Clickable Image marquee In-Reply-To: References: Message-ID: <54CC9666-058A-11D9-AC13-00306572FCC8@datacompusa.com> Vinayak, On Sep 13, 2004, at 9:07 AM, Vinayakam Murugan wrote: > Hi > > Can anyone guide of how to implement a clickable image marquee? The > image paths are to be retrieved from a mysql database. Clicking on any > image should get the user to another script. I must be missing something... wouldn't putting the img inside an a tag do what you want? Roger ------------------------------------------------------- Roger Roelofs web www.datacompusa.com Datacomp Appraisal Services web www.mhvillage.com 3215 Eaglecrest Drive, NE Email rer at datacompusa.com Grand Rapids, MI 49525-4593 From mvinayakam at gmail.com Mon Sep 13 09:02:21 2004 From: mvinayakam at gmail.com (Vinayakam Murugan) Date: Mon, 13 Sep 2004 19:32:21 +0530 Subject: [Javascript] Clickable Image marquee In-Reply-To: <54CC9666-058A-11D9-AC13-00306572FCC8@datacompusa.com> References: <54CC9666-058A-11D9-AC13-00306572FCC8@datacompusa.com> Message-ID: marquee tag has been deprecated. I want a script which will achieve the same effect On Mon, 13 Sep 2004 09:39:27 -0400, Roger Roelofs wrote: > Vinayak, > > On Sep 13, 2004, at 9:07 AM, Vinayakam Murugan wrote: > > > Hi > > > > Can anyone guide of how to implement a clickable image marquee? The > > image paths are to be retrieved from a mysql database. Clicking on any > > image should get the user to another script. > > I must be missing something... wouldn't putting the img inside an a tag > do what you want? > > Roger > ------------------------------------------------------- > Roger Roelofs web www.datacompusa.com > Datacomp Appraisal Services web www.mhvillage.com > 3215 Eaglecrest Drive, NE Email rer at datacompusa.com > Grand Rapids, MI 49525-4593 > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > -- Warm Regards ~~~~~~~~~~~~ Vinayak From flavio at economisa.com.br Mon Sep 13 09:31:48 2004 From: flavio at economisa.com.br (Flavio Gomes) Date: Mon, 13 Sep 2004 11:31:48 -0300 Subject: [Javascript] Clickable Image marquee In-Reply-To: References: <54CC9666-058A-11D9-AC13-00306572FCC8@datacompusa.com> Message-ID: <4145AF54.1060505@economisa.com.br> Hello, Excuse me but I couldnt find where it tells that marquee has been deprecated. Where do you read it? -- Flavio Gomes flavio at economisa.com.br Vinayakam Murugan escreveu: >marquee tag has been deprecated. I want a script which will achieve >the same effect > From mvinayakam at gmail.com Mon Sep 13 09:39:17 2004 From: mvinayakam at gmail.com (Vinayakam Murugan) Date: Mon, 13 Sep 2004 20:09:17 +0530 Subject: [Javascript] Clickable Image marquee In-Reply-To: <4145AF54.1060505@economisa.com.br> References: <54CC9666-058A-11D9-AC13-00306572FCC8@datacompusa.com> <4145AF54.1060505@economisa.com.br> Message-ID: Hi It is actually a IE explorer only feature. Not supported by all browsers. http://www.w3.org/TR/1999/WAI-USERAGENT-19990331/wai-useragent-tech ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In HTML The BLINK element. Note. The BLINK element is not defined by a W3C specification. The MARQUEE element. Note. The MARQUEE element is not defined by a W3C specification. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ On Mon, 13 Sep 2004 11:31:48 -0300, Flavio Gomes wrote: > > Hello, > > Excuse me but I couldnt find where it tells that marquee has been > deprecated. > Where do you read it? > > -- > Flavio Gomes > flavio at economisa.com.br > > Vinayakam Murugan escreveu: > > > > >marquee tag has been deprecated. I want a script which will achieve > >the same effect > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > -- Warm Regards ~~~~~~~~~~~~ Vinayak From ScottHam at clientlogic.com Mon Sep 13 09:45:13 2004 From: ScottHam at clientlogic.com (Scott Hamm) Date: Mon, 13 Sep 2004 10:45:13 -0400 Subject: [Javascript] Clickable Image marquee Message-ID: <48A8BDD0DC72F3458A713242E3848AAD07B84C0F@L001N14> http://www.cee.hw.ac.uk/~ceehsa1/web_design/text/marquee.html -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]On Behalf Of Vinayakam Murugan Sent: Monday, September 13, 2004 10:02 AM To: [JavaScript List] Subject: Re: [Javascript] Clickable Image marquee marquee tag has been deprecated. I want a script which will achieve the same effect On Mon, 13 Sep 2004 09:39:27 -0400, Roger Roelofs wrote: > Vinayak, > > On Sep 13, 2004, at 9:07 AM, Vinayakam Murugan wrote: > > > Hi > > > > Can anyone guide of how to implement a clickable image marquee? The > > image paths are to be retrieved from a mysql database. Clicking on any > > image should get the user to another script. > > I must be missing something... wouldn't putting the img inside an a tag > do what you want? > > Roger > ------------------------------------------------------- > Roger Roelofs web www.datacompusa.com > Datacomp Appraisal Services web www.mhvillage.com > 3215 Eaglecrest Drive, NE Email rer at datacompusa.com > Grand Rapids, MI 49525-4593 > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > -- Warm Regards ~~~~~~~~~~~~ Vinayak _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From spindrift at oceanfree.net Tue Sep 14 10:07:47 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Tue, 14 Sep 2004 16:07:47 +0100 Subject: [Javascript] Sorting Problem References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl> Message-ID: <000901c49a6c$bddae000$4faba5c2@ic7g> I have a multi-dimensional array; some columns contains strings of text, and other columns contain numbers. The numbers in the array are stored as strings. When trying to sort the array, I tried the following functions with the my_array.sort() command to get the different types of sort: dictionary order, and numerical order. Both work fine on the columns containing numbers, but if I try the numeric sort on a column containing strings, it crashes with error 'Number Expected'. Is there an easy way out of this? Tim in Ireland. function alpha_sort(element1, element2) { if (element1 < element2) {return -1} else if (element1 > element2) {return 1} else {return 0} } function numeric_sort(element1, element2) { element1 = parseFloat(element1); element2 = parseFloat(element2); element1 - element2; return element1 - element2; } From hakan at backbase.com Tue Sep 14 10:55:18 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Tue, 14 Sep 2004 17:55:18 +0200 Subject: [Javascript] Sorting Problem In-Reply-To: <000901c49a6c$bddae000$4faba5c2@ic7g> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl> <000901c49a6c$bddae000$4faba5c2@ic7g> Message-ID: <41471466.2010705@backbase.com> I assume that parseFloat works the same way as parseInt. It will return NaN if it cannot find a number, it will NOT return '0' since it doesn't convert to a number, it only tries to parse for a number. I think the following code will eliminate your error (not tested), but I'm not sure it will do what you want. function numeric_sort(element1, element2) { element1 = parseFloat(element1); element2 = parseFloat(element2); if(typeof(element1)!='number') element1 = 0; if(typeof(element2)!='number') element2 = 0; element1 - element2; return element1 - element2; } Regards, H Tim Makins wrote: > I have a multi-dimensional array; some columns contains strings of text, and > other columns contain numbers. The numbers in the array are stored as > strings. > > When trying to sort the array, I tried the following functions with the > my_array.sort() command to get the different types of sort: dictionary > order, and numerical order. Both work fine on the columns containing > numbers, but if I try the numeric sort on a column containing strings, it > crashes with error 'Number Expected'. Is there an easy way out of this? > > Tim in Ireland. > > function alpha_sort(element1, element2) { > if (element1 < element2) {return -1} > else if (element1 > element2) {return 1} > else {return 0} > } > > function numeric_sort(element1, element2) { > element1 = parseFloat(element1); > element2 = parseFloat(element2); > element1 - element2; > return element1 - element2; > } > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > From hakan at backbase.com Tue Sep 14 10:56:58 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Tue, 14 Sep 2004 17:56:58 +0200 Subject: [Javascript] Sorting Problem In-Reply-To: <41471466.2010705@backbase.com> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl> <000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com> Message-ID: <414714CA.3050105@backbase.com> By the way, element1 - element2; isn't really doing much, since the result is not assigned anywhere. ;) Regards, H Hakan M (Backbase) wrote: > I assume that parseFloat works the same way as parseInt. It will return > NaN if it cannot find a number, it will NOT return '0' since it doesn't > convert to a number, it only tries to parse for a number. > > I think the following code will eliminate your error (not tested), but > I'm not sure it will do what you want. > > function numeric_sort(element1, element2) { > element1 = parseFloat(element1); > element2 = parseFloat(element2); > if(typeof(element1)!='number') element1 = 0; > if(typeof(element2)!='number') element2 = 0; > element1 - element2; > return element1 - element2; > } > > Regards, > H > > > Tim Makins wrote: > >> I have a multi-dimensional array; some columns contains strings of >> text, and >> other columns contain numbers. The numbers in the array are stored as >> strings. >> >> When trying to sort the array, I tried the following functions with the >> my_array.sort() command to get the different types of sort: dictionary >> order, and numerical order. Both work fine on the columns containing >> numbers, but if I try the numeric sort on a column containing strings, it >> crashes with error 'Number Expected'. Is there an easy way out of this? >> >> Tim in Ireland. >> >> function alpha_sort(element1, element2) { >> if (element1 < element2) {return -1} >> else if (element1 > element2) {return 1} >> else {return 0} >> } >> >> function numeric_sort(element1, element2) { >> element1 = parseFloat(element1); >> element2 = parseFloat(element2); >> element1 - element2; >> return element1 - element2; >> } >> >> _______________________________________________ >> 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 spindrift at oceanfree.net Tue Sep 14 11:19:18 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Tue, 14 Sep 2004 17:19:18 +0100 Subject: [Javascript] Sorting Problem References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl><000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com> Message-ID: <000d01c49a76$97929140$88307dc2@ic7g> No, that doesn't work - it still errors 'Number Expected' Tim in Ireland. ----- Original Message ----- From: "Hakan M (Backbase)" To: "[JavaScript List]" Sent: Tuesday, September 14, 2004 4:55 PM Subject: Re: [Javascript] Sorting Problem > I assume that parseFloat works the same way as parseInt. It will return > NaN if it cannot find a number, it will NOT return '0' since it doesn't > convert to a number, it only tries to parse for a number. > > I think the following code will eliminate your error (not tested), but > I'm not sure it will do what you want. > > function numeric_sort(element1, element2) { > element1 = parseFloat(element1); > element2 = parseFloat(element2); > if(typeof(element1)!='number') element1 = 0; > if(typeof(element2)!='number') element2 = 0; > element1 - element2; > return element1 - element2; > } > > Regards, > H > > > Tim Makins wrote: > > > I have a multi-dimensional array; some columns contains strings of text, and > > other columns contain numbers. The numbers in the array are stored as > > strings. > > > > When trying to sort the array, I tried the following functions with the > > my_array.sort() command to get the different types of sort: dictionary > > order, and numerical order. Both work fine on the columns containing > > numbers, but if I try the numeric sort on a column containing strings, it > > crashes with error 'Number Expected'. Is there an easy way out of this? > > > > Tim in Ireland. > > > > function alpha_sort(element1, element2) { > > if (element1 < element2) {return -1} > > else if (element1 > element2) {return 1} > > else {return 0} > > } > > > > function numeric_sort(element1, element2) { > > element1 = parseFloat(element1); > > element2 = parseFloat(element2); > > element1 - element2; > > return element1 - element2; > > } > > > > _______________________________________________ > > 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 liorean at gmail.com Tue Sep 14 11:23:45 2004 From: liorean at gmail.com (liorean) Date: Tue, 14 Sep 2004 18:23:45 +0200 Subject: [Javascript] Sorting Problem In-Reply-To: <414714CA.3050105@backbase.com> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl> <000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com> <414714CA.3050105@backbase.com> Message-ID: On Tue, 14 Sep 2004 17:56:58 +0200, Hakan M (Backbase) wrote: > By the way, > element1 - element2; > isn't really doing much, since the result is not assigned anywhere. ;) Au contraire, it is essential for it to work. The Array.prototype.sort method will run this function on two elements and sort them depending on the returned value. It works the same as the -1:0:1 return values the alpha sort uses. As for fixing it, try doing like this, if you want to sort numericals above and non-numericals below: function numSort(a,b){ return (isNaN(a)?Number.POSITIVE_INFINITY:a)-(isNaN(b)?Number.POSITIVE_INFINITY:b) } If you want to sort the numbers and numerical strings numerically but the non-numerical strings alphabetically, try this: function numAlphaSort(a,b){ return (isNaN(a)&&isNaN(b))? alphaSort(a,b); numSort(a,b); ] -- David "liorean" Andersson From spindrift at oceanfree.net Tue Sep 14 12:39:51 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Tue, 14 Sep 2004 18:39:51 +0100 Subject: [Javascript] Sorting Problem References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl><000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com><414714CA.3050105@backbase.com> Message-ID: <004501c49a81$d9f83e80$88307dc2@ic7g> Well, that's a start. Its not crashing now, but the numerical search results aren't quite right either: 0.129872 0.164749 0 10.1961 10.5643 1003 100 104.813049 10 11.390914 1121 function numeric_sort(a, b) { return (isNaN(a)&&isNaN(b))? alpha_sort(a,b): numSort(a,b); } function alpha_sort(a, b) { if (a < b) {return -1} else if (a > b) {return 1} else {return 0} } function numSort(a,b){ return (isNaN(a)?Number.POSITIVE_INFINITY:a)-(isNaN(b)?Number.POSITIVE_INFINITY:b) } ----- Original Message ----- From: "liorean" To: "[JavaScript List]" Sent: Tuesday, September 14, 2004 5:23 PM Subject: Re: [Javascript] Sorting Problem > On Tue, 14 Sep 2004 17:56:58 +0200, Hakan M (Backbase) > wrote: > > By the way, > > element1 - element2; > > isn't really doing much, since the result is not assigned anywhere. ;) > > Au contraire, it is essential for it to work. The Array.prototype.sort > method will run this function on two elements and sort them depending > on the returned value. It works the same as the -1:0:1 return values > the alpha sort uses. > > As for fixing it, try doing like this, if you want to sort numericals > above and non-numericals below: > > function numSort(a,b){ > return (isNaN(a)?Number.POSITIVE_INFINITY:a)-(isNaN(b)?Number.POSITIVE_INFINITY:b) > } > > If you want to sort the numbers and numerical strings numerically but > the non-numerical strings alphabetically, try this: > > function numAlphaSort(a,b){ > return (isNaN(a)&&isNaN(b))? > alphaSort(a,b); > numSort(a,b); > ] > -- > David "liorean" Andersson > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From liorean at gmail.com Tue Sep 14 13:02:38 2004 From: liorean at gmail.com (liorean) Date: Tue, 14 Sep 2004 20:02:38 +0200 Subject: [Javascript] Sorting Problem In-Reply-To: <004501c49a81$d9f83e80$88307dc2@ic7g> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl> <000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com> <414714CA.3050105@backbase.com> <004501c49a81$d9f83e80$88307dc2@ic7g> Message-ID: On Tue, 14 Sep 2004 18:39:51 +0100, Tim Makins wrote: > Well, that's a start. Its not crashing now, but the numerical search results aren't quite right either Oh, I forgot. Most likely you'll want to parseFloat the a and b arguments in numSort. Second, I made a little mistake there: (isNaN(b)?Number.POSITIVE_INFINITY:b) should be (isNaN(b)?Number.NEGATIVE_INFINITY:parseFloat(b)) -- David "liorean" Andersson From spindrift at oceanfree.net Tue Sep 14 13:48:04 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Tue, 14 Sep 2004 19:48:04 +0100 Subject: [Javascript] Sorting Problem References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl><000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com><414714CA.3050105@backbase.com><004501c49a81$d9f83e80$88307dc2@ic7g> Message-ID: <00af01c49a8b$61c74f00$88307dc2@ic7g> function numeric_sort(a, b) { return (isNaN(a)&&isNaN(b))? alpha_sort(a,b): numSort(a,b); } function alpha_sort(a, b) { if (a < b) {return -1} else if (a > b) {return 1} else {return 0} } function numSort(a,b){ return (isNaN(parseFloat(a))?Number.POSITIVE_INFINITY:parseFloat(a)) - (isNaN(parseFloat(b))?Number.NEGATIVE_INFINITY:parseFloat(b)) } Sorry - I tried the above, and it still doesn't sort numerically. Oh well, that's enough for today anyway - about time I stopped. http://www.mapability.com/test/t3index.html That's the page I'm working on. Only the 'States and Provinces' List is there so far, and the map and help links don't work, as it is out of context. Tim in Ireland. ----- Original Message ----- From: "liorean" To: "[JavaScript List]" Sent: Tuesday, September 14, 2004 7:02 PM Subject: Re: [Javascript] Sorting Problem > On Tue, 14 Sep 2004 18:39:51 +0100, Tim Makins wrote: > > Well, that's a start. Its not crashing now, but the numerical search results aren't quite right either > > Oh, I forgot. Most likely you'll want to parseFloat the a and b > arguments in numSort. > > Second, I made a little mistake there: > (isNaN(b)?Number.POSITIVE_INFINITY:b) > should be > (isNaN(b)?Number.NEGATIVE_INFINITY:parseFloat(b)) > -- > David "liorean" Andersson > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From flavio at economisa.com.br Tue Sep 14 14:12:25 2004 From: flavio at economisa.com.br (Flavio Gomes) Date: Tue, 14 Sep 2004 16:12:25 -0300 Subject: [Javascript] Sorting Problem In-Reply-To: <00af01c49a8b$61c74f00$88307dc2@ic7g> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl><000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com><414714CA.3050105@backbase.com><004501c49a81$d9f83e80$88307dc2@ic7g> <00af01c49a8b$61c74f00$88307dc2@ic7g> Message-ID: <41474299.7070407@economisa.com.br> Tim, never give up, SOLDIER!! Since the first mail you sent I'm trying to fix it.. o.O Now I think I made it!! ^^ Check attachment. (Ps.: Anybody know how to work with the Array.prototype? I couldn't overwrite old .sort() method) Hope to Help, -- Flavio Gomes flavio at economisa.com.br Tim Makins wrote: >Sorry - I tried the above, and it still doesn't sort numerically. >Oh well, that's enough for today anyway - about time I stopped. > >http://www.mapability.com/test/t3index.html > >That's the page I'm working on. Only the 'States and Provinces' List is >there so far, and the map and help links don't work, as it is out of >context. > >Tim in Ireland. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From de2kcs07 at postmark.net Wed Sep 15 00:04:16 2004 From: de2kcs07 at postmark.net (Dinuj Nath) Date: Wed, 15 Sep 2004 05:04:16 +0000 Subject: [Javascript] Can html source be read Message-ID: <20040915050416.A4F2514361B@mail.postmark.net> Hi, This is my first mail to the list. I need some help I have an asp page that is generated as a result of database query against some input in a form. Now I want to give a printable view of the result. I want to know if I can read the html source of a frame/page and store it in a variable so that I can use it to create a new page. Thanking you Dinuj Nath de2kcs07 at postmark.net From hakan at backbase.com Wed Sep 15 04:00:06 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Wed, 15 Sep 2004 11:00:06 +0200 Subject: [Javascript] Sorting Problem In-Reply-To: References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl> <000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com> <414714CA.3050105@backbase.com> Message-ID: <41480496.4010408@backbase.com> liorean wrote: > On Tue, 14 Sep 2004 17:56:58 +0200, Hakan M (Backbase) > wrote: > >>By the way, >> element1 - element2; >>isn't really doing much, since the result is not assigned anywhere. ;) > > > Au contraire, it is essential for it to work. Please explain how the above statement affects the function, since the result of the subtraction is forgotten immediately. Neither values of element1 nor element2 have been altered. Regards, H From rakeshpai at gmail.com Wed Sep 15 04:16:29 2004 From: rakeshpai at gmail.com (Rakesh Pai) Date: Wed, 15 Sep 2004 14:46:29 +0530 Subject: [Javascript] Can html source be read In-Reply-To: <20040915050416.A4F2514361B@mail.postmark.net> References: <20040915050416.A4F2514361B@mail.postmark.net> Message-ID: The most graceful way of providing with a print version of a page is by offering a seperate print style-sheet, IMHO. Of course, you'd have to plan for this before hand, and make your pages such that they can switch styles completely. Also, you'd need style-switcher scripts to generate a print preview. All this work is still simpler than doing anything with server side code, or even worse with JavaScript. Don't you want users to be able to print your pages if they have Javascript disabled? Is the printing feature so dependent on client side scripts that in the absence of a script interpretting engine, you dont want to give him a print? HTH, Rakesh Pai On Wed, 15 Sep 2004 05:04:16 +0000, Dinuj Nath wrote: > Hi, > This is my first mail to the list. I need some help > > I have an asp page that is generated as a result of database query > against some input in a form. > > Now I want to give a printable view of the result. I want to know if > I can read the html source of a frame/page and store it in a variable > so that I can use it to create a new page. > > Thanking you > Dinuj Nath > de2kcs07 at postmark.net > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > -- Rakesh Pai Mumbai, India. rakesh.pai at gmail.com http://piecesofrakesh.blogspot.com/ From de2kcs07 at postmark.net Wed Sep 15 04:17:37 2004 From: de2kcs07 at postmark.net (Dinuj Nath) Date: Wed, 15 Sep 2004 09:17:37 +0000 Subject: [Javascript] Can html source be read Message-ID: <20040915091737.8F7E7143613@mail.postmark.net> Thanks Rakesh, Dinuj Nath de2kcs07 at postmark.net Rakesh Pai wrote: > The most graceful way of providing with a print version of a page is > by offering a seperate print style-sheet, IMHO. Of course, you'd have > to plan for this before hand, and make your pages such that they can > switch styles completely. Also, you'd need style-switcher scripts to > generate a print preview. All this work is still simpler than doing > anything with server side code, or even worse with JavaScript. > Don't you want users to be able to print your pages if they have > Javascript disabled? Is the printing feature so dependent on client > side scripts that in the absence of a script interpretting engine, you > dont want to give him a print? > HTH, > Rakesh Pai > > > On Wed, 15 Sep 2004 05:04:16 +0000, Dinuj Nath wrote: > > Hi, > > This is my first mail to the list. I need some help > > > > I have an asp page that is generated as a result of database query > > against some input in a form. > > > > Now I want to give a printable view of the result. I want to know if > > I can read the html source of a frame/page and store it in a variable > > so that I can use it to create a new page. > > > > Thanking you > > Dinuj Nath > > de2kcs07 at postmark.net > > > > _______________________________________________ > > Javascript mailing list > > Javascript at LaTech.edu > > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > > -- > Rakesh Pai > Mumbai, India. > rakesh.pai at gmail.com > http://piecesofrakesh.blogspot.com/ > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From spindrift at oceanfree.net Wed Sep 15 04:44:24 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Wed, 15 Sep 2004 10:44:24 +0100 Subject: [Javascript] Sorting Problem References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl><000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com><414714CA.3050105@backbase.com><004501c49a81$d9f83e80$88307dc2@ic7g> <00af01c49a8b$61c74f00$88307dc2@ic7g> <41474299.7070407@economisa.com.br> Message-ID: <002201c49b0a$1a0aa520$95ab02d4@ic7g> Thanks, Flavio - that sort worked OK, and the problem is now solved. Many thanks, Tim in Ireland. ----- Original Message ----- From: Flavio Gomes To: [JavaScript List] Sent: Tuesday, September 14, 2004 8:12 PM Subject: Re: [Javascript] Sorting Problem Tim, never give up, SOLDIER!! Since the first mail you sent I'm trying to fix it.. o.O Now I think I made it!! ^^ Check attachment. (Ps.: Anybody know how to work with the Array.prototype? I couldn't overwrite old .sort() method) Hope to Help, -- Flavio Gomes flavio at economisa.com.br Tim Makins wrote: >Sorry - I tried the above, and it still doesn't sort numerically. >Oh well, that's enough for today anyway - about time I stopped. > >http://www.mapability.com/test/t3index.html > >That's the page I'm working on. Only the 'States and Provinces' List is >there so far, and the map and help links don't work, as it is out of >context. > >Tim in Ireland. > > _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From spindrift at oceanfree.net Wed Sep 15 04:53:07 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Wed, 15 Sep 2004 10:53:07 +0100 Subject: [Javascript] Loading Problem References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl><000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com><414714CA.3050105@backbase.com><004501c49a81$d9f83e80$88307dc2@ic7g> Message-ID: <002301c49b0a$1af5a160$95ab02d4@ic7g> // US Counties_3 OK-WY viewlist4 = { colname: ["Name","State_name","Abbr","Fips","Area sq-mile","Area sq-km","Population","Pop Density"], colwidth: [20,20,6,6,12,12,12,12], coldata: [ {z0:"Adair",z1:"Oklahoma",z2:"OK",z3:"40001",z4:"591.17320",z5:"1043.41",z6: "21038",z7:"35.6"}, {z0:"Alfalfa",z1:"Oklahoma",z2:"OK",z3:"40003",z4:"874.94888",z5:"2266.11",z 6:"6105",z7:"7.0"}, {z0:"Atoka",z1:"Oklahoma",z2:"OK",z3:"40005",z4:"973.33720",z5:"2520.93",z6: "13879",z7:"14.3"}, {z0:"Beaver",z1:"Oklahoma",z2:"OK",z3:"40007",z4:"1842.68875",z5:"1162.12",z 6:"5857",z7:"3.2"}, {z0:"Beckham",z1:"Oklahoma",z2:"OK",z3:"40009",z4:"907.61378",z5:"2350.71",z 6:"19799",z7:"21.8"}, {z0:"Blaine",z1:"Oklahoma",z2:"OK",z3:"40011",z4:"943.23562",z5:"10945.95",z 6:"11976",z7:"12.7"}, {z0:"Bryan",z1:"Oklahoma",z2:"OK",z3:"40013",z4:"936.78878",z5:"2426.27",z6: "36534",z7:"39.0"}, {z0:"Caddo",z1:"Oklahoma",z2:"OK",z3:"40015",z4:"1280.94512",z5:"3317.63",z6 :"30150",z7:"23.5"} ] } Today's question: My table-viewer uses a number of data-files, such as the above (a shortened version). It is stored as 'table_uscount1.js', and will be loaded by including the line: at the top of the page that processes it. However, if there are a lot of these files, the 'load' gets very big and takes time. Is there a way to only load the one I want, when it is asked for ?? Tim in Ireland. From javascript at mattbarton.org Wed Sep 15 04:59:21 2004 From: javascript at mattbarton.org (Matt Barton) Date: Wed, 15 Sep 2004 10:59:21 +0100 Subject: [Javascript] Loading Problem References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g><41457724.2080509@virgil.nl><000901c49a6c$bddae000$4faba5c2@ic7g><41471466.2010705@backbase.com><414714CA.3050105@backbase.com><004501c49a81$d9f83e80$88307dc2@ic7g> <002301c49b0a$1af5a160$95ab02d4@ic7g> Message-ID: <003001c49b0a$aca306c0$2099a8c0@selima.co.uk> Morning, Could you try something like: No idea if it'll do the trick, but it might be worth trying. Matt ----- Original Message ----- From: "Tim Makins" To: "[JavaScript List]" Sent: Wednesday, September 15, 2004 10:53 AM Subject: [Javascript] Loading Problem > // US Counties_3 OK-WY > viewlist4 = { > colname: ["Name","State_name","Abbr","Fips","Area sq-mile","Area > sq-km","Population","Pop Density"], > colwidth: [20,20,6,6,12,12,12,12], > coldata: [ > {z0:"Adair",z1:"Oklahoma",z2:"OK",z3:"40001",z4:"591.17320",z5:"1043.41",z6: > "21038",z7:"35.6"}, > {z0:"Alfalfa",z1:"Oklahoma",z2:"OK",z3:"40003",z4:"874.94888",z5:"2266.11",z > 6:"6105",z7:"7.0"}, > {z0:"Atoka",z1:"Oklahoma",z2:"OK",z3:"40005",z4:"973.33720",z5:"2520.93",z6: > "13879",z7:"14.3"}, > {z0:"Beaver",z1:"Oklahoma",z2:"OK",z3:"40007",z4:"1842.68875",z5:"1162.12",z > 6:"5857",z7:"3.2"}, > {z0:"Beckham",z1:"Oklahoma",z2:"OK",z3:"40009",z4:"907.61378",z5:"2350.71",z > 6:"19799",z7:"21.8"}, > {z0:"Blaine",z1:"Oklahoma",z2:"OK",z3:"40011",z4:"943.23562",z5:"10945.95",z > 6:"11976",z7:"12.7"}, > {z0:"Bryan",z1:"Oklahoma",z2:"OK",z3:"40013",z4:"936.78878",z5:"2426.27",z6: > "36534",z7:"39.0"}, > {z0:"Caddo",z1:"Oklahoma",z2:"OK",z3:"40015",z4:"1280.94512",z5:"3317.63",z6 > :"30150",z7:"23.5"} > ] > } > > > Today's question: > > My table-viewer uses a number of data-files, such as the above (a shortened > version). It is stored as 'table_uscount1.js', and will be loaded by > including the line: > > > > at the top of the page that processes it. However, if there are a lot of > these files, the 'load' gets very big and takes time. Is there a way to only > load the one I want, when it is asked for ?? > > Tim in Ireland. > > _______________________________________________ > 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 liorean at gmail.com Wed Sep 15 05:00:59 2004 From: liorean at gmail.com (liorean) Date: Wed, 15 Sep 2004 12:00:59 +0200 Subject: [Javascript] Sorting Problem In-Reply-To: <41480496.4010408@backbase.com> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl> <000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com> <414714CA.3050105@backbase.com> <41480496.4010408@backbase.com> Message-ID: On Wed, 15 Sep 2004 11:00:06 +0200, Hakan M (Backbase) wrote: > Please explain how the above statement affects the function, since the > result of the subtraction is forgotten immediately. Neither values of > element1 nor element2 have been altered. Ah, I only saw the one sent to the return statement, not the one right before it. You're right about that one, it's entirely unused. -- David "liorean" Andersson From hakan at backbase.com Wed Sep 15 05:10:08 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Wed, 15 Sep 2004 12:10:08 +0200 Subject: [Javascript] Loading Problem In-Reply-To: <003001c49b0a$aca306c0$2099a8c0@selima.co.uk> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g><41457724.2080509@virgil.nl><000901c49a6c$bddae000$4faba5c2@ic7g><41471466.2010705@backbase.com><414714CA.3050105@backbase.com><004501c49a81$d9f83e80$88307dc2@ic7g> <002301c49b0a$1af5a160$95ab02d4@ic7g> <003001c49b0a$aca306c0$2099a8c0@selima.co.uk> Message-ID: <41481500.9030207@backbase.com> I have a dynamic script loader thing here somewhere, working in IE5+ and Mozilla at the least. If it's interesting, I'll dig it up. Regards, H Matt Barton wrote: > Morning, > > > Could you try something like: > > > > > > > > > No idea if it'll do the trick, but it might be worth trying. > > Matt > > ----- Original Message ----- > From: "Tim Makins" > To: "[JavaScript List]" > Sent: Wednesday, September 15, 2004 10:53 AM > Subject: [Javascript] Loading Problem > > > >>// US Counties_3 OK-WY >>viewlist4 = { >>colname: ["Name","State_name","Abbr","Fips","Area sq-mile","Area >>sq-km","Population","Pop Density"], >>colwidth: [20,20,6,6,12,12,12,12], >>coldata: [ >> > > {z0:"Adair",z1:"Oklahoma",z2:"OK",z3:"40001",z4:"591.17320",z5:"1043.41",z6: > >>"21038",z7:"35.6"}, >> > > {z0:"Alfalfa",z1:"Oklahoma",z2:"OK",z3:"40003",z4:"874.94888",z5:"2266.11",z > >>6:"6105",z7:"7.0"}, >> > > {z0:"Atoka",z1:"Oklahoma",z2:"OK",z3:"40005",z4:"973.33720",z5:"2520.93",z6: > >>"13879",z7:"14.3"}, >> > > {z0:"Beaver",z1:"Oklahoma",z2:"OK",z3:"40007",z4:"1842.68875",z5:"1162.12",z > >>6:"5857",z7:"3.2"}, >> > > {z0:"Beckham",z1:"Oklahoma",z2:"OK",z3:"40009",z4:"907.61378",z5:"2350.71",z > >>6:"19799",z7:"21.8"}, >> > > {z0:"Blaine",z1:"Oklahoma",z2:"OK",z3:"40011",z4:"943.23562",z5:"10945.95",z > >>6:"11976",z7:"12.7"}, >> > > {z0:"Bryan",z1:"Oklahoma",z2:"OK",z3:"40013",z4:"936.78878",z5:"2426.27",z6: > >>"36534",z7:"39.0"}, >> > > {z0:"Caddo",z1:"Oklahoma",z2:"OK",z3:"40015",z4:"1280.94512",z5:"3317.63",z6 > >>:"30150",z7:"23.5"} >>] >>} >> >> >>Today's question: >> >>My table-viewer uses a number of data-files, such as the above (a > > shortened > >>version). It is stored as 'table_uscount1.js', and will be loaded by >>including the line: >> >> >> >>at the top of the page that processes it. However, if there are a lot of >>these files, the 'load' gets very big and takes time. Is there a way to > > only > >>load the one I want, when it is asked for ?? >> >>Tim in Ireland. >> >>_______________________________________________ >>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 > > From liorean at gmail.com Wed Sep 15 05:10:45 2004 From: liorean at gmail.com (liorean) Date: Wed, 15 Sep 2004 12:10:45 +0200 Subject: [Javascript] Sorting Problem In-Reply-To: <002201c49b0a$1a0aa520$95ab02d4@ic7g> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com> <414714CA.3050105@backbase.com> <004501c49a81$d9f83e80$88307dc2@ic7g> <00af01c49a8b$61c74f00$88307dc2@ic7g> <41474299.7070407@economisa.com.br> <002201c49b0a$1a0aa520$95ab02d4@ic7g> Message-ID: > From: Flavio Gomes > Sent: Tuesday, September 14, 2004 8:12 PM > (Ps.: Anybody know how to work with the Array.prototype? I couldn't overwrite old .sort() method) Array.prototype.sort is a native, general purpose function with very good performance. You shouldn't want to replace it, it's far more efficient than anything you may write in JavaScript. Besides, with the fifth generation browsers the security was raised and it's now not possible to replace the core functionality native methods. -- David "liorean" Andersson From liorean at gmail.com Wed Sep 15 05:35:53 2004 From: liorean at gmail.com (liorean) Date: Wed, 15 Sep 2004 12:35:53 +0200 Subject: [Javascript] Loading Problem In-Reply-To: <002301c49b0a$1af5a160$95ab02d4@ic7g> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <000c01c4997c$519489a0$6bad02d4@ic7g> <41457724.2080509@virgil.nl> <000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com> <414714CA.3050105@backbase.com> <004501c49a81$d9f83e80$88307dc2@ic7g> <002301c49b0a$1af5a160$95ab02d4@ic7g> Message-ID: On Wed, 15 Sep 2004 10:53:07 +0100, Tim Makins wrote: > Today's question: > My table-viewer uses a number of data-files, such as the above (a shortened > version). It is stored as 'table_uscount1.js', and will be loaded by > including the line: > > > > at the top of the page that processes it. However, if there are a lot of > these files, the 'load' gets very big and takes time. Is there a way to only > load the one I want, when it is asked for ?? Yes there is. However, if you want saf and iem support on the Mac it's gonna be a long winded one. Also, op didn't support this before version 7.5. I've not tested doing this on shiira or omniweb, so I will not even bother with coding for them right now. function loadScript(address){ var m=/mac/i.test(navigator.platform), a=window.ActiveXObject||false, x=window.XMLHttpRequest||false, s=/apple/i.test(navigator.vendor), script; // First we do the op7.5/moz/iew solution. // No feature detection necessary, all other browsers will just gracefully fail. (script=document.createElement('script')).setAttribute('type','text/javascript'); script.setAttribute.src=address; document.getElementsByTagName('head').item(0).appendChild(script); // Okay, that done. How about iem, then? if(m&&a) document.createElement('div').innerHTML=' > > > > at the top of the page that processes it. However, if there are a lot of > > these files, the 'load' gets very big and takes time. Is there a way to only > > load the one I want, when it is asked for ?? > > Yes there is. However, if you want saf and iem support on the Mac it's > gonna be a long winded one. Also, op didn't support this before > version 7.5. I've not tested doing this on shiira or omniweb, so I > will not even bother with coding for them right now. > > function loadScript(address){ > var > m=/mac/i.test(navigator.platform), > a=window.ActiveXObject||false, > x=window.XMLHttpRequest||false, > s=/apple/i.test(navigator.vendor), > script; > // First we do the op7.5/moz/iew solution. > // No feature detection necessary, all other browsers will just > gracefully fail. > (script=document.createElement('script')).setAttribute('type','text/javascri pt'); > script.setAttribute.src=address; > document.getElementsByTagName('head').item(0).appendChild(script); > // Okay, that done. How about iem, then? > if(m&&a) > document.createElement('div').innerHTML=' > > > > > No idea if it'll do the trick, but it might be worth trying. > > Matt > > ----- Original Message ----- > From: "Tim Makins" > To: "[JavaScript List]" > Sent: Wednesday, September 15, 2004 10:53 AM > Subject: [Javascript] Loading Problem > > > > // US Counties_3 OK-WY > > viewlist4 = { > > colname: ["Name","State_name","Abbr","Fips","Area sq-mile","Area > > sq-km","Population","Pop Density"], > > colwidth: [20,20,6,6,12,12,12,12], > > coldata: [ > > > {z0:"Adair",z1:"Oklahoma",z2:"OK",z3:"40001",z4:"591.17320",z5:"1043.41",z6: > > "21038",z7:"35.6"}, > > > {z0:"Alfalfa",z1:"Oklahoma",z2:"OK",z3:"40003",z4:"874.94888",z5:"2266.11",z > > 6:"6105",z7:"7.0"}, > > > {z0:"Atoka",z1:"Oklahoma",z2:"OK",z3:"40005",z4:"973.33720",z5:"2520.93",z6: > > "13879",z7:"14.3"}, > > > {z0:"Beaver",z1:"Oklahoma",z2:"OK",z3:"40007",z4:"1842.68875",z5:"1162.12",z > > 6:"5857",z7:"3.2"}, > > > {z0:"Beckham",z1:"Oklahoma",z2:"OK",z3:"40009",z4:"907.61378",z5:"2350.71",z > > 6:"19799",z7:"21.8"}, > > > {z0:"Blaine",z1:"Oklahoma",z2:"OK",z3:"40011",z4:"943.23562",z5:"10945.95",z > > 6:"11976",z7:"12.7"}, > > > {z0:"Bryan",z1:"Oklahoma",z2:"OK",z3:"40013",z4:"936.78878",z5:"2426.27",z6: > > "36534",z7:"39.0"}, > > > {z0:"Caddo",z1:"Oklahoma",z2:"OK",z3:"40015",z4:"1280.94512",z5:"3317.63",z6 > > :"30150",z7:"23.5"} > > ] > > } > > > > > > Today's question: > > > > My table-viewer uses a number of data-files, such as the above (a > shortened > > version). It is stored as 'table_uscount1.js', and will be loaded by > > including the line: > > > > > > > > at the top of the page that processes it. However, if there are a lot of > > these files, the 'load' gets very big and takes time. Is there a way to > only > > load the one I want, when it is asked for ?? > > > > Tim in Ireland. > > > > _______________________________________________ > > 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 > From liorean at gmail.com Wed Sep 15 06:39:59 2004 From: liorean at gmail.com (liorean) Date: Wed, 15 Sep 2004 13:39:59 +0200 Subject: [Javascript] Loading Problem In-Reply-To: <00ca01c49b17$b2aaaf20$95ab02d4@ic7g> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com> <414714CA.3050105@backbase.com> <004501c49a81$d9f83e80$88307dc2@ic7g> <002301c49b0a$1af5a160$95ab02d4@ic7g> <00ca01c49b17$b2aaaf20$95ab02d4@ic7g> Message-ID: On Wed, 15 Sep 2004 12:12:59 +0100, Tim Makins wrote: > David - What format should 'address' be ? I just tested it with > 'gaz/table.js' on Internet Explorer, and for the line: > > script.setAttribute.src=address; > > I get the error 'Object doesn't support this property or method'. I guess I forgot to change all the occurences of .att=value to setAttribute when I adapted that one to support saf. Try using script.setAttribute('src',address): instead. (Note that this entire script is untested as it's pulled together from parts. It should in theory work, but I might have made other mistakes somewhere in it.) -- David "liorean" Andersson From javascript at mattbarton.org Wed Sep 15 06:45:46 2004 From: javascript at mattbarton.org (Matt Barton) Date: Wed, 15 Sep 2004 12:45:46 +0100 Subject: [Javascript] Loading Problem References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g><41457724.2080509@virgil.nl><000901c49a6c$bddae000$4faba5c2@ic7g><41471466.2010705@backbase.com><414714CA.3050105@backbase.com><004501c49a81$d9f83e80$88307dc2@ic7g><002301c49b0a$1af5a160$95ab02d4@ic7g><003001c49b0a$aca306c0$2099a8c0@selima.co.uk> <00ce01c49b17$b4f49f20$95ab02d4@ic7g> Message-ID: <005401c49b19$8a02e630$2099a8c0@selima.co.uk> Well, the sScriptTag was just me creating a variable to act as a reference to the named script tag. Nothing strange going on there. The script tag attributes "for" and "event", however, if you don't already know about them, can be very useful. I use them often. You can use them to bind object events to script tags: for instance, in the example I provided earlier the code would run when the window loads. You could, for example do this ... ... if you wanted. There's many different ways to do exactly the same thing (I'll provide examples if you want), it just so happens that this method is particularly useful for me, given the mechanisms that build up pages in my intranet system. Should be noted that (according to O'Reilly) Netscape doesn't support these features. Matt ----- Original Message ----- From: "Tim Makins" To: "[JavaScript List]" Sent: Wednesday, September 15, 2004 12:31 PM Subject: Re: [Javascript] Loading Problem > 'Top of the morning' to you, Matt. (haha I bet you think we say that all the > time here in Ireland, begorragh) !! > > My question to you: what does the 'script for' command do, and the > 'sScriptTag'? I've never seen them before. > > Tim in Ireland. > > ----- Original Message ----- > From: "Matt Barton" > To: "[JavaScript List]" > Sent: Wednesday, September 15, 2004 10:59 AM > Subject: Re: [Javascript] Loading Problem > > > > Morning, > > > > > > Could you try something like: > > > > > > > > > > > > > > > > > > No idea if it'll do the trick, but it might be worth trying. > > > > Matt > > > > ----- Original Message ----- > > From: "Tim Makins" > > To: "[JavaScript List]" > > Sent: Wednesday, September 15, 2004 10:53 AM > > Subject: [Javascript] Loading Problem > > > > > > > // US Counties_3 OK-WY > > > viewlist4 = { > > > colname: ["Name","State_name","Abbr","Fips","Area sq-mile","Area > > > sq-km","Population","Pop Density"], > > > colwidth: [20,20,6,6,12,12,12,12], > > > coldata: [ > > > > > > {z0:"Adair",z1:"Oklahoma",z2:"OK",z3:"40001",z4:"591.17320",z5:"1043.41",z6: > > > "21038",z7:"35.6"}, > > > > > > {z0:"Alfalfa",z1:"Oklahoma",z2:"OK",z3:"40003",z4:"874.94888",z5:"2266.11",z > > > 6:"6105",z7:"7.0"}, > > > > > > {z0:"Atoka",z1:"Oklahoma",z2:"OK",z3:"40005",z4:"973.33720",z5:"2520.93",z6: > > > "13879",z7:"14.3"}, > > > > > > {z0:"Beaver",z1:"Oklahoma",z2:"OK",z3:"40007",z4:"1842.68875",z5:"1162.12",z > > > 6:"5857",z7:"3.2"}, > > > > > > {z0:"Beckham",z1:"Oklahoma",z2:"OK",z3:"40009",z4:"907.61378",z5:"2350.71",z > > > 6:"19799",z7:"21.8"}, > > > > > > {z0:"Blaine",z1:"Oklahoma",z2:"OK",z3:"40011",z4:"943.23562",z5:"10945.95",z > > > 6:"11976",z7:"12.7"}, > > > > > > {z0:"Bryan",z1:"Oklahoma",z2:"OK",z3:"40013",z4:"936.78878",z5:"2426.27",z6: > > > "36534",z7:"39.0"}, > > > > > > {z0:"Caddo",z1:"Oklahoma",z2:"OK",z3:"40015",z4:"1280.94512",z5:"3317.63",z6 > > > :"30150",z7:"23.5"} > > > ] > > > } > > > > > > > > > Today's question: > > > > > > My table-viewer uses a number of data-files, such as the above (a > > shortened > > > version). It is stored as 'table_uscount1.js', and will be loaded by > > > including the line: > > > > > > > > > > > > at the top of the page that processes it. However, if there are a lot of > > > these files, the 'load' gets very big and takes time. Is there a way to > > only > > > load the one I want, when it is asked for ?? > > > > > > Tim in Ireland. > > > > > > _______________________________________________ > > > 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 > > > > _______________________________________________ > 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 liorean at gmail.com Wed Sep 15 07:02:21 2004 From: liorean at gmail.com (liorean) Date: Wed, 15 Sep 2004 14:02:21 +0200 Subject: [Javascript] Loading Problem In-Reply-To: <005401c49b19$8a02e630$2099a8c0@selima.co.uk> References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net> <41471466.2010705@backbase.com> <414714CA.3050105@backbase.com> <004501c49a81$d9f83e80$88307dc2@ic7g> <002301c49b0a$1af5a160$95ab02d4@ic7g> <003001c49b0a$aca306c0$2099a8c0@selima.co.uk> <00ce01c49b17$b4f49f20$95ab02d4@ic7g> <005401c49b19$8a02e630$2099a8c0@selima.co.uk> Message-ID: On Wed, 15 Sep 2004 12:45:46 +0100, Matt Barton wrote: > The script tag attributes "for" and "event", however, if you don't already know about them, can be very useful. I use them often. You can use them to bind object events to script tags: for instance, in the example I provided earlier the code would run when the window loads. Which is a Microsoft proprietary invention. Why not go with the standard way to do it instead? > There's many different ways to do exactly the same thing (I'll provide examples if you want), it just so happens that this method is particularly useful for me, given the mechanisms that build up pages in my intranet system. Well, intranets usually imposes entirely different limits than the internet. > Should be noted that (according to O'Reilly) Netscape doesn't support these features. Nor does op or saf support it. -- David "liorean" Andersson From javascript at mattbarton.org Wed Sep 15 07:04:11 2004 From: javascript at mattbarton.org (Matt Barton) Date: Wed, 15 Sep 2004 13:04:11 +0100 Subject: [Javascript] Loading Problem References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><41471466.2010705@backbase.com> <414714CA.3050105@backbase.com><004501c49a81$d9f83e80$88307dc2@ic7g><002301c49b0a$1af5a160$95ab02d4@ic7g><003001c49b0a$aca306c0$2099a8c0@selima.co.uk><00ce01c49b17$b4f49f20$95ab02d4@ic7g><005401c49b19$8a02e630$2099a8c0@selima.co.uk> Message-ID: <006401c49b1c$1ce9a400$2099a8c0@selima.co.uk> ----- Original Message ----- From: "liorean" To: "[JavaScript List]" > On Wed, 15 Sep 2004 12:45:46 +0100, Matt Barton > wrote: > > The script tag attributes "for" and "event", however, if you don't already know about them, can be very useful. I use them often. You can use them to bind object events to script tags: for instance, in the example I provided earlier the code would run when the window loads. > > Which is a Microsoft proprietary invention. Why not go with the > standard way to do it instead? As I explained earlier, becuase it is more convinient when working with the mechanisms that build pages for my intranet system. > > There's many different ways to do exactly the same thing (I'll provide examples if you want), it just so happens that this method is particularly useful for me, given the mechanisms that build up pages in my intranet system. > > Well, intranets usually imposes entirely different limits than the internet. This is not in question. > > Should be noted that (according to O'Reilly) Netscape doesn't support these features. > > Nor does op or saf support it. No, I didn't think that they would. M From alaneaston666 at hotmail.com Thu Sep 16 03:46:42 2004 From: alaneaston666 at hotmail.com (Alan Easton) Date: Thu, 16 Sep 2004 09:46:42 +0100 Subject: [Javascript] Multiple Select box problem Message-ID: Hello People, I have a quick question. I have a multiple select box, so the user can hold down CTRL and select many items in the select box. Now I only want them to select no more than 7, so instead of doing a check server side, when the user submits, is there a way to do a JS check before the form is submitted. Any help would be appreciated, Alan... _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger From mvinayakam at gmail.com Thu Sep 16 03:49:27 2004 From: mvinayakam at gmail.com (Vinayakam Murugan) Date: Thu, 16 Sep 2004 14:19:27 +0530 Subject: [Javascript] problems using ScrollBy with Iframe Message-ID: Hi I am new to Javascript and HTML. The design i am implementing has 4 images visible at a time. The images have to scroll slowly. I was trying to implement this using iframe and the scrollby method along with it. It doesn't scroll though. Here is the url http://www.theargoncompany.com/orf/scripts/homepage.php -- Warm Regards ~~~~~~~~~~~~ Vinayak From javascript at mattbarton.org Thu Sep 16 04:45:43 2004 From: javascript at mattbarton.org (Matt Barton) Date: Thu, 16 Sep 2004 10:45:43 +0100 Subject: [Javascript] Multiple Select box problem References: Message-ID: <000e01c49bd1$ef962080$2099a8c0@selima.co.uk> Yeah, should be no problem. Have a validation function something like: HTH, Matt ----- Original Message ----- From: "Alan Easton" To: Sent: Thursday, September 16, 2004 9:46 AM Subject: [Javascript] Multiple Select box problem > Hello People, > > I have a quick question. > > I have a multiple select box, so the user can hold down CTRL and select many > items in the select box. Now I only want them to select no more than 7, so > instead of doing a check server side, when the user submits, is there a way > to do a JS check before the form is submitted. > > Any help would be appreciated, > > Alan... > > _________________________________________________________________ > Use MSN Messenger to send music and pics to your friends > http://www.msn.co.uk/messenger > > _______________________________________________ > 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 alexis at 2000ecoles.net Thu Sep 16 09:47:37 2004 From: alexis at 2000ecoles.net (Alexis Doublier) Date: Thu, 16 Sep 2004 16:47:37 +0200 Subject: [Javascript] how to change the source propertie of a frame in a window from an other one Message-ID: <1095346057.3133.40.camel@tecras1.ecole.org> Hi, I have an application using a master window with two frame: top and main. I open a popup from main frame of my master window. Now i want to "open" an new page in main frame from the popup when i click on a button. Can i change the source propertie of the main frame from my popup? if yes how? I think i must use something like that: window.main.source="mycode.html" Do you have an idear ? Thanks Alexis From flavio at economisa.com.br Thu Sep 16 09:48:04 2004 From: flavio at economisa.com.br (Flavio Gomes) Date: Thu, 16 Sep 2004 11:48:04 -0300 Subject: [Javascript] problems using ScrollBy with Iframe In-Reply-To: References: Message-ID: <4149A7A4.7000405@economisa.com.br> Let's try to solve using simple stuff: Tried the tag? If your images are all 100x100px try something like that Vinayakam Murugan escreveu: >Hi > >I am new to Javascript and HTML. The design i am implementing has 4 >images visible at a time. The images have to scroll slowly. > >I was trying to implement this using iframe and the scrollby method >along with it. It doesn't scroll though. > >Here is the url > >http://www.theargoncompany.com/orf/scripts/homepage.php > > From alexis at 2000ecoles.net Thu Sep 16 09:57:09 2004 From: alexis at 2000ecoles.net (Alexis Doublier) Date: Thu, 16 Sep 2004 16:57:09 +0200 Subject: [Javascript] how to change the source propertie of a frame in a window from an other one In-Reply-To: <1095346057.3133.40.camel@tecras1.ecole.org> References: <1095346057.3133.40.camel@tecras1.ecole.org> Message-ID: <1095346629.3133.44.camel@tecras1.ecole.org> My name is GWB I can do what i want with window.open window.open(URL,the target frame, ....) i beg your pardon Alexis Le jeu 16/09/2004 ? 16:47, Alexis Doublier a ?crit : > Hi, > > I have an application using a master window with two frame: top and > main. > I open a popup from main frame of my master window. Now i want to "open" > an new page in main frame from the popup when i click on a button. > > Can i change the source propertie of the main frame from my popup? if > yes how? > I think i must use something like that: > window.main.source="mycode.html" > > Do you have an idear ? > > Thanks > > Alexis > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From kim.hoogenberg at virgil.nl Thu Sep 16 10:02:01 2004 From: kim.hoogenberg at virgil.nl (Kim Hoogenberg) Date: Thu, 16 Sep 2004 17:02:01 +0200 Subject: [Javascript] how to change the source propertie of a frame in a window from an other one In-Reply-To: <1095346057.3133.40.camel@tecras1.ecole.org> References: <1095346057.3133.40.camel@tecras1.ecole.org> Message-ID: <4149AAE9.90400@virgil.nl> Alexis Doublier wrote: >Hi, > >I have an application using a master window with two frame: top and >main. >I open a popup from main frame of my master window. Now i want to "open" >an new page in main frame from the popup when i click on a button. > >Can i change the source propertie of the main frame from my popup? if >yes how? >I think i must use something like that: >window.main.source="mycode.html" > >Do you have an idear ? > >Thanks > >Alexis > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > Hello, It really isn't that hard. You can use window.opener.main.document.replace('newURL'); from within the popup window. window refers to the popupwindow itself, opener to your mainpage, main to the frame within your mainpage and document.replace is there to help you get where you want. Greetz, Kim From LaurentM at london.virgin.net Thu Sep 16 10:09:01 2004 From: LaurentM at london.virgin.net (Laurent Muchacho) Date: Thu, 16 Sep 2004 16:09:01 +0100 Subject: [Javascript] how to change the source properties of a frame i n a window from an other one Message-ID: <1A847600F409D711B52C0001FAFFF337046F63BD@vnetxu01.london.virgin.net> Hi Alexis, As Long as the page you are opening are on the same domain it will be fine. But this syntaxes will be more appropriate window.opener.location.href Follow the link below for the examples of what you want to do http://www.be-lovely.co.uk/examples/frames/ Laurent ps: the examples stuff was made on the previous examples -----Original Message----- From: Alexis Doublier [mailto:alexis at 2000ecoles.net] Sent: 16 September 2004 15:57 To: [JavaScript List] Subject: Re: [Javascript] how to change the source propertie of a frame in a window from an other one My name is GWB I can do what i want with window.open window.open(URL,the target frame, ....) i beg your pardon Alexis Le jeu 16/09/2004 ? 16:47, Alexis Doublier a ?crit : > Hi, > > I have an application using a master window with two frame: top and > main. > I open a popup from main frame of my master window. Now i want to "open" > an new page in main frame from the popup when i click on a button. > > Can i change the source propertie of the main frame from my popup? if > yes how? > I think i must use something like that: > window.main.source="mycode.html" > > Do you have an idear ? > > Thanks > > Alexis > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript This E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail. From de2kcs07 at postmark.net Fri Sep 17 07:27:55 2004 From: de2kcs07 at postmark.net (Dinuj Nath) Date: Fri, 17 Sep 2004 12:27:55 +0000 Subject: [Javascript] Need some help with printing Message-ID: <20040917122755.5853C143609@mail.postmark.net> Hi guys, I want to know if I can print using the browsers on preprinted stationary. ( In short I want complete printing control) I will be grateful if anyone can provide me with pointers to resources. Thanks a lot Dinuj Nath de2kcs07 at postmark.net From paul at novitskisoftware.com Fri Sep 17 16:20:33 2004 From: paul at novitskisoftware.com (Paul Novitski) Date: Fri, 17 Sep 2004 14:20:33 -0700 Subject: [Javascript] Need some help with printing In-Reply-To: <20040917122755.5853C143609@mail.postmark.net> References: <20040917122755.5853C143609@mail.postmark.net> Message-ID: <6.0.1.1.2.20040917141303.044b1280@spamarrest.com> At 05:27 AM 9/17/2004, Dinuj Nath wrote: >Hi guys, >I want to know if I can print using the browsers on preprinted >stationary. ( In short I want complete printing control) I will be >grateful if anyone can provide me with pointers to resources. Dinuj, You should be able to control the print area precisely using CSS. I don't know if you can control the printer margins from Javascript, but the area within the margins you should be able to control with CSS by specifying element locations with absolute & relative positioning and measurements in pixels. There's a great CSS listserve called CSS-Discuss should you run into problems: http://www.css-discuss.org/mailman/listinfo/css-d CSS-D has an excellent wiki/FAQ archive of knowledge: http://css-discuss.incutio.com/ Also: http://www.google.com/search?sourceid=navclient&ie=UTF-8&q=%2Bcss+%2Bprinting Regards, Paul From dev at qroute.net Fri Sep 17 18:16:53 2004 From: dev at qroute.net (dev at qroute.net) Date: Fri, 17 Sep 2004 16:16:53 -0700 Subject: [Javascript] Getting the file size References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><00fb01c48ff5$8364d740$5f95cbc1@ic7g> <003301c4908e$29cc09d0$0e859bcf@mustafa> <4136D845.8010707@backbase.com> Message-ID: <00b901c49d0c$6b410c50$0e859bcf@mustafa> For images, that's np problem. I can get the file size before the upload takes place and reject it right before the costly upload. All you do is to load the 'browse'd file path into an img tag and get to its filesize property through the src. But there is no other tag that I can try for doing the same for an audio or video file. ----- Original Message ----- From: "Hakan M (Backbase)" To: "[JavaScript List]" Sent: Thursday, September 02, 2004 1:22 AM Subject: Re: [Javascript] Getting the file size > If you mean getting the size of a file specified in a fileupload form > element, there is as far as I know no way of doing this client side. > What you can do is check the post data on the server, look for the > Content-length header (or something along those lines) and determine if > it's too big/not big enough. > > Regards, > H > > dev at qroute.net wrote: > > How do you get the file size of an mpeg file so before upload it can be > > validated ? > > > > Looks like filesize is the right property to get to the info but how do you > > run it ? > > Thank you > > > > _______________________________________________ > > 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 de2kcs07 at postmark.net Fri Sep 17 23:29:51 2004 From: de2kcs07 at postmark.net (Dinuj Nath) Date: Sat, 18 Sep 2004 04:29:51 +0000 Subject: [Javascript] Need some help with printing Message-ID: <20040918042951.9000E1435EA@mail.postmark.net> Paul, Thank you so much. Dinuj Nath de2kcs07 at postmark.net Paul Novitski wrote: > At 05:27 AM 9/17/2004, Dinuj Nath wrote: > >Hi guys, > >I want to know if I can print using the browsers on preprinted > >stationary. ( In short I want complete printing control) I will be > >grateful if anyone can provide me with pointers to resources. > > > Dinuj, > > You should be able to control the print area precisely using CSS. I don't > know if you can control the printer margins from Javascript, but the area > within the margins you should be able to control with CSS by specifying > element locations with absolute & relative positioning and measurements in > pixels. > > There's a great CSS listserve called CSS-Discuss should you run into problems: > http://www.css-discuss.org/mailman/listinfo/css-d > > CSS-D has an excellent wiki/FAQ archive of knowledge: > http://css-discuss.incutio.com/ > > Also: > http://www.google.com/search?sourceid=navclient&ie=UTF-8&q=%2Bcss+%2Bprinting > > Regards, > > Paul > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From innerlab at hotmail.com Mon Sep 20 19:10:20 2004 From: innerlab at hotmail.com (Innerlab) Date: Mon, 20 Sep 2004 20:10:20 -0400 Subject: [Javascript] Changing window properties on load References: Message-ID: I am posting a form to a document that opens a new browser window. I dont want this new browser window to have address bar, toolbar, scrolbar and so on. If I'd use window.open() that's be easy, but I'd have to send all the form data in the querystring, and I want to avoid that. How can I eliminate all those things in a References: Message-ID: <6.0.1.1.2.20040920183910.021e5138@spamarrest.com> At 05:10 PM 9/20/2004, Innerlab wrote: >I am posting a form to a document that opens a new browser window. I dont >want this new browser window to have address bar, toolbar, >scrolbar and so on. > >If I'd use window.open() that's be easy, but I'd have to send all the form >data in the querystring, and I want to avoid that. > >How can I eliminate all those things in a Message-ID: <002401c49f7f$f3060ee0$0300a8c0@monkeyhouse> Hi Eduardo, Why not just open the window and then use the new window's name as the target for your form post?


Cheers, Peter Brunone ___________________ www.EasyListBox.com -----Original Message----- From: javascript-bounces at LaTech.edu On Behalf Of Innerlab I am posting a form to a document that opens a new browser window. I dont want this new browser window to have address bar, toolbar, scrolbar and so on. If I'd use window.open() that's be easy, but I'd have to send all the form data in the querystring, and I want to avoid that. How can I eliminate all those things in a Message-ID: > Why not just open the window and then use the new window's name > as the target for your form post? That's exactly what I did. I was actually post a "never mind, I've solved it" when I read your suggestion. Thanks for the replies anyway, guys. ______________________________________ Eduardo Gomez, www.innerlab.com From de2kcs07 at postmark.net Thu Sep 23 00:30:57 2004 From: de2kcs07 at postmark.net (Dinuj Nath) Date: Thu, 23 Sep 2004 05:30:57 +0000 Subject: [Javascript] (no subject) Message-ID: <20040923053057.494491435E5@mail.postmark.net> Hi, I need to open a popup window fullscreen. How do I do it? Thanks Dinuj Nath de2kcs07 at postmark.net From LaurentM at london.virgin.net Thu Sep 23 05:03:52 2004 From: LaurentM at london.virgin.net (Laurent Muchacho) Date: Thu, 23 Sep 2004 11:03:52 +0100 Subject: [Javascript] document.selection.clear() Message-ID: <1A847600F409D711B52C0001FAFFF337046F63DB@vnetxu01.london.virgin.net> Hi I'm trying to built a small text editor for a content management system I'm building. The challenge I got is pretty simple in my editable area I got some graphics. On this graphics I did trigger the right click event(oncontextmenu) the image on the top is showing a small layer with the option to delete the picture but when I click on the delete option in my small menu I lose the selection on the graphics and can't delete it, the image on the bottom is directly calling a function to delete the current graphics. Please any help or link will be more then welcome. found the example below describing what my challenge is http://www.be-lovely.co.uk/examples/img_edit/default.html or their is the code Untitled
When right clicked this image will display a small menu with the option of deleting the image






When right clicked this image will directly disapear
What I will like to do is be able to delete the graphics
from the small right click menu on the first picture but soon as you clicked on the delete option the selection disapear

This E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail. From UGrinwald at dynamic.ca Thu Sep 23 08:30:38 2004 From: UGrinwald at dynamic.ca (Grinwald, Uri) Date: Thu, 23 Sep 2004 09:30:38 -0400 Subject: [Javascript] What is this Message-ID: Hi all. Can someone please indicate what this signifies. I never seen this before and came across it in some javascriprt code /> Thanks, Uri From hakan at backbase.com Thu Sep 23 08:40:35 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Thu, 23 Sep 2004 15:40:35 +0200 Subject: [Javascript] What is this In-Reply-To: References: Message-ID: <4152D253.4040608@backbase.com> > = > /> = /> Probably closing a tag prior to document.writing it? Grinwald, Uri wrote: > Hi all. > > Can someone please indicate what this signifies. > I never seen this before and came across it in some javascriprt code > /> > > Thanks, > Uri > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > From UGrinwald at dynamic.ca Thu Sep 23 08:41:31 2004 From: UGrinwald at dynamic.ca (Grinwald, Uri) Date: Thu, 23 Sep 2004 09:41:31 -0400 Subject: [Javascript] What is this Message-ID: Found it. < = less then > = greater then. Sorry about that. Thanks anyways. -----Original Message----- From: Grinwald, Uri Sent: Thursday, September 23, 2004 9:31 AM To: [JavaScript List] Subject: RE: [Javascript] What is this Hi all. Can someone please indicate what this signifies. I never seen this before and came across it in some javascriprt code /> Thanks, Uri _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From kim.hoogenberg at virgil.nl Thu Sep 23 08:44:11 2004 From: kim.hoogenberg at virgil.nl (Kim Hoogenberg) Date: Thu, 23 Sep 2004 15:44:11 +0200 Subject: [Javascript] What is this In-Reply-To: References: Message-ID: <4152D32B.3070602@virgil.nl> Grinwald, Uri wrote: >Hi all. > >Can someone please indicate what this signifies. >I never seen this before and came across it in some javascriprt code >/> > >Thanks, >Uri >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > > is interpreted by a browser as being '>' (greater then) < -> '<' or less then & -> '&' or ampersand and so on.. If occuring in a html file, this will be rendered as a symbol (text) on a page rather than as being part of the html code. Greetz, Kim From UGrinwald at dynamic.ca Thu Sep 23 09:13:46 2004 From: UGrinwald at dynamic.ca (Grinwald, Uri) Date: Thu, 23 Sep 2004 10:13:46 -0400 Subject: [Javascript] What is this Message-ID: That's weird. I tried using the /> to close a tag as it were in an example I am looking at and for some reason dreamweaver highlights my code in yellow as an error? When I replace the symbol with the actual > it renders correctly. Any ideas why? Thanks -----Original Message----- From: Hakan M (Backbase) [mailto:hakan at backbase.com] Sent: Thursday, September 23, 2004 9:41 AM To: [JavaScript List] Subject: Re: [Javascript] What is this > = > /> = /> Probably closing a tag prior to document.writing it? Grinwald, Uri wrote: > Hi all. > > Can someone please indicate what this signifies. > I never seen this before and came across it in some javascriprt code > /> > > Thanks, > Uri > _______________________________________________ > 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 kim.hoogenberg at virgil.nl Thu Sep 23 09:19:09 2004 From: kim.hoogenberg at virgil.nl (Kim Hoogenberg) Date: Thu, 23 Sep 2004 16:19:09 +0200 Subject: [Javascript] What is this In-Reply-To: References: Message-ID: <4152DB5D.8050007@virgil.nl> Grinwald, Uri wrote: >That's weird. >I tried using the /> to close a tag as it were in an example I am >looking at and for some reason dreamweaver highlights my code in yellow >as an error? > >When I replace the symbol with the actual > it renders correctly. > >Any ideas why? > >Thanks > >-----Original Message----- >From: Hakan M (Backbase) [mailto:hakan at backbase.com] >Sent: Thursday, September 23, 2004 9:41 AM >To: [JavaScript List] >Subject: Re: [Javascript] What is this > > >> = > > >/> = /> > >Probably closing a tag prior to document.writing it? > >Grinwald, Uri wrote: > > >>Hi all. >> >>Can someone please indicate what this signifies. >>I never seen this before and came across it in some javascriprt code >>/> >> >>Thanks, >>Uri >>_______________________________________________ >>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 > > See my previous posting.. There is absolutely no way that an Internet browser interprets > as being part of the HTML syntax.. Replacing has no use.. > like structures only are used to display special html characters as text in your rendered frame... Kim -------------- next part -------------- An HTML attachment was scrubbed... URL: From UGrinwald at dynamic.ca Thu Sep 23 10:14:59 2004 From: UGrinwald at dynamic.ca (Grinwald, Uri) Date: Thu, 23 Sep 2004 11:14:59 -0400 Subject: [Javascript] What is this Message-ID: Thanks Kim :) -----Original Message----- From: Kim Hoogenberg [mailto:kim.hoogenberg at virgil.nl] Sent: Thursday, September 23, 2004 9:44 AM To: [JavaScript List] Subject: Re: [Javascript] What is this Grinwald, Uri wrote: >Hi all. > >Can someone please indicate what this signifies. >I never seen this before and came across it in some javascriprt code >/> > >Thanks, >Uri >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > > is interpreted by a browser as being '>' (greater then) < -> '<' or less then & -> '&' or ampersand and so on.. If occuring in a html file, this will be rendered as a symbol (text) on a page rather than as being part of the html code. Greetz, Kim _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From hakan at backbase.com Thu Sep 23 11:06:56 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Thu, 23 Sep 2004 18:06:56 +0200 Subject: [Javascript] What is this In-Reply-To: References: Message-ID: <4152F4A0.3040705@backbase.com> Well, &xx; are entities, just like Kim said. So, if you want to print a TAG in the page you'll have to use the entities. If you want to create a new tag rather than printing it on screen, I suggest you use the DOM functions. Regards, H Grinwald, Uri wrote: > That's weird. > I tried using the /> to close a tag as it were in an example I am > looking at and for some reason dreamweaver highlights my code in yellow > as an error? > > When I replace the symbol with the actual > it renders correctly. > > Any ideas why? > > Thanks > > -----Original Message----- > From: Hakan M (Backbase) [mailto:hakan at backbase.com] > Sent: Thursday, September 23, 2004 9:41 AM > To: [JavaScript List] > Subject: Re: [Javascript] What is this > > > > = > > > /> = /> > > Probably closing a tag prior to document.writing it? > > Grinwald, Uri wrote: > >>Hi all. >> >>Can someone please indicate what this signifies. >>I never seen this before and came across it in some javascriprt code >>/> >> >>Thanks, >>Uri >>_______________________________________________ >>Javascript mailing list >>Javascript at LaTech.edu >>https://lists.LaTech.edu/mailman/listinfo/javascript >> >> > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > From spindrift at oceanfree.net Thu Sep 23 11:53:35 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Thu, 23 Sep 2004 17:53:35 +0100 Subject: [Javascript] What is this References: Message-ID: <005b01c4a18d$dfb29560$61ae02d4@ic7g> See the attachment - a useful list of ASCII codes. Tim in Ireland. Grinwald, Uri wrote: >Hi all. > >Can someone please indicate what this signifies. >I never seen this before and came across it in some javascriprt code >/> > >Thanks, >Uri >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: From spindrift at oceanfree.net Thu Sep 23 11:57:55 2004 From: spindrift at oceanfree.net (Tim Makins) Date: Thu, 23 Sep 2004 17:57:55 +0100 Subject: [Javascript] What is this Message-ID: <006a01c4a18e$81fa29a0$61ae02d4@ic7g> ASCII Character CodesSee below - a useful list of ASCII codes...... Tim in Ireland. Grinwald, Uri wrote: >Hi all. > >Can someone please indicate what this signifies. >I never seen this before and came across it in some javascriprt code >/> > >Thanks, >Uri >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript HTML Code Browser View HTML Code Browser View HTML Code Browser View HTML Code Browser View HTML Code Browser View © ? ! ! _ _  ? Û ? ® ? " " ` ` ž ? Ü ?   # ` a a Ÿ ? Ý ? " " $ $ b b   Þ ? & & % % c c ¡ ? ß ? < < & & d d ¢ ? à ? > > ' ' e e £ ? á ? À ? ( ( f f ¤ ? â ? Á ? ) ) g g ¥ ? ã ?  ? * * h h ¦ ? ä ? à ? + + i i § ? å ? Ä ? , , j j ¨ ? æ ? Å ? - - k k © ? ç ? Æ ? . . l l ª ? è ? Ç ? / / m m « ? é ? È ? 0 0 n n ¬ ? ê ? É ? 1 1 o o ­ ? ë ? Ê ? 2 2 p p ® ? ì ? Ë ? 3 3 q q ¯ ? í ? Ì ? 4 4 r r ° ? î ? Í ? 5 5 s s ± ? ï ? Î ? 6 6 t t ² ? ð ? Ï ? 7 7 u u ³ ? ñ ? Ð ? 8 8 v v ´ ? ò ? Ñ ? 9 9 w w µ ? ó ? Õ ? : : x x ¶ ? ô ? Ö ? ; ; y y · ? õ ? Ø ? < < z z ¸ ? ö ? Ù ? = = { { ¹ ? ÷ ? Ú ? > > | | º ? ø ? Û ? ? ? } } » ? ù ? Ü ? @ @ ~ ~ ¼ ? ú ? Ý ? A A  ? ½ ? û ? Þ ? B B € ? ¾ ? ü ? ß ? C C  ? ¿ ? ý ? à ? D D ‚ ? À ? þ ? á ? E E ƒ ? Á ? ÿ ? å ? F F „ ?  ? æ ? G G … ? à ? ç ? H H † ? Ä ? è ? I I ‡ ? Å ? é ? J J ˆ ? Æ ? ê ? K K ‰ ? Ç ? ë ? L L Š ? È ? ì ? M M ‹ ? É ? í ? N N Œ ? Ê ? î ? O O  ? Ë ? ï ? P P Ž ? Ì ? ð ? Q Q  ? Í ? ñ ? R R  ? Î ? ò ? S S ‘ ? Ï ? ó ? T T ’ ? Ð ? ô ? U U “ ? Ñ ? õ ? V V ” ? Ò ? ö ? W W • ? Ó ? ø ? X X – ? Ô ? ù ? Y Y — ? Õ ? ú ? Z Z ˜ ? Ö ? û ? [ [ ™ ? × ? ý ? \ \ š ? Ø ? þ ? ] ] › ? Ù ? ÿ ? ^ ^ œ ? Ú ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at novitskisoftware.com Thu Sep 23 12:40:33 2004 From: paul at novitskisoftware.com (Paul Novitski) Date: Thu, 23 Sep 2004 10:40:33 -0700 Subject: [Javascript] What is this [HTML named entities] In-Reply-To: References: Message-ID: <6.0.1.1.2.20040923092547.0406ab58@spamarrest.com> Uri, Here are some other web pages that explain and list named entities: UNICODE code charts (pdf versions) http://www.unicode.org/charts/ W3C HTML 4.01 Specification "HTML Document Representation" http://www.w3.org/TR/html4/charset.html W3C "Character encodings" http://www.w3.org/International/O-charset W3C "Additional named entities for HTML" http://www.w3.org/TR/WD-entities-961125 MSDN "Additional Named Entities for HTML" http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/charsets/charset2.asp From UGrinwald at dynamic.ca Thu Sep 23 12:43:31 2004 From: UGrinwald at dynamic.ca (Grinwald, Uri) Date: Thu, 23 Sep 2004 13:43:31 -0400 Subject: [Javascript] What is this Message-ID: Awesome. Quite useful. Appreciate it. -----Original Message----- From: Tim Makins [mailto:spindrift at oceanfree.net] Sent: Thursday, September 23, 2004 12:54 PM To: [JavaScript List] Subject: Re: [Javascript] What is this See the attachment - a useful list of ASCII codes. Tim in Ireland. Grinwald, Uri wrote: >Hi all. > >Can someone please indicate what this signifies. >I never seen this before and came across it in some javascriprt code >/> > >Thanks, >Uri >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript From LaurentM at london.virgin.net Thu Sep 23 12:46:41 2004 From: LaurentM at london.virgin.net (Laurent Muchacho) Date: Thu, 23 Sep 2004 18:46:41 +0100 Subject: [Javascript] document.selection.clear() Message-ID: <1A847600F409D711B52C0001FAFFF337046F63E0@vnetxu01.london.virgin.net> Hi I found the solution to the problem I had this morning. I updated the file containing the examples http://www.be-lovely.co.uk/examples/img_edit/default.html and you can found the code below. I guess you guy can continue to worry about what ASCII codes are now. Regards Laurent Untitled
When right clicked this image will display a small menu with the option of deleting the image






When right clicked this image will directly disapear
What I will like to do is be able to delete the graphics
from the small right click menu on the first picture but soon as you clicked on the delete option the selection disapear -----Original Message----- From: Laurent Muchacho [mailto:LaurentM at london.virgin.net] Sent: 23 September 2004 11:04 To: '[JavaScript List]' Subject: [Javascript] document.selection.clear() Hi I'm trying to built a small text editor for a content management system I'm building. The challenge I got is pretty simple in my editable area I got some graphics. On this graphics I did trigger the right click event(oncontextmenu) the image on the top is showing a small layer with the option to delete the picture but when I click on the delete option in my small menu I lose the selection on the graphics and can't delete it, the image on the bottom is directly calling a function to delete the current graphics. Please any help or link will be more then welcome. found the example below describing what my challenge is http://www.be-lovely.co.uk/examples/img_edit/default.html or their is the code Untitled
When right clicked this image will display a small menu with the option of deleting the image






When right clicked this image will directly disapear
What I will like to do is be able to delete the graphics
from the small right click menu on the first picture but soon as you clicked on the delete option the selection disapear

This E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript This E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail. From flavio at economisa.com.br Thu Sep 23 13:25:42 2004 From: flavio at economisa.com.br (Flavio Gomes) Date: Thu, 23 Sep 2004 15:25:42 -0300 Subject: [Javascript] Opening a Fullscreen Window In-Reply-To: <20040923053057.494491435E5@mail.postmark.net> References: <20040923053057.494491435E5@mail.postmark.net> Message-ID: <41531526.2040104@economisa.com.br> It'd be my_Window = window.open('URL','WindowName','fullscreen = yes'); Ps.: You missed a subject in your mail. ^^ Dinuj Nath escreveu: >Hi, > >I need to open a popup window fullscreen. How do I do it? > >Thanks >Dinuj Nath >de2kcs07 at postmark.net > From guilhermecordeiro at yahoo.com.br Thu Sep 23 13:31:58 2004 From: guilhermecordeiro at yahoo.com.br (Guilherme Cordeiro) Date: Thu, 23 Sep 2004 15:31:58 -0300 (ART) Subject: [Javascript] Problem with onBlur and dropdown lists - need help!!! Message-ID: <20040923183158.63129.qmail@web20228.mail.yahoo.com> Hi, I created two HTML files, "main.html" and "button.html": main.html : Click to open small window.

button.html :
Select options:
 
Letters: 
Numbers: 
 

 

I placed onBlur on the body tag of "button.html", so the window with this HTML code will stay always on top. However, this onBlur event doesn't allow me to select a value on the dropdown lists, "Letters" and "Numbers". Does anyone know how can I put this window always on top, and at the same time to be able to select option in the dropdown lists? Thanks! _______________________________________________________ Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita divers?o. Instale agora! http://br.download.yahoo.com/messenger/ From UGrinwald at dynamic.ca Thu Sep 23 13:49:56 2004 From: UGrinwald at dynamic.ca (Grinwald, Uri) Date: Thu, 23 Sep 2004 14:49:56 -0400 Subject: [Javascript] What is this [HTML named entities] Message-ID: Thanks Paul. -----Original Message----- From: Paul Novitski [mailto:paul at novitskisoftware.com] Sent: Thursday, September 23, 2004 1:41 PM To: [JavaScript List] Subject: RE: [Javascript] What is this [HTML named entities] Uri, Here are some other web pages that explain and list named entities: UNICODE code charts (pdf versions) http://www.unicode.org/charts/ W3C HTML 4.01 Specification "HTML Document Representation" http://www.w3.org/TR/html4/charset.html W3C "Character encodings" http://www.w3.org/International/O-charset W3C "Additional named entities for HTML" http://www.w3.org/TR/WD-entities-961125 MSDN "Additional Named Entities for HTML" http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml /reference/charsets/charset2.asp _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From paul at novitskisoftware.com Thu Sep 23 14:05:14 2004 From: paul at novitskisoftware.com (Paul Novitski) Date: Thu, 23 Sep 2004 12:05:14 -0700 Subject: [Javascript] Opening a Fullscreen Window In-Reply-To: <41531526.2040104@economisa.com.br> References: <20040923053057.494491435E5@mail.postmark.net> <41531526.2040104@economisa.com.br> Message-ID: <6.0.1.1.2.20040923115451.040abc10@spamarrest.com> >Dinuj Nath escreveu: >I need to open a popup window fullscreen. How do I do it? At 11:25 AM 9/23/2004, Flavio Gomes wrote: >my_Window = window.open('URL','WindowName','fullscreen = yes'); Tweak: No spaces permitted in the properties list: my_Window = window.open('URL', 'WindowName', 'this=yes,that=no'); Splat: "fullscreen" isn't listed in any of these reference: Gecko: http://www.mozilla.org/docs/dom/domref/dom_window_ref76.html#1019331 Netscape: http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1202731 Devguru: http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html It is listed only in the Microsoft reference and therefore I'm sure won't work outside Internet Explorer: MSDN: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp Paul From innerlab at hotmail.com Thu Sep 23 14:48:32 2004 From: innerlab at hotmail.com (Innerlab) Date: Thu, 23 Sep 2004 15:48:32 -0400 Subject: [Javascript] automatic form submission References: Message-ID: In my code, right after a form I wrote: It doesn't seem to be working. I tried the above both inside and outside the form tag. Also, I tried something like :
with no luck. It problaby works in the body tag (would it?), but I cannot do that because this form is in a server side include. Any suggestions (except a button!) Thanks in advance. From allard-schripsema at procergs.rs.gov.br Thu Sep 23 15:14:50 2004 From: allard-schripsema at procergs.rs.gov.br (Allard Schripsema) Date: Thu, 23 Sep 2004 17:14:50 -0300 Subject: [Javascript] automatic form submission In-Reply-To: Message-ID: hi there, i think you should use submit(), not Submit() ... Check if the NAME of the form is "MyForm" Try putting "document" I usually use something like : Good luck Allard -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]On Behalf Of Innerlab Sent: Thursday, September 23, 2004 4:49 PM To: [JavaScript List] Subject: [Javascript] automatic form submission In my code, right after a form I wrote: It doesn't seem to be working. I tried the above both inside and outside the form tag. Also, I tried something like :
with no luck. It problaby works in the body tag (would it?), but I cannot do that because this form is in a server side include. Any suggestions (except a button!) Thanks in advance. _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From paul at novitskisoftware.com Thu Sep 23 15:45:24 2004 From: paul at novitskisoftware.com (Paul Novitski) Date: Thu, 23 Sep 2004 13:45:24 -0700 Subject: [Javascript] automatic form submission In-Reply-To: References: Message-ID: <6.0.1.1.2.20040923134043.022eefe0@spamarrest.com> Question: Is it your goal to have the form submit automatically as soon as the page loads, without allowing time for the human to interact with the form? You can alternatively use the syntax: window.onload = functionName; outside of any javascript function. If this doesn't work: window.onload = document.Myform.submit; [sorry I'm too rushed to double-check] then you should be able to do this: window.onload = jsSubmitForm; function jsSubmitForm() { document.Myform.submit; } Paul At 12:48 PM 9/23/2004, Innerlab wrote: >In my code, right after a form I wrote: > > > >It doesn't seem to be working. I tried the above both inside and outside >the form tag. >Also, I tried something like : > >
> >with no luck. It problaby works in the body tag (would it?), but I cannot >do that because this form is in a server side include. > >Any suggestions (except a button!) > >Thanks in advance. From innerlab at hotmail.com Thu Sep 23 15:45:35 2004 From: innerlab at hotmail.com (Innerlab) Date: Thu, 23 Sep 2004 16:45:35 -0400 Subject: [Javascript] automatic form submission References: Message-ID: ----- Original Message ----- From: "Allard Schripsema > i think you should use submit(), not Submit() ... That's actually how it is in the code. > Check if the NAME of the form is "MyForm" yup. > Try putting "document" > I usually use something like : > Aldo tried it. So what I have is supposed to work. It does work with a button and "onClick=" Now I am wondering ... From peter at brunone.com Thu Sep 23 15:46:28 2004 From: peter at brunone.com (Peter Brunone) Date: Thu, 23 Sep 2004 13:46:28 -0700 Subject: SPAM-LOW: RE: [Javascript] automatic form submission Message-ID: <9df0cbaf0b1e402a9a0e662754be7005@brunone.com> ???Also, the fact that the form is a server-side include shouldn't matter at all, since you're using *client-side* script here, once all the includes have been done. From: "Allard Schripsema" allard-schripsema at procergs.rs.gov.br hi there, i think you should use submit(), not Submit() ... Check if the NAME of the form is "MyForm" Try putting "document" I usually use something like : document.MyForm.submit(); Good luck Allard -----Original Message----- From: javascript-bounces at LaTech.edu In my code, right after a form I wrote: MyForm.Submit(); It doesn't seem to be working. I tried the above both inside and outside the form tag. Also, I tried something like : with no luck. It problaby works in the body tag (would it?), but I cannot do that because this form is in a server side include. Any suggestions (except a button!) Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From innerlab at hotmail.com Thu Sep 23 15:54:33 2004 From: innerlab at hotmail.com (Innerlab) Date: Thu, 23 Sep 2004 16:54:33 -0400 Subject: [Javascript] automatic form submission (solved) References: Message-ID: What was happening is that I was opening new window and right after submitting the form to that window. But I guess the submission got sent before the window opened. So I moved the call to the WinPop() function up in the document, and it worked. Thanks for replying. From allard-schripsema at procergs.rs.gov.br Thu Sep 23 16:02:05 2004 From: allard-schripsema at procergs.rs.gov.br (Allard Schripsema) Date: Thu, 23 Sep 2004 18:02:05 -0300 Subject: [Javascript] automatic form submission In-Reply-To: Message-ID: hi there again... If the code is correct something else is blocking it. Check if there are no other javascript errors on the page..... Uncomment any try catch constructions that may obscure the error. if you?re using IE check if you have "display an notifcation on every error" checked and "disable script debugging" unchecked". If using IE/Windows i also suggest the "Microsoft solution": restart your computer :-) Start putting alerts in your code to see where it stops.... if you still have the problem, please show us the code? -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]On Behalf Of Innerlab Sent: Thursday, September 23, 2004 5:46 PM To: [JavaScript List] Subject: Re: [Javascript] automatic form submission ----- Original Message ----- From: "Allard Schripsema > i think you should use submit(), not Submit() ... That's actually how it is in the code. > Check if the NAME of the form is "MyForm" yup. > Try putting "document" > I usually use something like : > Aldo tried it. So what I have is supposed to work. It does work with a button and "onClick=" Now I am wondering ... _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From crane_ba at yahoo.com Fri Sep 24 03:20:14 2004 From: crane_ba at yahoo.com (Ben Crane) Date: Fri, 24 Sep 2004 01:20:14 -0700 (PDT) Subject: [Javascript] Javascript code not working in Mozzila Message-ID: <20040924082014.60405.qmail@web52810.mail.yahoo.com> Hi all, I have a problem with some Javascript code that doesn't seem to work in Mozilla. Works fine in Opera and IE though. The javscript code is in 1., the hyperlink code is in 2. and the table row that the code in 1. is supposed to highlight is in 3. I have condensed the code to illustrate the 3 main components. The code is rough and just a working model I wanted to get right first. 1.******************** ********************* 2. ********************
  • McNicholas Construction Services Building Division
  • ******************** 3. ******************** ******************** Thanx, Ben __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From crane_ba at yahoo.com Fri Sep 24 03:25:50 2004 From: crane_ba at yahoo.com (Ben Crane) Date: Fri, 24 Sep 2004 01:25:50 -0700 (PDT) Subject: [Javascript] Object Detection using Javascript. Message-ID: <20040924082550.3769.qmail@web52808.mail.yahoo.com> Hi all, Me again, when there's one there's usually more questions. :) I want to do a browser check using Javascript objects to determine Opera, IE, Netscape, Safari, etc. but can't find any information or websites that cover that javascript objects are not covered by which website. I can find stuff on IE and Netscape (mainly for versions 3/4) but I'd like a more comprehensive list? Does anyone know where I can find one? I have tried looking under what DOM objects are not support by each browser but it tends to be a dead end. The reason I ask is that I use div tags (with overflow:scroll / hidden) for IE and NS, but since Opera doesn't cover overflow:scroll or hidden) I need to know what browsers are opening up my webpage so I can assign the appropriate CSS or disable Javascript. I have thought about using javsacript to create a scrollable textbox such as the one Zscrollbar I found-but I don't know how to create one and kinda want to do it myself. Regards Ben __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From hakan at backbase.com Fri Sep 24 04:45:06 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Fri, 24 Sep 2004 11:45:06 +0200 Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <20040924082550.3769.qmail@web52808.mail.yahoo.com> References: <20040924082550.3769.qmail@web52808.mail.yahoo.com> Message-ID: <4153ECA2.9040200@backbase.com> You might find this handy: bOpera6 = (!document.createComment && window.opera); bOpera7 = (document.createComment && window.opera); bIE5 = (document.all && !document.fireEvent && !window.opera); bIE55 = (document.all && document.fireEvent && !document.createComment && !window.opera); bIE6 = (document.all && document.fireEvent && document.createComment); bMozilla = (window.controllers); The only way I have (right now) to detect Safari is through the UA, I'm afraid. bSaf = (navigator.userAgent.toLowerCase().indexOf('safari') != -1); bSaf12 = (bSaf && (navigator.productSub > 20030107)); All newlines are denoted with a semicolon. Regards, H Ben Crane wrote: > Hi all, > > Me again, when there's one there's usually more > questions. :) > > I want to do a browser check using Javascript objects > to determine Opera, IE, Netscape, Safari, etc. but > can't find any information or websites that cover that > javascript objects are not covered by which website. I > can find stuff on IE and Netscape (mainly for versions > 3/4) but I'd like a more comprehensive list? Does > anyone know where I can find one? I have tried looking > under what DOM objects are not support by each browser > but it tends to be a dead end. > > The reason I ask is that I use div tags (with > overflow:scroll / hidden) for IE and NS, but since > Opera doesn't cover overflow:scroll or hidden) I need > to know what browsers are opening up my webpage so I > can assign the appropriate CSS or disable Javascript. > I have thought about using javsacript to create a > scrollable textbox such as the one Zscrollbar I > found-but I don't know how to create one and kinda > want to do it myself. > > Regards > Ben > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > From crane_ba at yahoo.com Fri Sep 24 05:07:20 2004 From: crane_ba at yahoo.com (Ben Crane) Date: Fri, 24 Sep 2004 03:07:20 -0700 (PDT) Subject: [Javascript] Object Detection using Javascript : Thank You In-Reply-To: <4153ECA2.9040200@backbase.com> Message-ID: <20040924100720.60293.qmail@web52809.mail.yahoo.com> Hakan, Thank you!! This is literally just what I was looking for!!! I have tried to find bits and pieces but the browser detection just wasn't working. I tried using the UA for Opera but it just kept coming back IE and refusing to see it. Cheers!! Ben _______________________________ Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. http://messenger.yahoo.com From rer at datacompusa.com Fri Sep 24 06:51:33 2004 From: rer at datacompusa.com (Roger Roelofs) Date: Fri, 24 Sep 2004 07:51:33 -0400 Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <20040924082550.3769.qmail@web52808.mail.yahoo.com> References: <20040924082550.3769.qmail@web52808.mail.yahoo.com> Message-ID: <14C335EA-0E20-11D9-958C-00306572FCC8@datacompusa.com> Ben, On Sep 24, 2004, at 4:25 AM, Ben Crane wrote: > The reason I ask is that I use div tags (with > overflow:scroll / hidden) for IE and NS, but since > Opera doesn't cover overflow:scroll or hidden) I need I see your question has been answered, so let me ask one :). What versions of Opera don't support overflow: scroll or overflow: hidden? Opera's css support is so good that I was shocked to read this. Can you post a url that documents this? Thanks! Roger ------------------------------------------------------- Roger Roelofs web www.datacompusa.com Datacomp Appraisal Services web www.mhvillage.com 3215 Eaglecrest Drive, NE Email rer at datacompusa.com Grand Rapids, MI 49525-4593 From crane_ba at yahoo.com Fri Sep 24 08:27:20 2004 From: crane_ba at yahoo.com (Ben Crane) Date: Fri, 24 Sep 2004 06:27:20 -0700 (PDT) Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <14C335EA-0E20-11D9-958C-00306572FCC8@datacompusa.com> Message-ID: <20040924132720.9077.qmail@web52805.mail.yahoo.com> Roger, It wasn't on a website I found this. I ran a test website locally using apache and using Opera 7, the CSS tag overflow: scroll; didn't appear to work and the data spilled out of the div tag. I tried a work around with no luck. I then browsed some websites (can't remember which ones) where other people had reported the problem-so I put 2 and 2 together and have to design with this in mind. Unless there is a CSS tag that operates within Opera that allows scrolling in a div tag that I don't know of. Have you tried getting scrollbars in a div tag in Opera? If you can I'd be very grateful to know how you did it. That'd save me messing around with the CSS properties in Javascript. Regards Ben __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From hakan at backbase.com Fri Sep 24 08:31:41 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Fri, 24 Sep 2004 15:31:41 +0200 Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <20040924132720.9077.qmail@web52805.mail.yahoo.com> References: <20040924132720.9077.qmail@web52805.mail.yahoo.com> Message-ID: <415421BD.1040000@backbase.com> Try setting the div that you want scrollable to relative or absolute positioning as well. You also need to specify the height of the div, but it should not require a fixed value (percentage should be fine). Regards, H Ben Crane wrote: > Roger, > > It wasn't on a website I found this. I ran a test > website locally using apache and using Opera 7, the > CSS tag overflow: scroll; didn't appear to work and > the data spilled out of the div tag. I tried a work > around with no luck. > > I then browsed some websites (can't remember which > ones) where other people had reported the problem-so I > put 2 and 2 together and have to design with this in > mind. Unless there is a CSS tag that operates within > Opera that allows scrolling in a div tag that I don't > know of. > > Have you tried getting scrollbars in a div tag in > Opera? If you can I'd be very grateful to know how you > did it. That'd save me messing around with the CSS > properties in Javascript. > > Regards > Ben > > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > From flavio at economisa.com.br Fri Sep 24 08:36:05 2004 From: flavio at economisa.com.br (Flavio Gomes) Date: Fri, 24 Sep 2004 10:36:05 -0300 Subject: [Javascript] Javascript code not working in Mozzila In-Reply-To: <20040924082014.60405.qmail@web52810.mail.yahoo.com> References: <20040924082014.60405.qmail@web52810.mail.yahoo.com> Message-ID: <415422C5.9050502@economisa.com.br> Let's make a few changes and it's gonna work in them all without any browser detection (since getElementById works): Ben Crane escreveu: (...) >function HighLightTR(tr) >{ >count=count+1; > myArray[count]=tr; > > myArray[count]=document.getElementById(tr); >2. ******************** >
  • >
  • References: <20040924132720.9077.qmail@web52805.mail.yahoo.com> Message-ID: <7E046C6B-0E32-11D9-958C-00306572FCC8@datacompusa.com> Ben, On Sep 24, 2004, at 9:27 AM, Ben Crane wrote: > Roger, > > It wasn't on a website I found this. I ran a test > website locally using apache and using Opera 7, the > CSS tag overflow: scroll; didn't appear to work and > the data spilled out of the div tag. I tried a work > around with no luck. I just applied this style to a div and it worked fine in Op 7.5/mac. The next previous version of Op for mac is 6.03, so I can't test 7. ------------- ------------- hth Roger ------------------------------------------------------- Roger Roelofs web www.datacompusa.com Datacomp Appraisal Services web www.mhvillage.com 3215 Eaglecrest Drive, NE Email rer at datacompusa.com Grand Rapids, MI 49525-4593 From crane_ba at yahoo.com Fri Sep 24 09:05:42 2004 From: crane_ba at yahoo.com (Ben Crane) Date: Fri, 24 Sep 2004 07:05:42 -0700 (PDT) Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <415421BD.1040000@backbase.com> Message-ID: <20040924140542.36998.qmail@web52809.mail.yahoo.com> Hakan, The CSS class for the div is POsition:absolute; top:100px; left:120px; *Specific scrollbar coloring* The actual div tag in the html has a height and width setting since it has to fit between 2 images. http://www.re3.org.uk/MontreuxInvestments/MontreuxInvestments_Content/Projects.php Try the link and see whether it works in your opera or not. It doesn't on mine and I'm using the XP CSS editor which only provides tag info for Opera 5. So it was a bit of trial and error...but overall the only thing that doesn't seem to work is the overflow command. Ben __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From hakan at backbase.com Fri Sep 24 09:09:37 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Fri, 24 Sep 2004 16:09:37 +0200 Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <20040924140542.36998.qmail@web52809.mail.yahoo.com> References: <20040924140542.36998.qmail@web52809.mail.yahoo.com> Message-ID: <41542AA1.4090109@backbase.com> Try adding 'px' after your width and height in the inline style. Remember that it's only IE who 'understands' values without units, for every other browser, specify the px-unit. As a side note, it didn't work in Mozilla or Firefox either, the list is just overflowing and the whole page is scrollable. In IE it worked fine. Regards, H Ben Crane wrote: > Hakan, > > The CSS class for the div is > > POsition:absolute; > top:100px; > left:120px; > > *Specific scrollbar coloring* > > The actual div tag in the html has a height and width > setting since it has to fit between 2 images. > > http://www.re3.org.uk/MontreuxInvestments/MontreuxInvestments_Content/Projects.php > > Try the link and see whether it works in your opera or > not. It doesn't on mine and I'm using the XP CSS > editor which only provides tag info for Opera 5. So it > was a bit of trial and error...but overall the only > thing that doesn't seem to work is the overflow > command. > > Ben > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > From pp.koch at gmail.com Fri Sep 24 09:13:21 2004 From: pp.koch at gmail.com (Peter-Paul Koch) Date: Fri, 24 Sep 2004 16:13:21 +0200 Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <20040924140542.36998.qmail@web52809.mail.yahoo.com> References: <415421BD.1040000@backbase.com> <20040924140542.36998.qmail@web52809.mail.yahoo.com> Message-ID: <21e4a12804092407136b5df9a9@mail.gmail.com> > The actual div tag in the html has a height and width > setting since it has to fit between 2 images. > > http://www.re3.org.uk/MontreuxInvestments/MontreuxInvestments_Content/Projects.php > > Try the link and see whether it works in your opera or > not. You're using the IE only overflow-y property instead of the general overflow property. Opera supports overflow fine, it's your code that is incorrect in this case. -- ------------------------------------------------------------------- ppk, freelance web developer Interactie, copywriting, JavaScript, integratie http://www.quirksmode.org/ ------------------------------------------------------------------ From hassan at webtuitive.com Fri Sep 24 09:16:05 2004 From: hassan at webtuitive.com (Hassan Schroeder) Date: Fri, 24 Sep 2004 07:16:05 -0700 Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <20040924132720.9077.qmail@web52805.mail.yahoo.com> References: <20040924132720.9077.qmail@web52805.mail.yahoo.com> Message-ID: <41542C25.1080402@webtuitive.com> Ben Crane wrote: > It wasn't on a website I found this. I ran a test > website locally using apache and using Opera 7, the > CSS tag overflow: scroll; didn't appear to work and > the data spilled out of the div tag. Mmm, just tried `overflow: scroll` on Opera 7.22/Win and it works. But I know a couple of years ago I was working on a project using a lot of CSS2, and basically *nothing* interesting worked in Opera. Between that and the poor JavaScript support, I just stopped even worrying about it. But since we're talking about Opera and I'm just fiddling with a little experiment -- anyone know how it handles the "load" event? I've got this currently to handle the difference between IE and Moz: if ( window.attachEvent ) { window.attachEvent("onload",init); } else if ( window.addEventListener ) { window.addEventListener("load",init,true); } :: but neither fires in Op7.22/Win, nor are any errors reported... ?? -- Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. From crane_ba at yahoo.com Fri Sep 24 09:19:52 2004 From: crane_ba at yahoo.com (Ben Crane) Date: Fri, 24 Sep 2004 07:19:52 -0700 (PDT) Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <41542AA1.4090109@backbase.com> Message-ID: <20040924141952.8996.qmail@web52808.mail.yahoo.com> Hakan, Yep, just done it. I didn't think it'd work...I might have to just alter the CSS to fit a scrolling screen...not what I wanted though. There is always a solution though. Regards Ben _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com From crane_ba at yahoo.com Fri Sep 24 09:24:54 2004 From: crane_ba at yahoo.com (Ben Crane) Date: Fri, 24 Sep 2004 07:24:54 -0700 (PDT) Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <7E046C6B-0E32-11D9-958C-00306572FCC8@datacompusa.com> Message-ID: <20040924142454.68870.qmail@web52804.mail.yahoo.com> Roger, Really!?? Wonder what's wrong with my Opera then? Mmm...will have to test it when I get home... If it solves the problem then bingo...no more problems, that's the only stumbling block I've come across so far. Thanx, I'll take the code back home and run on my opera and see what happens. Regards Ben __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From crane_ba at yahoo.com Fri Sep 24 09:41:32 2004 From: crane_ba at yahoo.com (Ben Crane) Date: Fri, 24 Sep 2004 07:41:32 -0700 (PDT) Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <21e4a12804092407136b5df9a9@mail.gmail.com> Message-ID: <20040924144132.52799.qmail@web52802.mail.yahoo.com> Not quite, I've got 2 CSS files. Not on this particular pc though, so the the html file will need a inline style; but on the copy held locally there are 2 CSS files, one for IE and the other for NS (which has the overflow:scroll (not the y-scroll)). The site I've given you is a day old and doesn't incorporate the CSS changes, I wanted to illustrate the problem that I'm having regardless of whether I'm running IE or NS CSS-it's not really appropriate I know for this example. I'll go home and double-check everything...I was just surprised because I checked the y-scroll property against Opera and according to the XP CSS editor which lists CSS styles for different browsers it didn't have overflow:scroll; down for Opera-so I began looking for alternatives, but if it works, then I'll be more than happy to have another look at it. Thanx, Ben Ben _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com From hakan at backbase.com Fri Sep 24 10:42:37 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Fri, 24 Sep 2004 17:42:37 +0200 Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <41542C25.1080402@webtuitive.com> References: <20040924132720.9077.qmail@web52805.mail.yahoo.com> <41542C25.1080402@webtuitive.com> Message-ID: <4154406D.5030208@backbase.com> When inspecting the window-object, I found the following methods: window.releaseEvents window.captureEvents window.attachEvent window.detachEvent and the following object: window.Event I would start by experimenting with window.captureEvents. One thing I've always hated about Opera is that they are trying to be 'IE-friendly', which in my experience mostly means that it fucks up on IE-proprietary code rather than reporting an error. Regards, H Hassan Schroeder wrote: > Ben Crane wrote: > >> It wasn't on a website I found this. I ran a test >> website locally using apache and using Opera 7, the >> CSS tag overflow: scroll; didn't appear to work and >> the data spilled out of the div tag. > > > Mmm, just tried `overflow: scroll` on Opera 7.22/Win and it works. > But I know a couple of years ago I was working on a project using > a lot of CSS2, and basically *nothing* interesting worked in Opera. > Between that and the poor JavaScript support, I just stopped even > worrying about it. > > But since we're talking about Opera and I'm just fiddling with a > little experiment -- anyone know how it handles the "load" event? > > I've got this currently to handle the difference between IE and Moz: > > if ( window.attachEvent ) > { > window.attachEvent("onload",init); > } > else if ( window.addEventListener ) > { > window.addEventListener("load",init,true); > } > > :: but neither fires in Op7.22/Win, nor are any errors reported... > > ?? From hassan at webtuitive.com Fri Sep 24 10:57:24 2004 From: hassan at webtuitive.com (Hassan Schroeder) Date: Fri, 24 Sep 2004 08:57:24 -0700 Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <4154406D.5030208@backbase.com> References: <20040924132720.9077.qmail@web52805.mail.yahoo.com> <41542C25.1080402@webtuitive.com> <4154406D.5030208@backbase.com> Message-ID: <415443E4.3080401@webtuitive.com> Hakan M (Backbase) wrote: > When inspecting the window-object, I found the following methods: > > window.releaseEvents > window.captureEvents > window.attachEvent > window.detachEvent > > and the following object: > > window.Event > > I would start by experimenting with window.captureEvents. Thanks, gotta run to a meeting now but will try it later... > One thing I've always hated about Opera is that they are trying to be > 'IE-friendly', which in my experience mostly means that it fucks up on > IE-proprietary code rather than reporting an error. No comment :-) -- Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. From GaryHotko at gmail.com Sat Sep 25 10:58:58 2004 From: GaryHotko at gmail.com (GH) Date: Sat, 25 Sep 2004 11:58:58 -0400 Subject: [Javascript] Trying to get this code to work Message-ID: Greetings. I got this code for a Fade-In slide show from a depository of code I have been trying to modify it so that I can have 2 instances run at the same time on the same page with 2 diffrent sets of images. What i did was append 'nyc_' infront of the variable and user defined functions for the 1st instance.. and 'fed_' for the 2nd instance. The second instance shows up. But the 1st instance does not... only a blank space the equivalent to the the space it should use is there. Please assit. if there is anything that anyone can suggest, I would be greatful. I have the code for instance 1 listed at http://phpaste.com/537 with line numbers.... thank you. ## 1st instance ## ## SECOND INSTANCE ## From trojani2000 at hotmail.com Sat Sep 25 11:56:43 2004 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sat, 25 Sep 2004 18:56:43 +0200 Subject: [Javascript] Trying to get this code to work Message-ID: I'm overwhelmed, this code is a fckn novel, are u sure you will put this code in your page? Can't this all be done in e few lines of code?!! >From: GH >Reply-To: "[JavaScript List]" >To: javascript at LaTech.edu >Subject: [Javascript] Trying to get this code to work >Date: Sat, 25 Sep 2004 11:58:58 -0400 > >Greetings. I got this code for a Fade-In slide show from a depository >of code I have been trying to modify it so that I can have 2 instances >run at the same time on the same page with 2 diffrent sets of images. > >What i did was append 'nyc_' infront of the variable and user defined >functions for the 1st instance.. and 'fed_' for the 2nd instance. > >The second instance shows up. But the 1st instance does not... only a >blank space the equivalent to the the space it should use is there. > >Please assit. if there is anything that anyone can suggest, I would be >greatful. I have the code for instance 1 listed at >http://phpaste.com/537 with line numbers.... thank you. > > > >## 1st instance ## > > > > > > >## SECOND INSTANCE ## > > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From GaryHotko at gmail.com Sat Sep 25 13:08:22 2004 From: GaryHotko at gmail.com (GH) Date: Sat, 25 Sep 2004 14:08:22 -0400 Subject: [Javascript] Trying to get this code to work In-Reply-To: References: Message-ID: As I said, I got this from a code site... if you have a simplier version that would work, I would be interested in seeing it... On Sat, 25 Sep 2004 18:56:43 +0200, Troy III Ajnej wrote: > I'm overwhelmed, this code is a fckn novel, are u sure you will put this > code in your page? > Can't this all be done in e few lines of code?!! > > >From: GH > >Reply-To: "[JavaScript List]" > >To: javascript at LaTech.edu > >Subject: [Javascript] Trying to get this code to work > >Date: Sat, 25 Sep 2004 11:58:58 -0400 > > > > > >Greetings. I got this code for a Fade-In slide show from a depository > >of code I have been trying to modify it so that I can have 2 instances > >run at the same time on the same page with 2 diffrent sets of images. > > > >What i did was append 'nyc_' infront of the variable and user defined > >functions for the 1st instance.. and 'fed_' for the 2nd instance. > > > >The second instance shows up. But the 1st instance does not... only a > >blank space the equivalent to the the space it should use is there. > > > >Please assit. if there is anything that anyone can suggest, I would be > >greatful. I have the code for instance 1 listed at > >http://phpaste.com/537 with line numbers.... thank you. > > > > > > > >## 1st instance ## > > > > > > > > > > > > > >## SECOND INSTANCE ## > > > > > >_______________________________________________ > >Javascript mailing list > >Javascript at LaTech.edu > >https://lists.LaTech.edu/mailman/listinfo/javascript > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From trojani2000 at hotmail.com Sat Sep 25 15:25:36 2004 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Sat, 25 Sep 2004 22:25:36 +0200 Subject: [Javascript] Trying to get this code to work Message-ID: All right, as I don't have enoug time, for other newer solutions, you can stik with the one you allready have. The problem that you are experiencing with the first part of the code (!not running at all), is caused from its clone, it is overriding the onload event casscading to the second onload event statement and forgeting about the first one. Can't call two functions with the same event exept in case you invoke them with anoter function: function startEmUp(){nyc_startit(); fed_startit();} or whatever your main init functions are named. Than call this function caller with onload=startEmUp at the end of the second script. If you don't have same names in vars and similar you may remove script end tag from the first and start tag from the second for it to become one. I would like to see the original script in action what it does, how it looks, so I can propose to you some more eficient and less complicated aproach and far more smaller sized script. If I find time... _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From GaryHotko at gmail.com Sat Sep 25 19:32:06 2004 From: GaryHotko at gmail.com (GH) Date: Sat, 25 Sep 2004 20:32:06 -0400 Subject: [Javascript] Trying to get this code to work In-Reply-To: References: Message-ID: Thank you for your reply. However, I wound up puting them into seperate pages and into IFRAME s to contain them... which actually allowed me to add an extra feature of refreshing them periodically if either the alerts changes or what have you. When the site is up and running, I would be glad to let you know so that you can see them. Thanks again On Sat, 25 Sep 2004 22:25:36 +0200, Troy III Ajnej wrote: > All right, as I don't have enoug time, for other newer solutions, you can > stik with the one you allready have. The problem that you are experiencing > with the first part of the code (!not running at all), is caused from its > clone, it is overriding the onload event casscading to the second onload > event statement and forgeting about the first one. Can't call two functions > with the same event exept in case you invoke them with anoter function: > > function startEmUp(){nyc_startit(); fed_startit();} > > or whatever your main init functions are named. Than call this function > caller with onload=startEmUp at the end of the second script. If you don't > have same names in vars and similar you may remove script end tag from the > first and start tag from the second for it to become one. > > I would like to see the original script in action what it does, how it > looks, so I can propose to you some more eficient and less complicated > aproach and far more smaller sized script. If I find time... > > _________________________________________________________________ > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > From peter at brunone.com Sat Sep 25 21:54:52 2004 From: peter at brunone.com (Peter Brunone) Date: Sat, 25 Sep 2004 21:54:52 -0500 Subject: [Javascript] Problem with onBlur and dropdown lists - need help!!! In-Reply-To: <20040923183158.63129.qmail@web20228.mail.yahoo.com> Message-ID: <001d01c4a374$328aaf60$0300a8c0@monkeyhouse> Hi Guillermo, What are your target browsers? If you're working primarily with IE, you could use the showModalDialog method and avoid needing the onBlur event handler. http://url123.com/hbarp Just a thought... Peter Brunone ___________________ www.EasyListBox.com -----Original Message----- From: javascript-bounces at LaTech.edu On Behalf Of Guilherme Cordeiro Hi, I created two HTML files, "main.html" and "button.html": main.html : Click to open small window.

    button.html :
    Select options:
     
    Letters: 
    Numbers: 
     

     

    I placed onBlur on the body tag of "button.html", so the window with this HTML code will stay always on top. However, this onBlur event doesn't allow me to select a value on the dropdown lists, "Letters" and "Numbers". Does anyone know how can I put this window always on top, and at the same time to be able to select option in the dropdown lists? Thanks! _______________________________________________________ Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita divers?o. Instale agora! http://br.download.yahoo.com/messenger/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From guilhermecordeiro at yahoo.com.br Sun Sep 26 12:41:02 2004 From: guilhermecordeiro at yahoo.com.br (Guilherme Cordeiro) Date: Sun, 26 Sep 2004 14:41:02 -0300 (ART) Subject: [Javascript] Problem with onBlur and dropdown lists - need help!!! In-Reply-To: <001d01c4a374$328aaf60$0300a8c0@monkeyhouse> Message-ID: <20040926174102.33692.qmail@web20223.mail.yahoo.com> I am looking for a solution (or solutions) that will work on IE, Netscape and Mozilla. Thank you so much. --- Peter Brunone escreveu: > Hi Guillermo, > > What are your target browsers? If you're working > primarily with > IE, you could use the showModalDialog method and > avoid needing the > onBlur event handler. > http://url123.com/hbarp > > Just a thought... > > Peter Brunone > ___________________ > www.EasyListBox.com > > > -----Original Message----- > From: javascript-bounces at LaTech.edu On Behalf Of > Guilherme Cordeiro > > > Hi, I created two HTML files, "main.html" and > "button.html": > > main.html : > > > > > > > > Click to open > small window.

    > > > > button.html : > > > > > >
    > border="0"> > > > > > > > > > > > > > > > > > > > > > > >
    Select options:
     
    Letters:  > >
    Numbers:  > >
     
    >

    > onclick="">  > value="Cancel" onclick=""> >

    >
    >
    > > > > I placed onBlur on the body tag of "button.html", so > the window with this HTML code will stay always on > top. However, this onBlur event doesn't allow me to > select a value on the dropdown lists, "Letters" and > "Numbers". Does anyone know how can I put this > window > always on top, and at the same time to be able to > select option in the dropdown lists? Thanks! > > > > > > _______________________________________________________ > Yahoo! Messenger 6.0 - jogos, emoticons sonoros e > muita divers?o. > Instale agora! > http://br.download.yahoo.com/messenger/ > _______________________________________________ > 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 > _______________________________________________________ Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita divers?o. Instale agora! http://br.download.yahoo.com/messenger/ From guilhermecordeiro at yahoo.com.br Mon Sep 27 14:26:04 2004 From: guilhermecordeiro at yahoo.com.br (Guilherme Cordeiro) Date: Mon, 27 Sep 2004 16:26:04 -0300 (ART) Subject: [Javascript] Accessing atributes - window.opener Message-ID: <20040927192604.41069.qmail@web20223.mail.yahoo.com> Here I go again... Now, I've put an input text field on the first page. With a click in OK, on the opened window, I want to put a value on this input text field. I tried several things, like window.opener.document..., self.opener.document, and so on. None of these worked. Does anyone know what could be wrong? Thanks. main.html (calls the pop-up window) : Click to open small window.

    button.html (elements of the pop-up window) :
    Select option:
     
    Letters: 
     

     

    window.js (contains javascript functions) : var newWindow; function topwind() { newWindow = window.open('button.html','newWindow','toolbar=no,status=no,width=350,height=200') } function checkForDialog() { if (newWindow && newWindow != null && !newWindow.closed) { newWindow.focus(); } } function closeWindow() { self.opener.document.update.code.value = "50"; //error here //according to mozilla javascript console, this is the error: // Error: self.opener.document.update has no properties // Source: file:///d:/guilherme/java/window.js // Line: 18 self.close(); self.opener.newWindow = null; } _______________________________________________________ Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita divers?o. Instale agora! http://br.download.yahoo.com/messenger/ From hershelr at netvision.net.il Mon Sep 27 14:51:08 2004 From: hershelr at netvision.net.il (Hershel Robinson) Date: Mon, 27 Sep 2004 15:51:08 -0400 Subject: [Javascript] Accessing atributes - window.opener In-Reply-To: <20040927192604.41069.qmail@web20223.mail.yahoo.com> Message-ID: <003601c4a4cb$55bc0bc0$0300000a@hershel2000> > Now, I've put an input text field on the first page. > With a click in OK, on the opened window, I want to > put a value on this input text field. I tried several > things, like window.opener.document..., > self.opener.document, and so on. None of these worked. Did you try just opener.document ? Works for me on IE6 anyhow. Hershel Robinson From peter at brunone.com Mon Sep 27 14:57:43 2004 From: peter at brunone.com (Peter Brunone) Date: Mon, 27 Sep 2004 14:57:43 -0500 Subject: SPAM-LOW: [Javascript] Accessing atributes - window.opener In-Reply-To: <20040927192604.41069.qmail@web20223.mail.yahoo.com> Message-ID: <00c501c4a4cc$4149b650$0300a8c0@monkeyhouse> Guillermo, To refer to a form the way you're doing it in your Javascript below, the form needs a name attribute (the id attribute won't show up in the document.formName tree). Cheers, Peter Brunone ___________________ www.EasyListBox.com -----Original Message----- From: javascript-bounces at LaTech.edu On Behalf Of Guilherme Cordeiro Here I go again... Now, I've put an input text field on the first page. With a click in OK, on the opened window, I want to put a value on this input text field. I tried several things, like window.opener.document..., self.opener.document, and so on. None of these worked. Does anyone know what could be wrong? Thanks. main.html (calls the pop-up window) : Click to open small window.

    button.html (elements of the pop-up window) :
    Select option:
     
    Letters: 
     

     

    window.js (contains javascript functions) : var newWindow; function topwind() { newWindow = window.open('button.html','newWindow','toolbar=no,status=no,width=350,he ight=200') } function checkForDialog() { if (newWindow && newWindow != null && !newWindow.closed) { newWindow.focus(); } } function closeWindow() { self.opener.document.update.code.value = "50"; //error here //according to mozilla javascript console, this is the error: // Error: self.opener.document.update has no properties // Source: file:///d:/guilherme/java/window.js // Line: 18 self.close(); self.opener.newWindow = null; } _______________________________________________________ Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita divers?o. Instale agora! http://br.download.yahoo.com/messenger/ _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript From guilhermecordeiro at yahoo.com.br Mon Sep 27 15:16:28 2004 From: guilhermecordeiro at yahoo.com.br (Guilherme Cordeiro) Date: Mon, 27 Sep 2004 17:16:28 -0300 (ART) Subject: SPAM-LOW: [Javascript] Accessing atributes - window.opener In-Reply-To: <00c501c4a4cc$4149b650$0300a8c0@monkeyhouse> Message-ID: <20040927201628.90557.qmail@web20228.mail.yahoo.com> Thank you so much, it finally worked. --- Peter Brunone escreveu: > Guillermo, > > To refer to a form the way you're doing it in your > Javascript > below, the form needs a name attribute (the id > attribute won't show up > in the document.formName tree). > > Cheers, > > Peter Brunone > ___________________ > www.EasyListBox.com > > -----Original Message----- > From: javascript-bounces at LaTech.edu On Behalf Of > Guilherme Cordeiro > > Here I go again... > > Now, I've put an input text field on the first page. > With a click in OK, on the opened window, I want to > put a value on this input text field. I tried > several > things, like window.opener.document..., > self.opener.document, and so on. None of these > worked. > > Does anyone know what could be wrong? Thanks. > > main.html (calls the pop-up window) : > > > > > > > id="main"> > Click to open > small window.

    >
    > >
    > > > > > button.html (elements of the pop-up window) : > > > > > > > >
    > border="0"> > > > > > > > > > > > > > > > > > > >
    Select option:
     
    Letters:  > >
     
    >

    > value="OK" > onclick="javascript:closeWindow();">  > value="Cancel" onclick=""> >

    >
    >
    > > > > > window.js (contains javascript functions) : > > var newWindow; > > function topwind() > { > newWindow = > window.open('button.html','newWindow','toolbar=no,status=no,width=350,he > ight=200') > } > > function checkForDialog() > { > if (newWindow && newWindow != null && > !newWindow.closed) > { > newWindow.focus(); > } > } > > function closeWindow() > { > self.opener.document.update.code.value = "50"; > //error here > //according to mozilla javascript console, this is > the error: > // Error: self.opener.document.update has no > properties > // Source: file:///d:/guilherme/java/window.js > // Line: 18 > self.close(); > self.opener.newWindow = null; > } > > > > > > _______________________________________________________ > Yahoo! Messenger 6.0 - jogos, emoticons sonoros e > muita divers?o. > Instale agora! > http://br.download.yahoo.com/messenger/ > _______________________________________________ > 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 > _______________________________________________________ Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita divers?o. Instale agora! http://br.download.yahoo.com/messenger/ From hassan at webtuitive.com Mon Sep 27 15:24:18 2004 From: hassan at webtuitive.com (Hassan Schroeder) Date: Mon, 27 Sep 2004 13:24:18 -0700 Subject: [Javascript] Object Detection using Javascript. In-Reply-To: <4154406D.5030208@backbase.com> References: <20040924132720.9077.qmail@web52805.mail.yahoo.com> <41542C25.1080402@webtuitive.com> <4154406D.5030208@backbase.com> Message-ID: <415876F2.4040908@webtuitive.com> Hakan M (Backbase) wrote: > When inspecting the window-object, I found the following methods: > window.attachEvent > One thing I've always hated about Opera is that they are trying to be > 'IE-friendly', which in my experience mostly means that it fucks up on > IE-proprietary code rather than reporting an error. For anyone interested in this thread, here's a test case: :: that illustrates the difference between using document.write() and a DOM method like appendChild() in pages being served as HTML (text/html) vs. XHTML (application/xhtml+xml). Unfortunately, Opera seems not to handle the latter too well! Comments, additions, corrections welcome :-) -- Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. From ShawnMilo at runbox.com Tue Sep 28 14:31:45 2004 From: ShawnMilo at runbox.com (Shawn Milo) Date: Tue, 28 Sep 2004 15:31:45 -0400 (EDT) Subject: [Javascript] Accessing atributes - window.opener In-Reply-To: <20040927192604.41069.qmail@web20223.mail.yahoo.com> References: <20040927192604.41069.qmail@web20223.mail.yahoo.com> Message-ID: Just to add my 2?, here's a sample of something I did recently. I know it's a day late and a dollar short (98? short?), but I just wondered if it might help someone. This snippet is a piece of ASP code (vbScript), which writes a bunch of links from an SQL query. Shawn %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Begin Code %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% If rsForm.EOF Then toPage "

    There were no results. Please try again.

    " Else regEx.Pattern = "^#(\d{3}).*$" storeNum = regEx.Replace(rsForm("deptdesc"), "$1") toPage "" Do Until rsForm.EOF toPage "" toPage "" toPage "" toPage "" toPage "" rsForm.MoveNext Loop toPage "
    " & rsForm("lname") & ", " & rsForm("fname") & "" & rsForm("deptdesc") & "" & rsForm("jtitle") & "
    " End If %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% End Code %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > Here I go again... > > Now, I've put an input text field on the first page. > With a click in OK, on the opened window, I want to > put a value on this input text field. I tried several > things, like window.opener.document..., > self.opener.document, and so on. None of these worked. > > Does anyone know what could be wrong? Thanks. > > main.html (calls the pop-up window) : > > > > > > > id="main"> > Click to open > small window.

    >
    > >
    > > > > > button.html (elements of the pop-up window) : > > > > > > > >
    > border="0"> > > > > > > > > > > > > > > > > > > >
    Select option:
     
    Letters:  > >
     
    >

    > value="OK" onclick="javascript:closeWindow();">  > value="Cancel" onclick=""> >

    >
    >
    > > > > > window.js (contains javascript functions) : > > var newWindow; > > function topwind() > { > newWindow = > window.open('button.html','newWindow','toolbar=no,status=no,width=350,height=200') > } > > function checkForDialog() > { > if (newWindow && newWindow != null && > !newWindow.closed) > { > newWindow.focus(); > } > } > > function closeWindow() > { > self.opener.document.update.code.value = "50"; > //error here > //according to mozilla javascript console, this is > the error: > // Error: self.opener.document.update has no > properties > // Source: file:///d:/guilherme/java/window.js > // Line: 18 > self.close(); > self.opener.newWindow = null; > } > > > > > > _______________________________________________________ > Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita divers?o. Instale agora! > http://br.download.yahoo.com/messenger/ > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > From guilhermecordeiro at yahoo.com.br Tue Sep 28 15:38:33 2004 From: guilhermecordeiro at yahoo.com.br (Guilherme Cordeiro) Date: Tue, 28 Sep 2004 17:38:33 -0300 (ART) Subject: [Javascript] Window.opener in JSP - again Message-ID: <20040928203833.63951.qmail@web20223.mail.yahoo.com> So, I used the solution provided in those simple html files. It worked perfectly. Now, I am trying to use it on some JSP files. The pop-up window has these elements:
    ... ... The opener window has these elements: ...
     
    ... The js file: var novaJanela; function openMunicipio() { novaJanela = window.open("selecionaMunicipio.jsp",'novaJanela','scrollbars=no,width=500,height=300'); } function closeMunicipio() { self.opener.document.atualizaaluno.nm_mun_nat.value = self.document.sel_municipio.select_mun.value; self.close(); self.opener.novaJanela = null; } (...) So, when the user clicks on the "finalizar" image, it was supposed to update the opener window with the value selected in the dropdown. I don't know why it's not working, even if I do like that simple example. Anyone knows what can I do? Thanks again. _______________________________________________________ Yahoo! Acesso Gr?tis - Internet r?pida e gr?tis. Instale o discador agora! http://br.acesso.yahoo.com/ From peter at brunone.com Tue Sep 28 15:59:24 2004 From: peter at brunone.com (Peter Brunone) Date: Tue, 28 Sep 2004 13:59:24 -0700 Subject: SPAM-LOW: [Javascript] Window.opener in JSP - again Message-ID: Hello again... ???As far as I know, the select element does not?have a value attribute.? You'll have to get the selected value more like this: var oList = document.sel_municipio.select_mun; var selValue = oList.options[oList.selectedIndex].value; Cheers, Peter From: Guilherme Cordeiro guilhermecordeiro at yahoo.com.br So, I used the solution provided in those simple html files. It worked perfectly. Now, I am trying to use it on some JSP files. The pop-up window has these elements: action="selecionaMunicipio.jsp" method="post"> ... border="0"> ... src="imagens/finalizar.gif" alt="Finalizar" onclick="javascript:closeMunicipio();">? The opener window has these elements: method="post"> ... cellpadding="1" width="70%" align="center" border="0"> ... gc.codMunNat %>" name=cd_mun_nat> gc.nomeMunNat %>" name=nm_mun_nat> value="..." onclick="javascript:openMunicipio();"> The js file: var novaJanela; function openMunicipio() { novaJanela = window.open("selecionaMunicipio.jsp",'novaJanela','scrollbars=no,width=500,height=300'); } function closeMunicipio() { self.opener.document.atualizaaluno.nm_mun_nat.value = self.document.sel_municipio.select_mun.value; self.close(); self.opener.novaJanela = null; } (...) So, when the user clicks on the "finalizar" image, it was supposed to update the opener window with the value selected in the dropdown. I don't know why it's not working, even if I do like that simple example. Anyone knows what can I do? Thanks again. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hakan at backbase.com Tue Sep 28 16:43:02 2004 From: hakan at backbase.com (Hakan M (Backbase)) Date: Tue, 28 Sep 2004 23:43:02 +0200 Subject: [Javascript] Impossible to dynamically add style sheets in IE? Message-ID: <4159DAE6.5010801@backbase.com> Included with this file is a test case that (from my testing) crashes Internet Explorer, all versions since 5.0. It's about dynamically adding stylesheets to a page, something that Internet Explorer only seems to be able to do about 30 times. A quick explanation: When looking at the page, you will see four headers, all of them have onclick-events running a function. The topmost header is adding the style tag by throwing the string '' to an elements innerHTML-property. The second header does this 40 times in a loop. The two lower header do nothing, but commented out are an attempt to use a DOM-method of setting the contents of a style-tag, together with the error it produces in IE. Note however that you can still crash IE without setting the contents of the style tag, it's simply a matter of creating them. Both methods work in Mozilla and Opera. If anybody feels the need to take this serious, and happen to come up with a solution, I would be very thankful to hear of it. Regards, H -------------- next part -------------- An HTML attachment was scrubbed... URL: From trojani2000 at hotmail.com Wed Sep 29 16:38:49 2004 From: trojani2000 at hotmail.com (Troy III Ajnej) Date: Wed, 29 Sep 2004 23:38:49 +0200 Subject: [Javascript] Impossible to dynamically add style sheets in IE? Message-ID: Not sure if IE can accept more than one global , you can allways change the source css file that is the style of the document dynamically, as many times as you like, but surelly the page will not be able to update the style that fast. All the other style src's are appended to the global one and the content will grow progressively, and as it will allways cascade to the next definition style of the same object, - and this is where it will get a very good chance to crash because the browser haven't reached the end of a style yet and it has been appended again, so after the change event the browser will again proccess the style from the beggining before it gets a chance to display it. I think..., style sheets don't get overwritten in IE, instead they grow, there was no need for that because of the casscading nature, the last variant of defined attributes of a object gets exclusively rendered as if others don't exist. While dinamicaly changing the contents of a style tag, it will grow, it will get overwriten only if the page is reloaded I think... >From: "Hakan M (Backbase)" >Reply-To: "[JavaScript List]" >To: "[JavaScript List]" >Subject: [Javascript] Impossible to dynamically add style sheets in IE? >Date: Tue, 28 Sep 2004 23:43:02 +0200 > >Included with this file is a test case that (from my testing) crashes >Internet Explorer, all versions since 5.0. It's about dynamically adding >stylesheets to a page, something that Internet Explorer only seems to be >able to do about 30 times. > >A quick explanation: > >When looking at the page, you will see four headers, all of them have >onclick-events running a function. The topmost header is adding the style >tag by throwing the string '' to an elements >innerHTML-property. The second header does this 40 times in a loop. > >The two lower header do nothing, but commented out are an attempt to use a >DOM-method of setting the contents of a style-tag, together with the error >it produces in IE. Note however that you can still crash IE without setting >the contents of the style tag, it's simply a matter of creating them. > >Both methods work in Mozilla and Opera. > >If anybody feels the need to take this serious, and happen to come up with >a solution, I would be very thankful to hear of it. > >Regards, >H >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -------------- next part -------------- An HTML attachment was scrubbed... URL: From tsterlin at email.arizona.edu Thu Sep 30 22:13:04 2004 From: tsterlin at email.arizona.edu (tsterlin at email.arizona.edu) Date: Thu, 30 Sep 2004 20:13:04 -0700 Subject: [Javascript] Dynamically Highlight and Scroll to Elements Message-ID: <1096600384.eb0353690f8a8@www.email.arizona.edu> Does anyone have any suggestions for the following functionality? I have an HTML page that looks something like this: . . .(con'd)
    . . .(con'd)
    First Item
    Second Item
    The mapping functionality works great; by clicking on the "hotspots" located on the graphic, the associated item within the table is scrolled to the top of the page. However, if the user clicks on a hotspot associated with an item located toward the beginning or the end of the page, the page scrolls as far as it can, but the pertinent item may still appear in the middle of the page. What other method can I use to distinguish the selected items within the table? I would ideally like to highlight the selected item's text within the table while simultaneously mapping to it. Does that require that I dynamically reconstruct the page with different background/text color attributes for that item, and if so, how do I correspond the scroll location with that new page? Any suggestions on that method or another text distinguishing method would be greatly appreciated. Tracy.