Solved

jquery (?) reports inside of Wordpress

Posted on 2014-07-19
13
243 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
  • 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
 
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

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 500 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now