[ Index ] |
|
Code source de phpMyAdmin 2.10.3 |
[Code source] [Imprimer] [Statistiques]
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 |
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 |
![]() |