[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 361
  • Last Modified:

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>  
 

0
danielmennilli
Asked:
danielmennilli
  • 2
1 Solution
 
É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
 
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now