ajax

jQuery $.post();

I have a question about $.post() in jQuery. the general syntax is : jQuery.post( url, [ data ], [ success(data, textStatus, XMLHttpRequest) ], [ dataType ] ); I'd be grateful if someone could shed light on what exactly data,textStatus are along with an example if possible Thanks! ...

Recommend me some books or resources

So I've been working professionally as an ASP.NET developer for about 2 years now, right out of college. I'd never worked with ASP.NET before, so I was thrown right in when I started my job. The only problem is that I only learned .NET at a very high level, and that's where I stand right now. I can develop a web application just fine, b...

Any way to run JS after swf is finished playing?

I'm working on a project where a SWF will play (as sort of a splash), followed by JS. After the video plays, the navigation and content will appear, and the video will fade out. I'm just wondering what would be the best way to accomplish this? Play the video first and then load everything via ajax behind the scenes? The goal is to be as ...

ASP.NET Ajax Controls that still provide some level of functionality with javascript turned off

I am looking for some ASP.NET Ajax Controls (similar to those by Telerik) that, unlike those those by Telerik, still provide some level of functionality when the end user has javascript disabled. Does anybody know of any products like this? ...

How to update a Drupal 7 AJAX Form?

I am creating a Drupal 7 module. Currently my goal is to get the form to insert something into the database and then tell the user that it worked. I can get it to submit to the database just fine. Getting the form to rebuild and tell the user that their term has been submitted won't work. I keep getting variations on these alert errors: ...

One HTTPS ajax call in codeigniter.

I am trying to create a secure login for my site, who's form logs in with AJAX. Unfortunately, as it currently stands, I am sending the username and password using http completely unencrypted. After looking through basic encryption methods in Javascript that I can port to Codeigniter to decrypt, I've read that the best thing to do is j...

LIghtbox not working inside prototype driven AJAX webpage

Hi, I have encountered a problem using prototype AJAX when trying to include a lightbox on a link. I have tested the lightbox works on the same page outside the script tags, so I know paths etc are correct. When I click this link a box should appear asking if I want to proceed or cancel. However, instead it sends me to the actual p...

Best approaches to merge 2 standalone ajax applications?

I'm looking to display multiple web projects (in this case a standalone ajax webmail client, and a standalone ajax webchat client). In the same browser window... I would like the objects to be able to overlay one another (like the way google talk messages appear over gmail). What direction should I consider going in? I'm thinking of u...

Ajax or JavaScript: Changing Style According to Server Response

Hey, I'd like to change the font color or the responseText based on the result. For example, if the responseText is NOT FOUND, I'd like to font color to be red. Otherwise, it will be black. It's currently displaying the correct responseText; I just want to change the color when necessary. Here is my current Ajax: function newXMLHt...

Get php results with jquery ajax

I don't know why I am having a hard time with this, but it's about time I came up for air and asked the question. What is the best way to call a php file with jquery ajax, have it process some inputs via $_GET, return those results and again use ajax to replace the content of a div? So far, I can call the php file, and in the success o...

How do I use MS chart controls with AJAX?

I'm in the process of taking older code that referenced Dundas Chart and converting it to MS' chart controls (System.Web.UI.DataVisualization.Charting). Most of it was pretty straightforward, but it seems that the Callback Manager is no longer supported, which supported async/ajax calls. The only article I can find about using charting...

How do I get this page programatically?

Here is the page THE LINK TO LYRICS SITE If I use normal method, all I get is the "http://lyricsvip.com" and not the lyrics. ...

IN PHP , how to have datagrid or gridview

Hi , How do select row in table ?? suppose table has ID and Name if I select first row and middle row and click on submit button, How to display selected values ? ...

I want to execute a function when new dom elements are added somewhere in the body

Hi, I would like to execute a function when new dom elements are added via ajax, somewhere in the body, by a 3er party JS. The function i want to execute is jqueryui's tooltip(), which changes title attribute into nice tooltips. The problem happens when a 3rd party JS adds new elements to many differents div's, and the new element's 't...

Is AHAH a security risk?

I am considering using AHAH extensively on a project and am concerned about security. Couldn't an attacker inject malicious code into my response that would then be executed in the client? If my AJAX response is JSON, I don't have to worry about this because if things are tampered with the JSON will no longer be valid. On the other hand...

Internet Explorer $.ajax / MVC JSON call failing

I have a relatively simple example of an MVC page that is using jQuery to make a POST to get some JSON data and then just show a success/failure message when it is done. The code works perfectly fine in the other browsers but in IE7/8 it seems to fail 4/5 times. Here is the MVC View Page: <asp:Content runat="server" ContentPlaceHolderI...

Making a simple ajax post in jQuery and Ruby on Rails

I am trying to make a Ruby on Rails post via AJAX, and can't figure it out. So close! HTML: = link_to image_tag(current_user.votes.any? {|v| v.votable_id == post.id && v.value > 0} ? 'vote-up-selected.jpg' : 'vote-up.jpg'), vote_up_post_path(post) CONTROLLER: def vote_up get_vote @vote.value += 1 unless @vote.value == 1 @vote....

ajax login with spring webMVC and spring security

I've been using Spring Security 3.0 for our website login mechanism using a dedicated login webpage. Now I need that login webpage to instead be a lightbox/popup window on every webpage in our site where upon logging in I get an AJAX result whether it was successful or not. What's the best way to go about this with Spring Security and ...

jQuery to PHP and back again!

I'd like to pass content back and forth from PHP to jQuery and vice versa. I'm not sure if I fully understand the best way to go about this and am hoping for some best advice and clarification. Below is an example of something I'm trying to do. The PHP lists the files in a directory (whose path is passed to it from jQuery), stores them ...

jQuery: get the type of an Ajax response

I need to make an Ajax request, but its response may vary and it's decided on the server side. Is there any way to know what type the response is? It may look similar to: $.post(url, pars, function (response, type) { if (type=='json') ... if (type=='html') ... }); Thanks ...