ajax

How can you dynamically load Javascript functions using Ajax?

(Rhetorical Question) I ran into a bizarre scenario today where I wanted PHP to update how the javascript behaved on-the-fly. It was irritating, here is what I tried... /* * ajax-php-javascript-function-loader.php * * this gets called by AJAX and defines or re-defines the * definition of dynamicDoStuff() */ <script type="text/ja...

Getting generated HTML via AJAX is a bad practice?

I can receive JSON. Is this a bad practice? And if so, who said that? W3C? No personal opinion, please Referencies links will be good. ...

show/hide works with JQuery 1.3.2 but not JQuery 1.4

I have a function which submits data to my server, and then removes the edit UI and replaces it with the regular UI. This works perfectly under JQuery 1.3.2 but does not work with JQuery 1.4.0. Any ideas? function save_edit(point_id) { var data = {}; data.id = point_id; $.post("/foo", data, function(responseData) { $("#value...

Open source ASP.NET Gantt Chart Web Control

anyone know where I can get a Open source ASP.NET Gantt Chart / Web Control Thanks ...

Selenium extensions: "blocking" commands

Is it possible in selenium to write blocking commands? I want to make a "clickAndWaitForAjax" command. It will click a button and wait until a div is filled with text from the server. It is clear to me this can be done with two commands, but can it be done with one? How? ...

Drupal Array of Inputs

I have a drupal form where users are entering a list of names (via textfields) and I'd like for them to be able to enter as many as they want. Is there some way to make an "input array" with drupal? Any ideas for using Ajax or Ahah to do this? ...

Enable a third button after two files have been uploaded

I have 3 buttons and I have the code to upload the files. First button I want to be able to click and upload a file. After this action I would also like to disable the button. Second button Same as the first. Third button After both files are uploaded I want to enable the third button and show a form using an iframe. How do I code...

Extract part of HTML document in jQuery

I want to make an AJAX call to an HTML-returning page, extract part of the HTML (using jQuery selectors), and then use that part in my jQuery-based JavaScript. The AJAX retrieval is pretty simple. This gives me the entire HTML document in the "data" parameter of the callback function. What I don't understand is how to handle that data ...

Drop Down List (in Update Panel) causing FULL PostBack!

Hi, I have a problem with my AJAX and ASP.NET 3.5 :( Problem is really weird, as I'm using the same thing on different page and it works fine in there, but on this specific page, this is not working. Here's what I have: <asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" Visible="true" RenderMode="Inline"> ...

Calling symfony helper from a php script needed for Ajax?

N00b question: I'm using Symfony with Doctrine. I have a form where I've added a little Jquery & Ajax check of whether a username that has been inputted into the form already exists. The jQuery calls a short PHP script on my web root that does the MySQL database check and returns true/false, which is then used to determine what error me...

JQGrid tree - passing additional parameters when tree is expanded

I have a JQGRid tree. It loads data click by click, not all at once. Typically, JQGRid passes 4 standard tree parameters with each call - row (level, parent, is leaf, is expanded). How can I pass more parameters that I will take from the row being expanded? E.g. data from Name column should be passed in AJAX call too. There doesn't seem...

javascript array to php

i want to send a javascript array to php using jquery ajax. $.post("controllers/ajaxcalls/users.php", { links: links }); where the second 'links' is a javascript array. when i've got this array: '1' ... '1' => "comment1" '2' => "link1" '3' => "link2" '4' => "link3" '2' ... '1' => "comment2" '2' => "link4"...

Help to scroll thumbs horizontally using a slider as the control

Hi I am generating a thumb gallery (4 pics horizontally by 2) from an excel file's contents (it has the picture names etc, needed to generate it), and I want to scroll the gallery horizontally using an ajax slider control - adding to the thumbs on the right and taking thumbs from the left so that only 4 to 6 (horizontally) are actuall...

Portfolio show up question

I like to have a portfolio that is dynamic and simple to update In one part there will be some little square preview, and hovering or clicking on these preview will update the LARGE section with the whole job i know pretty good the : MM_swapImage(), but like to do it in jquery or ajax Any demo or sample code around ? -- some researc...

Different approaches for File upload using Ajax

To upload the file using JavaScript generally iFrame approach is used in which Hidden iframe is maintained and then the file is uploaded using the iframe. However it is said not to be reliable method for the file upload and Flash is used for this purpose. So i am not clear how this is done? I mean by Flash and JavaScript together ? ...

How do I get Ajax to work with Telerik DockZone, ListView and DataPager

I'm having a bit of a difficult time trying to figure out exactly how to make a correct Ajax call work with the Telerik DockZone, ListView and DataPager. I'm hoping someone can help out a bit. I am dynamically adding RadDock in code behind to the Zones. Here is code for main page (which I have to restructure soon b/c of lots and lots o...

Calendarextender is not displayed with masterpages

Hi! I'm working with masterpages and after reading a lot of answers I can't find why my calendarextender doesn't appear Here is my code http://pastebin.com/m789f935e ...

JQuery code snippets that make a beautiful interface

We're creating a web app which is going to designed to be fully 2.0 (AJAX-ed and what not). As a rich-client and server-side developer, I know Javascript only at a functional level, but I'm beginning to learn JQuery based on recommendations and seeing how simply much of it. I've found things like SlideDown in its' API which will slide...

Add record via jquery ajax call to webmethod and update dropdown list.

i manage to add recrod via jquery ajax call to webmethod but i want to update the dropdown list once the record is been added. i dont want to use update panel. what would be the best way of doing that. thanks ...

Strange problem with Google Maps and Ajax in Google Chrome and Safari

I am developing web-application using Google Maps API and ASP.NET Ajax. Here is my JavaScript-code for PageLoad: map.openInfoWindowHtml(map.getCenter(),'Hello, <b>world</b>!'); First run is successful. But after execution some ASP.NET Ajax-function we have strange effect: In Internet Explorer, Mozilla Firefox and Opera everything is g...