What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Java or PHP.. or JScript

Pages: (3): « First [ 1 ] 2 3 » Last »
Java or PHP.. or JScript
Author: Message:
LifelesS
Full Member
***


Posts: 115
Reputation: 4
32 / Male / Flag
Joined: Dec 2006
O.P. Java or PHP.. or JScript
Don't know if it's the correct place to post asking this, but it's something I want to implement on a script I'm building so...(h)

Anyway, my question is, I want to be hable to make a bar/line chart, but I don't know if I should use Java or PHP.

Java, you just need to have Java Platform installed...
With PHP it needs to be on a server...

Also, can it be done with JScript + GDI or something? How?

TIA
Best Regards,
Joćo Godinho
07-31-2007 11:27 AM
Profile E-Mail PM Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
RE: Java or PHP.. or JScript
You can make them in all of those programs, php or js being the most efficient (js the most efficient for the server)
Touch Innovation - touch friendly programs/applications for the windows mobile!


07-31-2007 11:35 AM
Profile E-Mail PM Web Find Quote Report
LifelesS
Full Member
***


Posts: 115
Reputation: 4
32 / Male / Flag
Joined: Dec 2006
O.P. RE: Java or PHP.. or JScript
maybe I'll go for js, that way it's all done locally... but how do I do it? can someone give me an example or point me to an example?
Best Regards,
Joćo Godinho
07-31-2007 11:39 AM
Profile E-Mail PM Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: Java or PHP.. or JScript
js wouldn't allow you to create a graph in an image form (ie. which can be right click > saved etc.), PHP would probably be the best way to go as it supports the GD library (you'll need to check with your web host though - or just try it and see if it works) and has perhaps some relatively simpler methods of creating such graphs depending on how you want it to look.

Most important is that you've planned how you're going to incorporate this PHP or JS into your script. If it's gonna be something done completely locally then JS is really the only way to go (if you want it to show in a browser), if the script user is going to have to visit a website then PHP is probably best. There are methods of doing this in a PlusWnd as well which would probably be most suitable for a script, but as I don't know what exactly you're trying to do it's a bit difficult to determine what's best for you.

This post was edited on 07-31-2007 at 12:52 PM by Volv.
07-31-2007 12:32 PM
Profile PM Find Quote Report
LifelesS
Full Member
***


Posts: 115
Reputation: 4
32 / Male / Flag
Joined: Dec 2006
O.P. RE: Java or PHP.. or JScript
PHP allows you right click and save and my web host has PHP. I can do it locally with Java too, the user just needs to have Java Platform installed, I think basicly everyone has Java installed. Thinking that way, I could probably use Excel to build the graphic... but not all people have office installed, I think Java is more 'safe' that way.

Using PHP I could also make a database for each user that has the script so they could see diferent graphics from diferent months/weeks/days.
Or just to save it in the script file path instead of filling a database (since the host I'm on is free :\)


The script I'm trying to make basicly does some % statistics about the number of online contacts, etc etc, and I would like to use a bar/line chart for a more... 'eye catching' thing, I think it could be interesting.
Best Regards,
Joćo Godinho
07-31-2007 12:45 PM
Profile E-Mail PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Java or PHP.. or JScript
quote:
Originally posted by LifelesS
The script I'm trying to make basicly does some % statistics about the number of online contacts, etc etc, and I would like to use a bar/line chart for a more... 'eye catching' thing, I think it could be interesting.

You don't need any webservices for that, i'm sure you can do that perfectly well with GDI+

This post was edited on 07-31-2007 at 12:54 PM by Ezra.
[Image: 1-0.png]
             
07-31-2007 12:53 PM
Profile PM Web Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
RE: Java or PHP.. or JScript
However, the user has to have Javascript enabled, and if they don't it wont work at all.
In most case's I would choose PHP because like so many people have said that it can be saved by the user. Also with php you can save it onto the server.
Touch Innovation - touch friendly programs/applications for the windows mobile!


07-31-2007 01:04 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Java or PHP.. or JScript
2D Animated Charts - The Code Project - Fonts & GDI

Check the C++ Source code, they will show how to create a graph using Gdip, then all you need to do is save the image based on its handle using GdipSaveImage.
07-31-2007 01:09 PM
Profile E-Mail PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Java or PHP.. or JScript
quote:
Originally posted by Napbree
However, the user has to have Javascript enabled, and if they don't it wont work at all.
In most case's I would choose PHP because like so many people have said that it can be saved by the user. Also with php you can save it onto the server.

But he's talking about msgplus scripts right? not browser Javascript?
[Image: 1-0.png]
             
07-31-2007 01:30 PM
Profile PM Web Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: Java or PHP.. or JScript
quote:
Originally posted by Ezra
But he's talking about msgplus scripts right? not browser Javascript?
Scripts use JScript, not Javascript.
07-31-2007 01:34 PM
Profile PM Find Quote Report
Pages: (3): « First [ 1 ] 2 3 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On