Kirix Support Forums

donot load images or flash etc.

Please post all general questions, comments, bug reports, and any other wxWebConnect feedback here.

donot load images or flash etc.

Postby gourrymk2 on Sun Oct 04, 2009 1:09 pm

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?
gourrymk2
Registered User
 
Posts: 3
Joined: Sun Oct 04, 2009 12:57 pm

Re: donot load images or flash etc.

Postby gourrymk2 on Mon Oct 05, 2009 5:33 am

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:
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.

Postby gourrymk2 on Sat Oct 10, 2009 5:08 am

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!
gourrymk2
Registered User
 
Posts: 3
Joined: Sun Oct 04, 2009 12:57 pm

Re: donot load images or flash etc.

Postby Ben on Mon Oct 19, 2009 1:57 pm

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 Williams
Kirix Support Team
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to wxWebConnect Questions, Thoughts & Feedback