Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - httpapi.asp error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

httpapi.asp error

 Post Reply Post Reply
Author
jloh168@gmail.com View Drop Down
Newbie
Newbie


Joined: 11 January 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jloh168@gmail.com Quote  Post ReplyReply Direct Link To This Post Topic: httpapi.asp error
    Posted: 11 January 2008 at 4:44am
Hi,

I got the following error while trying to a newMember function.  It appears the isBool function is missing.  I use the default administrator id and password and use the user name test and password test.  I even try to comment out the line calling isBool function, but got another error.

thanks


Jimmy


HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services


Technical Information (for support personnel)

  • Error Type:
    Microsoft VBScript runtime (0x800A01F4)
    Variable is undefined: 'isBool'
    /forum/HttpAPI.asp, line 1130
  • Browser Type:
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
  • Page:
    GET /forum/HttpAPI.asp

  • Back to Top
    WebWiz-Bruce View Drop Down
    Admin Group
    Admin Group
    Avatar
    Web Wiz Developer

    Joined: 03 September 2001
    Location: Bournemouth
    Status: Offline
    Points: 9844
    Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2008 at 9:40am
    The HTTP XML API was to be part of version 10 but was released early. The call is to a new function in version 10.

    To fix the issue add the following function to the code near the top of the HttpAPI.asp file:-


    'isBool checks if a Boolean value
    Private Function isBool(strExpression)

        'Convert to lower case string (less work to do later)
        strExpression = CStr(LCase(strExpression))
       
        'See if value is a booleon or not
        Select Case strExpression
            Case "true", "false", "1", "0", "-1"
                isBool = True
            Case Else
                isBool = False
        End Select

    End Function



    Edited by -boRg- - 11 January 2008 at 9:46am
    Back to Top
     Post Reply Post Reply

    Forum Jump Forum Permissions View Drop Down

    Forum Software by Web Wiz Forums® version 12.08
    Copyright ©2001-2026 Web Wiz Ltd.


    Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
    About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

    Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
    Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

    Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

    Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.