Welcome Guest, Not a member yet? Register   Sign In
Passing array to Javascript code
#3

[eluser]taizen[/eluser]
[quote author="libnac" date="1214164781"]Does Flot use JSON in order to represent graphics?
[/quote]

I have no idea, i must admit...

[quote author="libnac" date="1214164781"]
I think this is json.. then you must to echo your results inside the javascript function that creates this graphics.[/quote]

That's brilliant! Works fine. I just put
Code:
<?php echo $results[0]; ?>
in my view.

Maybe by passing the entire dataset as a string and the echo it would be the best?

Thanks!


Messages In This Thread
Passing array to Javascript code - by El Forum - 06-22-2008, 06:54 AM
Passing array to Javascript code - by El Forum - 06-22-2008, 08:59 AM
Passing array to Javascript code - by El Forum - 06-22-2008, 09:43 AM
Passing array to Javascript code - by El Forum - 06-22-2008, 12:26 PM
Passing array to Javascript code - by El Forum - 06-22-2008, 01:33 PM
Passing array to Javascript code - by El Forum - 06-22-2008, 02:11 PM
Passing array to Javascript code - by El Forum - 06-22-2008, 05:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB