ajax

JQuery ajax getJSON response has size but empty body?

We are trying to hit the meetup.com api using jquery's getJSON() method and are running into some problems. In firebug we can run $.getJSON( 'http://api.meetup.com/events.json?group_urlname=Closing-the-NOLA-Gap&key=ourkey', function(data) { console.log(data) } ); We can see the call taking some time. We can inspect the response ...

Creating AJAX Rich Mobile Site?

I'm thinking about creating a mobile website that's rich in AJAX and Jquery functionality. So from the phone, a user can experience capabilities such as: drag and drop, "loading..." images, dialogs that fade in and fade out, drop shadow dialog boxes, dynamic resizing of dialogs etc... When the mobile website first loads, it will probab...

How to load values without setTimeout?

Look the following example: <select id="connection" onchange="load_databases_of_this_connection();"></select> <select id="database" onchange="load_tables_of_this_database();"></select> <select id="table" onchange="load_columns_of_this_table();"></select> <input id="fieldcode" type="text"/> <input id="fieldcolor" type="text"/> <script ty...

duplicate ajax requests at random

I noticed that sometimes(randomly) my Mootools ajax request gets send twice. The second request succeeds right away but the first just keeps waiting indefinitely. I'm not sure if it's a bug in Mootools or something I've done. This has been verified with firebug in firefox and developer console in chrome. I couldn't verify it in IE, but ...

i want to add captcha with ajax

hi all, well i have a form in which email and captcha validation was there but now i want to do some thing like if captcha is incorrect or left empty than my form must not reload the page i.e all those field which are already been filled out must not get blank. ...

Display form field based on selection

Hi guys, I need to make a form that can display certain form inputs when another selection is selected, for example if I select gender: male, input form "blue" displays, and when gender:female input form "pink" displays. I am assuming that Javascript/jQuery would be the best bet? This is what I have thus far: function showHideSchoo...

AJAX form vs PHP-only, I'm concerned about graceful degradation

I've got a PHP-driven site that has a recordkeeping form. The user chooses a battle in the first dropdown, then the winning side in the second. Currently the winning side options are only Side 1 , Side 2 corresponding to which was listed first in the battle setup. The submission has an "are you sure?" step to make sure they have a chance...

Checking the form field values before submitting that page.

Hi I have written following function which checks whether start_date field is not empty and displays proper message when submit button is clicked. But then it takes the control to the previous page. So user has to write again all other fields on that form. Is there any way to stay on that page even after prompting the error message, wit...

Ajax function that works in Firefox but not in IE 6

Hello, i have a Ajax function that works in Firefox but not in IE 6 my ajax script : <script type="text/javascript"> function actualiserDLIS(){ var url = 'administration/gestionUtilisateurs.do?method=actualisationDLIs'; var params = 'DR='+encodeURIComponent(document.getElementById('selectDR').value); var myAjax = new Ajax.Requ...

ajax calendar in asp.net

hi, i am using ajax calendar.in that, on pageload i am displaying current system date. my problem is when i click on other date and on submitting form,the date is taking system date instead of new date. my code, protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { txtEnd.Text = Conve...

How To Refresh State of CollapsiblePanelExtender Without Reloading Page

Hi, I'm working on a specific part of a website that displays a blog and allows users to comment on the blog. Currently, the page starts with a bar with the title of the blog post, who posted it, and the amount of comments on the blog. When you click on the title it expands downwards and displays the blog. Below this, there is a bar sta...

asp.net + jqGrid + UpdatePanel

My updatepanel consists of two jqgrids,one buttonand one label. In button click, I'm binding grid to the datasource and setting label.text = "testing" label text shows up fine but jqgrid is not displayed at all. How jqgrid works in updatepanel? am I missing something? ...

Rerender RichFaces error message after ajax request

I am using custom ajax-called javacode that does some processing on the server. In this process various errors can occure that I add to the FacesContext via addMessage(). I want to display these messages in the same <rich:messages>-tag that I use for my validation errors. Do you know a way to display these messages in the <rich:messag...

Drop-down list dependent form

Hi, i think its a simple answer but not sure on the best method and i am new to forms. I want to have a drop-down list with model numbers in. When a certain model number is selected it displays a form with the appropriately named inputs. e.g. Model 1 - when selected - displays input field 1 and input field 2 Model 2 - when selected ...

Is Spring Webflow suitable for async. flows?

I've got my first impression of Spring WebFlow 2.1 from studying the reference app and reading the manual. Before going further, I would like to ask for the impression of this community. Actually, I plan my site to consist of only one single web page. Everything (login/logout, adding elements etc.) else is supposed to be updated via asy...

respond_to change response type

Hi! I am calling a controller's create action via ajax so when the object saves successfully, the js response is triggered. However, if the object fails to save due to validation, then I want the response to be html. I hope to achieve this by not returning the js response in the else block (please see code below) but this produces a 406...

How to hook into a field in the create content page in Drupal?

I am building an idea capture website from the Array Shift installation profile of drupal and I'm trying to create a similar entry lookup for when a user starts to create a new idea. Is there a way I can detect when the user is typing text into the title field of the create new idea form (a new content type I created in cck) and then, us...

Is there a limit to how much data I should cache in browser memory?

I need to load a couple thousand records of user data (user contacts in a contact-management system, to be precise) from a REST service and run a seach on them. Unfortunately, the REST service doesn't offer a search which meets my needs, so I'm reduced to just loading a bunch of data and searching through it myself. Loading the records i...

jquery datatables stuck on AJAX server side table

All, Wondering if someone could help. I've been using DataTables quite some time both via dom manipulation and JSON code. However, two of our larger resultsets are still running too slow, so I'm attempting to convert them over to client-side data sources. I have the table there, with headers, but the data is not being injected into ...

[jQuery & jQuery Tools] Loading content with ajax while scrolling

I'm using jQuery Tools Plugin as image slider (image here), but due to large amount of images I need to load them few at a time. Since it's javascript coded, I can't have the scroll position as far as I know. I want to load them as soon as the last image shows up or something like that. I have no idea where I put and event listener neith...