Function Calls not working

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Function Calls not working

    I am trying to create a simple 1 page asp page that should be very
    easy, but I can't figure out what I am doing wrong. It lists a
    person's gross income, and a list of deductions, number of dependents,
    and a net income. As each field is entered, the net income field
    should be refreshed. Problem is, there is one additional field that I
    need to refresh along with net income. The value for this field needs
    to be retrieved from an existing DLL which looks up the correct value
    in an xml table.

    I can create the object:
    <%
    SET objLook = Server.CreateObject("GL2k.Guideline")
    %>

    I can have other functions in a <Script></script> block,
    SUB recalc()
    ...
    END SUB

    And have it recalc every time the field changeds,
    <INPUT name="fld1" value="0.00" onchange=recalc()

    But, I cannot figure out how to access the objLook object without
    getting a 'jscript' or server error. It should be able to call the
    recalc routine, then I want it to call a routine from the object,
    objLook.Lookup(...variables...), but I can't make it work.

    any ideas?

    thanks in advance.
    Johnny Guest

  2. Similar Questions and Discussions

    1. XML Calls not working when uploaded
      For some reason when I test my file localy, my XML works no problem, but when I upload it, it seems to not function anymore. Anyone have any ideas? ...
    2. duplicateMovieClip function calls (Asynchronous)
      My head is battered, I've tried loads of ways to do this function createPrinterOutput(){ var i=1; var sampleX =...
    3. Impersonation not working with Asynchronous calls
      I make a connection from my web service function to a sql database (on another machine) using Windows Only authentication and the following in my...
    4. Function calls and strings
      Hello. PHP possesses what the manual calls "complex syntax" for allowing one to include non-trivial expressions in strings, e.g.: $s = "The...
    5. [PHP-DEV] New extension; nested function calls failing
      (Apologies if this is the wrong list or if the answer to this has escaped my searches, but I'm at my wit's end at the moment). I'm trying to get...
  3. #2

    Default Re: Function Calls not working

    objLook exists on the server. you are trying to access it from the client.

    --
    Mark Schupp
    Head of Development
    Integrity eLearning
    [url]www.ielearning.com[/url]


    "Johnny" <julin@crosspaths.net> wrote in message
    news:bdf80677.0403011300.616522c1@posting.google.c om...
    > I am trying to create a simple 1 page asp page that should be very
    > easy, but I can't figure out what I am doing wrong. It lists a
    > person's gross income, and a list of deductions, number of dependents,
    > and a net income. As each field is entered, the net income field
    > should be refreshed. Problem is, there is one additional field that I
    > need to refresh along with net income. The value for this field needs
    > to be retrieved from an existing DLL which looks up the correct value
    > in an xml table.
    >
    > I can create the object:
    > <%
    > SET objLook = Server.CreateObject("GL2k.Guideline")
    > %>
    >
    > I can have other functions in a <Script></script> block,
    > SUB recalc()
    > ...
    > END SUB
    >
    > And have it recalc every time the field changeds,
    > <INPUT name="fld1" value="0.00" onchange=recalc()
    >
    > But, I cannot figure out how to access the objLook object without
    > getting a 'jscript' or server error. It should be able to call the
    > recalc routine, then I want it to call a routine from the object,
    > objLook.Lookup(...variables...), but I can't make it work.
    >
    > any ideas?
    >
    > thanks in advance.

    Mark Schupp Guest

  4. #3

    Default Re: Function Calls not working

    Here is a similar concept with the page refresh including some new
    information from a database:

    ASP Design Tips - Dependent Listboxes
    [url]http://www.bullschmidt.com/devtip-dependentlistboxes.asp[/url]

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Developer
    [url]http://www.Bullschmidt.com[/url]
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


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

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139