First, wxWebConnect is a great frameworks, it save me a lot of time.
I'm writing a web program with wxWebConnect.
It work fine basically, but I want it be more faster.
In my program, the image or flash etc. is not necessary to be loaded.
I thought it will save lots of time if the program donot load them.
Is there any event handle about load image or flash?
or something else for implement my need?
Kirix Support Forums
donot load images or flash etc.
4 posts
• Page 1 of 1
- gourrymk2
- Registered User
- Posts: 3
- Joined: Sun Oct 04, 2009 12:57 pm
Re: donot load images or flash etc.
I found some useful preferences below:
- permissions.default.image
- permissions.default.object
- network.image.imageBehavior
set them to a intager 2, will bolck all images and objects(flash etc.)
I do the setting on my firefox (version 3.5.2), they all work!
unfortunately, they all not work in the wxWebConnect
the code as below:
If I want these setting work, how to fix it?
Thanks!
- permissions.default.image
- permissions.default.object
- network.image.imageBehavior
set them to a intager 2, will bolck all images and objects(flash etc.)
I do the setting on my firefox (version 3.5.2), they all work!
unfortunately, they all not work in the wxWebConnect
the code as below:
- Code: Select all
wxWebPreferences webprefs = wxWebControl::GetPreferences();
webprefs.SetIntPref(wxT("permissions.default.image"), 2);
webprefs.SetIntPref(wxT("permissions.default.object"), 2);
webprefs.SetIntPref(wxT("network.image.imageBehavior"), 2);
If I want these setting work, how to fix it?
Thanks!
- gourrymk2
- Registered User
- Posts: 3
- Joined: Sun Oct 04, 2009 12:57 pm
Re: donot load images or flash etc.
I update my xulrunner to 1.9.1
Those preferences below all work well.
- permissions.default.image, 2
- permissions.default.object, 2
- network.image.imageBehavior, 2
but I found that wxWebConnect::Execute() will not work.
could this bug be fixed?
THANKS for any advice!
Those preferences below all work well.
- permissions.default.image, 2
- permissions.default.object, 2
- network.image.imageBehavior, 2
but I found that wxWebConnect::Execute() will not work.
could this bug be fixed?
THANKS for any advice!
- gourrymk2
- Registered User
- Posts: 3
- Joined: Sun Oct 04, 2009 12:57 pm
Re: donot load images or flash etc.
We're upgrading to 1.9.1 in our own apps, so I'll make sure Execute() works. It doesn't surprise me that Execute() doesn't work yet for you, it was tricky enough getting it to work for 1.8!
Ben
Ben
Ben Williams
Kirix Support Team
Kirix Support Team
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
4 posts
· Page 1 of 1
Return to wxWebConnect Questions, Thoughts & Feedback