You can use my JavaScript utility object to return a data, time, or timestamp -- // VC-DATE /* PROJECT: JDM (Java Dynamic Machine) PROGRAMMER: G. Patnude...
611
Peter Michaux
petermichaux
Dec 5, 2006 5:49 pm
Hi Douglas, ... Any chance you will be adding this capability to the http://json.org/json.js file? ... This seems a little confusing. "toJSONString" generates...
612
Mark Miller
capsecure
Dec 5, 2006 5:50 pm
... Cool. Is there a draft we can read? -- Text by me above is hereby placed in the public domain Cheers, --MarkM...
... You are right, it would be bad to generate a string like "new Date". Instead, you would generate an object that would be recognized by your hook function...
Hi, ... I read the proposal and wonder if there is some loose wording for parseJSON. I doubt it but would like to double check. "The optional hook function...
617
Douglas Crockford
douglascrock...
Dec 6, 2006 7:19 pm
I have updated json.org/json.js to support the optional hook function, anticipating ECMAScript 4th edition....
618
Mark Ireland
akaidr4vr
Dec 7, 2006 11:11 pm
I have initialised a json string as a js variable and this simple test is working: a href="##" ...
619
Jesse Skinner
jessephrenic
Dec 8, 2006 1:40 am
Hi Mark, Perhaps instead of: for (var j in jsonStations.RECORDCOUNT) { you should try: for (var j=0;j < jsonStations.RECORDCOUNT;j++) { ? I'm not sure without...
620
Mark Ireland
akaidr4vr
Dec 9, 2006 11:36 pm
Is there any javascript code for finding a json variable by its key? say jsonStuff.DATA.UNIQUEID[uniqueid] ... ...
621
Martin Cooper
mfncooper
Dec 9, 2006 11:52 pm
... It's just a JavaScript object, so you can access pieces of it in the same way as you would with any other JavaScript object. There's no magic. say...
622
Mark Ireland
akaidr4vr
Dec 10, 2006 10:06 pm
Thanks. I was hoping there was a js function library where you just pass the unique id and the row is returned. Is there one? ... ...
623
Martin Cooper
mfncooper
Dec 10, 2006 10:19 pm
... What do you mean? There is no concept of "row" in JSON, or even unique IDs, for that matter, beyond the property names in an object. Any structure you are...
624
Mark Ireland
akaidr4vr
Dec 10, 2006 10:54 pm
Here is one I prepared earlier: ...
625
Jesse Skinner
jessephrenic
Dec 10, 2006 11:07 pm
It sounds like you want to use a JavaScript object, with your uniqueID column as the key. What you'd do is somehow structure your JSON like so: { "uniqueID1":...
626
Martin Cooper
mfncooper
Dec 10, 2006 11:23 pm
... Depends on how you define "standard", but no, it's not anything I would call a standard. I believe it's a format that comes from the CFJSON library, so ...
627
Mark Ireland
akaidr4vr
Dec 11, 2006 3:17 am
OK Now I have this: var myStuff = { ...
628
Matthew Morley
mpcmtechnolo...
Dec 11, 2006 11:43 am
*Identifiers* are names for constants, variables, functions, loop labels, objects and classes. The first character must be an ASCII letter, underscore or...
629
Mark Ireland
akaidr4vr
Dec 17, 2006 10:20 pm
Thanks, that got it working. Now I am wondering if there is some alternative to repeating the column names in every object. ... ...
630
Matthew Morley
mpcmtechnolo...
Dec 18, 2006 3:12 am
Why not return an object w/ 2 properties. One being an array containing field names, the other being an array of arrays, representing data records (that match...
631
Mark Ireland
akaidr4vr
Dec 18, 2006 4:01 am
How would you use dot notation in each case? ... _________________________________________________________________ Advertisement: Fresh jobs daily. Stop...
632
Matthew Morley
mpcmtechnolo...
Dec 18, 2006 12:04 pm
You would have to do something more than a simple translation. If your end goal was to directly reference fields values by name, you would need to do an end...
633
Douglas Crockford
douglascrock...
Dec 19, 2006 4:47 am
There is a new implementation for Python: http://cheeseshop.python.org/pypi/python-cjson...
634
Mark Ireland
akaidr4vr
Dec 19, 2006 5:25 am
Hopefully I can clear all this up. First I wanted to save on whitespace by avoiding var myArray = new Array; cfloop var myArray[myIndex] = new Array; ...
635
Kazuho Oku
kazuho_oku
Dec 19, 2006 5:28 am
Subject: JSON Compatibility Issues Hi, While I was debugging my web application, I found following compatibility issues regarding JSON and major web browsers. ...
636
Matthew Morley
mpcmtechnolo...
Dec 19, 2006 12:37 pm
It would depend on what you mean by page and how much data you are dealing with. 3-10kb range might not make a huge difference on download, 20-300kb might. Run...
637
Atif Aziz
azizatif
Dec 19, 2006 2:02 pm
I think I know what you're looking for here. Suppose the following table: var table = { "columns" : [ "FirstName", "LastName" ], "rows" : [ [ "Mickey", "Mouse"...
638
canixs
Dec 19, 2006 3:59 pm
Hello all, This is my first post here. I am currently working on a dynamic scripts version of my website. I have to say this is my first javascripts using json...
639
Mark Ireland
akaidr4vr
Dec 21, 2006 12:17 am
This is the right general idea but . . ... I am thinking: var myJSObject = ...