[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libraries/ -> js_escape.lib.php (sommaire)

Javascript escaping functions.

Author: Michal ÄŒihaÅ™ <michal@cihar.com>
Poids: 64 lignes (2 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 fonctions

  PMA_jsFormat()
  PMA_escapeJsString()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

PMA_jsFormat($a_string = '', $add_backquotes = true)   X-Ref
Format a string so it can be a string inside JavaScript code inside an
eventhandler (onclick, onchange, on..., ).
This function is used to displays a javascript confirmation box for
"DROP/DELETE/ALTER" queries.

param: string   $a_string          the string to format
param: boolean  $add_backquotes    whether to add backquotes to the string or not
return: string   the formatted string

PMA_escapeJsString($string)   X-Ref
escapes a string to be inserted as string a JavaScript block
enclosed by <![CDATA[ ... ]]>
this requires only to escape ' with \' and end of script block

param: string  $string the string to be escaped
return: string  the escaped string



Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics