Why IE 7 shrinks Javascript code? 
August 16th, 2006, 10:05 PM
| | |
Can anyone tell me why the IE 7 Beta, (and I can only assume the final
releae) takes my javascript and shrinks all the items being displayed,
and makes them appear one-on-top-of-each-other?
Link to my example page: http://www.rockwood.k12.mo.us/bowles/left.htm
If you see it all layed out nicely, and you can click on items, and you
see submenu appear, then it's working correctly. If you see only one
menu, with a bunch of items piled ontop of each other, then you're
seeing what IE 7 is doing to it.
How can I fix this?
Is there an attribute missing?
Much thanks!!
Chris | 
August 17th, 2006, 12:25 AM
| | | | re: Why IE 7 shrinks Javascript code? xx75vulcan@juno.com said the following on 8/16/2006 5:12 PM: Quote:
Can anyone tell me why the IE 7 Beta, (and I can only assume the final
releae) takes my javascript and shrinks all the items being displayed,
and makes them appear one-on-top-of-each-other?
| Opera 9 doesn't like your code either. So it's not an IE7 issue, it's an
issue with your code. Quote:
Link to my example page: http://www.rockwood.k12.mo.us/bowles/left.htm
If you see it all layed out nicely, and you can click on items, and you
see submenu appear, then it's working correctly. If you see only one
menu, with a bunch of items piled ontop of each other, then you're
seeing what IE 7 is doing to it.
>
How can I fix this?
| You can start by ditching that worthless crappy browser detection code.
After seeing that I wasn't going to wade through it all.
But, for what it's worth, the "issue" in Opera 7, Opera 8, Opera 9, IE7
and no telling where else.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ | 
August 17th, 2006, 12:45 AM
| | | | re: Why IE 7 shrinks Javascript code? xx75vulcan@juno.com wrote: Quote:
Can anyone tell me why the IE 7 Beta, (and I can only assume the final
releae) takes my javascript and shrinks all the items being displayed,
and makes them appear one-on-top-of-each-other?
>
Link to my example page: http://www.rockwood.k12.mo.us/bowles/left.htm
>
If you see it all layed out nicely, and you can click on items, and you
see submenu appear, then it's working correctly. If you see only one
menu, with a bunch of items piled ontop of each other, then you're
seeing what IE 7 is doing to it.
>
How can I fix this?
| Use a list element to display list items - if I visit your site with
JavaScript disabled, I see absolutely nothing.
There are thousands of examples of dynamic lists, most require far less
code than the one you are using, are simpler and work more reliably.
You could start here:
<URL: http://css.maxdesign.com.au/index.htm > Quote: |
Is there an attribute missing?
| A CSS forum may provide better advice about that.
--
Rob | 
August 17th, 2006, 02:15 AM
| | | | re: Why IE 7 shrinks Javascript code?
On Wednesday 16 August 2006 22:12, xx75vulcan@juno.com [xx75vulcan@juno.com]
wrote in message <1155762762.678545.260070@i3g2000cwc.googlegroups. com> Quote:
Can anyone tell me why the IE 7 Beta, (and I can only assume the final
releae) takes my javascript and shrinks all the items being displayed,
and makes them appear one-on-top-of-each-other?
>
Link to my example page: http://www.rockwood.k12.mo.us/bowles/left.htm
>
If you see it all layed out nicely, and you can click on items, and you
see submenu appear, then it's working correctly. If you see only one
menu, with a bunch of items piled ontop of each other, then you're
seeing what IE 7 is doing to it.
>
How can I fix this?
| Ditch the browser detection script.
With Opera9.01 on Linux it displays a menu list if Opera is set to identify
itself as Opera or Mozilla. If set to identify as Internet Explorer it
shows all the menus overlapping. | 
August 18th, 2006, 05:25 PM
| | | | re: Why IE 7 shrinks Javascript code?
Hmm Very interesting. I thank everyone for their responses.
I unfortunately took over this menu from a previous guy, and I'm not
that familiar with Javascript.
I will dig around and try to find out how to remove the browser
detection code, and how to get it to list items better...
Much thanks! |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,689 network members.
|