From asureshkumar_1983 at yahoo.co.in Sun Dec 3 09:41:49 2006 From: asureshkumar_1983 at yahoo.co.in (suresh kumar) Date: Sun, 3 Dec 2006 15:41:49 +0000 (GMT) Subject: [Javascript] any one solve my flash background sound problem Message-ID: <730008.69488.qm@web8604.mail.in.yahoo.com> Hi to all, any one help me to solve my problem,i attached my code
i am having two buttons "show pic" and "show flash".when i click 'show flash' button ,the flash will play with the background sound and then when i click "show pic" button,the flash will be replaced by the image with (wheel) transition ,but the previous flash background sound is still playing in the image. i dont know where the problem araises,can any one help me to solve my problem,i am waiting for reply from u,if u want u can test the code by just replace flash and image file A.suresh --------------------------------- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW -------------- next part -------------- An HTML attachment was scrubbed... URL: From rpeters at WECU.org Wed Dec 6 19:05:54 2006 From: rpeters at WECU.org (Russ Peters) Date: Wed, 6 Dec 2006 17:05:54 -0800 Subject: [Javascript] Persistant menu problem Message-ID: I have a menu that uses some JavaScript to expand and collapse dynamically. My problem is that it's not remembering which menu item was clicked and keeping the menu expanded on the next page. Can someone take a look and see where I'm going wrong? http://www.redcanoecu.com/loans.asp JavaScript located here: http://www.redcanoecu.com/common/expandmenu.js You can click on AUTOS>HOW TO BUY to test this. My guess is I've dropped a variable or something to that effect. Russ -------------- next part -------------- An HTML attachment was scrubbed... URL: From rpeters at WECU.org Thu Dec 7 14:40:05 2006 From: rpeters at WECU.org (Russ Peters) Date: Thu, 7 Dec 2006 12:40:05 -0800 Subject: [Javascript] FW: Menu not remembering where you are Message-ID: > > > I have a menu that uses some JavaScript to expand and collapse > > dynamically. My problem is that it's not remembering which menu item > > was clicked and keeping the menu expanded on the next page. Can > > someone > > take a look and see where I'm going wrong? > > > > http://www.redcanoecu.com/loans.asp > > The initMenu function is what does this. It is operating on the #nav > rather than on the #leftnav. > > Try changing > var nav= document.getElementById('nav'); > to > var nav= document.getElementById('leftnav'); > > The way initMenu works is it checks the href on all the a elements > inside nav and if it finds a match, sets the style so that element is > visible. > > -- > Roger Thought I'd just let everyone know that Roger helped me through this one and this solution works perfectly. Russ From list at tridemail.de Fri Dec 8 04:38:07 2006 From: list at tridemail.de (Michael Borchers) Date: Fri, 8 Dec 2006 11:38:07 +0100 Subject: [Javascript] return value from "ajax"/ function Message-ID: <000501c71ab4$f3784750$af24a8c0@mbpc> function requestFile(url) { httpRequest.open('get', url, true); httpRequest.onreadystatechange = function() { handleRequest() }; httpRequest.send(null); } ... var foo = requestFile(...); the handleRequest() function gets the data and when it's ready loaded, and only then(!), requestFile() should return the data for the var foo. how can I do this?! From blmatthews at gmail.com Fri Dec 8 11:01:36 2006 From: blmatthews at gmail.com (Brian L. Matthews) Date: Fri, 8 Dec 2006 09:01:36 -0800 Subject: [Javascript] return value from "ajax"/ function In-Reply-To: <000501c71ab4$f3784750$af24a8c0@mbpc> References: <000501c71ab4$f3784750$af24a8c0@mbpc> Message-ID: >function requestFile(url) >{ >httpRequest.open('get', url, true); >httpRequest.onreadystatechange = function() { handleRequest() }; >httpRequest.send(null); >} >... >var foo = requestFile(...); > >the handleRequest() function gets the data and when it's ready >loaded, and only then(!), requestFile() should return the data for >the var foo. > >how can I do this?! You can't. The request runs asynchronously (the first 'A' in Ajax :-) ). requestFile returns immediately (with undefined in your example), then at various stages in the request's lifetime, your handleRequest function will be called. When the request is complete, handleRequest should do whatever needs to be done with the response. Brian From hjess at cardomain.com Fri Dec 8 16:38:16 2006 From: hjess at cardomain.com (Howard Jess) Date: Fri, 8 Dec 2006 14:38:16 -0800 Subject: [Javascript] return value from "ajax"/ function In-Reply-To: <20061208180007.6153E132A40@smtp4.LaTech.edu> References: <20061208180007.6153E132A40@smtp4.LaTech.edu> Message-ID: <200612081438.16182.hjess@cardomain.com> "Brian L. Matthews" wrote: >>function requestFile(url) >>{ >>httpRequest.open('get', url, true); >>httpRequest.onreadystatechange = function() { handleRequest() }; >>httpRequest.send(null); >>} >>... >>var foo = requestFile(...); >> >>the handleRequest() function gets the data and when it's ready >>loaded, and only then(!), requestFile() should return the data for >>the var foo. >> >>how can I do this?! > >You can't. The request runs asynchronously (the first 'A' in Ajax :-) >). requestFile returns immediately (with undefined in your example), >then at various stages in the request's lifetime, your handleRequest >function will be called. When the request is complete, handleRequest >should do whatever needs to be done with the response. Well, yes you can; AJAX's 'A'synchronicity is optional. Change your function (completely off the top of my head, untested, no error checking, etc.) to: function requestFile(url) { httpRequest.open('get', url, false); httpRequest.send(null); // synchronous; returns when response is complete return httpRequest.responseText; } -- hj From blmatthews at gmail.com Sat Dec 9 13:10:57 2006 From: blmatthews at gmail.com (Brian L. Matthews) Date: Sat, 9 Dec 2006 11:10:57 -0800 Subject: [Javascript] return value from "ajax"/ function In-Reply-To: <200612081438.16182.hjess@cardomain.com> References: <20061208180007.6153E132A40@smtp4.LaTech.edu> <200612081438.16182.hjess@cardomain.com> Message-ID: >Well, yes you can; AJAX's 'A'synchronicity is optional. Change your >function (completely off the top of my head, untested, no error >checking, etc.) to: > >function requestFile(url) { > httpRequest.open('get', url, false); > httpRequest.send(null); // synchronous; returns when response is complete > return httpRequest.responseText; >} Ah yes, I totally forgot about synchronous requests. However, I'd argue that's a good thing. :-) Synchronous requests can easily make for a bad user experience, and using asynchronous requests isn't that much harder. Brian From list at tridemail.de Wed Dec 13 09:26:06 2006 From: list at tridemail.de (Michael Borchers) Date: Wed, 13 Dec 2006 16:26:06 +0100 Subject: [Javascript] simple popup with links Message-ID: <002701c71ecb$0284f210$af24a8c0@mbpc> I have a link for sorting, f.e. CONTACTS. When clicking or onmouseover on the link I want a little popup to appear. It should always have the same absolute position to the link. I tried OVERLIB http://www.bosrup.com/web/overlib/ but the menus position always depended on my mouse cursors position onmouseover:( The popup simply includes 2 links. any example? thanks From list at tridemail.de Thu Dec 14 06:49:34 2006 From: list at tridemail.de (Michael Borchers) Date: Thu, 14 Dec 2006 13:49:34 +0100 Subject: [Javascript] DOCTYPE making div.style.top NOT WORK Message-ID: <000501c71f7e$4e9f46b0$af24a8c0@mbpc> the following script works fine so far! but when adding the following DOCTYPE into the first line: the script stops working and div.style.top seems to have no effect. it took me a lot of time to find this. any reason?! thanks the script: --------------------------------------------------------------------------------------------------------------------- JavaScript 12345 From david at dorward.me.uk Thu Dec 14 06:51:13 2006 From: david at dorward.me.uk (David Dorward) Date: Thu, 14 Dec 2006 12:51:13 +0000 Subject: [Javascript] DOCTYPE making div.style.top NOT WORK In-Reply-To: <000501c71f7e$4e9f46b0$af24a8c0@mbpc> References: <000501c71f7e$4e9f46b0$af24a8c0@mbpc> Message-ID: <20061214125113.GC27564@us-lot.org> On Thu, Dec 14, 2006 at 01:49:34PM +0100, Michael Borchers wrote: > the following script works fine so far! > but when adding the following DOCTYPE into the first line: > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> This triggers Standards mode and turns off a number of bugs in a number of browsers (not that XHTML is a good choice due to browser support, now Transitional (due to it being Strict + legacy junk you should not use).. > the script stops working and div.style.top seems to have no effect. > div.style.top = a.x+58; > div.style.left = a.y+20; The top and left properties take lengths, not integers. Lengths (except 0) require units. -- David Dorward http://dorward.me.uk From rer at datacompusa.com Thu Dec 14 06:57:40 2006 From: rer at datacompusa.com (Roger Roelofs) Date: Thu, 14 Dec 2006 07:57:40 -0500 Subject: [Javascript] DOCTYPE making div.style.top NOT WORK In-Reply-To: <000501c71f7e$4e9f46b0$af24a8c0@mbpc> References: <000501c71f7e$4e9f46b0$af24a8c0@mbpc> Message-ID: Michael, On Dec 14, 2006, at 7:49 AM, Michael Borchers wrote: > the following script works fine so far but when adding the > following DOCTYPE into the first line: > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > the script stops working and div.style.top seems to have no effect. > > it took me a lot of time to find this. any reason?! > ----- 8< --- > div.style.top = a.x+58; > div.style.left = a.y+20; I'm a little surprised this ever worked. You are missing the units. Change the code to div.style.top = (a.x+50) + "px"; When using an xhtml doctype, the javascript engine may be treating the markup as xml. If so, xml is case sensitive while html is not. Roger -- Roger Roelofs Datacomp Appraisal Services 3215 Eaglecrest Drive, NE Grand Rapids, MI 49525-4593 Email rer at datacompusa.com From list at tridemail.de Thu Dec 14 07:59:23 2006 From: list at tridemail.de (Michael Borchers) Date: Thu, 14 Dec 2006 14:59:23 +0100 Subject: [Javascript] DOCTYPE making div.style.top NOT WORK References: <000501c71f7e$4e9f46b0$af24a8c0@mbpc> Message-ID: <000a01c71f88$108a7070$af24a8c0@mbpc> > Michael, > > On Dec 14, 2006, at 7:49 AM, Michael Borchers wrote: > >> the following script works fine so far but when adding the >> following DOCTYPE into the first line: >> >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >> >> the script stops working and div.style.top seems to have no effect. >> >> it took me a lot of time to find this. any reason?! >> ----- 8< --- >> div.style.top = a.x+58; >> div.style.left = a.y+20; > > I'm a little surprised this ever worked. You are missing the units. > Change the code to > > div.style.top = (a.x+50) + "px"; > > When using an xhtml doctype, the javascript engine may be treating > the markup as xml. If so, xml is case sensitive while html is not. using px makes the script work fine again, thanks! one last thing: the div closes "on mouse out". inside the div i have a link foo when touching the link "on mouse over" the div and the link dissappears. can i use anything else than "on mouse out" for the div or add something to the link inside the div?! From rer at datacompusa.com Thu Dec 14 08:04:51 2006 From: rer at datacompusa.com (Roger Roelofs) Date: Thu, 14 Dec 2006 09:04:51 -0500 Subject: [Javascript] DOCTYPE making div.style.top NOT WORK In-Reply-To: <000a01c71f88$108a7070$af24a8c0@mbpc> References: <000501c71f7e$4e9f46b0$af24a8c0@mbpc> <000a01c71f88$108a7070$af24a8c0@mbpc> Message-ID: <3CC881C3-92BA-459A-AC8E-FAE4E72A49B0@datacompusa.com> Michael, On Dec 14, 2006, at 8:59 AM, Michael Borchers wrote: > one last thing: the div closes "on mouse out". inside the div i > have a link > foo > > when touching the link "on mouse over" the div and the link > dissappears. > can i use anything else than "on mouse out" for the div or add > something > to the link inside the div?! Can you post a url? I would need to see it in action to even have a clue. Roger ------------------------------------------------------- Roger Roelofs web www.datacompusa.com Datacomp Appraisal Services Email rer at datacompusa.com 3215 Eaglecrest Drive, NE Grand Rapids, MI 49525-4593 From list at tridemail.de Thu Dec 14 09:13:36 2006 From: list at tridemail.de (Michael Borchers) Date: Thu, 14 Dec 2006 16:13:36 +0100 Subject: [Javascript] DOCTYPE making div.style.top NOT WORK References: <000501c71f7e$4e9f46b0$af24a8c0@mbpc> Message-ID: <000a01c71f92$6da562b0$af24a8c0@mbpc> sorry, the script works for an intranet, cannot post the url. but the problem should show up with the script I changed below: > > > the script: > > --------------------------------------------------------------------------------------------------------------------- > > > > > JavaScript > > > > > > > name="sort[contacts.contacts_name]" > id="sort[contacts.contacts_name]">12345 > >
style="display:none;visibility:hidden;position:relative;" onmouseout="javascript:handleSort('sort[contacts.contacts_name]', 'sortDiv', false)" > on mouse over this link the div disappears :(
> > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From thomas.nilsson at framfab.com Thu Dec 14 10:10:35 2006 From: thomas.nilsson at framfab.com (Thomas Nilsson) Date: Thu, 14 Dec 2006 17:10:35 +0100 Subject: [Javascript] DOCTYPE making div.style.top NOT WORK In-Reply-To: <000a01c71f92$6da562b0$af24a8c0@mbpc> Message-ID: -----Original Message----- From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of Michael Borchers Sent: den 14 december 2006 16:14 To: [JavaScript List] Subject: Re: [Javascript] DOCTYPE making div.style.top NOT WORK > one last thing: the div closes "on mouse out". inside the div i have a link foo > >when touching the link "on mouse over" the div and the link dissappears. >can i use anything else than "on mouse out" for the div or add something to the link inside the div?! Yes, it's a bit confusing. You'd think that the onmouseout event on a DIV wouldn't trigger on an element that's actually inside the DIV. I faced the same problem once and this article solved the problem for me: http://www.faqts.com/knowledge_base/view.phtml/aid/1606 Best regards /Thomas From lists at dwsasia.com Thu Dec 14 18:30:30 2006 From: lists at dwsasia.com (Peter Lauri) Date: Fri, 15 Dec 2006 02:30:30 +0200 Subject: [Javascript] Not being displayed in IE Message-ID: <20061215003749.6E5DA15BE4C@smtp3.LaTech.edu> Hi group, I have gotten a weird thing going on. I have confirmed that the below code works well in Firefox and Opera. However, in IE there is something strange going on. As you see in the code there are being created and put into a table. I have confirmed that all the are being inserted into the table in IE by counting and traversing the DOM for the table. However, the table does not change as it should :( Is there something special that needs to be done when doing this kind of thing in IE? Note that sc is a multidimensional array. Best regards, Peter Lauri function populateCartGraphic(sc) { summarytable = document.getElementById("summary_table"); while(summarytable.childNodes.length >= 1) { summarytable.removeChild(summarytable.firstChild); } total = 0; for(i=0; i References: <20061215003749.6E5DA15BE4C@smtp3.LaTech.edu> Message-ID: <458256C5.8010304@gazelasport.sk> IE requires element. Create it inside the table, give id "summary_table" instead of the table:
This will work in all Peter Lauri wrote / nap?sal(a): > Hi group, > > I have gotten a weird thing going on. I have confirmed that the below code > works well in Firefox and Opera. However, in IE there is something strange > going on. > > As you see in the code there are being created and put into a table. I > have confirmed that all the are being inserted into the table in IE by > counting and traversing the DOM for the table. However, the table does not > change as it should :( > > Is there something special that needs to be done when doing this kind of > thing in IE? Note that sc is a multidimensional array. > > Best regards, > Peter Lauri > > function populateCartGraphic(sc) { > summarytable = document.getElementById("summary_table"); > > while(summarytable.childNodes.length >= 1) { > summarytable.removeChild(summarytable.firstChild); > } > > total = 0; > > for(i=0; i newrow = document.createElement('tr'); > temp1 = document.createElement('td'); > temp1.innerHTML = sc[i][1] + ", " + sc[i][2]; > newrow.appendChild(temp1); > > > temp1 = document.createElement('td'); > temp1.innerHTML = "£" + sc[i][3]; > newrow.appendChild(temp1); > > temp1 = document.createElement('td'); > temp1.innerHTML = sc[i][4]; > newrow.appendChild(temp1); > > linetotal = sc[i][3]*sc[i][4]; > > temp1 = document.createElement('td'); > temp1.innerHTML = "£" + linetotal; > newrow.appendChild(temp1); > > summarytable.appendChild(newrow); > > total += linetotal; > > } > > > newrow = document.createElement('tr'); > temp1 = document.createElement('td'); > temp1.innerHTML = " "; > newrow.appendChild(temp1); > > > temp1 = document.createElement('td'); > temp1.innerHTML = " "; > newrow.appendChild(temp1); > > temp1 = document.createElement('td'); > temp1.innerHTML = " "; > newrow.appendChild(temp1); > > temp1 = document.createElement('td'); > temp1.innerHTML = "£" + total; > newrow.appendChild(temp1); > > summarytable.appendChild(newrow); > > } > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript From list at tridemail.de Fri Dec 15 02:11:38 2006 From: list at tridemail.de (Michael Borchers) Date: Fri, 15 Dec 2006 09:11:38 +0100 Subject: [Javascript] DOCTYPE making div.style.top NOT WORK References: Message-ID: <002f01c72020$a5694390$af24a8c0@mbpc> ----- Original Message ----- From: "Thomas Nilsson" To: "[JavaScript List]" Sent: Thursday, December 14, 2006 5:10 PM Subject: RE: [Javascript] DOCTYPE making div.style.top NOT WORK > > -----Original Message----- > From: javascript-bounces at LaTech.edu > [mailto:javascript-bounces at LaTech.edu] On Behalf Of Michael Borchers > Sent: den 14 december 2006 16:14 > To: [JavaScript List] > Subject: Re: [Javascript] DOCTYPE making div.style.top NOT WORK > >> one last thing: the div closes "on mouse out". inside the div i have a > link foo >> >>when touching the link "on mouse over" the div and the link > dissappears. >>can i use anything else than "on mouse out" for the div or add > something to the link inside the div?! > > Yes, it's a bit confusing. You'd think that the onmouseout event on a > DIV wouldn't trigger on an element that's actually inside the DIV. > > I faced the same problem once and this article solved the problem for > me: > > http://www.faqts.com/knowledge_base/view.phtml/aid/1606 > thanks thomas - exactely what i was searching for!! From eldebaran at gmail.com Fri Dec 15 02:38:39 2006 From: eldebaran at gmail.com (Julien Royer) Date: Fri, 15 Dec 2006 09:38:39 +0100 Subject: [Javascript] Not being displayed in IE In-Reply-To: <20061215003749.6E5DA15BE4C@smtp3.LaTech.edu> References: <20061215003749.6E5DA15BE4C@smtp3.LaTech.edu> Message-ID: <61d755090612150038h5549313fxd0e7f78892896570@mail.gmail.com> Hi Peter, You should maybe try to append the created rows to the tbody instead. Julien On 12/15/06, Peter Lauri wrote: > Hi group, > > I have gotten a weird thing going on. I have confirmed that the below code > works well in Firefox and Opera. However, in IE there is something strange > going on. > > As you see in the code there are being created and put into a table. I > have confirmed that all the are being inserted into the table in IE by > counting and traversing the DOM for the table. However, the table does not > change as it should :( > > Is there something special that needs to be done when doing this kind of > thing in IE? Note that sc is a multidimensional array. > > Best regards, > Peter Lauri > > function populateCartGraphic(sc) { > summarytable = document.getElementById("summary_table"); > > while(summarytable.childNodes.length >= 1) { > summarytable.removeChild(summarytable.firstChild); > } > > total = 0; > > for(i=0; i newrow = document.createElement('tr'); > temp1 = document.createElement('td'); > temp1.innerHTML = sc[i][1] + ", " + sc[i][2]; > newrow.appendChild(temp1); > > > temp1 = document.createElement('td'); > temp1.innerHTML = "£" + sc[i][3]; > newrow.appendChild(temp1); > > temp1 = document.createElement('td'); > temp1.innerHTML = sc[i][4]; > newrow.appendChild(temp1); > > linetotal = sc[i][3]*sc[i][4]; > > temp1 = document.createElement('td'); > temp1.innerHTML = "£" + linetotal; > newrow.appendChild(temp1); > > summarytable.appendChild(newrow); > > total += linetotal; > > } > > > newrow = document.createElement('tr'); > temp1 = document.createElement('td'); > temp1.innerHTML = " "; > newrow.appendChild(temp1); > > > temp1 = document.createElement('td'); > temp1.innerHTML = " "; > newrow.appendChild(temp1); > > temp1 = document.createElement('td'); > temp1.innerHTML = " "; > newrow.appendChild(temp1); > > temp1 = document.createElement('td'); > temp1.innerHTML = "£" + total; > newrow.appendChild(temp1); > > summarytable.appendChild(newrow); > > } From eldebaran at gmail.com Fri Dec 15 04:43:46 2006 From: eldebaran at gmail.com (Julien Royer) Date: Fri, 15 Dec 2006 11:43:46 +0100 Subject: [Javascript] Not being displayed in IE In-Reply-To: <458256C5.8010304@gazelasport.sk> References: <20061215003749.6E5DA15BE4C@smtp3.LaTech.edu> <458256C5.8010304@gazelasport.sk> Message-ID: <61d755090612150243q6757c5a1y23da1e539996184d@mail.gmail.com> There is an implicit tbody element in the DOM (except if the document is served as application/xhtml+xml), no need to create one in the HTML page. You can access it with the HTML DOM : "table.tBodies[0]". http://www.quirksmode.org/dom/w3c_html.html On 12/15/06, M wrote: > IE requires element. Create it inside the table, give id > "summary_table" instead of the table: > > > > >
> > This will work in all From bernu at lptmc.jussieu.fr Sat Dec 16 09:26:36 2006 From: bernu at lptmc.jussieu.fr (Bernu Bernard) Date: Sat, 16 Dec 2006 16:26:36 +0100 Subject: [Javascript] LaTeX to HTML in javascript Message-ID: <338C44BF-8C14-4F09-9AE9-149CF5A71B8B@lptmc.jussieu.fr> Hi list, Does anyone knows about some "simple" javascript module to transform simple LaTeX input into HTML. I'm thinking of something that can handle : \bf bold --> \it italic --> _ --> ^ --> and may be \itemize or \enumerate -->