Having been primarily a server-side programmer(ASP.NET WebForms) I'm trying to get my mind wrapped around AJAX outside of the "catch-all" approach of using UpdatePanels in the Microsoft AJAX controls. My question has a couple parts:
Is JavaScript the only option for client-side scripting that will support server-side communication? I...
I'm using Prototype 1.6.1 to create a POST to a page. The POST data is a complex JSON object. Can someone tell me how on the receiving page I can access the raw body of the POSTed data?
Sending page:
myObject = {"key":"val",
"has many":{"key1":"val1",
"key2":"val2"}
}
new Ajax.Request('...
Does anyone have experience with making Cappuccino-based webapps that consume REST-based webservices from Spring? Any recommended tutorials? Or just Capuccino/AJAX tutorials? Any thoughts on this combination?
Cheers
Nik
...
Hey
Does anybody know how to make text appear between two lines of text(So the bottom text slides down slowly to make room). Using php and ajax? no flash!
ie
some text here
some text here
click and then:
some text here
more here
more here
some text here
...
i have jquery global error event set, like following:
$("#message_alert").ajaxError(function(event, XMLHttpRequest, settings, thrownError){
ajax_error(XMLHttpRequest);
});
and ajax_error method gets the XMLHttpRequest parameter totally fine init. now the request which XMLHttpRequest gets, it also have json data from the backend in...
I've got the following code that shows a lightbox 'please wait' box, then does a synchronous ajax request which removes the lightbox when it finishes. Works fine everywhere else, but in IE, the lightbox doesn't show. The Ajax request works fine, but it just seems to ignore the lightbox.
The showLightbox function just does that, show a...
i'm getting an ajax output success data.
Where the data contains some html text and a script.
But the script is not executing, how can i execute the script.
lets say Ajax response obj is
"something....alert("test");"
the above code is my ajax response.The div is getting rendered, but the alert is not working.
...
I have a page that has a Contact Form slide down when a link is clicked (i.e. it is a div on the page that displays with .slideDown('slow')
I have the jQuery validation plugin working on the contact form, only I noticed that when I was testing I had event.preventDefault(); commented out. In the final version I want that to be uncomment...
Ok..so I'm a nOOb with jquery. I have a dynamically created list of items with update/delete functionality (and that's all working fine). My problem is the "add" functionality. I can add the item to the database just fine, but after it's added, I can't get the newly created item "container" to be visible. The data comes back alright ...
Hi
I have a Virtual Dedicated Server, how can I run an application periodically (ie: every Monday - 19:00). I mean, the application starts automatically at a given time.
Is there any way to do it with Java, Ajax, PHP? (sorry, I'm noob)
...
Hello all,
We are in the process of developing an iPhone web app using extensive jquery AJAX calls to extract data from an XML web service. When developing and testing on my Mac on Safari, the calls work beautifully. Problem is, as soon as we test on the iPhone emulator, or on the actual device, we are not getting anything back from t...
What will the XMLHttpRequest send Method hold? What and all it can contain?
...
Hi All
I have an ASP.NET MVC applciation containing 2 list boxes: #AvailableItems & #AssignedItems. I can transfer items from one box to the other.
I also have some other related values stored as attributes on the Save link that need to get submitted too, like IDs and stuff. When I post the data, I can submit the attributes easily enou...
Hi Friends!!
I have a Button which is having modalpopupextender which is working absolutely fine no problem at all, but before the modalpopup appears i want to validated text box control if it is not valid then modalpopup should not appear other wise it should work as usual..
does anybody having idea.
...
This may be a philosophical question.
Suppose you're making an AJAX request to a page (this is using Prototype):
new Ajax.Request('target.asp',
{
method:"post",
parameters:{alldata:Object.toJSON(myinfo)},
onSuccess: function(transport){
var response = transport.responseText || "no response text";
alert("Success! \n\n" + respon...
Zend's documentation isn't really clear on this.
The problem is that, by default, Zend automatically renders a view at the end of each controller action. If you're using a layout - and why wouldn't you? - it also renders that. This is fine for normal Web pages, but when you're sending an AJAX response you don't want all that. How do you...
I'm trying to write a Rails controller method that will respond to get requests made both "normally" (e.g. following a link) and via ajax.
Normal Case: The controller should respond with fully decorated HTML using the layout.
Ajax Case: The conroller should respond with the HTML snippet generated by the template (no layout)
Here's the...
I created an autosuggest script using php, ajax and some css but I can't figure out how to make it so when the script suggests results to allow the user to scroll down the list of results using keyboard arrows and then press enter to select desired result.
The script currently displays in a list format and and onclick the results the in...
I am reading Beginning CakePHP, and to make it so that you can vote on comments, it tells you to create a couple of AJAX links:
<?=$ajax->link('<li>up</li>',
'/comments/vote/up/'.$comment['Comment']['id'],
array('update' => 'vote_'.$comment['Comment']['id']),
null, false)...
Hi all,
Sorry if this question is duplicated but I couldn't solve my problem from other solutions.
I've got this code in a sepate file included in my main index:
var getSuggestedData = {
serviceURL: $("input[name=suggestedServices]").val(),
dataR:"",
doRequest:function(){
//request data to controller
$.ajax({
url:this.serv...