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 8597923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:01:56+00:00 2026-06-12T01:01:56+00:00

I am using a jquery flot map and i want to add a php

  • 0

I am using a jquery flot map and i want to add a php variable to generate the values, I thinki have done something like this before but just cannot get it to work. I have two pages the first is the stats page which calls the chart as a class and displays the information from the flot.js page.

Below is a snippet of the code where it shows how the variables are put together.

var d1 = [];
for (var i = 1; i <= 14; i += 1)
d1.push([i, parseInt(Math.random() * 45000)]);

what i want to do is add a variable to the page something like this,

 var d1 = [];
for (var i = 1; i <= 14; i += 1)
d1.push([i, parseInt(Math.random() * <?php echo $test ?>)]);

with the value of the test var being set in the stats page before the flot.js page is called if that all makes sense.

At the moment the graph works fine in it’s original state but as soon as I add a php var to the page it displays nothing, any advice would be appreciated.

  • 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-12T01:01:58+00:00Added an answer on June 12, 2026 at 1:01 am

    Solved, I just copied the content of the javascript page to the chart page and the variable worked.

    Thanks

    Everybody

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

Sidebar

Related Questions

Im using jquery flot for displaying chart .... i want to show dual x-axis.....
I am using jQuery/FLOT to draw a graph, I would like for the user
Using jQuery UI I have two radio buttons, Approve/Reject, which I would like to
Using jQuery I'd like to add additional top-margin to a div 'foo', but only
I've been using flot for my jquery charting needs. Now, I need to add
Using jQuery, I am referencing a particular ID and then I want to add
I am developing an application using jquery mobile and flot charts. In That i
using jquery's .post i send do my php code an object that with var_dump
Using Jquery , I have an array result [<a href=><img src=image1></a>,<a href=><img src=image2></a>] if
Using jQuery Nearest Element , I would like to select elements in a circular

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.