473,666 Members | 2,528 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to save Ajax

8 New Member
Hi all,

The file which containes Ajax code . Can save it as .html file or i need to
save it as jsp file.
when i tried using html it is not working properly,but when i changed it to jsp it worked well. Why so?

We can't save a file which has Ajax code as html.



Thanks inadvance.

Regards,
Nageshwarrao.a
Nov 27 '06 #1
4 5179
steven
143 New Member
Hi all,

The file which containes Ajax code . Can save it as .html file or i need to
save it as jsp file.
when i tried using html it is not working properly,but when i changed it to jsp it worked well. Why so?

We can't save a file which has Ajax code as html.



Thanks inadvance.

Regards,
Nageshwarrao.a
First you need to understand what AJAX is. It's not a type of language or code, it's just a method, a way to use existing languages and implementations .

It's typically done using javascript and a server side scripting language. For example, you could have a javascript interact with a PHP or JSP script on the server. The idea is to do the work whilst the user is viewing the page, then dynamically (dhtml / js) change the contents of the page, thus removing page reloading.

So, if you've written some javascript, the file extension should be .js

Please do not confuse JSP with Javascript. JSP is Java - not Javascript. JSP is a server side language, much like ASP, PHP, Perl, Ruby, etc...
Nov 27 '06 #2
Nageshwarrao
8 New Member
Hi Steven,

Thanks for the valuable Information about Ajax. If you Know good site for the
Beginner can you suggest me. Except W3schools.com.
Nov 28 '06 #3
AricC
1,892 Recognized Expert Top Contributor
This may help. This one also seems popular.


HTH,
Aric
Nov 28 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2651
by: C Watson | last post by:
Hi, I'm wondering if anyone can help me with AJAX in ASP.NET 1.1. I have a very specific feature that I would like to use it for. I have a rather long form that the users use to enter data during a phone call with a client. Since it's long, I put six Save buttons down the length of the form and asked the users to save often. When they click the Save buttons, the data is saved to a central database and a text label is changed to say...
5
20066
by: dougwig | last post by:
I'm trying to handle the scenario where a user's session times out and and their ajax request triggers a redirection by the webserver (302 error?). I'm using Prototype 1.4 and the my works great with Firefox,but with IE6 the onFailure never gets called and the request never completes. My code: var ajaxReq = new Ajax.Request( url, {method: 'post', parameters:
1
1935
by: John Chan | last post by:
Hi, Im doing a maintenance application in ajax and coldfusion at work on IE6 exclusively. I have a save button on each form and i have to do various validations server side and on client side when the user clicks save i.e check that user exists in table, check users password is the same as password in table, check password is valid, check that logged in user is a super user etc etc to get the correct error message. Different forms may or...
0
1013
by: darrel | last post by:
I was playing with AJAX a bit last year but never really took the time to fully analyze the various AJAX libraries out there for ASP.net 1.1 We're finally using 2.0, so have begun playing with the Atlas library. However, I have a 1.1 app that I want to add a few AJAX features to, but I have neither the energy nor time to rewrite it in 2.0 So, with that said, what would people suggest for an ajax library that would (as best as it can)...
1
5720
ak1dnar
by: ak1dnar | last post by:
Hi i need to download some files (.pdf/.doc) from web root. I am using a ajax script to send the file IDs and PHP will process it and it should generate the save as dialog box. Currently without ajax when i process PHP file i can open the download box to save the file. example: http://localhost/website/download.php?fid=1005 but when i am sending the fid (using a onclick event of a Image i am sending the ID to JS func ) through Ajax...
3
4315
by: nuchphasu | last post by:
Hi I have a problem on Dropdownlist that connect database and retrieve data by Ajax.I write javascript like this ------------------------------------------------------------------------- function ManageYear_onchange(machinetype) { var iManageYear=document.forms.ddlManageYear.selectedIndex; var vManageYear=document.forms.ddlManageYear.value;
5
2219
by: KingdomHeart | last post by:
I am very newbie in ajax, so please forgive me if my question are so dump. I want to create a box where user can type a message and when they click "Save" button. That text will be save. I got the function writefile to work. I named it writefile.asp. But my problem is creating ajax to implement the writefile.asp when user click on "Save" button. Here is what I got so far. Please help Here is my form.asp <%@Language=JavaScript%> ...
7
10257
xNephilimx
by: xNephilimx | last post by:
lHi guys! I'm having a little problem that's getting on my nerves, I couldn't find a solution, I also tryed googling it and I found nothing... (my field of expertise is in AS 2 and 3, but I still lack some JavaScript solid knowdlege) The problem is that when I try to send a form's content with Ajax (I'm using the prototype library), for some reason the latin characters (accents and stuff, like áéíóú) turn a mess when I try to store them in...
3
27538
by: chitty | last post by:
Hi iam new to ajax .I saw some articles on AJAX but i didnot found how to save that file with what extension
0
8440
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8863
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8780
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7378
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6189
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.