Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Walidacja W3C, problem z ampersandem
DJ1910
post
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 2.08.2010

Ostrzeżenie: (0%)
-----


Witam.

Dany kawałek kodu strony
Kod
                    <%
                    String skin = ParamController.getParamValue("r,main,skin", request);
                    %>
                   <ajax:htmlContent  baseUrl="<%="/htmlresp?app=Pekao2&pname=HomePageTabs&time="+new Date().getTime()+"&r,main,folderId="+folderId+"&r,main,tab="+Long.toString(currentSection)+"&r,main,skin="+skin%>" source="<%="hpTab" + currentSection %>" target="hpBody" parameters="" preFunction="<%="showTabAsSelected"+Long.toString(currentSection)%>" postFunction="processTabs"/>


powoduje taki oto bląd W3C:

# Error Line 975, Column 42: general entity "time" not defined and no default entity
…tmlresp?app=Pekao2&pname=HomePageTabs&time=1297932328529&r,main,folderId=74&r,…
This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.


Wiem, że chodzi o ampersandy. Użycie &amp; powoduje brak błędu, ale wysypanie się działania strony. To samo używając %26 zamiast &.

Jakieś pomysly, jak to naprawić ?

pozdro

Ten post edytował DJ1910 17.02.2011, 10:24:22
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.09.2025 - 16:36