When you show and hide a div, will it re-adjust surrounding elements automagically?
Sort of how google maps http://maps.google.com/maps?hl=en&tab=wl has that little icon where you can show/hide the left pane.
Is it just making it visible with a animation effect or its more elaborate than that?
...
Is there any way to pass HTTP AUTH username and password along with an Ajax.request()? Basically, I'm trying to find the equivalent of:
curl user:pass http://url.com
Is seems this has to be available, but I can't figure it out. If not, is there another JS alternative?
...
I use a XMLHttpRequest on a signup form to see if the username they entered has been taken already. The script runs fine, but I notice that there's some time delay when making the request - the webpage is frozen for a second, after sending the request.
Is there a way to have the request "in the background" and not cause any lag on the f...
How do I make it so that the browser calls up a php page and posts the results in a div every 10 seconds or so?
Thanks. I am just learning jquery.
...
Hey guys,
I have this custom written CMS that uses CKEditor *(FCKEditor v3) for editing content. Along with that I'm using the jQuery Validation plugin to check all fields for error prior to ajax-based submission. For passing on the data to the PHP backend, I'm using the serialize() function.
Problem is, serialize manages to grab...
The Idea
I have a main PHP page that loads content in DIV's from an external file using JQuery and AJAX.
The page works as follows:
Main page has list of links, when link is clicked, AJAX loads an external DIV onto the page.
This new DIV, then has another list of links, when clicked, AJAX again loads another external DIV
There are no...
I am executing a function where first I am making cursor to wait state(hourglass) and then I am sending a synchrounous AJAX request .After getting the response I am making cursor to default state.
The Actual Code is this..
// tests the smtp settings
function TestSettings()
{
var buttonparams= new Object();
buttonparams.IsCommandBu...
I am using GWT for my client side application. However, I am not sure how I can handle session management. The GWT application resides on one page, all server calls are done via AJAX. If a session expires on the server. let's assume the user didn't close the browser, and sending some request to server using RPC, how could my server notif...
I don't have any expirience in ajax functions of jQuery. I'm trying to make simple call like:
$.get ("ajaxsupport/login");
I have a servlet with url-pattern ("ajaxsupport/login").
When I type in browser's address field "http://localhost:9090/ajaxsupport/login" I see some result. But $.get (..) doesn't even make a call.
What is the ...
what is the correct way to determine that an AJAX call is successful?
I see in prototype.js
return !status || (status >= 200 && status < 300);
and in jQuery:
// IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
return !xhr.status && location.protocol == "file:" ||
( xhr.sta...
I need to insert a bit of Javascript into the process when a Web Form is submitted, but after the client side validation takes place.
RegisterOnSubmitStatement seems to place the javascript before the validation.
Anyone know how to get it to render after?
Solution found:
In a web control, I put something like this:
protected overr...
I have a problem with json data insertion in my DataTable.
Here an example of json data send by server :
{"geneItemList":"{"col":"symbol","qv":"cd4","limit":"-1","start":"0","geneid":"920","name":"CD4"
,"symbol":"CD4","lastupdated":"2009-05-20 10:01:52.0","lastmodified":"2009-05-20 11:12:37.0"}
,...
And here my YUI code :
<script ty...
Lemme preface this by saying I'm relatively new to AJAX.NET, but I've done some classic AJAX, so I am familiar with how it's supposed to work. Anyway, I have a control that inherits from DataGrid which I've put into an update panel. The rows in the grid are sorted based on the status of the item they contain. You can change the status...
I have an IP Camera that streams out live video to a web site of mine. Problem is, it is powered by an ActiveX control. Even worse, this control is unsigned. To provide a more secure alternative to the people that are using browsers other than IE, or are (rightfully) unwilling to change their security settings, I am tapping into the c...
I want to send a parameter to the webservice. The parameter needs to be a variable and not a fixed string.When I write the following code the webservice is called fine and is executed perfectly.
$(document).ready(function() {
$.ajax({
type: "POST",
url: "JsonTestService.asmx/Test",
data:"{'url':'http://www.cramster.com'}"...
Google Maps's API object GGeoXML is able to access cross-domain XML files (usually KML or GeoRSS). It does not use XmlHttpRequest because it throws the "Access to restricted URI denied" exception (as it's supposed to). Also, it does not use Google's GXmlHttp wrapper because I've tried and it throws the same URI denied exception.
So, GGe...
I want to upload a file using asp.net so I do not want to post back the page while uploading . How can I do that and is there any way to do it using Ajax .
...
I seem to have a problem with getting MVC to fill in my custom model parameter when called through GET instead of POST.
I have a JavaScript snippet that calls into an action like so:
$.getJSON('<%= Url.Action("DoSearch") %>' + location.search,
function(data) {
if (data.Result == "OK") {
location.href = location....
Hello All,
I am using Struts2 tags for my designing page at front end side.
Now i have a requirement for in my jsp page that i have put 3 simple fields & on some add link i want to so repetitively some another 3 or 4 field at same form dynamically.
For example if user clicks 5 time on add link then 5 time that 3 or 4 field have to sho...
If I have an ajax call off fetching (with a callback) and then some other code running in the meantime. How can I have a third function that will be called when both of the first 2 are done. I'm sure it is easy with polling (setTimeout and then check some variables) but I'd rather a callback.
Is it possible?
...