ajax

jQuery won't read JSON response (using $.post)

Hi All, In a nutshell, I have a form, which upon submissions, sends data to a serverside script to process a function, return data in JSON format for me to parse and spit back out onto the page. jQuery sends data to "createUser.php" via the $.post method $("#create_submit").click(function(){ $.post("/createUser.php", { c...

Where can I find the "First Time here?" JavaScript component of the StackOverflow website?

I need to implement for my Grails web site something similar to the orange and closable dialog that appears on the top of the StackOverflow website whenever SO detects that it is your first visit. (for a demo, just start your browser in Private/Incognito mode and go to www.stackoverflow.com) I am interested mainly in the front-end com...

image preview doesnt work on ajax embedded links

im using a jquery image preview plugin for showing preview of my link images when having the mouse over them. http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/ it works on links with images like: <a href="http://website/1.jpg"&gt;&lt;img src="http://website/1_thumbnail.jpg"&gt;&lt;/a&gt; however, it doesnt work ...

Ajax request not receiving xml from Django

I have a Django server which handles requests to a URL which will return some HTML for use in an image gallery. I can navigate to the URL and the browser will display the HTML that is returned, but I can't get that same HTML by doing an AJAX call (using jQuery) to the same URL. This is the view that generates the response: def gallery_...

Feedback form not displaying

I am trying to build a ajax feedback form but I am having problems getting it to display. The feedback image displays but when I click it nothing happens. My Form: <div id="feedback"> <img id="feedback_link" src="images/feedback.gif" href="javascript:open('feedback_form_wrapper');" /> <div id="feedback_form_wrapper" styl...

jquery image preview that work on ajax embedded image links?

there are various good jquery image preview plugins out there. however, all of the ones i've tested havent worked on image links that are embedded in the DOM with ajax. i have tested use jquery live feature, but it doesnt work flawless. $('a.preview').live('mouseover', function() { $(this).imgPreview({ imgCSS: { ...

Nitobi Grid remove the add row and remove row buttons.

Hi, I am using the Nitobi Grid in my php website. I would like to remove the buttons like add row and remove row on the grid toolbar. I cant remove the whole toolbar as i need the bar for paginating. Please let me know if there is any way to remove these buttons. Any ideas are appreciated. ...

How does Google achieve the fading effect on the home page?

If you go to google.com, you notice the menu on top slowly appears once you have mouse over the page. I was wondering what does Google use to control the fading effect? [edit] since I don't use jQuery, I don't want to include it just to use this feature ...

jquery and ASP.Net AJAX framework

Hello everyone, I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net. I am new to jQuery and ASP.Net AJAX framework. Suppose I need to use jQuery function (e.g. from jquery-1.3.2.js). I want to confirm that jQuery and ASP.Net AJAX framework are totally two different things, no dependencies? So, no need to install and configure ASP...

Ajax file upload script overwrites my session variables PHP

Below is the script that my ajax file uploader uses. The uploader itself works fine but i need a method of storing the files that are uploaded and I am using session variables. The problem is if I upload more than one file the first session variable is being overwritten each time i upload a file and so i end up with only $_SESSION['hamha...

Running siFR again after AJAX request

I'm using sIFR after the page has loaded to replace my headers. Now when I load some additional content into a div container using an XMLHTTP request, how can I run sIFR again to replace the headers of the added content? ...

Rails ajax request load view html only

Hi guys, I'm trying to make an AJAX enabled web page using rails and jQuery. The problem that I am running into is that when I try and load a view into a div using jQuery's AJAX method I am getting my application layout returned with the view. Is there a way to only retrieve the view data if it's an AJAX request, but load my application...

JQuery ajax div

I Have a a list of contacts like this. NameOfContact Accept NameOfContact2 Accept ...... Where "Accept" is a link. When I click "Accept" I want to send an ajax request with the id of the contact. When the ajax call returns it should remove the Accept link and display the result there. So if i click on Accept button of contact 2 the ...

Drupal: How do I modify form ui after 'Remove' button pressed using AJAX?

I am using Drupal 6 and have the AJAX module installed. I have the following code: function remove_manufacturer_role_form($form_state) { $form['#ajax'] = array( 'enabled' => TRUE ); $form['hidden'] = array('#type' => 'value', '#value' => 'is_it_here'); $form['submit'] = array('#type' => 'submit', '#value' => t('Remove yourse...

dynamic form using jquery ajax load posting to the same form

I want to load form dynamically using following : HTML : <div id="add_new" style="display:none"> <form id="addrecord_form" name="addrecord_form" method="post" action=""> <label>Type:</label> <select name="type_select" id="type_select"> <option value="A">Type A form </option> <option value="B">Type B form </option> ...

jQuery Ajax Loader

Greetings, I would like to know what should I do to make appear a ajax loader... actually I am calling a function in ajax... everything is going well here is how it's being done $('#txtEmail').blur(function() { $.post("ajaxAvailability.aspx",{ email:$(this).val() } ,function(data) { if(data=='false')...

Developing for FB, can't find a good tutorial- what tutorials HELPED YOU?

Please spare me the google answers, I've been googling all weekend (and off and on previous to that) to find good tutorials and I can't find any. It seems that everything I've found on FBML is VERY outdated or SIMPLY just a helloworld (which is REALLY REALLY basic). I currently do a lot in ajax and php, but making the transition to FBM...

What's the correct way to get HTML from an AJAX Response in JSON Format?

Hi all, I have an AJAX request that creates a 'post', and upon successful post, I want to get HTML to inject back into the DOM. Right now I'm returning a JSON array that details success/error, and when I have a success I also include the HTML for the post in the response. So, I parse the response as JSON, and set a key in the JSON array...

Jquery not responding for external loaded page

Hello, I've been lookings days for solving a problem, but i can not find the trick.. When i load an external php page into a div and click afterward on a link come with the external php code, this link does nothing. Please take a look at this code. index.php Test <script src="jquery.js" type="text/javascript"></script> <...

How to upload a file in asp.net without reloading a page

How to upload a file in asp.net without reloading a page ...