Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Two JS interfering with each other?
- From: flavio at economisa.com.br (Flavio Gomes)
- Subject: [Javascript] Two JS interfering with each other?
- Date: Tue Apr 26 08:46:54 2005
A little bit of off-topicness to clear a little issue o.O Actually the files are well idented, but his server is returning a wrong MIME type for .js files, /I studied browser language (code below).. so I can talk to websites with telnet.. o.O (no, _GET_ is the only command i know) / *10:42:48 flavio@machin - ~ $ telnet www.t2000inc.com 80 *Trying 209.58.132.254... Connected to www.t2000inc.com. Escape character is '^]'. *GET /test/menuDropdown.js HTTP/1.1* HOST: www.t2000inc.com HTTP/1.1 200 OK Date: Tue, 26 Apr 2005 13:26:56 GMT Server: Apache/1.3.27 (Unix) FrontPage/5.0.2.2623 PHP/4.2.3 PHP/3.0.18 mod_perl/1.26 Last-Modified: Thu, 17 Feb 2005 13:35:33 GMT ETag: "a029-47c-42149da5" Accept-Ranges: bytes Content-Length: 1148 Connection: close *Content-Type: text/html* /* * menuDropdown.js - implements an dropdown menu based on a HTML list * Author: Dave Lindquist (http://www.gazingus.org) */ var currentMenu = null; if (!document.getElementById) document.getElementById = function() { return null; } (...) The problem is easy to see in the bolds, but a so much easier solution would be to show the .js files in your favorite browser and then ask it to show "source code". They'll be idented as the original. ^^ Hoping to Help, -- Flavio Gomes flavio@xxxxxxxxxxxxxxxx Shawn Milo wrote: >I tried downloading those JavaScript include files, but they came down >with no formatting (all one line), so they were very hard to look at. >Do you have a copy of them formatted properly? > >I checked for any duplicate function names, but didn't find any. I'd >like to check for duplicate variable names, but the code, at least as >I'm getting it, is too ugly. > >Check for duplicate variable names, let us know if you have >well-formatted versions of those scripts. > >Thanks, >Shawn > >On 4/26/05, Anne Kosmicki <akosmicki@xxxxxxxxxxxx> wrote: > > >>I am new the the list & definitely a Javascript novice. I am currently >>redesigning & rebuilding my company's web site, using CSS & XHTML. I am >>trying to build as "light" & compliant a site as possible. To that end, I >>have found two CSS & JS solutions to two problems. >> >>The first combo is a pop-down menu script, found here: >>http://www.gazingus.org/html/Using_Lists_for_DHTML_Menus.html >> >>The second combo round the corners on boxes: >>http://pro.html.it/articoli/id_599/idcat_31/pro.html >> >>I added the menus to my pages first & got them working with no problem. >>However, when adding the nifty corners script links, they didn't work. The >>nifty corners script links were listed first in the head. If I changed the >>order of the script links in the head [putting the menu first], the corners >>would round, but the menus wouldn't work. >> >>My page is here: >>http://www.t2000inc.com/test/ >>[with the menu listed last & working] >> >>My CSS: >>http://www.t2000inc.com/test/techcss.css >>http://www.t2000inc.com/test/niftyCorners.css >> >>The javascript files: >>menu: http://www.t2000inc.com/test/menuDropdown.js >>nifty corners: http://www.t2000inc.com/test/nifty.js >>& http://www.t2000inc.com/test/corners.js >> >>Please let me know if you need more information or detail. Thanks in advance >>for any help! >>Anne >> >>+++++ +++++ >>Anne Kosmicki >>Multimedia Specialist >>Tech 2000, Inc. >>akosmicki@xxxxxxxxxxxx >>(703) 467-8618 >> >>Tech 2000, Inc. is a Networkers 2005 Platinum Sponsor. Join us and our >>Sponsored Organizations in Booth #219 June 19-24, 2005 in Las Vegas, NV. >>For more information, please visit: http://www.cisco.com/networkers/nw05/ >> >>_______________________________________________ >>Javascript mailing list >>Javascript@xxxxxxxxxx >>https://lists.LaTech.edu/mailman/listinfo/javascript >> >> >> > > > > -------------- Próxima Parte ---------- Um anexo em HTML foi limpo... URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20050426/e60e64f7/attachment.html
- References:
- [Javascript] Two JS interfering with each other?
- From: Anne Kosmicki
- [Javascript] Two JS interfering with each other?
- From: Shawn Milo
- [Javascript] Two JS interfering with each other?
- Prev by Date: [Javascript] Two Interfering scripts: the scripts
- Next by Date: [Javascript] event bubbling/propagation problem
- Previous by thread: [Javascript] Two JS interfering with each other?
- Next by thread: [Javascript] Two Interfering scripts: the scripts
- Index(es):