ajax

Ajax Request using Rails and jQuery Problem

Hi, I have a favourite and un-favourite functionality in my application and I am using jQuery. This functionality works partially. The page gets loaded, and when I click the 'favourite' button(it is inside add_favourite_div element), it sends a XHR request and the post is set as favourite. Then a new div called "remove_favourite_div" rep...

Where can I find good ajax support in Java/Python ?

Hello, I want a framework (or anything) that helps me make rich client guis. I know my server-side, but I don't like programming in ajax, javascript, css etc. Something that wraps the ajax code in some objects/methods with clean syntax, would do the trick. I want to write code in java instead of defining css and html tags. Does Java ...

DOM Elements with same id and jQuery

Hi I have multiple elements with the same structure in my application. Second div element's id varies as per the comment id in the db which is unique. There are elements with the id 'vote_up' and 'vote_down'. This gets repeated for each comment.What happens is that, as I mentioned, there are multiple comments. I want to perform an Ajax r...

how to create an function using jquery live? [Solved]

Hey all i am trying to create a function that well keep the user in lightbox images while he adds to cart, for a demo you can visit secure.sabayafrah.com username: mahmud password: mahmud when you click at any image it well enlarge using lightbox v2, so when the user clicks at the image add, it well refresh the page, when i asked abou...

Sending an AJAX Request - Can't get to work

I'm trying to make an AJAX GET request, but I simply cannot get it to work. I want to retrieve the HTML source of example.com. I've previously used JQuery to send AJAX requests, but I use JQuery only for its AJAX capabilities so it's a waste to include the 30KB file for one task. What is it that I'm doing wrong? <script type="text/...

Recommendation for a Pagination procedure AJAX PHP

Hi, I am not sure the correct terminology for the process that I am trying to describe. I don't even know which platform is underlying the technique. If you understand my description, please give the link to the site(s) and or the keyword name of the process. I think it is done by AJAX, but I am not certain. I use php as the backend ...

Can a yui aSync Request send objects as parameters?

Is there a way that you can pass in a javascript object to a yui aSync request or does it only accept a URI? ...

Drupal: reset user password from administrator

Howdy. I have a client who's webpage I'm building, wants a page where all users are listed with a function to send the users password to the users email for each user listed. I tried doing this by using a jquery post: $.post("/user/password", {name:"user.email@domain,com", form_build_id:"form-XXX", op:'', form_id:"user_pass"}, functio...

problem with '/' in the REST URL parameters for an Ajax call

var url = relativeURI+'/rest/PPS/Prod/'+encodeURIComponent(prod)+'/Section/'+encodeURIComponent(section); $j.ajax({ url: url, type: 'POST', error: function(){ alert('Error'); }, success: function(){ alert('ItWorks'); } }); } In this ajax call, if I have '/' in the parameters prod or sec, then there is an erro...

jQuery can't access elements loaded through AJAX

I have a little application written in PHP. The front-end uses jQuery and AJAX. At one point, jQuery loads some content in through AJAX. The problem is, it can't then access any of the elements it just loaded. Anyone know why? Thanks in advance! ...

Javascript: wait until ajax request finishes to close page

I would like the browser to keep the page open until the ajax requests are sent. This is what I imagine it would look like var requestsPending = 0; window.onbeforeunload = function() { showPleaseWaitMessage(); while(requestsPending > 0); } // called before making ajax request, atomic somehow function ajaxStarted() { reques...

Getting XML Element by name in ajax responseXML?

I'm having an issue with an AJAX script I'm fixing - an AJAX connection is being made, XML data is returned (Properly), however the data is not being shown correctly in any browser other than IE. Elements are being gotten by using xmlData.childNodes[1] - which works fine in IE, but in Opera, Firefox, Chrome, etc., different data is retur...

Calling ajaxWatermark extender in javascript

i have a Ajax Control toolkit water mark extender for a search box which is there in a master page . Based on certain condition ,i would like to change this value from the child page which inherits from this master page .I want to do it in client side with jquery /javascript . Any ideas?? ...

How to handle browsers where JavaScript may be turned off?

Suppose I'm developing a web app that is heavily dependent on JavaScript and which uses AJAX for all the POST commands to store data, etc. How should one deal with those situations where a user may have JavaScript turned off? Is it unreasonable to require that a user's browser has it turned on? Are there any best practices for these...

AJAX post to simulate Input type="file" path

Hi, I would like to know if its possible to make an AJAX post request to submit a file path to a form. Basically, I want to know if its possible to simulate the path a normal input type="file" would create, but in an AJAX request. Also, is it possible for that link to be pointing to a file on another website? I think I have no other cho...

Use Of Ajax - for opening a file ans showing its contents on webpage asynchronously

I am redirecting output of some unix commands say ls -a >> test.txt to the file named test.txt. Now I need to open this file and show the contents on the browser asynchronously as the user executes the commands on clients side . I need to append the contents of this file on webpage by continously polling the server . I am new to ajax ...

Making AJAX calls secure

What happens if a user looks at my JavaScript file, copies the content of a function and sends a request to my server using AJAX? And is there a way to properly protect against this from happening? ...

Input-type-file path, where is it stored on AJAX request ?!?

Hi, I have been monitoring the parameters a website receives when a file is uploaded (via an input type="file"). Surprisingly, the parameter and its value were looking like this : parameter: upfile value: filename="this is the name of the uploaded file.png" Content-type: image/x-png Now in this POST request to the server page...

Any suggestions for good automated web load testing tool?

What are some good automated tools for load testing (stress testing) web applications, that do not use record and replay of HTTP network packets? I am aware that there are numerous load testing tools on the market that record and replay HTTP network packets. But these are unsuitable for my purpose, because of this: The HTTP packet for...

parse chunked reply through ajax

Is there any way I can parse a chunked response through AJAX as the chunks are being received? For example, server.com/ping is set up so it sends a new chunk with some javascript in it, something like ping(), every 10 seconds which updates a number on the web page visible to the user. Is there a way to parse the individual "chunks" of i...