jquery-ajax

Multiple select box with otpgroup

Hi, How to modify the script to work with optgroup? I would be very thankful to you in this regard. Thanks. ...

Update textarea with jquery

Trying to get current data from textarea with jquery and replace it with what server returns. so far q value is picked up right, instead of updating it with server returned content, it just replaces it with ' ' q = $('textarea#id_message').val(); alert(q) $("textarea#id_message").val(' ').load( '/process/url?html=' + q ); Up...

jQuery: execute ajax call from ajaxComplete

I need to call execute ajax call from withing ajaxComplete function. How do I do this without getting stuck in endless loop of ajax calls? Can I unbind ajaxComplete, run ajax call, and then re-bind it? If so, how? ...

How to process results from a jQuery ajax post

I am making a jQuery ajax post in a javascript function used by a asp:CustomValidator control. The web method returns a boolean. How do I convert the result make the validation script function correctly. Client side code <script language="javascript" type="text/javascript"> function ValidateInput(source, args) { if($('#MyTxtBox')...

Jquery not intercepting a form submition - Asp.net Mvc & Fancybox

Hello guys, I'm developing an application that uses Jquery to intercept my form submissions to make instead an Ajax Submission. So far so good! Everything works great.. If the client doesn't have JS enabled, the app keeps working flawless. Well, today I created a new form but JQuery doesn't intercept the submission. It's true that I ch...

Initiate jQuery UI Dialog from a result of AJAX call

I have Page A which calls Page B using AJAX. Page B will be put in a div container in Page A. Within the result (which is Page B), there's a code that will initiate a jQuery UI Dialog. The div for the dialog is also in Page B. However, it doesn't work. I'd have to put the initiation code in Page A. So, if I want to put the initiation cod...

Jquery scroll hits twice on IE

have this code that calls an ajax whenever the scroll of a div hits the end. It's suppose to be an auto-dynamic scroll. This ajax gets the next X itens of the list. $("#gvContacts").scroll(function(){ var scrolltop=$('#gvContacts').attr('scrollTop'); var scrollheight=$('#gvContacts').attr('scrollHeight'); var windowh...

Style switcher help

I need some help I have made a style switcher, but I cannot work out how to replace the stylesheet, at the moment my code empties the <head> where I need it to just replace the previous stylesheet, this is my code, Menu and javascript <ul id="options"> <li><a class="option" href="<?php echo base_url();?>welcome/setBackground/red">Red</...

JQuery Ajax basic question

Sorry folks but I asked a question earlier and perhaps did not explain myself very well at all. I answered the question myself to prevent further replies and hopefully to reset the question in a more basic format, as none of the answers worked/explained to me, stress to me, how to do it. There were 4 totally different answers to one bas...

jQuery $.get refreshing page instead of providing data

I have written some code using jQuery to use Ajax to get data from another WebForm, and it works fine. I'm copying the code to another project, but it won't work properly. When a class member is clicked, it will give me the ProductID that I have concatenated onto the input ID, but it never alerts the data from the $.get. The test page...

Making .NET Ajax request using jQuery

Hi, I am just wondering that, is there anyway to make an Ajax request using jquery ("$.ajax") and making partial rendering without using the .NET Ajax framework (without script manager). I have tried this before, but it's executing the page_load every time and not reaching to the pagemethod. function doAsync() { jQuery.ajax({ ...

Updating MySql using AJAX in jQuery Dialog Box

I have the following code and the SELECT is working correctly to pull in the form data, however, the UPDATE statement is not working. Any suggestions on what could be corrected to make it work would be greatly appreciated. <?php include 'includes/config.php'; require_once('includes/auth.php'); if ( isset( $_GET['aj'] ) &&...

Not all Ajax content loading on one domain

I have the domain http://whatthecatdragged.in/ forwarded (cloaked) to http://moppy.co.uk/wtcdi/ The root page (index.html) uses Ajax to load the content. At the original host (moppy.co.uk/wtcdi) the page and all content loads. However, at the domain forwarded domain (whatthecatdragged.in), some of the content does not load. Has it somet...

Slideshow background image

I have a php array that gets returned from a database, the array contains paths to images that I want o make up the background of my wrapper div in my HTML, I want to be able to add some javascript that will cycle through the array and a set interval show the next image in the array, is this possible, and is it possible to also have some...

Switching Controller Context in ASP.NET MVC for AJAX Calls

Perhaps this is impossible, but I figured I would ask anyway. I'm working on an ASP.NET MVC application that uses jquery/AJAX extensively. One of the AJAX tasks that gets performed is a call to controller action that returns a URL to redirect the user to. What I would like to do is to have the same controller context when making an AJAX...

jQuery 1.4 - ui Tabstrip with AJAX

So I have elected to play with jQuery 1.4 - and I am noticing something right off. This is not a real project ,so the code here should be taken with a grain of salt. I wrote it to reproduce the error. Essentially, try to follow the jQuery UI Tabstrip AJAX loading example - you will get awkward results. For instance, the tabs link as ......

jQuery .load (or $.ajax) to get and set page title?

So far... $('#container').load(hash + ' #page','', function() { $('#container').fadeIn('fast'); document.title = $('#title').load(hash + ' #title').text(); }); ...doesn't work. Is there a better/correct way to do this? FYI: - I've added the ID #title the tag (all pages/it's a PHP template). The container is .fade(ed...

jQuery live click binding issue with IE6/7

I have an issue in IE6/7 where they ignore the live binding of elements. I can't seem to find any solutions to this issue, and I really need both IE6 and 7 support (fixing one should fix the other anyway). The first click of my elements works as intended but afterwords the binding goes away and I can't get it to work. This does not happe...

Codeigniter and jQuery css switcher

hello, I have been following a tutorial on creating a style switcher with PHP and jQuery, now in the tutorial the PHP function uses get data, which is not available in codeigniter, I was hoping someone would be able to help me tidy up my sorry attempt? My PHP function function setBackground() { $style = $this->uri->segment(3)...

JQUERY, Calling a Dialog that I created? Not finding it...

Hello, I'm using the following code to create a Dialog box using JQUERY/UI: var $dialog2 = $('<div id="sharerdialog2"></div>') .html('<p>Loading...</p>') .dialog({ autoOpen: false, title: 'Image Stuffer', position: ['center',150], width: 450, focus:function(event, ui) { $('#dialogcloser').click(function() { ...