ajax

IE 7 stops responding

In our asp.net 2.0 web application, there is a user control with validation. For some reason, when the validation fails, the pages looks fine, however, no controls (asp buttons, scroll bars, or third party like Telerik text editor) respond to mouse inputs. The only work around is to resize the browser window which will make the UI respon...

History management problem in ASP.net

I created a simple page with an UpdatePanel, inside that I have a couple of asp Panel controls, all with the Visible property set to false except for one. When the user clicks on some buttons on the side menu, the Visible property switches between the Panels being displayed, giving the user the cool & slick ajax feel. On the scriptManag...

Tricky jQuery operation, not sure if I am using 'this' property either.

Using jQuery, I am binding some image tags with a click event like this: $('.imageClass > a > img').bind('click', onImageClick); this.onImageClick = function() { $.post("/blah/123", { test : 'a' }, function(data) { myCallback(this, data); }, "json"); } this.myCallback(event, data) { alert($(event).parent.attr("href")); }; My...

ICEfaces: How to disable send-receive-updates mechanism for some forms

I am quite new to ICEfaces but already have experience with JSF/Facelets and the Java EE in general. Currently, I am not using to much of ICEfaces except some utility tags like outputStyle and outputDeclaration, but even this is really nice to have. Even though I plan on using some AJAX functionality later, I have some h:forms (or ice:...

Why is my onbeforeunload not running now when it was before? Or AJAX failing on second identical command?

This follows on from this question This was working: <body onbeforeunload= "ajaxRequest('UnlockQuery.ashx?QueryID=266&UserID=11631');"> This was created using the following in the aspx page: <body onbeforeunload= "ajaxRequest('UnlockQuery.ashx?QueryID=<%= Session["QueryId"] %>& UserID=<%= Session["UserID"] %>')"> This is not wo...

Load page within the page

Hi.. I'm a beginner in PHP and Javascript.. I found a link from http://cmichaelis.whsites.net/whblog/jquery-extjs-1/example2 Inside it there is a code saying : function addPanel(location) { tabpanel.add({ autoLoad: {url: location}, title: 'More Information...', closable:true, autoScroll:true }).show(); }...

Javascript or JQuery mindmap plugin

Does anyone know of a nice looking Ajax mind mapping module I can use? I'm interested in something that can save the minmaps to SQL to be entered into a database, however I'm happy to add that bit of functionality if required, it's the shiny-ness that I'm looking for. ...

Best way to get will_paginate working with Ajax.

If you google "will_paginate" and "ajax", the top result is this blog post: But the original author of will_paginate says to not use this method (bad for SEO/spiders) ... But I cant get the original authors method to work (his javascript kills all my links). An other gentleman suggests a similar method to mislav's (the original will_pa...

Distinction between Ajax 'success' and successful method call?

I have an jquery .ajax posting to a asp.net mvc method that has an 'authorized' attribute. Ajax callback is successful even when the user is not authorized to post to the action. First, what is the ajax success callback basing the success on? Second, to test whether the actual method was carried out, I returned a "success" string from t...

Changing CSS Values with Javascript

It's easy to set inline CSS values with javascript. If I want to change the width and I have html like this: <div style="width: 10px"></div> All I need to do is: document.getElementById('id').style.width = value; It will change the inline stylesheet values. Normally this isn't a problem, because the inline style overrides the style...

Zend Framework 'AjaxContent' & ResponseSegmentation problem

I'm using jquery in Zend Framework, it's my first trial. I've already found out through another question, that I can change the response by changing the context like so: $ajaxContext = $this->_helper->getHelper('AjaxContext'); $ajaxContext->addActionContext('myaction', 'html'); $ajaxContext->initContext(); Now this has helped a lot bu...

How do I download javascript string as a file

Application requests KML data through AJAX from server. This data is stored in javascript variables, and displayed in Google Earth plugin. In javascript, how do I provide a link to download the KML data stored in javascript variable (as a string) without requiring a request back to server? This link: http://forum.mootools.net/viewto...

django, google maps integration.

I'm in need of integrating a django application with a visually intuitive google-maps interface, for the purpose of radio dispatched security guards/emt's. I'm already using GeoDjango, although it appears it may be a bit overkill for the specific use. At any rate it's already making the geospatial processing on the server as easy as ...

Is monitoring location.hash a solution for history in XHR apps?

As is well known, in XHR (aka AJAX) web applications no history for your app is build and clicking the refresh button often moves the user out of his/her current activity. I stumbled upon location.hash (e.g. http://anywhere/index.html#somehashvalue) to circumvent the refresh problem (use location.hash to inform your app of it's current s...

Problem with flooding menu (php,javascript,ajax)?

I have two drop down menus on my website. Technologies used are Javascipt , php , mysql. City : [ ] Area : [ ] TODO: When user selects city I want to query database for areas in city and dynamically populate the area drop down menu. When user selects area I want to query database again for results that belong to that p...

AJAX Update panel swallows exceptions and its strange behaviour

Hi all I've got just caught with strange behavior of AJAX update panel. The first think made me embarrassed is that I have noticed that when I throw exception during async postback, it is swallowed by enviroment. Since it's first time when I faced to such issue, I started to make experiments - trying either to throw different types o...

Dashboard Cross-domain AJAX with jquery

Hey everyone, I'm working on a widget for Apple's Dashboard and I've run into a problem while trying to get data from my server using jquery's ajax function. Here's my javascript code: $.getJSON("http://example.com/getData.php?act=data",function(json) { $("#devMessage").html(json.message) if(json.version != version) { $...

good spell checker for IE6?

Please suggest a spell checker for IE6. Preferences (but not mandatory): open source free ajax-friendly If you need clarification please leave a comment. ...

JQuery Ajax form submitting

Not exactly sure why this is happening, but upon click of a button I call a JQuery Ajax control, after that I do not want to continue submitting the form, but before the page gets still submitted. <asp:ImageButton id="btnContinue" OnClick="btnContinue_Click" runat="server" OnClientClick="return false;" /> and the jQuery: ...

port listening in javascript

I'm trying to write some simple chat client in javascript, but I need a way to update messages in real time. While I could use the xmlhttprequest function, I believe it uses up a TCP/IP port on the server and possibly more importantly, is not allowed on my current hosting package. It doesn't seem like an ideal solution anyway as it seems...