How to develop a dynamic website without a server-side language? [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm a beginner in web development. The only websites I've made are in HTML, CSS, JS and jQuery, and all of them are static (with all the data hard-coded in HTML or JS).
I want to build something more engaging, without using a server-side language like node.js or PHP connected to a database, maybe populating the info on a website from a CSV "database".
My question is, how can someone make a dynamic website without using a server-side language?

Of course it is possible - with JavaScript.
CSV reading How to read data From *.CSV file using javascript?
CSV reading http://papaparse.com/
JSON http://www.w3schools.com/js/js_json_intro.asp
AJAX http://www.w3schools.com/xml/ajax_intro.asp

Related

How to integrate a python interface on website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 months ago.
Improve this question
I made a Python interface and I'm trying to integrate it to a HTML/CSS website in a <div>, but I have no idea about how to do it.
Any idea? Do you know any solution ?
Thanks in advance
If you built a command-line interface (CLI) to your app, then you can expose it to the Internet via web framework like Flask in form of REST API. Then you can access it with JavaScript on the frontend side.
But If you've built a graphical user interface (GUI) using framework like Tkinter, it is nearly impossible to transfer it to the web page without rewriting the code. Anvil seems to be able to provide web a GUI for Python, but I haven't tried it yet.

How to control Django with Javascript? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I am building a web application with Django and I show the graphs in the website. The graphs are obtained from real time websites and is updated daily. I want to know how can I send graphs using matplotlib to template and add refresh option with javascript which will perform the web scraping script which I have written. The main question is which framework should I use? AJAX, Django REST, or what?
You're better off using a frontend framework and calling the backend for the data via JS. separating the front and backend is a more contemporary approach and has some advantages over doing it all in the backend.
From personal experience, it gets really messy mixing Python and JS in the same system.
Use Django as a Rest-ful backend, and try not to use AJAX in the frontend, then pick a frontend of your choice to deliver the web app.

How to compress image using javascript and then send it to the PHP server? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to compress image before uploading it to PHP Server using vanilla javascript. I currently use PHP Compression however I was wondering whether it can be compressed in clients side browser so that it might save time uploading the images.
I will be using fetch API to interact with the server.
I have read the following answers in stack overflow.
Compressing an image before sending it to the Server
How to compress image size in JavaScript?
Also I want to make it using Vanilla Javascript and does not want to depend upon libraries.

Is it possible to write text in .txt file using angularjs or javascript? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Is it possible to write text in .txt file using javascript or angularjs or phonegap without using any backend
Is it possible to write text in .txt file using javascript or angularjs without using any backend
Short answer - No
detailed answer:
You must store somewhere your file and it can be done by server side only.
The client side (AngularJs in your case) loads vendors/bundle sources on web browsers and it doesn't have any access to your file system.
I believe Chrome extensions: fileSystem is not your case
is it possible in phonegap?
Well, its a hybrid mobile infrastructure and you have plugins to access mobile filesystem

how use postgresql with javascript? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am new in JavaScript and i want to create a page which store data in database so please help me and suggest me what i read regarding storing the data ?
If you only have little knowledge of Javascript and you're trying to have persistent data, I would recommend looking into localStorage and sessionStorage for the user session.
If, on the other hand, you're looking into storing data to a proper non-volatile database like PostgreSQL, but still has got only a bit of Javascript knowledge, I would recommend Meteor.js, which is a full-stack Node.js (javascript) framework and is very easy to use.
It does use MongoDB by default instead of PostgreSQL, but for prototyping does the job perfectly.
Have a look here https://www.meteor.com/

Categories