Problems accesing web pages made with vb5

I try to execute the html file, that call the vbd file. The problem is in the Internet Explorer, It ask for open file or save file into disk, i don't want that happen.

Thanks for the answer.
 
Here is the code for load the proyect:

<HTML>
<OBJECT ID="Accesos"
CLASSID="CLSID:09B19707-D798-11D2-970B-50E357C10000"
CODEBASE="accesos.CAB#version=1,0,0,0">
</OBJECT>

<SCRIPT LANGUAGE="VBScript">
Sub Window_OnLoad
Document.Open
Document.Write "<FRAMESET>"
Document.Write "<FRAME SRC=""Accesos.VBD"">"
Document.Write "</FRAMESET>"
Document.Close
End Sub
</SCRIPT>
</HTML>  
 

danielmennilliAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
In the Window_OnLoad event, replace this:
Sub Window_OnLoad
Document.Open
Document.Write "<FRAMESET>"
Document.Write "<FRAME SRC=""Accesos.VBD"">"
Document.Write "</FRAMESET>"
Document.Close
End Sub

by this:
Sub Window_OnLoad
   Location.Replace("Accesos.VBD")
End Sub
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
danielmennilliAuthor Commented:
Ok, I waas make the change, but the problems is there. When search for the file accesos.vbd, it works correct. When try to open accesos.vbd, the browser askme for open file or save files into c:. If the option i choose is open, the browser opens the file type window, It show all programs installed on the computer, if i choose the Internet Explorer, the file open correct. I want all steps automatic, the user don't do anything.

Here is the code complete.

<HTML>
<OBJECT ID="Accesos"
CLASSID="CLSID:DA53BA65-D7AD-11D2-970B-20E357C10000"
CODEBASE="accesos.CAB#version=1,0,0,0">
</OBJECT>

<SCRIPT LANGUAGE="VBScript">
Sub Window_OnLoad
   Location.Replace("Accesos.VBD")
End Sub
</SCRIPT>
</HTML>

0
Éric MoreauSenior .Net ConsultantCommented:
Active Document are always problematic.

Search in EE for previous questions/answers on this topic. There were long answers to this little questions.

The answer I gave you work for me if I try it on the same computer that I have all components already installed. On other PCs, this won't either work.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.