I try this code using my Kubuntu 14.04 but see the result:
Code: Select all
html.s = "<!doctype html><html lang=\qen\q><head><meta http-equiv=\qcontent-type\q content=\qtext/html; charset=UTF-8\q></head>"+
"<body>" +
"<form action=\qhttps://www.google.com\q method=\qpost\q><br>" +
"<input type=\qtest\q name=\qtxtName\q value=\qenter Name\q><br>" +
"<input type=\qsubmit\q value=\qSubmit\q>" +
"</form>" +
"</body>" +
"</html>"
html.s = ReplaceString(html.s, "\q", Chr(34))
Debug html.s
path.s = GetTemporaryDirectory() + "test.html"
CreateFile(0, path.s)
WriteString(0, html.s)
CloseFile(0)
If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10, 10, 580, 280, "file://" + path.s)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
The form is unusable because of the black background of the input elements. If I open the same HTML in any web-browser it displays correctly.
I use PB 5.24 LTS in x64 mode on Kubuntu 14.04.
What is wrong?
Kukulkan

