jquery-ajax

Inject aspx forms and functionality with jQuery

Can you inject aspx forms along with their functionality into a div using the jQuery ajax load method. I am essentially trying to create a modal popup that allows me to load remote web forms into the popup and have the user use the form and submit.I have the modal built and it transitions in perfectly, however it isn't worth it to use if...

jQuery ajaxSubmit(): ho to send the form referencing on the fields id, instead of the fields name?

Hi guys, im pretty new to jQuery, and i dont know how to do that, and if it can be done without editing manually the plugin. Assume to have a simply form like that: <form action="page.php" method="post"> Name: <input type="text" name="Your name" id="contact-name" value="" /> Email: <input type="text" name="Your email" id="contact-email...

jQuery Dynamic Height Width of Modal

I am creating a modal that will be used for different aspx pages that already exist, so the div that I have to hold the pages (which will be loaded through ajax.load method) needs to grow vertically and horizontally to fit the need of the different popup pages. How would I go about retrieving the height and width of the documents I will ...

jQuery.getScript: data variable in callback undefined

I'm trying to load an external JavaScript using jQuery's getScript(), like this: $.getScript("http://api.recaptcha.net/js/recaptcha_ajax.js", function(data) { window.alert(data); }); but as the alert window shows, the data variable in the callback function is undefined, unlike promised in http://docs.jquery.com/Ajax/jQuery.getScript#...

Best practice: JSON/JQuery/Codeignitor with different tabs

I am creating a calendar list system, that has tabbed dates on top, with data listings below it. I think I know how to use JSON and load the data with JQUERY into a div, but I am not sure how to load it dynamically, based on which tab I selected. How would I do this, and what's the best practice? I am using the codeignitor framework. ...

jQuery $.ajax(), $.post sending "OPTIONS" as REQUEST_METHOD in Firefox

Having trouble with what I thought was a relatively simple jQuery plugin... The plugin should fetch data from a php script via ajax to add options to a <select>. The ajax request is pretty generic: $.ajax({ url:o.url, type: 'post', contentType:"application/x-www-form-urlencoded", data: '{"method":"getStates", "prog...

jQuery: getting data from the $.getJSON() method

I'm writing a web application and need to initialize some parameters that I'm pulling via the $.getJSON() method. $.getJSON("../config/", function(data) { console.debug(data); } Now since these values will be used globally throughout the script and will not be triggering an event directly (which is the only implementation of $.g...

Fancybox and Validation JQUERY

Hi i have a form that uses JQUERY to send an email containing name and email.. Im just wondering why on the first attempt the validation works but if you submit it again.. it doesnt refresh the validation and in addition, the fancybox that im using looks it getting an infinite loop and i can close the box anymore.. any solution or somet...

$.ajax() call to MSFT MVC failing in ISP, works locally

The following JQuery $.ajax() call in a .js file works locally, but not when I deploy to my ISP. $.ajax({ type: 'GET', url: 'Services/GetActivePatient', async: false, dataType: 'json', cache: false, success: function(pt) { Alert(pt); }, error: function(xhr, ajaxOptions, thrownError) { alert('Error loading active ...

How do you make ajax work from different directories?

First, let me show you the folder structure: public_html[] |_ project_folder[] |_another_folder[] |_xml_folder[] |_xmlfile.xml |_ js_folder[] |_javascriptfile.js |_ file.html |_ file2.html I have some file.html ...

jquery or what?

Hi there I'm curious about how www.cakephp.org menu has made. I'm talking about: "Get It Now/Hot Features/Learn/Interact/Features" Do you have any idea? ...

in IE, the "X-Requested-With" header of jquery becomes "x-requested-with" (lowercase)

Why it is converting to lowercase? In Firefox it goes as: "X-Requested-With". While in IE, it goes as: "x-requested-with" ...

Jquery Ajax remove rows from table and in db

Hello Everyone. I have a html table which if filled by values of an mysql table. This way: function getCategories(){ $prod = new C_Product(); $cat= $prod->getCategorieenAsArray(); $tr = ""; foreach ($cat as $key => $value){ $tr.="<tr><td>&nbsp;</td><td>$value</td><td><img src=\"images/delete_button.gif\"></td></tr>\n"; } retu...

AutoSave a form inputs using jQuery + ASP.NET MVC

We would like to implement a web form that automatically saves content at regular intervals.Something similar to gmail/google docs auto save funcationality. Can some one suggest how to implement this using ASP.NET MVC + jQuery? ...

MVC, Jquery, and Ajax to display object based on dropdown

I'm trying to design a view to accept donations, sell memberships, or sell tickets to events. I have a dropdown list that displays "Make a donation", "Purchase membership", and the subsequent options are populated from the IList<Event> Model passed from the controller. I use javascript to determine which panel (membership, donation, or...

How to come out from nested ajax

Hi, I have a tightly coupled javascript, where in there are series of if-else checks and multiple ajax calls are made. The ajax calls are nested type. My problem is I am in a deep nested ajax callable function and I want to get out from there gracefully. The snippet of the code is . function showSubscriptionLightBox() { $.get("/ajax...

JQuery ajax parsererror in ASP.NET MVC app

Hi, I am trying to call an ASP.NET MVC actionMethod via the JQuery ajax method. My code is as follows: $('.Delete').live('click', function() { var tr = $(this).parent().parent(); $.ajax({ type: 'DELETE', url: '/Routing/Delete/' + tr.attr('id'), contentType: 'application/json; charset=utf-8', da...

Modal window with jquery navigation inside

I am trying to set up a sites navigation which extends over several levels. I have built one option for the client where the different levels open using jquery and want to now see how this looks within a modal window. However, I am using FancyBox FancyBox which I have used to load the navigation from an ajax call. It displays fine unti...

Website but more like chat application behaviour

Hi I wanna make a website preferably using asp.net 3.5 in c#. In this web app, I need to push messages very frequently. (like if sender sends a message, it should immediately reflect to the receivers). So more like chat application but not bidirectional. My question is how can i refresh receivers webpage immediately? or How can i push m...

Can't get a JSON object to return from ASP.NET web servive using jQuery

I am finding many "solutions" to this seemingly common problem, but alas, none seem to work for me - of course. I have some jQuery code that is trying to post to an ASP.NET 3.5 web service. The web service is supposed to return some json. I am getting 501 Internal Server errors with the code below, but according to the solutions found...