News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Character Data Declaration

Started by rluethi, December 06, 2011, 22:30:45 PM

Previous topic - Next topic

rluethi

Which file parsed the Javascript in the XHTML-header. I have tried this already on the VM2 API to find, but this is not accessible (network timeout).

wrong is:
<script type="text/javascript">
siteurl = 'http://example/' ;
vmCartText = 'wurde Ihrem Warenkorb hinzugefügt' ;
vmCartError = 'Beim Aktualisieren Ihres Warenkorbes ist ein Fehler aufgetreten.' ;
loadingImage = '/example/components/com_virtuemart/assets/images/facebox/loading.gif'  ;
closeImage = '/example/components/com_virtuemart/assets/images/facebox/closelabel.png' ;
faceboxHtml = "<div id='facebox' style='display:none;'><div class='popup'><div class='content'></div> <a href='#' class='close'><img src='/example/components/com_virtuemart/assets/images/facebox/closelabel.png' title='close' class='close_image' /></a></div></div>" ;

window.addEvent('domready', function() {

SqueezeBox.initialize({});
SqueezeBox.assign($$('a.modal'), {
parse: 'rel'
});
});

jQuery(document).ready(function () {
jQuery('.orderlistcontainer').hover(
function() { jQuery(this).find('.orderlist').stop().show()},
function() { jQuery(this).find('.orderlist').stop().hide()}
)
});

jQuery(document).ready(function() {
jQuery('#VMmenu400_1459 li.VmClose ul').hide();
jQuery('#VMmenu400_1459 li .VmArrowdown').click(
function() {

if (jQuery(this).parent().next('ul').is(':hidden')) {
jQuery('#VMmenu400_1459 ul:visible').delay(500).slideUp(500,'linear').parents('li').addClass('VmClose').removeClass('VmOpen');
jQuery(this).parent().next('ul').slideDown(500,'linear');
jQuery(this).parents('li').addClass('VmOpen').removeClass('VmClose');
}
});
});
  </script>


Not valid XHTML

correct is

<script type="text/javascript">
/* <![CDATA[ */
siteurl = 'http://example/' ;
vmCartText = 'wurde Ihrem Warenkorb hinzugefügt' ;
vmCartError = 'Beim Aktualisieren Ihres Warenkorbes ist ein Fehler aufgetreten.' ;
loadingImage = '/example/components/com_virtuemart/assets/images/facebox/loading.gif'  ;
closeImage = '/example/components/com_virtuemart/assets/images/facebox/closelabel.png' ;
faceboxHtml = "<div id='facebox' style='display:none;'><div class='popup'><div class='content'></div> <a href='#' class='close'><img src='/example/components/com_virtuemart/assets/images/facebox/closelabel.png' title='close' class='close_image' /></a></div></div>" ;

window.addEvent('domready', function() {

SqueezeBox.initialize({});
SqueezeBox.assign($$('a.modal'), {
parse: 'rel'
});
});

jQuery(document).ready(function () {
jQuery('.orderlistcontainer').hover(
function() { jQuery(this).find('.orderlist').stop().show()},
function() { jQuery(this).find('.orderlist').stop().hide()}
)
});

jQuery(document).ready(function() {
jQuery('#VMmenu400_1459 li.VmClose ul').hide();
jQuery('#VMmenu400_1459 li .VmArrowdown').click(
function() {

if (jQuery(this).parent().next('ul').is(':hidden')) {
jQuery('#VMmenu400_1459 ul:visible').delay(500).slideUp(500,'linear').parents('li').addClass('VmClose').removeClass('VmOpen');
jQuery(this).parent().next('ul').slideDown(500,'linear');
jQuery(this).parents('li').addClass('VmOpen').removeClass('VmClose');
}
});
});
/* ]]> */
  </script>

This is well-formed XHTML code!!
Do I need to scan 1000 files, to the JDocument method addScriptDeclaration ?

PRO

This should be fixed in the core soon.

Thanks

Cleanshooter

Please provide more information as to where you experienced this issue.  What page you were on?  Was it on the FE or BE?  These thing swill help me find how to fix the problem.  It more than likely is not in over a 1000 pages probably just a few.
- Cleanshooter

PRO

This is every page when you validate. It's the facebox js declaration script.


rluethi

Quote from: BanquetTables.pro on December 09, 2011, 16:02:36 PM
This should be fixed in the core soon.

Thanks
Whenever soon may be? In the final version is this problem not solved. There is no one who knows more about that ? Or must i create an own API ?

rluethi

Quote from: BanquetTables.pro on December 10, 2011, 02:14:57 AM
This is every page when you validate. It's the facebox js declaration script.
Where can I find this  Facebox js declaration script ? A search engine optimization does not make sense if this error is not corrected.
Or is there a forum anywhere where can be found professionals with knowledge of Virtuemart.

PRO

Quote from: rluethi on December 26, 2011, 14:17:37 PM
A search engine optimization does not make sense if this error is not corrected.

SEO has nothing to do with validation.

Only time validation can cause SEO errors is when the bot cannot read the page

rluethi

#7
Quote from: BanquetTables.pro on December 26, 2011, 14:35:16 PM

SEO has nothing to do with validation.

Only time validation can cause SEO errors is when the bot cannot read the page
Unqualified Statement!!!
The Div in the header removes the content  important characters for relevant content (for Indexing in Search Engins). Is Virtuemart 2.0.0 a Alpha Version ?
Are any professionals here?

jenkinhill

rluethi if you wish to use this forum I suggest you remain polite to all members. Any form of abuse will not be tolerated - especially during this long holiday season.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Studio 42

#9
Quote from: rluethi on December 26, 2011, 16:11:41 PM
Quote from: BanquetTables.pro on December 26, 2011, 14:35:16 PM

SEO has nothing to do with validation.

Only time validation can cause SEO errors is when the bot cannot read the page
Unqualified Statement!!!
The Div in the header removes the content  important characters for relevant content (for Indexing in Search Engins). Is Virtuemart 2.0.0 a Alpha Version ?
Are any professionals here?


I hope some PROFESSIONAL AS YOU give some help and stop to cry.
I think Pro user don't cry but give the right answer or patch.
I know what you mean, but this is a javascript declaration and why this is not xhtml valid ? Because is inside a javascript !

A poor beginner ....

rluethi

Quote from: jenkinhill on December 26, 2011, 17:09:45 PM
rluethi if you wish to use this forum I suggest you remain polite to all members. Any form of abuse will not be tolerated - especially during this long holiday season.
Is it rude if I mark an unqualified statement as such?

Studio 42

You know joomla better as me i think ?
then you know that joomla render the
<script type="text/javascript">
</script>

Plz , write to the right team and say virtuemart 2.0 use DIV in the javascript script but joomla is not xhtml valid because you don't add CDATA or HTML comment at adding the head javascript.
Now you are right!

We cannot provide a joomla code in virtuemart or it's a code hack