JavaScript Valid Problem JS

resoucer

Gesperrt
ID: 77379
L
20 April 2006
2.846
109
Hallo undzwar sagt mir das nette Markup Validations-Tool folgende Fehlermeldung

PHP:
cannot generate system identifier for general entity "t"

				data: "func=gibAnzahlProdukteImWarenkorb&t=1",


An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.

nur weiß ich nicht wie ich das ändern soll??

Die URL ist in JS damit ich per AJAX was auslesen kann....

PHP:
function navigateAway(e){

	var anzahl = 0;
	   $.ajax(
		   {
		   		type: "POST",
		   		async: false,
		   		url: "ajax_actions.php?",
				data: "func=gibAnzahlProdukteImWarenkorb&t=1",
				
				success: function(data){
		            if(data.length >0) {
		             
					 		anzahl = data;
	    	   
		            }
		        }
		   });

hat jemand eine idee wie ich das fixxen kann

PS: Sorry das ich hier poste, werde es nie wieder tun
 
Zuletzt bearbeitet:
Hi,
tausche mal diese Zeile:
Code:
data: "func=gibAnzahlProdukteImWarenkorb&t=1",
durch folgendes aus:
Code:
data: {func:gibAnzahlProdukteImWarenkorb,t:1},