ajax

Twitter notification ajax bar, how did they do it?

I'm trying to get that cool, ajax sliding bar that twitter has (its slightly transparent, white). I tried looking at the html/css, but it seems that they dynamically inject the various DOM layers. Does someone know how they implemented it? I really want to learn how to do this. ...

Using Bookmarks with jQuery Address

I am using jQuery's Address plugin (website) to enable the back/forward buttons on my website. I would REALLY like to also have the ability for people to bookmark pages and to copy the address from the address bar and share it with friends. Address claims it can do this, so then what am I doing wrong. My code is function BackButton()...

Problems passing jQuery $.post a variable as a parameter

I am trying to send a name:value pair to a php script using the $.post object in jQuery where both name and value are variables. I have sent the variables to the console in FF, so I know they are being set correctly, but when I view the headers being sent, only the value variable is being evaluated correctly, the name is being sent as a...

Jquery .serialize isn't including the FIRST SET at INDEX 0

My jquery looks like this: var as = $("input[name=as[]]").serialize(); var bs = $("input[name=bs[]]").serialize(); var cs = $("input[name=cs[]]").serialize(); but it's not serializing the first set at index 0. ...

How to do nice and simple file uploading in javascript?

All I want is: select a file small progress bar (unless it is not simple) fail/success confirmation on client side trigger action on server side. all that without page reloading Except that, the simpler the better. Snippet would be most welcome. ...

Php include using ajax

Hi, I'm creating a web page that is built using "modules", in other words the page is put together using other php files. On one side of my page there is a div container with some links next to it, this div container will be used to hold certain information. The information is held within separate php files that I wont to be able to loa...

How an AJAX application informs client the events fired in server?

How an AJAX application like those written in ASP.NET AJAX informs client the events fired in server? I meant some application like Gmail. Gmail tells the client whenever a new email has been arrived. I'm very interested how is done in ASP.NET AJAX using UpdatePanel. I know UpdatePanel has a Triggers property, but it works only with Cont...

jquery paging problem

i am using JQUERY plug in for paging http://jonpauldavies.github.com/JQuery/Pager/PagerDemo.html its working fine on page. but when i call page via JQUERY load method, paging not showing $('#divbody').load('abc.php?q='+pid, null, function(){ }); and code on abc.php is <script type="text/javascript" language="javascript"> $(docu...

IE: why isn't AJAX resulting HTML updated in DOM?

I'm loading html content via ajax onto a div (using mootools 1.11 and squeezebox, if it matters). In the content that I load I have some JS that manipulates some of the loaded HTML objects. Everything works fine in FF, but when I load it in IE (tested on IE7 for now) the code fails with "'null' is null or not an object. A quick test show...

Long, slow operation in Django view causes timeout. Any way for Python to speak AJAX instead?

I've been programming Python a while, but DJango and web programming in general is new to me. I have a very long operation performed in a Python view. Since the local() function in my view takes so long to return, there's an HTTP timeout. Fair enough, I understand that part. What's the best way to give an HTTPresponse back to my users ...

ajax jquery - why this extra slash?

I often see code where the ajax files being contacted (somefile.php in the example below) are preceded with a / Is this / just to preserve the structure www.example.com/somefile.php or is it for security reasons like escaping? If it's the latter, an explanation would also help.. $.post('/somefile.php', { id: id, val: val }, function(...

Save to session - Does a cache mean the back end code doesn't always run?

Hello SO, So for a bit of background, I am creating a website with the Zend Framework. There is a page where I am using AJAX to save a rating to my database. I obvious need the key for the store in order to know what store the rating is to be saved for. In order to access the store for the page, the URL is MYSTORE.com/stores/2. The ...

Creating a Draggable Widget System

Hi, I'm looking to create a widget system, somewhat like what WordPress has. Please suggest what script would be the best for this. I've planned to use jQuery UI for this, but would like to listen to other suggestions as well. ...

jQuery Ajax call for buttons on a list

I have a list of data that i have in a view from an asp.net mvc application. It's a list of stock and I have two images (a plus and a minus) on the end of each row which will allow me to increase or decrease stock quantity. It works fine at present with a call to the mvc action but since the list is long I want to use jQuery and AJAX to ...

prettyPhoto and Ajax-loaded content

I'm currently working on a little product display page that loads prettyPhoto-enabled galleries through ajax. The problem is, prettyPhoto doesn't work on the images added after the page loads initially. I understand that I need to re-initialize prettyPhoto after the new content loads, but how? I've tried adding prettyPhoto.init(); to the...

How to test Rails Juggernaut in Internet Explorer?

I'm having problem with my Rails application. I use juggernaut for server push, which works very nice in Firefox, Opera and Chrome, but it doesn't work at all in IE. It should be compatible with IE6+. The problem is, that I can't find any debugging tools that can monitor network as Firebug does in Firefox. I tried IE debug bar, but ther...

Agile web development with rails - Ajax

i m using rails 2.3.3 and web browser Firefox i have added ajax and java script and it is working too but i have to reload the page every time when i press Add to Cart button to show item additionn in the side bar it don’t show it without reloading. anyone please help me how can it show item addition in side bar when i press Add to Cart...

Form response for many different pages in Ruby on Rails

In Ruby on Rails, I have an update method in a controller, that is being called by both ordinary HTTP requests and AJAX requests from many different pages. For example, a user might just use that controller's edit page, which submits to update by either ordinary HTTP or AJAX, depending on if the user has JS. On the other hand, the user ...

asp.net-mvc ajax query on keypress rather than submit button

I am using Ajax.BeginForm to update data on a webpage (as per the code below). Is there anyway i can hit the backend server on every keypress instead of waiting for hitting the submit button this way, when i type "a", it will query on "a' and show all the db results then if i type "b" it will filter the list on "ab" and so forth . . ...

Background image with a draggable second image (layers maybe)

Hello, I need to be able to take a background image and float a second draggable image (should be scalable, but with fixed proportions) Also the code should be able to 'flatten' the image for photo sharing. Oh, also the floating image should have a dropped shadow to give the illusion of depth. Thanks! Is this possible with jQuery, ajax,...