Need help with DHTML application

vb6 Italy
  • 19 years ago

    Hi everybody.
    This is really my first topic in this forum and I hope I can get help here from anyone of you...


    I'm trying to create my first VB6 DHTML Application and I found it is a really good way to create software for intranets.
    But, of course, now I've a problem....Is it possible to access from the Dom object model in VB to variables defined in <script> section??:
    example:
    <html><head><title></title>
    <script language = "VBScript">
    dim MyVar
    MyVar = 1
    </script>
    </head>
    <body>
    <input type="button" name="button1" onclick="alert(MyVar)">
    </body>


    This simple code show "1" when I click on the button object
    It also works if I use this code: onclick="alert(window.MyVar)"


    But How can I access to MyVar Variable from within the VB DHTML Application???


    I hope someone of you can help me...


    cheers


    Fabio


Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There's no test like production” - Anon