All Answers

0 votes

private void Page1_Load(object sender, EventArgs e)
{
this.dataGridView1.RowCount = 10;
this.dataGridView1.Rows[0][0].Style.BackgroundImageSource = “Images/Wisej-256×256.png”;
this.dataGridView1.Rows[0][1].Style.BackgroundImage = new Bitmap(Application.MapPath(“Images\\Wisej-256×256.png”));
}

See attached. In general I wouldn’t use new Bitmap(), use the ImageSource property instead and deploy the /Images. This way there is no memory usage on the server to load the image and it’s also cached on the browser.

  • Luca answered Aug 24, 2021 - 3:28 pm
0 votes

Can you please add a function ‘getPicture’  to wisej.web.ext.Camera.js

The current ‘getImage’ is limited by video stream at 640 x 480 ( I require higher capture resolution)

/**
* Returns the current frame from the camera video stream at 640 x 480 in base64.
*/
getImage: function () {

var ctx = this.__getCanvasContext();
if (ctx) {

ctx.filter = this.getVideoFilter();

//https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Taking_still_photos
// getMediaObject video” width=”640″ height=”480″
// capture a frame from the local video stream, however the resolution is only as good as the stream itself (in my case, 640 x 480).
ctx.drawImage(this._media.getMediaObject(), 0, 0, 640, 480); //this.canvas.width, this.canvas.height); <- Note: this just scales up

return this.canvas.toDataURL();
}

return null;
},

_________

Please Add a getPicture for camera native resolution capture e.g 1920×1080…

