Quantcast
Channel: Terra Informatica Forums - Sciter
Viewing all 617 articles
Browse latest View live

Http request and response can't process chinese (4 replies)

$
0
0
Hi,andrew:
I get a test about view.request().
If POST data to server ,which has chinese, the http server can't read this value correct.
And If GET data from http server, which also has chinese, sciter can't show the value correct.
My Code:
function complete(data, status){
          var out = Stream.openString();
           //data.encoding ="utf-8"; //this is also not correct!!!
            out << "Response....\r\n" << "Status:" << status << "\r\nData:" << data.toString();
            $(plaintext#outputString).value = out.toString();
            out.close();
         }

....
params.complete = complete;
view.reqeust(params);
How to get the correct value? thanks!

PS:GET and POST data by IE or other browser is work correct.

checked state of a button. (2 replies)

$
0
0
Hi,

We can give a checkbox and many other form controls a "checked" state.

This checked state gives true state for the control.

How could I give the control an unchecked state or a false state value?

Thanks.

http request can't get server response sometimes (no replies)

$
0
0
Hi,Andrew:
I have a test of view.request.
First i send a GET request: url (http://127.0.0.1:10000/users?id=2), the response data is :{id:2, name:"sean", age:20};
....changed the server data to {id:2, name:"dean", age:30}
Second i send a GET request: url (http://127.0.0.1:10000/users?id=2), the response data is also :{id:2, name:"sean", age:20};
If this url request has cached? if it is, how to clear cache and get the correct response!

Frameset issue. (1 reply)

$
0
0
Hi,

Recently I have been working on a small task.

I have 3 html pages/frames. I am traversing these pages by loading frames on anchor tags.

I have a select box (combo box/ list box/ dropdown box) on the last page i.e. the third page.

This is one of my trials to create the select box:

<select id="supercombo" type="select-dropdown" name="selList" >
	<caption>choose</caption>
	<button role="dropdown"></button>
	<popup>
		<option>one</option>
		<option>two</option>
		<option>three</option>
		<option>four</option>
		<option>five</option>
		<option>six</option>
	</popup>
</select>


Now when I click on this select box the whole Sciter application crashes and is shut down.

What could be the issue? Could you please help.

Thanks in advance.

with the full file path (2 replies)

$
0
0
TIS:
   var $container = self.select("#container");
   $container.append("<img src=\"c:\\11.jpg\">");

I create an img element with full image file path , but the program will be crashed when the process is exiting.
I need to create img element to show user's picture, what's the right code ?

Simple test, segfault in sciter32.dll (3 replies)

$
0
0
Doing a simple test, creating a Sciter child window. When calling SciterLoadHtml(), a null pointer exception occurs in sciter32.dll:

Downloaded the SDK yesterday (08/12/15), sciter32.dll is dated 2015/08/03.

To duplicate:

// Construct the window
HMODULE hSciter = LoadLibrary( TEXT(SCITER_DLL_NAME) );

hwnd = ::CreateWindow( ::SciterClassName(), // window class
TEXT(""), // window title
WS_CHILD | WS_TABSTOP | WS_CLIPCHILDREN, // style flags
0, // X position
0, // Y position
100, // initial width
100, // initial height
hwndParent, // parent
(HMENU) 0, // menu/child identifier
hSciter, // application instance
NULL ) ; // pointer create parameters

int e = GetLastError(); // hwnd is a valid handle, and GetLastError() returns 0.

std::string html = "<body style=\"background:blue\">Test123</body>";

// ::SciterSetCallback(hwnd,&SciterCallback,NULL); // Thought maybe this would be required, no change either way.

::SciterLoadHtml(hwnd, (LPCBYTE)html.c_str(), html.length(),L""); /// CRASH IN THIS CALL

The crash is:
Unhandled exception at 0x521C67A4 (sciter32.dll) in testsciter.exe: 0xC0000005: Access violation reading location 0x00000000.

Andrew, you had mentioned that the PDB could be avialable in the SDK previously. I didn't see it in there. If you could provide it, I'd be happy to debug more on my side.

Any suggestions?

Unsupported encoding (5 replies)

$
0
0
I have a variable of type Bytes, containing an encoded UTF-16 string. If I do:
data.toString("UTF-16");

I got an 'Unsupported encoding' exception (and the same for 'UTF-16LE').
But according to the documentation toString shoud support all encondings from IANA charset list (http://www.iana.org/assignments/character-sets).

Viewport relative sizes? (3 replies)

$
0
0
CSS3 added the ability to have viewport relative sizes. For example, fonts could scale in relation to window size.

Is there a mechanism to do similar behavior in Sciter? If not, please add it. :)

Specifically, I need text to be scaled in relation to the overall window (or parent panel, etc) size. Our other window fonts are all scaled using this same idea (fixed pitch layout grid).

Thanks!

a bug about new inspector.exe (2 replies)

$
0
0
Hi, Andrew:
1.New inspector.exe can not debug HTML file which has Chinese characters in it's path.
2.Open sciter.exe and select a html file, then open and establish connection with inspector.exe, now inspector.exe is OK, then close and reopen inspector.exe, re establishing connection with inspector.exe, at this time, except DOM, other information is not

AV in Sciter 3.3.0.3 (1 reply)

$
0
0
Hi Andrew,

I recently updated Sciter and have problem resizing it's window:

DXGI ERROR: IDXGISwapChain::ResizeBuffers: Swapchain cannot be resized unless all outstanding buffer references have been released. [ MISCELLANEOUS ERROR #19: ]
First-chance exception at 0x0BBDC4D1 (sciter32.dll): 0xC0000005: Access violation reading location 0x00000000.

Sciter is loaded at:
sciter32.dll	 0BBD0000-0C010000

Martin

3.3.0.3 missing caret (4 replies)

$
0
0
plz compare this code between 3.3.0.2 and 3.3.0.3
<html>
<head>

<style>
	widget
	{
		background: none;
		border: solid 1px;
	}
</style>

</head>

<body>
	<widget type="text" />
</body>
</html>
3.3.0.3 does not display the caret when focus is on the widget

Sir I also noticed major slow down is some situations in Omni. Is all this related to Direct2D 1.1 update?

how display camera raw data (1 reply)

$
0
0
i have a usb camera with RGB raw 24BIT data
how can i display int <frame> 、<video> or other label .
thx

resizable View.TOOL_WINDOW (1 reply)

$
0
0
view.window{
				type: View.TOOL_WINDOW,
				url: self.url("inc_inspector/debugger.html"),
				state: View.WINDOW_SHOWN,
				width: 500,
				height: 500,
				alignment: -5
			};
How can I make so the created TOOL_WINDOW HWND can be resized by user, that is, the window has the WS_SIZEBOX style..

A problem of (6 replies)

$
0
0
Hi, Andrew,

Here is my code:
<html>
 <head>
  <style type="text\css">
   select:focus {
     border: 1px solid red;
     background-color: red;
   }
  </style>
 </head>
 <body>
      <select|select-dropdown editable size=5 >
       <option>option1</option>
       <option>option2</option>
       <option>option3</option>
       <option>option4</option>
       <option>option5</option>
       <option>option6</option>
       <option>option7</option>
       <option>option8</option>
       <option>option9</option>
     </select>
 </body>
</html>
"select:focus" does not work when get the input focus.

border-radius does not work with foreground-image (2 replies)

$
0
0
Hi,

here is my code :
<html>
 <head>
  <style type="text\css">
    div {
      border: 1px solid red;
      width: 100px;
      height: 100px;
      
      foreground-image: url(scitertest/images/h-progress-fill.png);
      foreground-repeat: stretch;    
      foreground-clip: content-box; 
      
      border-radius: 30px;  
      overflow: hidden;  
    }
  </style>
 </head>
 <body style="">
   <div></div> 
 </body>
</html>

and here is result :

How to change scorllbar's width or height? (3 replies)

$
0
0
Hi, Andrew,
How to change scorllbar's width or height?

about ellipsis of TD (no replies)

$
0
0
<html>
<head>
<style>
td{
width:35px;
white-space:nowrap;
overflow-x:hidden;
text-overflow:ellipsis;
flow:horizontal;
}
</style>
</head>
<body>
<table>
<tr><td>hero come here</td></tr>
</table>
</body>
</html>

element td can`t display as "xxx..."
if i remove "flow:horizontal;", td will show text as expected.
i need set the horizontal style to my TD element.

bug? or my something error?

Page state. (no replies)

$
0
0
Hi,

If I have a web-page with several form controls like checkbox, radio buttons, etc. ,then is there any way to check the entire page for it's status.

I mean to say even if a single control changes it's value then the page state would be recorded.

Will "Event.HISTORY_STATE_CHANGED" prove helpful?

Please let me know.

Thanks.

A problem of menu button (no replies)

$
0
0
Hi, Andrew,
here is my code:
<html>
 <body>
  <button type="menu" style="behavior:popup-menu;width:40px;">menu
  <menu .popup>
    <li>option1</li>
    <li>option2</li>
    <li>option3</li>
  </menu>
</button>
 </body>
</html>
and click button, you will see that the location of button's caption changed.

Debuger (3 replies)

$
0
0
Hi,

Do we have any debuger for Sciter apart from the inspector window.

Regards.
Viewing all 617 articles
Browse latest View live