Results 1 to 2 of 2

Thread: using exported field in javascript

  1. #1
    ron schechtman Guest

    using exported field in javascript

    How does one reference an exported aspdb variable in a javascript?

  2. #2
    John Guest

    using exported field in javascript (reply)

    Hi Ron,

    It's easy.

    Say you want to pop up an alert box and show the value of the exported field (AFTER the call to ASPdb of course!):

    x.ASPdb

    <SCRIPT Language=&#34;JavaScript&#34;>
    alert(&#39;<% =Session(&#34;ASPdb_999_myfield&#34 %>&#39;
    </SCRIPT>

    Where &#34;999&#34; is your dbUnit number and &#34;myfield&#34; is your field name.

    That&#39;s all there is to it! ASP will come along and substitute the value for the exported field then the browser will see the alert(&#39;yourfieldvalue&#39 as if that&#39;s the original source.

    Hope this helps,
    John



    ------------
    ron schechtman at 9/28/01 4:36:18 PM

    How does one reference an exported aspdb variable in a javascript?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •