ajax

converting from prototype to jquery

I'm trying to do a simple ajax update of a div from a php file that gets data from a mysql database. One function populates the div, the other adds messages to the database and is called on click of a submit button. I was wondering if someone could give me their equivalents in jquery. Below are the prototype versions. <script> function...

Simple autosave for Spring MVC form

I have one page form done with Spring MVC. User has to register first and I would like the form to be saved automatically so user can come later to finalize it. Traditional form submission with a timer is not what I'm looking for. Instead, I am planning to use some ajaxy way to send fields to the server at each onFocus event. Any sugges...

Alternatives to Iframe

I have been developing a service that allows users to insert information from my database onto their sites by using iframes. The only problem was that the iframe needs to be resizeable and this is one of the biggest problems with iframes as most people already know, aswell as the fact I can access objects on the parent page from within t...

IE hanging, using 100% of the CPU

I have a web application, which in the course of a normal interaction, hangs IE. By "IE being hung", I mean that IE doesn't respond anymore and using 100% of the CPU. The only to get out of this state is to kill the IE process. About the app: It loads only one page in the browser, communicates with a server with Ajax queries, and updat...

Is it possible to load an entire web page before rendering it?

I've got a web page that automatically reloads every few seconds and displays a different random image. When it reloads, however, there is a blank page for a second, then the image slowly loads. I'd like to continue to show the original page until the next page is loaded into the browser's memory and then display it all at once so that i...

What JavaScript library to use for client-side form checking?

Over the years, I've dabbled in plain JavaScript a little, but have not yet used any JavaScript/AJAX libraries. For some new stuff I'm working on, I would like to use a js library to do client-side form validation, and want to know which would be best for that. By best, my criteria would be: quick and easy to learn, small footprint, c...

username availability checking using ajax in GRAILS

I am doing one web application in grails.Now I am making signup page.In signup page I want to check the username availability via ajax.I can write the code for username availability checking in controller or service.I struck with how to contact server from client side via ajax. My sample gsp code is <g:form method="post" action="signu...

Live username lookup with AJAX/Jquery

I want to have a javascript function such as this: function isUsernameAvailable(username) { //Code to do an AJAX request and return true/false if // the username given is available or not } How can this be accomplished using Jquery or Xajax? ...

Validating and Submitting a form using Javascript + Ajax

Here's what I'm trying to do. When the 'Submit' form is clicked on my form, a javascript function will loop through all the fields of the form. For each field a function will be called which would return true/false to indicate if it was filled in correctly or not. If a false is returned, it shows an error message next to that field. If...

JQuery star rating plugin - disable after vote submission

Hi, I'm using the JQuery star rating plugin (v2.61) from http://www.fyneworks.com/jquery/star-rating/. Everything's going well, but I'd like to disable the stars when a user has voted. Currently my users select their rating and click the mouse. This updates my database through an AJAX call. The star rater changes to show the user's ...

What do you call DHTML these days?

So lately I've been catching a lot of crap from a junior developer whenever I use the term "dHTML". I know the term is dated, but it's descriptive of what the task is: changing rendered markup on the client. I cringe whenever i see the term Ajax applied to client side animation or form validation where no asynchronous request is being ma...

Simple AJAX Script will NOT load on Homepage only

My email script on the left navigation panel... under "Brad's Secrets of Attraction" will not load on the homepage. It works on EVERY other page. Live Site: BradP.com SITE MAY BE NSFW This is strange to me. Does anyone know why? ...

How to update a <div> with jQuery and CakePHP?

I'm using CakePHP for a small web app and on one form page there's a dropdown to select a job number. I'd like to update two text fields based on the job number selected in the dropdown using jQuery (I'm also open to using the default ajax helper but I didn't have a lot of success with it). Here's my jQuery snippet: <script> $(doc...

AJAX Checkboxes

I have a server driven site using php and js. One section displays all photos that our users have uploaded, and an administrator then decides which photos to keep for final presentation. Most of the site uses jquery for inplace edits, yet this task has me stumped. I want to insert a row into a MySQL database table that copies the URL ...

How to know when jquery $.get ajax calls have completed?

I have a php / mysql / jquery web app that makes 13 ajax queries to various APIs and stores the result in a database table. To each result I assign a score and when all the results have completed I want to display a 'total score'. My problem is knowing when all the ajax queries have completed and all the results are in and ready to be t...

Failed to load viewstate. Happening only occassionally. Tough to recreate

Details of Error are given below. This error happens only occasionally / rarely / sometimes and there aren't any steps to reproduce it. How can I know which Control is throwing this Viewstate error??? Error Message: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was use...

Force session timeout in an ASP.Net AJAX application

I have a large 1 page ASP.Net application. Much of this application has been entirely rewritten using .Net 3.5 from a previous version that was using .Net 2.0. As a result, the designers of this revision decided to put the entire page inside of an update panel (sigh). It seems that the only good part about this update panel is that it...

how to print another page from the current page ?

i need to print a different page from the current page , that is to describe my problem more precisely .. i need to put the print button in one page but need to print a different page , also need to send a value to the second page which is to be printed. If somebody could help me will be very much thankfull ...

where is the Sys.WebForms namespace?

I see it in the solution I am looking for, but if I try to use it I get: CS0103: The name 'Sys' does not exist in the current context I have VS 2008 SP1 installed, I am probably missing something that is pretty obvious? ...

how to print the contents of a hidden iframe?

i want to print a page which i put in an iframe but dont want the contents to be displayed in the webpage , but the print button doesnt work when i put the iframe to display='none' what i did:- i set the iframe style='none' "name="frame1" > <input type="button" onclick="frames['frame1'].print()" value="print!"> how can i print the ...