Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-14-2012, 01:50 PM   PM User | #1
marchello
New to the CF scene

 
Join Date: Nov 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
marchello is an unknown quantity at this point
Question JSON - get data from Oracle table

Hi all,

I hope it is correct thread...

My need is to get data from oracle table using JSON and show output at html table. I'm very new to JSON (got some experience in PL/SQL and basic html knowledge). Could someone direct me to manual or give me simple example?
marchello is offline   Reply With Quote
Old 11-14-2012, 02:10 PM   PM User | #2
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 531 Times in 525 Posts
devnull69 will become famous soon enough
This is most probably a question related to the server side language of your choice (PHP??) and not Javascript ... topic should be moved
devnull69 is offline   Reply With Quote
Old 11-14-2012, 02:14 PM   PM User | #3
marchello
New to the CF scene

 
Join Date: Nov 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
marchello is an unknown quantity at this point
devnull69, I'm not talking about php.

As far as I can understand now, JSON is a way to format data, not a way to fetch data... I'm very new to JSON.

And yes, topic should be closed or removed. Sorry for disturbing.
marchello is offline   Reply With Quote
Old 12-11-2012, 03:11 PM   PM User | #4
boy1988na
New to the CF scene

 
Join Date: Dec 2012
Location: Viet Nam
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
boy1988na is an unknown quantity at this point
yeah . great idea but i'm very new oracle .
boy1988na is offline   Reply With Quote
Old 12-11-2012, 06:13 PM   PM User | #5
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,448
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
If your starting point is a database and your end point is an HTML table then there is no need to go through a third format for the data in between for just a server side application.

The only reason for deciding to use JSON as an intermediate format is if you are going to set up so that the table can be dynamically updated from the database without reloading the page.

That would require a server side script that reads the data from the database and generates JSON instead of a web page AND it would require JavaScript that calls the server side script and then loads what it receives as JSON into the HTML table either in place of what is already there or as extra rows.

For a simple example of the JavaScript needed to retrieve JSON from the server and soncert it into a format that JavaScript can then process further see http://javascriptexample.net/ajax04.php
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Reply

Bookmarks

Tags
html, json, oracle

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:08 AM.


Advertisement
Log in to turn off these ads.