ajax

Jquery filter script help

Hello- I am using a filter script and I am trying to alter the jquery a bit. (see demo here: http://www.askthecssguy.com/2009/03/checkbox%5Ffilters%5Fwith%5Fjquery%5F1.html) Now that you've seen the demo, you know that once you uncheck a box, it filters out the results with those tags in it. For instance if you deselect the "wordpres...

ASP.NET 3.5: Refresh some values in a UserControl when some action is performed in another UserControl

OK, this is my situation; I have a MasterPage. On the left hand side is a UserControl for navigation. In this UserControl I have another UserControl which shows details for the current "active" selection. What I want to do; When a user selects, say, a Customer in the main content area I want to populate pertinent details in the Activ...

jQuery: Handle fallback for failed AJAX Request

Can jQuery provide a fallback for failed AJAX calls? This is my try: function update() { var requestOK = false; $.getJSON(url, function(){ alert('request successful'); requestOK = true; }); if (!requestOK) { alert('request failed'); } } Unfortunately, even if the callback function of the $...

Intercepting call to the back button in my AJAX application: I don't want it to do anything!

I have an AJAX app. A user clicks a button, and the page's display changes. They click the back button, expecting to go to the original state, but instead, they go to the previous page in their browser. How can I intercept and re-assign the back button event? I've looked into libraries like RSH (which I couldn't get to work...), and I'...

javascript/dashcode: check for internet connection

i'm developing a widget that is fetching data from the internet via ajax and i want to provide a error message, if the widget cannot connect to the server. i'm doing the request with jquery's ajax object which provides a error callback function, but it's not called when there is no internet connection, only if the request is made but fai...

FABridge question

If i create a table in JQuery or any other Ajax framework, can i completely pass the table to flex with the same look and feel... using FABridge. ...

asp.net mvc ajax.BeginForm Redirecting

I dont think i quite get the Ajax functions in mvc, because i get this wierd problem. I got the following code which makes my ajax call, it is placed in a partial view with a productList: <% using(Ajax.BeginForm("AddToBasket", "Basket", new { productID = item.Id }, ...

Why does $.ajax call for json data trigger the error callback when http status code is "200 OK"?

I have the following ajax request: jQuery.ajax({ async: true, type: "GET", url: url, data: data, dataType: "json", success: function(results){ currentData = results; }, error: function(xhr, ajaxOptions, thrownError){ if (xhr.status == 200) { console.debug("Error code 200"); } else { cu...

X-Requested-With header not set in jquery ajaxForm plugin

I'm using the jQuery ajaxForms plugin to make an ajax submit to my CakePHP app. Cake's RequestHandler detects ajax requests by looking at the "X-Requested-With" header, but the forms plugin does not seem to set it. Or jQuery does not set it when using the plugin. I've tried several things, in the main onload function i added: $.a...

how to read data from external .htm file using ajax 4.0

i have used this example ...(with some changes ) and works fine. http://weblogs.asp.net/johnkatsiotis/archive/2008/07/23/asp-net-ajax-4-0-template-example.aspx here is code of .aspx page from my example <div id="divdata" class="sys-template" style="background-color:Gray" > <p>Event Title:<input id="title" size="150" type="text"...

jQuery: Check if a element exists (which could possibly be added through ajax)

I already know how to check elements that are there when the document is ready: jQuery.fn.exists = function () { return jQuery(this).length > 0; } But this method doesn’t know elements that are added with AJAX. Does anybody know how to do that? ...

Cookie - Ajax / Javascript

I have an ASP.NET 3.5sp1 app that is a single page design. The site never posts back. All interaction is done via ajax. (the site is http://BiblePro.BibleOcean.com) Anonymous access, no accounts in the app. I wish to save the user's state so that when they come back it returns to where they left it. Is there a way I can save a cookie t...

how to update databound controls in the tab panels using Ajax without reloading the page

Hi, I am using a tabcontainer in which there are three panels.I am having a drop down outside the tab container .Based on the selection in the dropdown I am binding dropdownlist,checkboxlist in the tabpanels of the container.My Problem is, when I select the Drop down outside the container, the page is getting reloaded always.Even the sel...

load a new page using ajax

I am new to ajax and i wanted to know if we can load a complete new page and not just a part of it using ajax. Please give a small example script for understanding if this is possible. Here i am trying to display only one url to user while i change from one page to another when he clicks on any of the links in the page. ...

jquery and setting range of values

I am trying to come up with a way using ajax and jquery to display a range of values for a select box. The first drop down has options that need to talk to a 2nd drop box and that is a range of numbers, I know how to set the value of a drop down to 1 value, but not how set the whole range. By default the dropdowns are being generated by ...

iframe problems

I have a page that has an embedded iframe doing ajax requests.... when i click on a link i want the new link to open up in the main window and not the iframe which it is doing right now... i tried doing this in javascript window.parent.location.href = url of link doesnt work... anyone out there with a better idea to do this??? also i ...

better to use jquery on form submit button?

isnt it better to use jquery for form submit? like: Username: <input type="text" id="username" name="username" maxlength="30" /><br /> Password: <input type="password" id="password" name="password" maxlength="30" /><br /> <input type="button" id="register" name="register" value="Register" /> and then bind the id...

IE 7 textarea breaks between words

Hi all, I've got a LAMP site with a form that a user fills out. For some reason if viewing the returned form submission data on IE 7, it's inserting line breaks between each word. It's a pretty basic form with some input elements and a text area. If I submit the form with FF3+, IE8, or safari this isn't happening and everything looks f...

ASP.NET MVC Ajax Form - If value changes in Model after post, Form still displays old value

This behavior is making me wonder about my sanity.. I have a form that has two places that accept input, let's call them ValueA and ValueB. The user can enter a value in either one and the form submits. <div id="MyUpdateTarget"> <% using (Ajax.BeginForm("MyControllerAction", new AjaxOptions { UpdateTargetId = "MyUpdateTarget" })) { %>...

Why does .html work and not innerHTML or appendChild

Hey! I am trying to add an ajax response to a div (it's htmlcode, tables, forms etc). In FF innerHTML works perfectly, but in IE it gives me an unknown error. I tried lot's of stuff, but I only got it working when I added jQuery and ran the .html method on the div I want the code inserted into. Anyone care to explain why this works ...