• eCommerce
  • Social and Community Suite
  • Content Management
  • RSS Extensions
  • VirtueMart Extensions
Follow us on Twitter   Join The Factory on the New Digg  
(0) | Login | Register | Lost Password?
Username: Password:  
Home
Our Products
Joomla 1.7.x  (23) & J!1.6.x
Joomla 1.5.x (28)
Joomla 1.0.x (17)
Factory Club Extensions (7)
Drupal, Elxis, MODx (6)
Windows Gadgets for J! (11)
Free Templates (4)
All Products (92)
Documentation
Tweets
Forum
Contact Us
Terms & Conditions
How to Buy Guide
Customers FAQ's
Updates & Upgrades
About Us
The Factory Demo Server for Joomla Extensions
Money Back Guarantee
Payment Methods for Joomla Extensions
Follow us on Facebook

Latest Tweets

  • Join us at the Joomladay UK!
  • The Factory Extensions Joomla Compatibility Chart
  • Love Factory 2.4 for Joomla 1.7
  • Love Factory - Memberships [VIDEO]
  • Love Factory - Custom Fields Integration [VIDEO]
  • Love Factory - Google Maps Integration [VIDEO]
  • Love Factory - Administrator Guide [VIDEO]
  • Love Factory - Memberships
  • Collection Factory for Joomla 1.6 with CB support
  • Reverse Auction Factory 1.5.9
 
   Home   Help Search Login Register  
The Factory > Forum > Miscellaneous Extensions & Modules for Joomla. > Lava Factory Menu > How to make Lava Factory menu W3C valid?
Pages: [1]
« previous next »
  Print  
Author Topic: How to make Lava Factory menu W3C valid?  (Read 5776 times)
Sulpher
Newbie
*
Posts: 10


View Profile WWW
How to make Lava Factory menu W3C valid?
« on: May 11, 2008, 12:43:19 pm »

First of all, I'd like to thank you for great Joomla module called
Lava Factory menu! That's exactly what I was looking for and now
everything works perfectly with my site!

But one moment... I'd like to ask how to make your module W3C valid?

