ajax

ie8 breaks with asp.net ajax

Hello, When using asp.net ajax (scriptmanager, timer, updatepanel) with ie8, after certain time (~3h) IE breaks with null object, constructor, or paramArray (depending on the asp.net code). Even with the simplest timer (no ajax, no updatepanel) ie8 still breaks. On every other browser it works fine, and if I code the ajax myself it wo...

Multiple dependent select boxes, the Rails way?

Hey Guys I am trying to create a car application, each car belongs to a make and model, but only certain makes have certain models. So I would like a series of select boxes that are populated dynamically based on the previous, however I also would like to add another record to that select box if you cant find the one you want. I would...

How to pass variable values from one page to another page using AJAX and jQuery?

How to pass variable values from one page to another page using AJAX and jQuery. I have categories like this main category users,names.first names ...etc and sub menu A|B|C|D|E|F||G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z . ...

Dynamically created image doesn't show when <img>'s src is refreshed to point to it

Hello, I have a javascript function generateGraph() { ... jQuery.get('chart.php?month='+month+'&year='+year); document.getElementById('graph').src = 'charts/'+month+'_'+year+'.png'; ... } which is called onChange. It basically creates, if not exists, or refreshes if already exists, a PNG image (using the first line ab...

Django server side AJAX validation

Hi, Recently I'm trying to implement a simple Django application that include one server side AJAX validation, it's a simple form input field (username). I have used a pre-built in line AJAX validation library which uses jQuery. So the code goes like this HTML snippet <form id="simpleform" method="post" action="/done/"> Username:<inp...

UpdatePanel and ModalPopup Extender

I have my form designed as <asp:Panel runat="server" Id="xyz"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> 'Gridview with edit/delete - opens detailsview(edit template) with data for editing </ContentTemplate> </asp:UpdatePanel...

Context Sensitive Help - PHP Class

All, I have a PHP Web application built using Zend Framework and MVC with MySQL database. I plan to implement Context-Sensitive Help for the application.. I did my research but I didn't find any good pointers on how to achieve this. Can someone point me to a book or a nice reference with example that does this? I see this implemented ...

How do I send an array in an .ajax post using jQuery?

I have looped through a simple gathering data and pushing it into an array. I am then trying to send that array to a page method (.aspx). There is something about the array that it does not like I think. Here is my code: //packaging table data for submit to server $("#saveToDB").click(function() { var dataFo...

jQuery $.ajax(), pass success data into separate function

I am using the jQuery $.ajax() function. I have put this into a parent function, which passes some values into the ajax function. What I would like to do, is have a user defined callback function, which gets the data param passed in from the ajax success function. Here is what I was thinking would work, but it is not: testFunc = func...

JQuery load and css

Hello, I am loading some text dynamically into a div, but have the problem that everything below this div is moving around depending on the content loaded. How would I limit the space belonging to the div with the dynamic content, such that the user only sees the text changing not the layout of the page. thank you. patrick ...

Sequence diagram with javascript to ajax to php calls

I'm needing to document some functionality on a page that has a jQuery watching for a button click. On the button click the script pulls info from two fields and makes a ajax call to a php script passing these values to the php script. ...

AJAX Return Problem from data sent via jQuery.ajax

I am trying to receive a json object back from php after sending data to the php file from the js file. All I get is undefined. Here are the contents of the php and js file. data.php <?php $action = $_GET['user']; $data = array( "first_name" => "Anthony", "last_name" => "Garand", "email" => "anthon...

Conditional "Get Script File" in Javascript without using a library function

I work at a company that has many clients that have their own website that "plugs in" to our system. In other words they have their own website and they have a link that, when the user clicks it, transitions them over to our site. There is a feature that I want to track by giving the client a small block of code to put on their homepag...

Prototype: Form.serialize missing some inputs (due to table?)

I'm using JavaScript Prototype (through Ruby on Rails) to handle some Ajax calls; but in one particular case I'm missing a field from the form. I have a layout like this: +---------+---------+ | Thing 1 | Thing 2 | +---------+---------+-----------+ | o Opt 1 | o Opt 1 | <Confirm> | | o Opt 2 | o Opt 2 | | +---------+---------...

AJAX call in for loop won't return values to correct array positions

I need to get a range of pages using AJAX and put them into an array, where their given place in the array is equal to the i of a for loop (it's a caching-like function for blog pages, and the range of the for loop is entirely variable). I'm doing something akin to the following: var bongo = new Array(); for (i = 0; i < 10; i++) { ...

jQuery set ajax return value in form field

I've always used ajax to load() the contents of a DOM element but now I'm trying set a form field value with the result of the following query: $('#form_field').load(base_url+'ajax/get_yearly_fee', { 'q_value': $(this).val(), 'client_id': $("#fee_client_add").val() }); What's the best way to do this? ...

fixing the header row in gridview??

I used a grid view in my project. in that i used vertical scrolls.. its work fine. But the problem is , when i scroll down the header is also move I want to have a fixed header provided the contents alone scroll. please give me an advice in this regard. I found many examples but most of them did not work for Chrome.. is there somethi...

Getting jQuery to return an ajax object

Hello, The question title is a bit strange because I'm not exactly sure how to phrase the problem. The issue is that I have many links to which I want to bind a click event with an ajax call, and I'm just looking to refactor some duplicate code into a single area. The links I'm trying to bind an ajax call only have one thing that diffe...

what does xhr status code 408 error mean in jquery ajax

i am making ajax calls with jquery like this http://pastie.org/860837 and sometimes i get the ajax errors, and i get xhr status as 408. what does that mean? ...

jQuery AJAX type: 'GET', passing value problem.

I have a jQuery AJAX call with type:'GET' like this: $.ajax({type:'GET',url:'/createUser',data:"userId=12345&userName=test", success:function(data){ alert('successful'); } }); In my console output is: GET:http://sample.com/createUser?userId=12345&amp;userName=test params: userId 12345 userName test In my script i ...