Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9212589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:33:30+00:00 2026-06-18T01:33:30+00:00

i really need your help to help me solving my problem. I setup a

  • 0

i really need your help to help me solving my problem. I setup a captive portal using CoovaChilli, and want to show the usage feedback provided by Coova JSON Interface that can be accessed via url like this http://login.domain.com:3990/json/status from the internal network where the CoovaChilli listen on. If you already logged in into the captive portal and then if you access that url you will see data formated like this in your browser:

{
    "version": "1.0",
    "clientState": 1,
    "redir": {
        "originalURL": "http://www.gstatic.com/generate_204",
        "redirectionURL": "",
        "logoutURL": "http://10.1.0.1:3990/logoff",
        "ipAddress": "10.1.0.6",
        "macAddress": "AA-BB-CC-DD-EE-FF"
    },
    "session": {
        "sessionId": "5108c39600000003",
        "userName": "user@ri",
        "startTime": 1359529249,
        "sessionTimeout": 0,
        "idleTimeout": 900
    },
    "accounting": {
        "sessionTime": 867,
        "idleTime": 0,
        "inputOctets": 1428643,
        "outputOctets": 391752,
        "inputGigawords": 0,
        "outputGigawords": 0,
        "viewPoint": "client"
    }
} 

My question is, what should i do if want to parsing that data into a webpage using *Javascript* so i can see that data formatted more nicely (html formatted). For example i can access it via url using same domain like this http://login.domain.com/status/status.html rather than unformatted data in the previous url ?

Please note : i want use javascript to parsing because the data is different by the user who logged in into that CoovaChilli, different user have different data, only user who logged in and accessing that url can see only their own statistic, so i think the best practice is use a client side language to parsing that data.

Any of your help is very appreciated. Thank you before.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:33:31+00:00Added an answer on June 18, 2026 at 1:33 am

    Try this

    This link may help you http://www.w3schools.com/json/json_intro.asp

    <!DOCTYPE html>
    <html>
    <body>
    <h2>JSON Object Creation in JavaScript</h2>
    
    <p>
    Name: <span id="jname"></span><br>  
    Age: <span id="jage"></span><br> 
    Address: <span id="jstreet"></span><br> 
    Phone: <span id="jphone"></span><br> 
    </p>  
    
    <script>
    var JSONObject = {
      "name":"John Johnson",
      "street":"Oslo West 16", 
      "age":33,
      "phone":"555 1234567"};
    document.getElementById("jname").innerHTML=JSONObject.name  
    document.getElementById("jage").innerHTML=JSONObject.age  
    document.getElementById("jstreet").innerHTML=JSONObject.street  
    document.getElementById("jphone").innerHTML=JSONObject.phone  
    </script>
    
    </body>
    </html>
    

    Edit

    If you want to remove var json you can use ajax or jquery
    eg:

     $.getJSON("your url",function(result){
        $.each(result, function(i, field){
          $("div").append(field + " ");
        });
      });
    

    http://www.w3schools.com/jquery/ajax_getjson.asp

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really need your help. I want to put the characters of a TXT-file
I really need your help since I have a frustrating problem. I'm downloading data
I have a problem and would really need your help? My data (let's name
I really need your help. I'm working on this problem for weeks or months
We have a security problem here and we really need your help and inputs.
I'm new to Java and really need your help. I am presently using a
everybody! I have a little problem with jCarousel, so I really need your help.
I really need your help to achieve the following : First let me show
Hi guys I really need your help All I want to do is to
I really need your help for this. I am relatively new to programming and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.