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 JAVA compatible with html and js? Can we work together other than jsp???
To link the WEKA function.We implemented the java code using jar, and we need the html and js links for visualization. Is there any other method of linkage besides jsp?
There are various ways of working with Web tech and Java. JSP is an old-school means of generating a Web page using Java code and supplying it to a browser. This requires an application server capable of handling HTTP and JSP. Another approach is to create an independent Web page and to communicate with a server that is running Java. The simplest approach is, again, to use an application server that supports HTTP.
Reading between the lines of your question, I think the various solutions will require more effort than you were hoping.
Related
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
In web development, does the backend code always mix with the front code at some point? Checking jsp and some php I see that the code is usually mixed, is this a bad practice or should you always avoid using javascript as an intermediary?
Normally it depends on what you really want to do. But they are usually mixed
PHP was developed as a templating language for web, so basically it is what it was created for. But you might notice that in modern projects PHP used mostly as an API backend for Javascript application. In such cases, it will not be mixed.
It seems to me that it depends on the project type. But even if you do not use modern JS frameworks try to separate business and frontend logic. Check the MVC architecture or DDD.
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
So I have an html file with javascript and a python file. In the javascript file, the user enters a string. In the python, I would like it to search it in an api, and then return the string to be displayed in the html file. How do I do this? I have looked up how to use AJAX and get/post methods, but nothing has worked so far. Also, I should mention I am using flask.
The basic mechanics of having an HTML page communicate directly with another program is web server programming. If you want the web server to execute python, then consider setting up a Django server. Learning how to set up a web server and getting the two programs to talk with each other may take a while if it is your first time.
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 6 years ago.
Improve this question
I'm currently working on a PHP project, which should use markdown to display some text.
The question I ask myself now since there are markdown parsers for javascript and PHP is if I should parse the markdown Server or Client Side.
Pros Server-side:
Always the same, even on clients which have javascript disabled.
Pros Client-side:
More dynamic allows for Preview function.
Uses Clients-Resources instead of the Servers.
Did I miss anything?
What would you suggest?
Any help is appreciated!
Inspired by so-called Isomorphic Javascript or Universal Javascript, I suggest you to make the first rendering on server side; then when you update your page —using ajax— you make the rendering on client side. Doing so you would get the pros of both solutions:
a fast initial rendering of the page (no need to wait for the JS libraries to be loaded)
a reduced server load for following requests
an up-to-date user experience for edition
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 need to create a page which can be shared across multiple users. Means while doing some stuff on my page, that should be broadcast to all the users who are joining me that time. At the same time they can also do some stuff. Something like web conferencing. I need to either use javascript or C#. Is there any API or javascript plugins or any other libraries that I can use? If there then please tell me. I don't need to share desktop just need to share only one part of a web page or only one section only like you can assume I have a particular division, there I have a canvas. On that canvas, I will type or draw something that should be broadcast to everyone.
SignalR is an open source technology built by two Microsoft employees and leverages C# and JavaScript (there is a jQuery plugin for the script side).
A good example to get you rolling would be ASP.NET MVC 3 Real Time Collaborative Apps with SignalR.
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 9 years ago.
Improve this question
What I understood?
It shares some code between client and server as both are in javascript. eg: form validation.
How does this work?
Can the shared code be seen from the browser? If yes then it becomes easy for an attacker to find loopholes in our code. Since the same code is being executed in the server side the attacker can pass through the server side validation too.
Are there any drawbacks or security issues if we follow this approach?
It shares some code between client and server as both are in javascript. eg: form validation.
Yes. Since the only language that executes on clientside with any reliability is JavaScript, and since node.js is the only JavaScript serverside framework, node.js is the only way at the moment you can achieve this. (Java could also do it with applets, but pretty much no-one is using those any more.)
There's several JS projects that already use isomorphic principles - more here.
The only drawback is that you're severely limited in your choice of technologies, as described above.