Guys I am just a beginner at javascript. I am really confused in between JavaScript, JQuery and AJAX. A little help will be appreciated.
Thank You!
Javascript is a core technologies of World Wide Web content production.
Jquery is a library built using Javascript to simplify your coding.
Ajax is a request made to a server asynchronously without reloading a page.(ajax can be implemented using both jquery and javascript)
In one liners
JS is scripting language used by most of the browsers and Nodejs
JQuery is a framework/library(more appropriate) for JS
AJAX is a browser implementation to send HTTP request in background
Related
I am writing a website and I have a very basic understanding of JavaScript (JS) but a good understanding of HTML and CSS. I want to have an admin part of the website were you can edit the content of the site. I also need help on how to display these text files onto the website using JS. Thank you for your help.
No. You can't. For this you will need backend server software, like PHP.
You can do it with ActiveX objects - http://www.yaldex.com/wjscript/jsfilecreateTextFile.htm - but you're tying yourself to proprietary IE support.
Other than that, you'll need a server-side language such as PHP.
In HTML5 you can operate on local files via the File API (have a look at http://www.html5rocks.com/en/tutorials/file/dndfiles/ for a quick tutorial) but manipulating files on the server using JavaScript on its own is impossible. You need to use AJAX to send a request to a PHP (or some other server-side language) script to do it for you.
Impossible, only server-side languages
how can i send a string value to a sever with java script without submit method?
i know i can use jquery or ajax but is there any other way to do that without any library?
i searched in Google and i find some good links:
How to send data to remote server using Javascript
http://bytes.com/topic/html-css/answers/154271-post-data-server-javascript-client-side
but all of them said we should use jquery or ajax
AJAX isn't a library - it's built into Javascript, and is available on pretty much all browsers from even IE6 onwards.
You can find full tutorials and instruction here: https://www.w3schools.com/js/js_ajax_intro.asp
Yes, that what you have to do if you don't want to refresh the page. Although, you could find other framework rather than jQuery. That framework still use ajax technology inside.
I've currently got a service that produces xml files every 10 seconds containing server information. I'm looking for a way to display this on a web page.
I have been looking on the web for the best way to do this and it seems that using AJAX would be good as it allows the loading of dynamic content to be done in the background.
However how can i use AJAX? Should i add a ASP.NET website to my visual studio project? OR should i look to use javascript & AJAX in something like dreamweaver?
I'm very new to programming so i only really have a bit of experience in vb.net.
Any help would be much appreciated!!
I'd use an ASP.NET page and use the built-in AJAX ScriptManager and UpdatePanel controls. They are very easy to incorporate.
Also, you don't want to bombard people with Raw XML, so learn to use XSLT. I would suggest rendering it on the server using the XSLCompiledTransform. Do this on the server, as you can mix and match the ASP.NET controls and HTML server controls. I would suggest creating a <div runat="server">, place this in the UpdatePanel, and render XML via XSLT to this.
I'm not a .net developer so i don't know nothing about .net controls. But maybe you should take a look into jQuery and its ajax capabilities.
http://api.jquery.com/jQuery.ajax/
how could i display a javascript message from a servlet.
I am searching examples
thanks for help.
that's a bit confusing: servlet is a server-side technology. JavaScript is working at the client-side (or you have a JS server?). You probably want to use AJAX to display a result of a servlet. I suggest you trying out jQuery.
You can check out this question as well on SO: How to learn AJAX using jQuery in a Java web app
I want to use Adobe's Blaze DS via ColdFusion through Ajax. I know enough ColdFusion and JavaScript to do what I want to do, but I want to add long poling into the application and it looks like the only way to do that is through Blaze DS...but I don't know enough about Flash/Flex to finish the job. Anyone know of an Ajax Mockup that works?
Using the Flex Ajax Bridge
The Adobe® Flex® Ajax Bridge
(FABridge) is a small, unobtrusive
code library that you can insert into
an Flex application, a Flex component,
or an empty SWF file to expose it to
scripting in the web browser.
http://livedocs.adobe.com/flex/3/html/ajaxbridge_1.html
Just found out about this today. Maybe easier than BlazeDS+Flex+Ajax?
http://www.ape-project.org/