[webkit-help] Javascript problem when running on WebKit+Cairo+Win32
Rick Xu
rick.zhi.xu at gmail.com
Tue May 25 12:13:35 PDT 2010
Sorry to bother,
I have built the WebKit+Cairo with "--release" on WinXP 32-bit. The
build was successful with no error or warning.
Then I opened the generated WinLauncher.exe. It gives me a neat web browser.
But when I try to open a webpage with javascript using the generated
browser. I found several problems:
1. When I right click on a URL address on the webpage and select "Open
Link in New Window", nothing happened. It should open a new window and
display the URL.
2. It seems: " alert("....") " in javascript is not supported. A
simple line as " alert("say hi"); " will not pop up any alert window;
3. The SQLite database support. The line " db =
openDatabase("NoteTest", "1.0", "HTML5 Database API example", 200000);
" will get no response;
I have attached a simple html file code as above. It runs well on
Safari, but not on Webkit/cairo. It's weird....
Thank you very much in advance!
-Rick
--------------the above is the source code of a html file----------
<!doctype html>
<HTML>
<HEAD>
<TITLE>Test Input</TITLE>
<SCRIPT LANGUAGE="JavaScript">
var db = null;
function createDB (form){
alert ("job is start!");
form.alertbox.value = "start create DB";
db = openDatabase("NoteTest", "1.0", "HTML5 Database API example", 200000);
alert ("job is done!");
form.alertbox.value = "end create DB";
}
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="myform" ACTION="" METHOD="GET">Testing <BR>
What do want to print out:
<INPUT TYPE="text" NAME="alertbox" VALUE=""><P>
<INPUT TYPE="button" NAME="createDBButton" Value="Create DB"
onClick="createDB(this.form)">
</FORM>
</BODY>
</HTML>
More information about the webkit-help
mailing list