php - Javascript parameter not well executed when contain space or specific character -
The problem occurs when the link is clicked when I click on the third parameter if space or / and characters like ê , É, ... ...
and lt; A href = "javascript: arretSuivrePortefeuille ('13206', 'Suivre', 'Arger de Swivor');" & gt; Suivre & lt; / A & gt;
I get from firebug:
arretSuivrePortefeuille JavaScript has not been defined: arretSuivrePortefeuille ('13206', 'Suivre', 'Arr% C3% Aetter% 20de% 20suivre'); ()
Any ideas?
MMM, remove the href
attribute as the first solution and the instructions Move it to onclick
, anyway, this is the right way. Do not forget to remove onclick
and add return
if necessary. There may be some URL encoding problem in href
.
If it does not work:
- What encoding do you use in the document?
- What are the special characters?
Comments
Post a Comment