/**
* Returns a picture from the camera at higher resolution in base64.
* https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia
*/
getPicture: function () {

/* use the Camera stream at higher rsolution */

// ..I dont know Js well enough to acomplish

//MediaDevices.getUserMedia()
//stream = await navigator.mediaDevices.getUserMedia(constraints);
//{
// audio: false,
// video: {
// width: { min: 1024, ideal: 1280, max: 1920 },
// height: { min: 576, ideal: 720, max: 1080 }
// }
//}

  • David answered Aug 24, 2021 - 4:47 am
0 votes
In reply to: websocket disabled

Hi Nello, the issue is not in the browser, it’s the server that is refusing the connection. In the chrome console click on the second red line to open it and see if it shows the error code.

Try this: http://demo.wisej.com/codeproject

Open chrome F12 and look at the network tab. See screenshot attached. That’s what you need to see. If it doesn’t work it’s your server or something in between refusing the websocket connection. Could also be an antivirus.

 

  • Luca answered Aug 23, 2021 - 5:40 pm
0 votes
In reply to: websocket disabled

Hi Luca,

Thanks for your help.

I’m sorry to bore you with my problem: the websocket is enabled, but in the Chrome console, in the WS tab, I see the request but I don’t see the Reponse. Also by expanding the error line there is no further information. the firewall is disabled and there are no proxies (the server is on the local machine). Even debugging on Chrome, the data field of the error parameter ( e.data) is “Undefined”. What else can I check? I attach screenshots of the Chrome console and of the IIS configuration.

For our critical application, a quick and specific update of the page is mandatory, so we need to use  websocket .
Thanks in advance.

0 votes
In reply to: websocket disabled

WebSocket is a native browser class. See the second red line (WebSocket Error) and expand it to see if there is an error code. Look also at the network tab, you will see an entry of type “WebSocket”, look at the headers and response, it may tell you more.

WebSocket works by sending an http upgrade request, the web server either accepts it and upgrades the connection or rejects it. Looks to me that it’s either not enabled or there is a proxy in between that is blocking the request.

  • Luca answered Aug 23, 2021 - 1:38 pm
0 votes
In reply to: websocket disabled

Thank you for your answer.

I enabled Websocket in IIS10 but error is always there.

I have attached a screenshot of chrome console. If you have any suggestion about  how to debug the problem i will appreciate very much.

The problem persists with all browsers.

Tks.

Nello pernice

0 votes

Please attach a small reproducible test case, if you like attach also the devexpress small sample that renders the  new line characters in the browser.

In general html ignores new lines and need to be converted to their html equivalent.

  • Luca answered Aug 21, 2021 - 2:45 pm
0 votes

Please attach a small reproducible sample.

see also

https://github.com/iceteagroup/wisej-examples/tree/2.2/EditorsChoice

and

Editors Choice

 

  • Luca answered Aug 21, 2021 - 2:37 pm
0 votes
In reply to: Forgot_Password Page

Hi Paul! Thanks for replying.

The deep linking works well when you want to navigate and pass parameters between Wisej pages in the application. What if you click on a link, and that link has to open any page other than the main page of the app? How can you get that possible? That is what I want to accomplish with the forgot_password page.

Thanks,

C

0 votes
In reply to: TinyEditor Border

You can use the StyleSheet component then you can add css classes programmatically. Drop the component from the toolbox and add the class like this:

this.styleSheet1.Styles = @".tinyeditor { border: none!important; }";
  • Luca answered Aug 20, 2021 - 12:56 pm
0 votes

Thank you for testing 2.5 beta. We will have a new beta update out probably today.

You can also update the Microsoft WebView2 SDK here https://developer.microsoft.com/en-us/microsoft-edge/webview2/.

  • Luca answered Aug 20, 2021 - 12:36 pm
0 votes

Hi Nicholas

With theme builder you can customize almost anything into the look of the UI in Wisej

In the image you can see the standar values fot dialog boxes, changed from 6 to 1

Remember that the modified theme needs to be saved under the folder Theme of your project and add the line “theme”: “MyModifiedTheme” into the Default.json file of your project too

HTH

Regards

 

  • Paul answered Aug 19, 2021 - 9:29 pm
0 votes

Hi Paul,

I have attached the images again please. Thanks.

  • Nicholas answered Aug 19, 2021 - 8:31 pm
0 votes
In reply to: Forgot_Password Page

Hi Carlos

Your aproach is create a sub-application, that create a new session.
For you case descibed, is better use aproach of deep linking and the Application.Hash and HashChanged

Here you can found info about deep linking
https://developer.mozilla.org/en-US/docs/Web/API/Window/hashchange_event

And sample in Wisej here
https://github.com/iceteagroup/wisej-examples/tree/2.2/DeepLinking
Hope to be helpful
Regards

  • Paul answered Aug 19, 2021 - 2:33 pm
0 votes

Hi Nicholas

Could you please reatach both pictures?

They not show an image 🙁

Regards

 

  • Paul answered Aug 19, 2021 - 1:50 pm
  • last active Aug 19, 2021 - 1:51 pm
0 votes
In reply to: TinyEditor Border

You can’t put a css class in a css style. Css classes can only go in a css file or a <style> section in the html document.

You can either change tiny.editor.css in https://github.com/iceteagroup/wisej-extensions/tree/2.2/Wisej.Web.Ext.TinyEditor

or add a css file to Default.html or add a <style> section in <head> and  use

.tinyeditor {
   border: none !important;
}

 

  • Luca answered Aug 18, 2021 - 8:57 pm
0 votes
In reply to: TinyEditor Border

Hi  Paveena

What version of  Wisej are you using ?

Regards.

 

  • Paul answered Aug 18, 2021 - 8:48 pm
0 votes

Hi Junarism

Thanks for your question
For this case is necessary a workaround to the normal of Wisej to manage the standar moving within controls.

This is because core design in the Qooxdoo javascript framework that Wisej use for manage the browser controls are very difficult to modify.

In the atached sample, you can see an additional javascript file that provide the desired functionality.

You can avance with Enter and reverse with Shift-Enter

Hope to be help
Regards

 

  • Paul answered Aug 17, 2021 - 3:11 pm
  • last active Aug 18, 2021 - 1:37 pm
0 votes
In reply to: IIS Access Denied

Wisej uses the system’s /temp directory to pre compress and cache resources to increase speed. You need to assign full access to /temp to the IIS user. It’s usually the default in Windows server installations.

If you create a new app pool with a different user you need to add full access for that user.

  • Luca answered Aug 18, 2021 - 11:24 am
  • last active Aug 18, 2021 - 11:25 am
0 votes

Wow this is what i’m looking for… Its a big help to my needs….  WiseJ is the best…

Thank you very much sir….

  • Junarism answered Aug 18, 2021 - 4:02 am
Showing 3421 - 3440 of 11k results