[ nezki @ 06.11.2008. 11:42 ] @
Imam puno problema sa jednom glupavom sitnicom. Evo da cu primer jedne php stranice u kojoj cete videti u cemu je problem. Kada se klikne na link greska on mi izbaci Error: unterminated string literal. Kako da se resim ovoga? Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <meta name="generator" content="PSPad editor, www.pspad.com"> <script language="JavaScript"> function onerror(msg, URL, lineNum) { var errWind = window.open("","errors","HEIGHT=270,WIDTH=400") var wintxt = "<HTML><BODY BGCOLOR=RED>" wintxt += "<B>An error has occurred on this page. Please report it to Tech Support.</B>" wintxt += "<FORM METHOD=POST ACTION=mailTo:[email protected]>" wintxt += "<TEXTAREA COLS=45 ROWS=8 WRAP=VIRTUAL>" wintxt += "Error: " + msg + "\n" wintxt += "URL: " + URL + "\n" wintxt += "Line: " + lineNum + "\n" wintxt += "Client: " + navigator.userAgent + "\n" wintxt += "-----------------------------------------\n" wintxt += "Please describe what you were doing when the error occurred:" wintxt += "</TEXTAREA><P>" wintxt += "<INPUT TYPE=SUBMIT VALUE='Send Error Report'>" wintxt += "<INPUT TYPE=button VALUE='Close' onClick='self.close()'>" wintxt += "</FORM></BODY></HTML>" errWind.document.write(wintxt) errWind.document.close() return true } </script> <title></title> </head> <body> <?php $tekst="errt\nĆŽĆŽĐŠĐš676666361223232132n"; ?> <a href='#' onClick="window.alert('<?php echo $tekst;?>')">greska</a> </body> |