SEMSEM123 / aspjson

Automatically exported from code.google.com/p/aspjson
0 stars 0 forks source link

Type mismatch: 'jsObject' #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Calling an asp file in ajax, see code below :

<!--#include file="JSON_2.0.4.asp"-->

### some code including db connection and db requests ###

Dim output
    Set output = jsObject()

    output("sEcho") = Request("sEcho")
    output("iTotalRecords") = rsCount("FIELD1")
    output("iTotalDisplayRecords") = sqlDisplayCount("FIELD1")
    output("aaData") = Array(rs("FIELD1"), rs("FIELD2"), rs("FIELD3"), rs("FIELD3"))

    output.Flush

This triggers the topic error : "Type mismatch: 'jsObject'" that I can see with 
firebug in the HTML response (see attached screen picture)

JSON asp file seems to be well included. I can't see where does this come from.
Any help welcome

Original issue reported on code.google.com by ch.rab...@gmail.com on 20 Jan 2013 at 4:28