Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    This is most probably a question related to the server side language of your choice (PHP??) and not Javascript ... topic should be moved

  • #3
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New to the CF scene
    Join Date
    Dec 2012
    Location
    Viet Nam
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah . great idea but i'm very new oracle .

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,639
    Thanks
    0
    Thanked 649 Times in 639 Posts
    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/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •