File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to Save HTML data in Database? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to Save HTML data in Database?" Watch "How to Save HTML data in Database?" New topic
Author

How to Save HTML data in Database?

Bhavesh Sangwan
Ranch Hand

Joined: Aug 08, 2012
Posts: 57
Hi Experts ... ! is it possible to save html data directly into database somehow without using any server side technology like java/aspx/php....
If yes .. then plzz explain below... I really require the solution if possible.....

Thanks in advance and I'll thank specially again on submission ....
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42050
    
  64
You mean from within a browser? No, that's not possible (unless you consider things like an applet that makes a direct DB connection, but there are multiple drawbacks with the approach).

The question sounds a bit unusual, maybe you can explain what problem you're actually trying to solve, and we can then suggest alternative approaches.


Ping & DNS - my free Android networking tools app
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 296
    
    5

You could use Local Storage or IndexedDB on the client side as databases, or you could go the whole hog and use Offline Web Apps. But like Ulf says, you should tell us what you're trying to achieve if you want more specific advice.


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
Bhavesh Sangwan
Ranch Hand

Joined: Aug 08, 2012
Posts: 57
Actually I'm trying to insert records in MySQL database from a web page(HTML form) using JQuery OR java script only.....
I mean without using any server side programming languages - - without jsp,servlet, ASPX, PHP ....
according to my requirement, I can use only java script or JQuery...

I think now my problem is explained clearly... I'm waiting for urgent results.... please help regarding this....

It may seem very strange but this is... very urgent

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42050
    
  64
As I said, a signed applet might be able to do this, but it has lots of drawbacks. But I think the requirements are not well thought out - if there are HTML forms, then there should be form processing on a server somewhere. If there is to be no server-side processing, then you might be better off using a Java desktop app (or JNLP app) instead of HTML pages.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30596
    
154

Bhavesh Sangwan wrote:I mean without using any server side programming languages - - without jsp,servlet, ASPX, PHP ....
according to my requirement, I can use only java script or JQuery...

Who gave you that requirement? Can you ask that person what you should use? If the person knows enough to give an odd requirement, he/she should have opinions about implementation. If not, it is possible the requirement meant you should use jQuery (or AJAX) on the client side and assumed you would use a servlet at the other end.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Bhavesh Sangwan
Ranch Hand

Joined: Aug 08, 2012
Posts: 57
Thanks friends ! finally I come to know that it is not possible using only AJAX , Jquery or Java script without having some form processing server side languase,,,,


many many thanks to all helpers to guide me on correct way... Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to Save HTML data in Database?