Rank: Newbie
Groups: Member
Joined: 11/23/2013(UTC) Posts: 5
|
I'm not sure this is going to make sense to anyone, but here goes. So I write programs in Visual Basic 6 to speed along our employees interaction with websites. Basically the problem at hand is that the user is trying to upload a photo. For some reason, the webbrowser control in VB6 does not get along with Aurigma. When I click the file the screen looks like this: And then after I press upload it looks like it uploads all the bytes but never actually finishes. It looks like this: Any ideas?
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Well, to tell the truth we never tried to test it with a web browser control built into a desktop application. However it is probably, the issue is not related to the this unusual environment. As far as I know, Flash uploader won't understand that the upload is complete unless the browser returns some response. So on the server side, you should just add a line in the end of the upload code:
Response.Write("The end");
or its equivalent (e.g. use echo for PHP, etc).
Hope this helps.
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 11/23/2013(UTC) Posts: 5
|
Problem is, I don't have the ability to change the code on the server.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Well, but it also won't work even without VB6 app, in a regular browser. It will happen when Flash-based uploader is loaded, in particular in IE9 and Safari. So the website developers should be interested to do it.
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 11/23/2013(UTC) Posts: 5
|
But it works fine in IE11. It seems to me that if it works in IE, it should work in the webbrowser control.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
In IE11 it loads HTML5-based uploader which does not have this problem. On your screenshot, Flash-based uploader is used. It looks like when you insert the webbrowser control, it works in IE9-compatibility mode. If you manage to use it as IE10 or IE11, it should solve the problem.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
It looks like you can choose the IE compatibility mode by prepending a special meta tag to the head of the HTML code ("edge" means "use the latest possible IE version", you can use 10 or 11 instead): <meta http-equiv="X-UA-Compatible" content="IE=edge" /> See more here: http://www.sitepoint.com...oosing-IE-Version-to-useHope this helps.
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 11/23/2013(UTC) Posts: 5
|
OK. I don't have access to change the HTML but I tried the registry key and it didn't work. I'll keep playing with it and see if anything comes of it.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Well, I believe you receive the HMTL code as a string before you feed it to the webbrowser control, correct? If so, you can modify this string and add this tag there. You should insert it in the very beginning of the <head> tag, so there is even no need for heavy parsing. It should be quite easy.
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 11/23/2013(UTC) Posts: 5
|
When I navigate using a webbrowser control I issue:
WebBrowser1.navigate("www.somewhere.com")
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.