ajax

How do I send a 2D array from jquery to php?

I have a 2D array which I want to send to a php page with $.ajax. This is the code which creates the array: for (var i = 0; i<rowlen; i++) { if (breakcheck) { break; } for (var j = 0; j<=columnlen; j++) { ...

Google Calendar like ASP.Net Event Calendar

How can we create a google calendar like control in asp.net or can anyone suggest any free/cheap components to achieve this? I've found several in codeproject but none of them do quite what I want. Edit: i found it on my own: thanks to the clubsite starter kit from asp.net http://www.asp.net/downloads/starter-kits/club/ ...

jrails loading remote_form_tag rails

I recently switched to jQuery using jRails for an app. 99% of all my previous RJS seems to work perfectly, the only except is the :loading => callback when using the remote_form_tag. <% form_remote_tag :url => '/hostels/update_currency', :loading => visual_effect(:appear, :load_currency), :html => { :id => 'currency' } do %> I have ...

Ajax architecture in Django application

I am trying to find the optimal architecture for an ajax-heavy Django application I'm currently building. I'd like to keep a consistent way of doing forms, validation, fetching data, JSON message format but find it exceedingly hard to find a solution that can be used consistently. Can someone point me in the right direction or share the...

Jquery autocomplete not working from within a get ajax request

Hello, Im using the JQuery autocomplete plugin (http://docs.jquery.com/Plugins/Autocomplete) .I have an input field called by in my page.The following code works. <script> $(document).ready(function(){ somedata = "Core Selectors Attributes Traversing Manipulation CSS Events Exciting Electronic Effects Ajax Utilities".split(" ");...

How do I do ajax navigation on pageload ?

I have a page with several reports that are produced via ajax calls. I am prototype.js framework on this page for some of the display functions. The links for each report have anchors/tags like #Report1, #Report2 etc, which are hrefs with onClick functions that do lots of work to create the report via javascript. I would like to make i...

What is the best to learn next to aply extra functionality to CMS templates

I've learned CSS and HTML, what should I learn next if my goal is to create templates for joomla and worpress? ajax? php? js? I poked around and haven't found a question that is alike so I posted this one thank you in advance! ...

my ajax script gets processed all over again even after the server has already responded successfully

so I put this alert() message inside the process() function just for testing. and it gets called every after the response has been made by the server. the process() is the function being called via onclick. what could be the problem and how to get away with this? ...

Using Ajax in ASP.Net -- Non-Default Code Structure

Hi, All, I want to add Ajax functionality to my Asp.net project. Currently I just need the basic partial Page update feature. I used ScriptManager and UpdatePanel in the Aspx Pages, the triggers is also set up correctly. However it does not work. I think it is because of the architecture of my application. The architecture is like this: ...

Session state with jQuery/Ajax and ASP.NET web service

Hi, I'm trying to consume an ASP.NET web service, using jQuery's Ajax methods. I want the return type of the web service method to be JSON-formatted data, and I'm marking the method with these attributes: [WebMethod(EnableSession = true)] [ScriptMethod(UseHttpGet = false, ResponseFormat = ResponseFormat.Json)] public MyObject[] GetMyO...

Broken HTML From AJAX Request Using JQuery

I'm parsing an XML file and trying to return the output to a div. However, for some reason .append() doesn't seem to be generating the correct HTML output. Here is the JQuery snippet: var list = $('<div class="response">').appendTo(this); list.append('<ul>'); $('item',data).each(function(i){ var dow = $(this).find("day").text(); ...

jquery to prototype, ajax and slide

hi, i am moving from jquery to prototype because of compatibility issue with IE6. basically, i have a multiple submits in one page and i want to submit the form via ajax and return the result to associated div of each form. this is what i have used in jquery for multiple submit i am getting value of submit id and using that for div val...

What are scriptmanager benefits over direct jquery ajax calls?

I am a little confused about the benefits or conc using scriptmanager with ajax calls or use JQuery to direct call webmethods. Can some one give me some hints about this issue? when to use which? there is any different while dealing with JSON? ...

Is it possible to seamlessly display an ajax spinner for every GWT RPC call?

Hi everyone, I have a GWT application that uses RPC calls heavily. I would like to display a spinner icon whenever a call is in progress. It is easy enough to display the icon, but I want to do it seamlessly in one place so I don't have to explicitly hide and show the icon for each call. I guess I am looking for something similar to jQ...

how to update a Django page without a page reload ?

My Django app displays data from a database. This data changes without user intervention, i.e. behind the scenes. Whenever it changes, I would like the webpage to update the changed sections without a full page reload. Obviously AJAX springs to mind. When the page is loaded initially (or manually, fully re-loaded later on), the rendered...

send php variables to php file using jquery ajax?

i want to send a php variable $thread_id to php file using jquery ajax, so the php file can get all posts for $thread_id and echo it back to main file. it doesnt work when i type: $.get("ajaxcall_reply.php", thread_id: $thread_id, function(data) { $("#threads").html(data); }); how should i type? ...

Ajax autocomplete (or autosuggest) with TAB completion/autofill similar to shell command line completion?

I'm implementing a AJAX autocomplete/autosuggest feature, and not only do I want to do the usual show suggestions that are similar to what the user typed, but I'd like to let the user do partial completions to save typing. So, imagine my dictionary has these values in it: "green apple", "green pear", "green fruit", "blue sky", "blue wa...

How do I $.post an array with jQuery so I can use the array in my PHP file?

I have the following piece of jQuery code: function saveSchedule() { var events = []; $('ul#schedule-list').children().each(function() { events.push($(this).attr('value')); }); jQuery.each(events, function() { alert(this); }); $.post("schedule_servic...

Calling a function in the parent page from an element ajax - loaded into a div

Hi y'all... I think this is a common problem... yet i have not been able to find an answer for this... I load some text boxes into a div within a page using ajax when a link is clicked... and during the onFocus event of this newly added elements of the page, i have to call a javascript function that is in the parent page... My probl...

html email problem with posted php variable

Hi I am working to send email with the html body. Body html is posted by php variable with ajax. but all html will be ignored. for example in email.php HTML element <textarea id="html" cols="20" name="TextArea1" rows="2">HTML code is here</textarea> Javascript var html = $("#html").val(); $.post("function.php", { html: html }, fu...