It is not ready yet, but...

User avatar
Roberto Lopez
HMG Founder
Posts: 4012
Joined: Wed Jul 30, 2008 6:43 pm

It is not ready yet, but...

Post by Roberto Lopez »

Hi All,

I'm facing a new project: A web app.

My obsession since I've started coding web apps, is to use the same code for desktop and mobile browsers.

HMGSCRIPT (back-end agnostic) is (basically) for desktop and HMGWEB (Harbour-CGI) is (basically) for mobile devices.

So, I've created a new little library called JMG.

The 'J' stands for Javascript (I'm sure that you can imagine the meaning of M and G :) )

This is (currently) just an idea (a concept) but I'm sure that (humbly) is really promising :)

It must be considered as pre-alpha. So, anything can change.

The main demo app is 'main.js'.

You can test simply double clicking 'index.html' file, excepting for AJAX sample. For it, you need to install any AMP server, copy the files to the web root and create the required MySql table.

No docs or help by now...

https://sourceforge.net/projects/jmg/

Enjoy!
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: It is not ready yet, but...

Post by andyglezl »

Fantastico !
Probé el "index.html", Adelante por favor.
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: It is not ready yet, but...

Post by esgici »

andyglezl wrote:Fantastico !
Yes, Fantastic :!: ( As always )

Thanks maestro :D
Viva INTERNATIONAL HMG :D
User avatar
Steed
Posts: 433
Joined: Sat Dec 12, 2009 3:40 pm

Re: It is not ready yet, but...

Post by Steed »

Thanks
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: It is not ready yet, but...

Post by Rathinagiri »

Roberto , it is really promising in these days of web.

jQuery is the best option and it has many widgets.

IMHO, it is better to send the whole query to php and we need not write any PHP code.

Thanks for sharing.

It will be better if we create a separate area in our forum for JMG also.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4012
Joined: Wed Jul 30, 2008 6:43 pm

Re: It is not ready yet, but...

Post by Roberto Lopez »

Rathinagiri wrote:IMHO, it is better to send the whole query to php and we need not write any PHP code.
It could be good, but creates a problem: The source (Javascript) is downloaded to client devices, so, it is available for the users, then, using a generic PHP procedure, capable of doing any query received from the clientes, could be extremely dangerous.

By the other hand, coding all in the same language and in the client app only, could be fantastic... so I'm open to ideas to achieve that.
Rathinagiri wrote: It will be better if we create a separate area in our forum for JMG also.
Yes, of course.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
serge_girard
Posts: 3308
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: It is not ready yet, but...

Post by serge_girard »

Thanks for sharing Roberto !

Serge
There's nothing you can do that can't be done...
EduardoLuis
Posts: 684
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: It is not ready yet, but...

Post by EduardoLuis »

Hi Roberto:

Excellent, this will make HMG grow up.-
Thanks for your effort and share with us.-
With regards.
Eduardo

Hola Roberto:

Excelente !!, esto hará crecer HMG aun mas.-
Gracias por tu esfuerzo y por compartilo con nosotros.-
Cordialmente.
Eduardo
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: It is not ready yet, but...

Post by Rathinagiri »

It could be good, but creates a problem: The source (Javascript) is downloaded to client devices, so, it is available for the users, then, using a generic PHP procedure, capable of doing any query received from the clientes, could be extremely dangerous.
Yes. It is a valid point I have missed out. But, except the query part, all the informations passed on as parameters are known to the users (via javascript) and they can do harm using that also. IMHO, a proper and better password and session management system can solve this problem.
By the other hand, coding all in the same language and in the client app only, could be fantastic... so I'm open to ideas to achieve that.


This is what I mean. Otherwise, we have to maintain our project in both PHP and JMG.

PHP 5.0 comes with SQLite by default and it might be also a choice if our application is used by less number of people and we use 'select' query most of the time.

I have created JMG forum and moved this topic inside that forum.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4012
Joined: Wed Jul 30, 2008 6:43 pm

Re: It is not ready yet, but...

Post by Roberto Lopez »

Rathinagiri wrote: Yes. It is a valid point I have missed out. But, except the query part, all the informations passed on as parameters are known to the users (via javascript) and they can do harm using that also. IMHO, a proper and better password and session management system can solve this problem.
You left me thinking... :)

Maybe... a generic PHP script for each basic SQL command (SELECT, INSERT, UPDATE and DELETE) and a very carefully assigned permissions for each user in every table could work...

Moreover, the fact that the user could (eventually) manipulate the source code, creates a lot of potentially unwanted scenarios, but, we can try it...
Rathinagiri wrote: PHP 5.0 comes with SQLite by default and it might be also a choice if our application is used by less number of people and we use 'select' query most of the time.
PHP includes from some time ago PDO. It allows to code once and switch database drivers.

Please, take a look at this:

http://wiki.hashphp.org/PDO_Tutorial_fo ... use_PDO.3F
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Post Reply