ajax

Method for keeping track of "up" and "down" votes

I have a website that picks an entry from a database at random and then displays it to the user. I would like to add a "top rated" page on which the best entries as chosen by an aggregate of user opinions are displayed. I want up votes and down votes as seen here on stackoverflow and on many other websites. I am not very experienced wi...

Delete from Database without postback - Want to animate the disappearing item that is deleted

I have a site that show infomation that are contained in div blocks. The info is taken from a database so the user can change the info or delete it. When the user deletes a div block i want to use jQuery to animate that its disappearing and also that its deleted from the database. How can i do this without doing a postback, i dont wan...

Ajax DropDown Extender - Move Items Below

Hi I have a sidebar menu. There's not a lot of room, I'd like to use the Ajax DropDown so that only items at the top level hierarchy are displayed until the user clicks. I currently have one DropDown stacked on top of another (ultimately there will be approx 10). I've got the drop down working with an OnShow/FadeIn animation. The probl...

Injectng a new history entry without changing the url. Like google maps does.

I'm trying to find the best approach not to break the back button in my javascript application. In my research I'm trying to see what the state of the art is. So I turned to google maps to see how it works. It does have back/forward functionality, but it doesn't change the url when generating a new history entry. Try to go to http://ma...

linkbutton doesn't work for updatepanel

i have set of link buttons outside update panel but when click any one of them they donot work at all , when i set the postbackUrl they make full postback my source code : <asp:Panel ID="pnl_viewImages" runat="server"> <asp:Label ID="lbl_viewImages" runat="server" style="texalign: left" ...

Ajax / php - How to return failure

jquery allows for success failure and error responses. How can i return a failure or error manually along with a string that describes the failuer or error? ...

Ajax - disabling input until response received

Hello, should input buttons that submit ajax requests be disabled after a request is made untl the response is received. Im thinking specifically adding products to a shopping basket using a button. Im trying to make the process as bullit proof as possible but a quite new to using ajax so dont know the best practices on these situation...

django forms with jquery

well ive been searching for the past 3 hours and I cant seem to find a good tutorial on this ... i`m looking for a tutorial on how to make a form "wizard" with jquery and django (I dont know javascript only basics) I need a 3 step wizard ... first step 2 inputs user password if user and password are in db then show 2nd step 2nd ...

call ajax inside wordpress posts/pages

Sorry for this but I searched the whole web for a solution to my probleme but in vain :( What I want to achieve is creating a normal Post and adding a form to it that once submitted, goes to a database and gets back a value. I created a plugin for that and integrated it in the admin menu then set a function that queries the db : myfun...

html form radio value in an ajax loaded div

hello, i'm unable to get a radio value in a form loaded by ajax into a div. here is the javascript code i'm using. (the radio name is 'categorie_add' in get function) function getCheckedValue(radioObj) { if(!radioObj) return ""; var radioLength = radioObj.length; if(radioLength == undefined) if(radioObj.checked) return...

How to send a XML doc to server from client in jQuery

I'm trying to send XML doc to server from client. But when server get a XML doc. It's always empty. Here is my jquery function. It's send XML to server: var str = '<?xml version="1.0" encoding="UTF-8"?><foo><bar>Hello World</bar></foo>'; var xmlData = strToXml(str); // convert string to xml console.log($.isXMLDoc(xmlData)); // r...

expires max caches ajax

Using rails nginx with passenger. I put the following in the nginx.conf file for caching images, js. etc. But now I notice that my ajax calls are cached or rather the expiration is set to some 30 years in future. I would like to have the javascripts cached but not the ajax calls. How do I do it? location ~* ^.+.(jpg|jpeg|gif|png|css|js|...

Does BlogEngine.Net have a custom HttpHandler for all .aspx requests?

I'm working on customizing BlogEngine.Net to be able to return some HTML from an AJAX call. Basically I'd like to render a UserControl server-side and then return the resulting HTML to a client-side call. I've done this many times in other applications using static PageMethods marked with the [WebMethod] attribute. But any time I try th...

How can I make cucumber with capybara and selenium fire Ajax on page load

I have the following as a cucumber story: @javascript Scenario: Showing the page Given I am a logged in user And there is a member with a site And I go to the home page ..... When that home page is loaded, there is a drop down that is populated via AJAX on page, in the selenium run browser test the $(document).ready(funtion...

MXHR(dui.stream) will its works without cross browser issue ?

hi anyone worked out with dui.stream & mxhr in your projects i found some demos from digg website but still in cross browser issue i think, so anyone have more idea share with me, Thanxs, Gobi ...

dijit.Tree from XML

Hi All, I've been trying to get a Tree to work using my xml. But i'm like stuck without any clue as how to move ahead. I've tried quite a few things, which i've tried and would mention here. Background: I've been trying to create a tree from XML which looks like: <root> <hierlabel>A_Level0</hierlabel> <hierlabel>A_Level1</hi...

IIS deletes System.Web.Extensions.dll, why?

I moved a site to another server, it worked fine for a a while, but then crashed. I figured out that System.Web.Extensions.dll was missing, so I copied it again. After a while it was missing again. Using Process Monitor I figured out that IIS (w3wp.exe) deletes the file soon after I copy it to the bin folder. (CreateFile with "Read Attri...

Webform not defined (Weird AJAX problem)

Hi! We are having a very weird problem here. Even with the suspicion that is a setup problem, as I work for a hosting company, I need to tell to my client with all the possible success where the problem is. We are talking of: Windows 2008 / IIS 7 ASP.NET 3.5 SP1 Ajax toolkit In Internet Explorer 8, when changing the combo value (in...

How can I provide JSF2 with a custom PartialViewContext implementation?

I want to be able to process generic AJAX requests that do more than just updating an existent component. How can I override the default PartialViewContext in the FacexContext? ...

How to prevent the middle-button from opening a new tab in the browser?

I have a group of links on a page. when the user clicks a link it triggers an asynchronous request and a content area on the page is updated with the response html. This works fine, except for if the user clicks the link with the 'middle-button' (or mouse wheel, whatever it's called!). Then a new tab opens and the response gets returned...