Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
actual config format
03-08-2011, 05:00 PM,
#3
 
annotation:
read .car file in a Perl hash, sending with JSON in a webpage;
Javascript using prototype.js ("<!--EVENT..." is a template-placeholder representing the Hash):
Code:
var dotcar = '<!--EVENT::dotcar:json_dump () /-->'.evalJSON(true);
document.write('Kupplungsfläche: ' + dotcar.clutch.area + ';' );
document.write('Bremsscheibenfläche: ' + dotcar.wheel.fl.brake.area + ';' );
Second write won´t work, because prototype uses point-syntax.
Consider section names with "_" or ":"
Reply


Messages In This Thread
actual config format - by cologne - 03-03-2011, 06:59 PM
[No subject] - by NaN - 03-03-2011, 09:02 PM
[No subject] - by cologne - 03-08-2011, 05:00 PM
[No subject] - by NaN - 03-09-2011, 01:12 PM
[No subject] - by cologne - 03-09-2011, 07:30 PM
[No subject] - by NaN - 03-10-2011, 09:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)