Validator problem

View: New views
4 Messages — Rating Filter:   Alert me  

Validator problem

by Wade Van Buskirk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Exhibit said my code (attached) had errors, but validator disagreed.

The JSON data file
  http://www.recfin.org/output/11111.js
contains errors =

SyntaxError: missing ) in parenthetical

We will explain the error in details after this message.

--
Wade H. Van Buskirk http://www.recfin.org/wade Phone:503-595-3109



_______________________________________________
General mailing list
General@...
http://simile.mit.edu/mailman/listinfo/general

11111.js (69K) Download Attachment

Re: Validator problem

by Brice Sommacal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey,

I just compared your file with one of mine and I encontered 2 differents things:

- the first is that the extension I used is *.json
- the second is that I don't end up with a point at the bottom of my file (see below)
You could try erasing the last line.

 { 
arrive : "Jun 28 2009 15:20:00 GMT-0800" ,
cntysite : 23313,
depart : "Jun 28 2009 16:20:00 GMT-0800" ,
type : "visit" ,
visit : 177,
index : 177,
label : "177"
}
]
}
.

Kind Regards,


Brice Sommacal


2009/8/17 Wade <wade@...>
Exhibit said my code (attached) had errors, but validator disagreed.

The JSON data file
 http://www.recfin.org/output/11111.js
contains errors =

SyntaxError: missing ) in parenthetical

We will explain the error in details after this message.

--
Wade H. Van Buskirk http://www.recfin.org/wade Phone:503-595-3109


_______________________________________________
General mailing list
General@...
http://simile.mit.edu/mailman/listinfo/general



_______________________________________________
General mailing list
General@...
http://simile.mit.edu/mailman/listinfo/general

Re: Validator problem

by Sands Fish :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Wade, my eye twitched also when I saw the period at the end of the file.  I suppose it is possible that the validator ignored everything after the last closing brace.  Easy enough to test.

Also, the active Exhibit community is located here now:



--
sands fish
Software Engineer
MIT Libraries
Technology Research & Development
sands@...
E25-131



On Aug 17, 2009, at 12:25 PM, Brice Sommacal wrote:

Hey,

I just compared your file with one of mine and I encontered 2 differents things:

- the first is that the extension I used is *.json
- the second is that I don't end up with a point at the bottom of my file (see below)
You could try erasing the last line.

 { 
arrive : "Jun 28 2009 15:20:00 GMT-0800" ,
cntysite : 23313,
depart : "Jun 28 2009 16:20:00 GMT-0800" ,
type : "visit" ,
visit : 177,
index : 177,
label : "177"
}
]
}
.

Kind Regards,


Brice Sommacal


2009/8/17 Wade <wade@...>
Exhibit said my code (attached) had errors, but validator disagreed.

The JSON data file
 http://www.recfin.org/output/11111.js
contains errors =

SyntaxError: missing ) in parenthetical

We will explain the error in details after this message.

--
Wade H. Van Buskirk http://www.recfin.org/wade Phone:503-595-3109


_______________________________________________
General mailing list
General@...
http://simile.mit.edu/mailman/listinfo/general


_______________________________________________
General mailing list
General@...
http://simile.mit.edu/mailman/listinfo/general




* Please consider the environment before printing this email




_______________________________________________
General mailing list
General@...
http://simile.mit.edu/mailman/listinfo/general

Re: Validator problem

by Sands Fish :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Also, I'm assuming you're referring to this Validator?


Is that a correct assumption?


--
sands fish
Software Engineer
MIT Libraries
Technology Research & Development
sands@...
E25-131



On Aug 17, 2009, at 10:19 AM, Wade wrote:

Exhibit said my code (attached) had errors, but validator disagreed.

The JSON data file
 http://www.recfin.org/output/11111.js
contains errors =

SyntaxError: missing ) in parenthetical

We will explain the error in details after this message.

--
Wade H. Van Buskirk http://www.recfin.org/wade Phone:503-595-3109

<11111.js>_______________________________________________
General mailing list
General@...
http://simile.mit.edu/mailman/listinfo/general



* Please consider the environment before printing this email




_______________________________________________
General mailing list
General@...
http://simile.mit.edu/mailman/listinfo/general