File open script within HTML doc 
Author Message
 File open script within HTML doc

I would like to use a input box in a HTML page to call a
HTML or XML doc into the browser.  The user would enter a
no. into the input box (which would be the name of the
HTML/XML file) and then the browser would load this page.  
IS this possible using VBScript and if so can someone
provide an example script to do so??

Thanks



Tue, 27 Jan 2004 22:42:33 GMT  
 File open script within HTML doc
Maybe u mean something like this:

<script language=VBScript>
<!--
     sDocument = InputBox("Enter html document name plz...")
     If sDocument="" then
        MsgBox "No file specified!", vbInformation Or vbOkOnly, "you made a
{*filter*}oo.."
    Else
        location.href = sDocument
    End If
-->
</script>

----------------------------
Jim Teeuwen
www.defiance.nl

---------------------------

Quote:
> I would like to use a input box in a HTML page to call a
> HTML or XML doc into the browser.  The user would enter a
> no. into the input box (which would be the name of the
> HTML/XML file) and then the browser would load this page.
> IS this possible using vbscript and if so can someone
> provide an example script to do so??

> Thanks



Tue, 27 Jan 2004 23:28:14 GMT  
 File open script within HTML doc
Jim

Thanks for your help.  Unfortunately when I try to open my html page I receive an error:

Unterminated string constant

Any ideas what this means.

Cheers

James

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Sat, 07 Feb 2004 18:55:15 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Opening word from within <script=vbsript>in HTML

2. using word to open an html file and save it as .doc

3. Opening a word doc in part of an html page

4. How to open HTML file from VB6 code and let this HTML file show up

5. How to open HTML file from VB6 code and make this HTML file show up

6. Auto close open doc when opening another doc

7. Opening a excel doc within explorer

8. How to change or save a MS Word file (*.doc) to a *.html file in VBScript

9. Word HTML file to .doc file.

10. Word HTML file to .doc file.

11. opening doc, xls, html, etc from my programm

12. making a vb5 control open a html doc in ie3

 

 
Powered by phpBB® Forum Software