ajax

Firefox/Flash won't Autoplay on AJAX load unless page is visible

I have a music site that uses a flash program to play music. When a song is done playing, the flash program uses getUrl to call a JavaScript (jquery) function that reloads part of the page using AJAX. It reloads the part of the page where the flash player is, which then selects and starts the next song. Everything works fine in IE and C...

javascript page source help

Currently I am writing a system for a user that on filling in a form it creates a template for a HTML email that will be able to use with their CRM system, the issue is that you user is a bit docile and for the live of them cannot understand how to view the source of the page so they can copy and paste the template code into their CRM, w...

AJAX GET race condition?

I am attempting to track events when links are clicked on my site in a method similar to the following. <a href="/example" class="track">Example</a> <script type="text/javascript"> jQuery(function($) { // track clicks on all anchor tags that require it $('a.track').live('click', function(e) { // send an ...

jQuery + Google API + IE8 error

The following function works perfectly on our production site function flickrGetPhotos(){ $.getJSON("http://api.flickr.com/services/rest/?method=flickr.photosets.getList&amp;api_key=" + flickrApiKey + "&user_id=" + flickrUserId + "&format=json" + "&per_page=" + galeriaSetsPerPage + "&jsoncallback=?", function(data){ flickrBuild...

jquery .load() and IE

Hi there, Tested the below code with FF, Safary and Chrome and all works ok. But with IE... not so When the button "viewEditButID'" is click the div "customerDetailsDivClass" is hidden. When it's click again the div reapers but before it dose so it download the data is going to display. $(document).ready( function() { $('#viewEditButID...

How not to pass cookies in an ExtJS HTTPRequest

Hi, I have an application using ExtJS on the front end and TurboGears on the server. I am now started to add cookies to handle customisation front side using the CookieProvider state manager. This is cool but the cookies are passed on every call and these cookies are sizable. I have concerns about the performance hit. Long and short, is...

Update a controls viewstate on an AJAX callback

I update a rad combo control using telerik calllback method described here The items in the list are changed on the callback and I want to maintain this filtered list after the postback. Is it possible to update the viewstate in the server side method? I think if I can access this i can then update both my list of items on the client a...

Deal with jQuery.ajax empty content response

I have following "jquery/javascript" code: $.ajax({ url: "PpbData", data: {RaidId: raidId}, success: function(text) { $('input#PpbData').val(text); }, dataType: 'text' }); code updates a textbox from server using AJAX. It works. But when the response is empty string - I get 'no element found' in firefox console. Not a ...

jQuery already submitted vs. being submitted

Hey guys, I'm working on a jQuery function that forwards form data to page without interfering with the normal submission. I can do it without any issues as long as I capture the submit using .submit(), but I would have to run my own validation on the data because it operates independently of the regular submission. Is there a way for j...

MVC Ajax not loading Partial View in div, loading new page

Hello, I'm currently working with MVC 1.0 and have never worked with AJAX before and only have limited experience (started a little more than a week ago) with ASP.Net MVC. I'm trying to setup a table (that's built / is in a partial view) that's populated with information from a db that allows a user to quickly add pr remove records into...

How to get value to dropdown from database using ajax ?

Hi, I have dropdown with some optional value.if change the those value based on that will display another dropdown with value from database.I am doing this process in jsp page.First dropdown values are static(coded in jsp).but second dropdown values are come from database when changeevent of first dropdown. Here i need to implement aja...

Coordinating Asynchronous Requests in Javascript

I want to get two resources using two asynch calls. I want to proceed only when both resources have been retrieved. How can I do this elegantly in JS? This would work: getStuff1(function (result1) { getStuff2 (function (result2) { // do stuff with result1 and result2 .... } } but stuff2 only starts after stu...

jquery $.get(...) one at a time

i have a page with many actions on it, which triggers with $.get, but i want to run one at a time, rather then all triggering at once, that is lots of load time.. so what is the solution for me on this? well before you give answer.. i dont want to trigger based on time, i want to trigger after each request is completely done from ajax, ...

Choosing technologies for building Ajax RIA framework with scaffolding

Building decent RIA data-intensive crud-like application is still hard. In spite of existence tons of frameworks. I'm going to build my own framework for such kind of applications. One of key requirements is scaffolding (generating UI from model). Another is .NET server-side. I know about asp.net dynamic data, oracle ADF, fornax/sculpt...

How to prevent the browser from redirecting when a redirect response is sent via AJAX?

I'm trying to AJAX-ify the Django contact_form app using Django (1.4.2). I want to let Django do the heavy lifting when it comes to validation and template rendering so I can keep my templates consistent and server side. Therefore, I'm returning "partial" template renderings to inject into the DOM as the user submits the form. It almo...

Rails - is it possible to use ruby code in RJS files?

Is it possible to use ruby code in RJS files? For example, the destroy.js.rjs file if @template == "viewer" page["viewing_registry_#{@viewer_registry.id}"].replace_html :partial => "shared/request_viewer_link" else page["viewer_#{@viewer.id}"].visual_effect :DropOut, :duration => 2.0 flash.discard end This is the RJS file call...

Centering the Navigation bar

hey guys, I have a standard nav bar with an unordered list and using sprites. Im also using jquery to render some animation. Everything works fine. I have a problem with centering the bar. It is aligned to the left. I've tried using text-align:center but this doesnt work. I think there are conflicting properties. Could u guys please help...

Entirely Javascript Ajax spinner?

I was thinking that Ajax spinners are really great but the image spinning is actually shown with some delay OR is loaded too early, I thought maybe I could use these old school characters to provide more accurate ajax activity feedback. |, /, —, \ lets say the target paragraph is called <p id="target"></p> How can I interchange thes...

website offline jsp

Hi!!! =) I am creating a website using jsp, ajax, servlets. My framework is prototype. The connection is bad, so I would like my web application to respond correctly in situations like this. For example to give a message indicating you are working offline, and to report when plugged in again and can continue. The solution should wo...

An MMORPG using AJAX...

Hi. I want to start making an MMORPG which would run on the browser using JavaScript, AJAX and / or PHP. Of course it will use MySQL as storage for the user's data (position, items, etc.). It needs to be tile-based wherein users click on a tile in the map and their character proceeds to that tile. It can be isometric or not. So long as i...