Hi,
Use ['@rid']

Lvc@

Sent from Mobile device
Il 10/mar/2014 17:22 "Gaurav Dhiman" <[email protected]> ha scritto:

> Issue - @ character is not a valid character in JavaScript identifier
> (variable, function name etc), then how to refer @rid in returned JSON from
> OrientDB ?
>
> Details:
>
> When I get the JSON response from OrientDB and I try to show the @rid,
> @type etc in app, I get JS error
>
> In client http response function, below is the wrong syntax
> function httpResponse (data, status) {
>    alert(data.result[0].@rid);                     // how to refer @rid
> here ??
> }
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to