Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 22nd, 2006, 11:20 AM
Authorized User
 
Join Date: Jun 2003
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing variables from within innerHTML

Hi,

Is me again, and stuck again. Finalizing a script that uses the Set objExplorer = WScript.CreateObject("InternetExplorer.Application ")
statement for loading a specific HTML page. Use innerHTML on this page to display. Basically, I have a vbs that consists of 2 parts. First one is a message that currently is displayed for 30 seconds [Wscript.Sleep 30000] and then gets refreshed with new info in the innerHTML displaying the second page. So basically, the data gets refreshed after 30 seconds, but actually I want to add a BUTTON that the person reading the info can click on before it refreshes the information to the 2nd part.

So 1st part shows some requirements before installing the applications.
2nd part shows information on the installation of the components.

###

Set objExplorer = WScript.CreateObject("InternetExplorer.Application ")

    objExplorer.Navigate "C:\TEMP\MSA.htm"
    objExplorer.ToolBar = 0
    objExplorer.StatusBar = 0
    objExplorer.Resizable = 0
    objExplorer.Width = 485
    objExplorer.Height = 590
    objExplorer.Left = 0
    objExplorer.Top = 0

    objExplorer.Visible = 1

objExplorer.Document.Body.InnerHTML = "<P>FIRST PAGE</P><INPUT TYPE='BUTTON' VALUE='Continue' onclick='XXXXXX'>"

    Wscript.Sleep 5000

    objExplorer.Width=485
    objExplorer.Height = 590

IEProgStart = "<P>SECOND PAGE</P>"

    Do While (objExplorer.Busy)
            Wscript.Sleep 2000
    Loop

    ProgressMessage = IEProgStart

    objExplorer.Visible = 1
    objExplorer.Document.Body.InnerHTML = ProgressMessage

###

k, so in the first page I want to imput a BUTTON that sets a variable to a certain value. Once the value is set to 1 for instance, the script will continue. With this now, the page gets generated and then the script goes to sleep for 5 seconds and then the 2nd part comes up. It is like I'm unable to pass a variable to the actual script.

I'm not really into all of this coding and I'm not really in favour of memorizing the DOM object and whatever is out there. It is the last change I will make to the script and it is finished, now it is just frustration again.

Can anyone help me please, I promise I will no longer spam your forum after this one.

Thanks,

Sebastiaan.
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing Variables CMOS Classic ASP Basics 2 January 22nd, 2006 07:38 PM
Passing variables karlirvin Beginning PHP 3 December 9th, 2005 04:37 PM
passing variable to function in innerHTML crmpicco Javascript How-To 5 October 19th, 2005 10:25 AM
Passing variables jesseleon Access VBA 4 October 24th, 2003 01:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.