Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
hrolsons  
#1 Posted : Saturday, November 23, 2013 4:34:17 PM(UTC)
hrolsons

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:

UserPostedImage

And then after I press upload it looks like it uploads all the bytes but never actually finishes. It looks like this:

UserPostedImage

Any ideas?

Andrew  
#2 Posted : Tuesday, November 26, 2013 3:46:41 AM(UTC)
Andrew

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.

hrolsons  
#3 Posted : Tuesday, November 26, 2013 9:09:02 AM(UTC)
hrolsons

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.
Andrew  
#4 Posted : Tuesday, November 26, 2013 6:10:32 PM(UTC)
Andrew

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.
hrolsons  
#5 Posted : Tuesday, November 26, 2013 6:33:29 PM(UTC)
hrolsons

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.
Andrew  
#6 Posted : Tuesday, November 26, 2013 6:49:40 PM(UTC)
Andrew

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.
Andrew  
#7 Posted : Tuesday, November 26, 2013 6:59:40 PM(UTC)
Andrew

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-use

Hope this helps.

hrolsons  
#8 Posted : Wednesday, November 27, 2013 8:29:16 AM(UTC)
hrolsons

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.
Andrew  
#9 Posted : Thursday, November 28, 2013 3:26:14 AM(UTC)
Andrew

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.
hrolsons  
#10 Posted : Thursday, November 28, 2013 1:02:16 PM(UTC)
hrolsons

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")

Users browsing this topic
Guest
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.