Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - The problem of javascript implement in browser

The problem of javascript implement in browser

Put your problem here if it does not fit any of the other categories.

The problem of javascript implement in browser

Postby cs_david » Wed Nov 26, 2008 11:02 am

Hi ,I wrote a program about browser implement javascript
The code is follow:
WebView w = (WebView) findViewById(R.id.helloWebView);
w.getSettings().setJavaScriptEnabled(true);
String strHtml;
strHtml = "<HTML><HEAD><TITLE>Model</TITLE></HEAD><BODY><form name=form1 action=''/>Result:<input name=showcont value='Result'/><script language=JavaScript type=text/JavaScript>" + "\r\n" + "<!--" + "\r\n" + "document.form1.showcont.value='Result is pass';" + "\r\n" + "-->" + "\r\n" + "</script></form></BODY></HTML>";

w.loadData(strHtml, "text/html","utf-8" );

I just want implement a piece of javascript code in html page, the Html has shown well but the javascript donot work ,why? please help me ,thanks a lot!
cs_david
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Nov 26, 2008 10:49 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 7 guests