Syntax error on token "Invalid Character", delete this token

1,201 views
Skip to first unread message

Clovia

unread,
Nov 17, 2011, 12:40:17 PM11/17/11
to OpenTripPlanner Users
Hello All,
I am new to OpenTripPlanner. After importing the package into Maven
Project, a couple syntax errors are returned.
For example, in the two lines shown below from the script admin.js, I
got this error 'Syntax error on token "Invalid Character", delete this
token'. The invalid token refers to the '@' before agency and id. I
am wondering if I can just ignore this error, if not how to fix it.

$('#noteFormAgencyId').val(route_data.id.@agency);
$('#noteFormRouteId').val(route_data.id.@id);

Your help will be greatly appreciated. Thank you in advance!

David Turner

unread,
Nov 18, 2011, 6:12:28 PM11/18/11
to opentrippl...@googlegroups.com

I haven't actually looked at that code in a while, but when last I
looked at it, it worked. So whatever it is that says that there is a
syntax error must be mistaken.

Anyway, otp-admin-webapp is just a proof-of-concept -- you can easily
remove it if your build environment doesn't like it.

Clovia

unread,
Nov 18, 2011, 7:57:45 PM11/18/11
to OpenTripPlanner Users
The web application still works in spite of that error. Maybe it is
due to version of eclipse I installed. I guess I can just ignore
it.

Thank you any way.
Reply all
Reply to author
Forward
0 new messages