?
Solved

jquery (?) reports inside of Wordpress

Posted on 2014-07-19
13
Medium Priority
?
254 Views
Last Modified: 2014-07-22
I need to display some statistics/graphical reports which often can be done using something like JQuery when in a stand alone application.

The data will be pulled from a separate database and I would like to display the results inside of WP without using iframes. In other words, I want the graphical displays to be an integral part of wordpress so that there are no extra scrolling windows, etc. Something very light on the server.

I assume this means a custom plugin or maybe one exists but before looking at that, i thought I would ask what might be the best solution in terms of what to use for the reports to begin with?

Perhaps others are already doing such things but using tools which are better suited than JQuery?

Thought I would ask so thank you for any input.
0
Comment
Question by:projects
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
13 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40206898
I need to display some statistics/graphical reports which often can be done using something like JQuery when in a stand alone application.

JQuery is included with every WordPress install, so all you need to do is write your scripts to pull the data.

I want the graphical displays to be an integral part of wordpress

Integral where?  Front end or back end?
0
 

Author Comment

by:projects
ID: 40207995
Front end, to display some mysql data as Line and other graphs.
0
 

Author Comment

by:projects
ID: 40211650
So Jason, I replied and am hoping to get more info :)
0
Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40211743
If you are working on the front end, then my first reply covers it.

JQuery is present in every WordPress install so all you need to do is write and deploy your script
0
 

Author Comment

by:projects
ID: 40211749
Oh, I'm so sorry, I didn't even notice that :).

If I can better understand this.

I have a small stand alone app where I need to display some stats.

One person says we'll just include jquery functions into the app then build jquery graphics.

The other says let's stick the graphics inside of WP instead, then we can also blog some into between departments.

Based on your reply, the difference is just that. Either use jquery in the app or build the displays using the already installed jquery in WP?

Sorry, this is all new to me so just trying to confirm.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40211800
Either use jquery in the app or build the displays using the already installed jquery in WP?

Pretty much.  Every page/post displayed in WordPress includes a call to JQuery.  To build a JQuery app you would most like build a new page template (search the WordPress codex for this for more information) that has your script integrated.  Or just build it like you would any static web page and link to it from WordPress.
0
 

Author Comment

by:projects
ID: 40211816
Wait now, that is what the discussion was about or the problem I should say.

The concern being that if it was done in the stand alone app, then it would end up inside of an iframe and people would have to scroll around to see the full page.

What we all want is a nice full scree, no scrolling around.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40211892
Why would you need an iframe?  If using WordPress, use a page template.  If making a stand alone app, use straight HTML.
0
 

Author Comment

by:projects
ID: 40211992
I meant if using a stand alone app. How would one have that display full page in WP if not through an iframe?
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40212067
Ah ha.  We have different definitions of what a "stand alone app" is.  In my mind, standalone means you are not using WordPress for any part of the project.

So in this case, you would want to use the page template solution.  It's easier to integrate.  A similar but slightly harder solution would be to call the WordPress theme into your "standalone" app by using wp_load(), get_header(), and get_footer() functions.  But that's way harder than it needs to be.
0
 

Author Comment

by:projects
ID: 40212106
LOL, that's why I'm posting this question because there is argument about which is best.

Correct. Stand alone to me means the app could function on it's own, have it's own php/html output etc. Integrated meaning it would become a part of the WP template in one way or another.

So if I am getting this right...

If stand alone, then the app gets the jquery included it in and we make a template page, no need for iframe. Quicker, not integrated but would work just fine and full screen.

If integrated into wp, more time consuming, more complex?, but fully integrated into wp meaning could use other functions/plugins, etc?

Having to make this decision and not truly fully understanding the ramifications, it seems I can achieve the same thing using stand alone.

However, if someone wanted to share their reports for example, then doing it stand alone would mean giving up those nice socializing aspects of wp?
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 total points
ID: 40212137
If stand alone, then the app gets the jquery included it in and we make a template page, no need for iframe. Quicker, not integrated but would work just fine and full screen.

Yes.

If integrated into wp, more time consuming, more complex?, but fully integrated into wp meaning could use other functions/plugins, etc?

I wouldn't say it's more time consuming or complex but on the other hand I know how to include things in WordPress.  Your mileage may vary.

If you build this into a WordPress site, you get the advantages of WordPress...easier content management, plugins, themes, etc.  

then doing it stand alone would mean giving up those nice socializing aspects of wp?

It's not particularly hard to add a sharebar to a static page...
0
 

Author Comment

by:projects
ID: 40212149
So I need to find a reasonably priced programmer who already knows how to do this because the ones I've been using for other things don't know much about this.

And, I've hired off of those freelancer sites and while the prices are good, the amount of frustration is unreal.

Guess I'm on the hunt.

Thank you very much.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question