Search found 70 matches

by saifcoder
Sun Mar 01, 2020 5:24 pm
Forum: C++ Development
Topic: URL Encode/Decode
Replies: 4
Views: 304

Re: URL Encode/Decode

Thank you guys for your reply, in my situation the URL may contain UTF-8 encoded string, like "mydomain.com/Le goût" --> "mydomain.com%2FLe%20go%C3%BBt", so I need an library that support UTF-8 to solve this, and this one done the job : https://uriparser.github.io/

Thank you,
by saifcoder
Sat Feb 29, 2020 7:09 pm
Forum: C++ Development
Topic: URL Encode/Decode
Replies: 4
Views: 304

URL Encode/Decode

We have a sample wxString contain encoded URL by JavaScript function encodeURI(), I read all the document of wxURI / wxURL and can't figure out how to decode the string.

Please, how to decode an URL ?

Example:

Code: Select all

hello%2Fwx+forum ---> hello/wx forum
by saifcoder
Sat Feb 01, 2020 2:27 am
Forum: Platform Related Issues
Topic: wxWebView Linux (WebKit) - AllowNavigationToInvalidURL
Replies: 4
Views: 386

Re: wxWebView Linux (WebKit) - AllowNavigationToInvalidURL

Same result in sample, because in default policy setting navigation to invalid url is not allowed, However, this is not important, a sample URL encode / decode can fix this.

Thank you sir.
by saifcoder
Fri Jan 31, 2020 1:04 am
Forum: Platform Related Issues
Topic: wxWebView Linux (WebKit) - AllowNavigationToInvalidURL
Replies: 4
Views: 386

Re: wxWebView Linux (WebKit) - AllowNavigationToInvalidURL

There no error message in GUI, it's only won't create any event in OnNewWindow(wxWebViewEvent& evt) because the url is invalid. while wen we run the same code in Windows the event created and we can catch the invalid url in OnNewWindow(wxWebViewEvent& evt). We can fix this by encode bad url string, ...
by saifcoder
Thu Jan 30, 2020 1:05 am
Forum: Platform Related Issues
Topic: wxWebView Linux (WebKit) - AllowNavigationToInvalidURL
Replies: 4
Views: 386

wxWebView Linux (WebKit) - AllowNavigationToInvalidURL

In same situation, I need to navigate to an invalid URL just to do same stuff in OnNewWindow(wxWebViewEvent& evt) , in Windows wxWebView ( Internet Explorer backend ) it's allow navigation to an invalid URL in default, but in Linux ( WebKit backend ) show log error Unable to open a window with inval...
by saifcoder
Sun Jan 05, 2020 7:59 pm
Forum: Open Discussion
Topic: Thanks to all members
Replies: 1
Views: 1046

Thanks to all members

I write this post to say a word, I want thanks all members, especially moderators for there quick answers, we can't finish our projects without your greatest help, thank you so much, you are awesome =D>
by saifcoder
Sun Dec 29, 2019 9:29 pm
Forum: C++ Development
Topic: webview blank white page when using unicode text
Replies: 4
Views: 318

Re: webview blank white page when using unicode text

Thank you so much doublemax for your help, so the default encoding it's not UTF-8! now I got it.

Ref: https://docs.wxwidgets.org/trunk/overview_string.html
by saifcoder
Sun Dec 29, 2019 8:36 pm
Forum: C++ Development
Topic: webview blank white page when using unicode text
Replies: 4
Views: 318

Re: webview blank white page when using unicode text

In the official webview example it's show error.

Code: Select all

wxMemoryFSHandler::AddFile("page1.htm", wxT("<html><body>أهلا</body></html>"));
by saifcoder
Sun Dec 29, 2019 7:55 pm
Forum: C++ Development
Topic: webview blank white page when using unicode text
Replies: 4
Views: 318

Re: webview blank white page when using unicode text

My build is Unicode, and i'm using unicode text in all widgets without any issue, except for webview.
by saifcoder
Sun Dec 29, 2019 7:48 pm
Forum: C++ Development
Topic: webview blank white page when using unicode text
Replies: 4
Views: 318

webview blank white page when using unicode text

Let's create sample WebView app. wxString MyText = wxT("<html><body>Hello</body></html>"); wxMemoryFSHandler::AddFile("MyFile.htm", MyText); MyWebView->LoadURL("memory:MyFile.htm"); All work great, but when putting unicode text, the webview show blank white page!. wxString MyText = wxT("<html><body>...
by saifcoder
Sun Nov 24, 2019 3:57 pm
Forum: C++ Development
Topic: wxWebView - Mouse event
Replies: 9
Views: 597

Re: wxWebView - Mouse event

Oh!, everything made by Microsoft was wonderful, Windows, XBOX, Kinet, Azure, Live, Bing.. except two things that stupidly down to low level! Windows Phone and there web browsers (IE/Edge) ](*,)
by saifcoder
Sun Nov 24, 2019 3:34 pm
Forum: C++ Development
Topic: wxWebView - Mouse event
Replies: 9
Views: 597

Re: wxWebView - Mouse event

by the way, I'm looking if wxWidgets will support Microsoft Web View 2 in the future? [-o<

https://docs.microsoft.com/en-us/micros ... ingstarted
by saifcoder
Sun Nov 24, 2019 3:31 pm
Forum: C++ Development
Topic: wxWebView - Mouse event
Replies: 9
Views: 597

Re: wxWebView - Mouse event

As questions serve as references for the future, it is a good thing to say how you solved it I love sharing solutions so much, I know how important is, it's just I didn't fix it yet! #-o but I just completely disable the wxWebView to skip all events MyWebView->Enable(false); I would like catch mous...
by saifcoder
Sat Nov 23, 2019 12:21 pm
Forum: C++ Development
Topic: wxWebView - Mouse event
Replies: 9
Views: 597

Re: wxWebView - Mouse event

Got it, thank you guys
by saifcoder
Sun Nov 17, 2019 10:57 pm
Forum: C++ Development
Topic: wxWebView - Mouse event
Replies: 9
Views: 597

wxWebView - Mouse event

How to catch wxWebView mouse click event ?! it's not working. MyWEBVIEW = wxWebView::New(...); MyWEBVIEW->Bind(wxEVT_LEFT_DOWN, &MyWindow::OnMouseLeftDown, this); // OR Bind( wxEVT_LEFT_DOWN, &MyWindow::OnMouseLeftDown, this, MyWEBVIEW_ID ); void MyWindow::OnMouseLeftDown(wxMouseEvent& evt){ ... } C...