Zen Follower
- Join Date:
- Jun 2008
- Location:
- USA
- Posts:
- 188
- Plugin Contributions:
- 0
[Support Thread] IE only JavaScripts and Stylesheets Addon
If you have any questions about this add-on ask them here and I'll try to help out.
Started by meshach on 16 Jul 2009, 11:39 PM · Views: 5,472
Zen Follower
If you have any questions about this add-on ask them here and I'll try to help out.
Deceased
Meshach:
If you have any questions about this add-on ask them here and I'll try to help out.
What is it?
Where is it?
What does it do or not do?
NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Zen Follower
clydejones:
What is it?
Where is it?
What does it do or not do?
Oops!
I didn't realize the add-on would take days to approve on average so I posted a support thread for it before submitting it. (I don't know what I was thinking by not giving a description). :wacko:
The add-on (which hasn't been approved yet) allows you to auto-load specific JavaScripts or Stylesheets for IE.
Sorry for the inconvenience. :oops:
*
If a moderator would remove the topic I would appreciate it.*
Sensei
How is it different from this existing addon? http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=493
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Zen Follower
DrByte:
How is it different from this existing addon? http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=493
I modified Kuroi's CSS one to include JavaScript files also.
I would have just released it as an update to his CSS one but I don't know if you're allowed to do that?
Thanks for your patience and I'm sorry for the confusion. :blush:
Totally Zenned
As long as it works and you're willing to support it, extending and improving existing code is what open source is all about.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Sensei
The two contribs have been combined.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Zen Follower
Ok, thanks for the explanation/help, Kuroi and DrByte.
I will be reading up on all the add-on creation information before making/extending any more add-ons.
Thanks!
New Zenner
This helped out HUGE!...thanks for contributing your work!
Black Belt
I examined a version of this mod while helping someone, and noticed that it loads all IE-specific stylesheets before page/cat/etc-specific stylesheets.
This means that it is not possible to add IE-only styling that overrides page-specific styling.
I would like opinions on whether there would be any downside to moving the IE-only stylesheet loading to after the page-specific stylesheets.
It would be possible to do IE-only page-specific stylesheets, but that would add a large chunk of code to the file, about tripling the page-specific section, plus requiring filtering for all those potential files in the first IE-only section (another doubling or so).
An alternative to moving the IE stylesheet loading would be to put page-specific styling rules in the IE-only file(s). That would work fine in many cases, but would require knowledgeable action by every user.
Totally Zenned
In principle I'd suggest moving the IE stylesheet loading later and not proliferating them for individual pages.
However, I haven't actually used an IE specific stylesheet for about two years and wondering what the use case was this? Did the html markup validate?
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Black Belt
The person turned out to be trying to fix an HTML error that showed up on one page in IE with an IE-only stylesheet. I pointed him to asking in the forum for help fixing the root problem; however, this loading order situation remains valid.
On considering all that would be required for page-specific IE-only stylesheets, I concluded that it was impractical.
Unless anyone else comes up with a net downside case for it, I will submit an update to this mod with the IE-only stylesheet loading moved.
Totally Zenned
how do you get ie to ignor js files that apply to other browsers with this mod? I also cannot get ie even with this mod to keep from applying browser formattng to my input buttons. I duplicated the css styling from stylesheet_css_buttons.css that applies perfectly in opera, safari, firefox...but is all over the place in ie. IE continues to pull styles and pick and choose from the ie sheet. I gave my input tag in functions/html_output a class and it works in all those other browsers, but just WILL NOT in ie.
I wouldn't care, but most of our customers come in through ie.
any help appreciated. i'd be happy to post a link.
BTW thanks for this mod.
Totally Zenned
i think i'm on to something...setting global variables at the beginning of the sheet:
/*global variables*/
.cssButton, .cssButtonHover, .submitBtn, .submitBtn:visited, .submitBtn:hover, .submitBtn:active {
margin:0px;
padding:0px;
background:none;
background-image:none;
width :0px;
border:none;
font-size: 0px;
}
New Zenner
I have been trying to create css files for specific products, and while this works fine thanks to a great mod btw :clap:
I have now run into the problems as GJH describes in his earlier post.
I tried just putting the IE alphabetical statements below the per page statements thinking that would take care of it but when i try to create page specific sheets for the devils browser (IE) i have the issue that ie_p_416.css is loaded prior to ie_stylesheet.css
thus undoing any work that i am trying to do by using page specific stylesheets.
is it possible to use the page specific code (php) and just cram it into the IF IE statement?
thanks for any help anyone can give me
Neil Barby
Black Belt
The page-specific IE code (as mentioned above) about triples the coding required, if done thoroughly and correctly. For most pages, you can apply page-specific rules in the main stylesheet (or IE stylesheet) using the body id for the page at the beginning of the selector (like #indexHomeBody .whatever {} or #shoppingcartBody .whatever {}). This can't distinguish between category listing and product listing pages, though. If you need finer control, you can use Smart Backgrounds to get a category, subcategory, product, ez-page, etc.-specific body class that can be used in the same way.
New Zenner
Meshach:
I modified Kuroi's CSS one to include JavaScript files also.
I would have just released it as an update to his CSS one but I don't know if you're allowed to do that?
Thanks for your patience and I'm sorry for the confusion. :blush:
I still do not understand the purpose of this contribution. The documentation is rather sketchy. Where does one find iejscript.js I do not see this file in Zen Cart v1.3.9h.
What is the exact usage of iejscript.js if it exists?
Will this .js prevent the display of "error on page" or Done but with Errors in Internet Explorer"?
Tell staff why this post should be reviewed.