google-code-export / oragoods

Automatically exported from code.google.com/p/oragoods
1 stars 0 forks source link

Custom datasource not working in html page #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create the page to include AJAX API, Google visualization api
2. Added table package
3. Added custom datasource

What is the expected output? What do you see instead?
I thought to see the output from the JSON output but did not see anything.

What version of the product are you using? On what operating system?
Oracle 10.2.0.3 Red Hat Enterprise Linux AS release 3 (Taroon Update 8)

Please provide any additional information below.
Attached is a copy of the page I am reading from. Please let me know if it
is correct and makes sense and if there is a reason it is not working
correctly.  Thank you.

Original issue reported on code.google.com by mrosse...@experience.com on 27 Apr 2010 at 3:17

Attachments:

GoogleCodeExporter commented 9 years ago
The html code seems ok. What error do you have? Can you please be more specific?

Things to check:
1) call the URL manually from your browser and verify you have the correct JSON.
2) Use Firebug or similar tool to verify that the call is being done to the 
database
and you see the expected result.
3) verify that you are reaching the callback function (put an alert('its 
here'); at
the begginging of the function).
4) Verify the status and the data variable. If data is ok, google api should be
drawing without a problem.

Regards,
Jose.

Original comment by jose.can...@gmail.com on 27 Apr 2010 at 3:52

GoogleCodeExporter commented 9 years ago
I needed to set the correct id 
<div id="visualization1"

for it to work with
visualization = new
google.visualization.Table(document.getElementById('visualization1'));

Thank you.

Original comment by mrosse...@experience.com on 27 Apr 2010 at 5:56

GoogleCodeExporter commented 9 years ago
Please close this.

Thank you again.

Original comment by mrosse...@experience.com on 27 Apr 2010 at 5:57

GoogleCodeExporter commented 9 years ago
Closing, not an issue.

Regards,
Jose.

Original comment by jose.can...@gmail.com on 27 Apr 2010 at 6:04