There are two moments... Here is the first one:

              document.writeln('<scr'+'ipt

Validator doesn't like <scr'+'ipt consctruction.
The full code is below:
Quote
             
<script type="text/javascript">
            if(typeof window.jQuery == 'undefined') {
              document.writeln('<scr'+'ipt src="<?php echo $mosConfig_live_site;
?>/modules/lavalamp_menu/jquery.js" type="text/javascript"></scr'+'ipt>');
            }
            try {
                  document.execCommand("BackgroundImageCache", false, true);
            } catch(err) {}
            </script>

Is it be possible to use something similar, but good for W3C?

And the second moment is error with Document Type:
Quote
<body onLoad="setupZoom();">

Joomla template use next: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Is it be possible to solve these two problems? Thanx in advance!
Logged

cre:active design lab
Andy - The Factory
Administrator
Hero Member
*****
Posts: 1639



View Profile
Re: How to make Lava Factory menu W3C valid?
« Reply #1 on: May 12, 2008, 02:30:36 pm »

The problem is: we have to ensure that Jquery is loaded just once. This is a neat solution for it. If you do not have any other jquery loading on your site replace the quoted text with
Quote
<script src="<?php echo $mosConfig_live_site;
?>/modules/lavalamp_menu/jquery.js" type="text/javascript"></script>
          <script type="text/javascript">
            try {
                  document.execCommand("BackgroundImageCache", false, true);
            } catch(err) {}
            </script>

the other problem (Document type) seems to be a template issue in your site.

anyway , why are you so keen on being 100% WC3C valid?
Logged
Sulpher
Newbie
*
Posts: 10


View Profile WWW
Re: How to make Lava Factory menu W3C valid?
« Reply #2 on: May 12, 2008, 06:44:35 pm »

Thanks a lot, Andrei!! Now it works perfectly! XHTML is valid. It's almost what I have excepted. Smiley Just one touch: please help with CSS validation as well.
There are next errors:
Quote
Sorry! We found the following errors (4)
URI : http://yugtoys.ru/modules/lavalamp_menu/lavalamp.css

148     .lavaLampNoImageV li.marker      Property _height doesn't exist :  33px
157    .lavaLampBottomStyleV li.marker    Property _height doesn't exist : 33px

132      .lavaLampNoImage      Value Error : height  only 0 can be a length. You must put an unit after your number :  30
133    .lavaLampNoImage    Property _height doesn't exist : 60px


Here are those lines that used:
Quote
.lavaLampNoImageV li.marker { top: 0; z-index: 1; width: 99%; position: absolute; height: 23px;_height: 33px; padding: 3px 0; background-color: #e6e8ea;border: 1px solid #000;  }
.lavaLampBottomStyleV li.marker { top: 0; z-index: 1; width: 100%; position: absolute; height: 23px;_height: 33px;padding: 3px 0; background: transparent;border-bottom: 5px solid #FF8400; }

/*   HORIZONTAL NO IMAGE */
.lavaLampNoImage {
    position: relative;
    height: 50px;
    width: 421px;
    padding-top:15px;
   padding-left:35px;
    margin: -26px 0;
    overflow: hidden;
}

Would be nice if you would fix them too. Smiley

Quote
anyway , why are you so keen on being 100% WC3C valid?
Well, I think, it's a good one to accommodate the project to W3C if it is small. I think, it's suitable for such kind of small projects if it don't break functionality.
« Last Edit: May 12, 2008, 06:57:58 pm by Sulpher » Logged

cre:active design lab
Andy - The Factory
Administrator
Hero Member
*****
Posts: 1639



View Profile
Re: How to make Lava Factory menu W3C valid?
« Reply #3 on: May 12, 2008, 07:31:23 pm »

The problem with CSS is that if you remove the hacks we added in the css then the menu wont work fine under IE....
Logged
Sulpher
Newbie
*
Posts: 10


View Profile WWW
Re: How to make Lava Factory menu W3C valid?
« Reply #4 on: May 12, 2008, 08:59:23 pm »

Thanks for reply. Oh, damn IE....

Btw, perhaps there is another topic, but.... Andrei, have you checked how script works in Opera 9.01 or higher? There are a some braking with moving (even with native script, not fixed by you for W3C compliance ). Other browsers have no such unpleasant one. Sad

I may open new topic, btw. Wink
Logged

cre:active design lab
Andy - The Factory
Administrator
Hero Member
*****
Posts: 1639



View Profile
Re: How to make Lava Factory menu W3C valid?
« Reply #5 on: May 13, 2008, 11:37:32 am »

No, we did not test opera. and neither safari
Logged
Sulpher
Newbie
*
Posts: 10


View Profile WWW
Re: How to make Lava Factory menu W3C valid?
« Reply #6 on: May 13, 2008, 06:13:07 pm »

The module works perfectly in Safari 3, but not in Opera...
Actually, in Russia and CIS states, it's very popular browser.

Hope you'll find some time in further to check out how it works there and possible  make a fix.

Best regards!
Logged

cre:active design lab
Erik
Administrator
Hero Member
*****
Posts: 3121



View Profile
Re: How to make Lava Factory menu W3C valid?
« Reply #7 on: May 14, 2008, 06:57:19 pm »

For the moment we are sticking to provide compatibilty with IE 7 and FireFox.
Logged
Pages: [1]
  Print  
« previous next »
 
Jump to:  

Loading...
Joomla Extension - RSS Factory Manager  Joomla Extension - EBook Factory  Joomla Extension - Briefcase Factory  Joomla Extension - Auctions Factory  Joomla Module - RSS Contextual  Joomla Module - Exchange Factory (Europe / EURO)  Joomla Module - Exchange Factory (Romania/ RON)  Joomla Custom Extensions Development   Free Joomla Extensions  Joomla Extension - RSS Factory Pro (Enhanced Version)  Joomla Virtuemart Payment Plugin - Gecad (EPayment.ro)  Joomla Module - Mosimage / Image Module  Joomla Extension - Reverse Auction Factory (Lowest Bidder Auctions)  Joomla Extension - Article Factory Manager  Joomla Module - Lavalamp Menu  Joomla Module - RSS Image Extractor  Joomla Module - Exchange Factory (Europe / EURO) for Joomla 1.0.15  Joomla Module - Exchange Factory (Romania / RON) for Joomla 1.0.15  Joomla Module - Top Movies (IMDB)   Joomla Module - EBay Latest Auctions  Auction Factory Standalone PHP script