Hi,
I would understand if with wxWebConnect I can read local file (I hope it), and more important if I can change the address of a request page..
I explein better: if user click on a link that is "file:///page1.htm" can I modify request and ask immediately that wxWebConnect show "file:///page1_SECURE.htm" instead?
(if yes can you give me some exemple or some help to understand the right way?)
Just another thing, wxWebConnect can read some webarchive type (exemple mhtml)?
Thank you
Kirix Support Forums
Local file and change address
2 posts
• Page 1 of 1
Re: Local file and change address
It is possible to use the file protocol.
It is also possible to register for the event EVT_WEB_OPENURI on a web control. The event gives you the URI that is being opened. I think you could then call OpenURI() on the web control again to open your new URI (you might have to call Veto() on the event). Be aware that this call to OpenURI would again trigger the event, which means you need to make sure your event processing doesn't go into an infinite loop (e.g. in your example, by only doing a redirect if "_SECURE" was not in the URI).
I don't have any example code for this.
It is also possible to register for the event EVT_WEB_OPENURI on a web control. The event gives you the URI that is being opened. I think you could then call OpenURI() on the web control again to open your new URI (you might have to call Veto() on the event). Be aware that this call to OpenURI would again trigger the event, which means you need to make sure your event processing doesn't go into an infinite loop (e.g. in your example, by only doing a redirect if "_SECURE" was not in the URI).
I don't have any example code for this.
- jonmmorgan
- Registered User
- Posts: 94
- Joined: Fri May 14, 2010 9:48 am
2 posts
· Page 1 of 1
Return to wxWebConnect Questions, Thoughts & Feedback