From: Mike S. <ms...@us...> - 2006-11-13 02:11:58
|
Update of /cvsroot/wonder/Wonder/Ajax/Ajax/Sources/er/ajax In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32199/Sources/er/ajax Modified Files: AjaxUtils.java Log Message: fix for freaking stupid IE6 bug that doesn't eval scripts inside of comments Index: AjaxUtils.java =================================================================== RCS file: /cvsroot/wonder/Wonder/Ajax/Ajax/Sources/er/ajax/AjaxUtils.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** AjaxUtils.java 12 Nov 2006 21:40:52 -0000 1.17 --- AjaxUtils.java 13 Nov 2006 02:11:54 -0000 1.18 *************** *** 188,192 **** */ public static void addScriptCodeInHead(WOResponse response, String script) { ! String js = "<script type=\"text/javascript\"><!--\n" + script + "\n//--></script>"; AjaxUtils.insertInResponseBeforeTag(response, js, AjaxUtils.htmlCloseHead()); } --- 188,192 ---- */ public static void addScriptCodeInHead(WOResponse response, String script) { ! String js = "<script type=\"text/javascript\">\n" + script + "\n</script>"; AjaxUtils.insertInResponseBeforeTag(response, js, AjaxUtils.htmlCloseHead()); } *************** *** 217,225 **** public static void appendScriptHeader(WOResponse response) { ! response.appendContentString("<script type = \"text/javascript\" language = \"javascript\"><!--\n"); } public static void appendScriptFooter(WOResponse response) { ! response.appendContentString("//--></script>"); } --- 217,225 ---- public static void appendScriptHeader(WOResponse response) { ! response.appendContentString("<script type = \"text/javascript\" language = \"javascript\">\n"); } public static void appendScriptFooter(WOResponse response) { ! response.appendContentString("\n</script>"); } |