ajax

How do you hook an event to a datasource in YUI?

http://developer.yahoo.com/yui/datasource/#events I'm trying to use the responseParseEvent but I don't know how to hook into into my datasource object because YUI doesn't provide any examples. Sidenote: Has anybody else noticed this with YUI? That their documentation doesn't contain nearly as many examples as jQuery? ...

Adding AJAX-enabled WCF Service to the Solution throws an error

I am just trying to learn Ajax enabled WCF service, when I try to create a new web application and add new item "AJAX-enabled WCF Service" I get an error message that "The extension of type 'System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e...

Javascript Not Executing In Dynamically Loading Content (AHAH)

I'm dynamically loading content into a div when the user clicks a link using this code: function ahah(url, target) { document.getElementById(target).innerHTML = 'Opening form...'; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } ...

How does one pass AJAX vars from jQuery to their controller?

I have an email form. But I'm making a test email form where a user can add a unique email, and have the email test send it to that particular email. To make it easy, I decided to make the test email perform via ajax, and stick the whole thing inside of the other email form. I can't figure out how to send the variables from my HAML to...

Changing the AJAX url in Jquery Plguin, JQGrid!?

I'm using the jqgrid plugin for jquery and jquery ui and I would like to change the AJAX url on a dom event. this is the instatiation of the jqgrid table: jQuery("#list").jqGrid({ url:'AJAX/JSON/json_member_mail.aspx', datatype: 'json', mtype: 'GET', colNames:['','Title', 'from','message',''], colModel :[ {name:...

ajax call inside a function

i have a function which does some task.inside the function i have an ajax call. if the response obtained from ajaxcall is true the function should continue with the rest of the task.else it should stop at that point itself. But the above said thing is not happening instead the function is executed independent of ajax call. please help m...

jQuery.Get() help

Hey, I'm trying to use the jQuery.Get() function to return the contents of a webpage. Something along the lines of - var data = $.get("http://mysite...../x.php"); I know the above is wrong, can someone help my out here? Cheers, ...

Cascading dropdown empty after postback

A form contains 2 cascading dropdowns. When an item is selected in the first dropdown, jQuery retrieves a list (json) from the server and fills the 2nd dropdown. The user posts the page to the server, and when the page is returned the dropdown is empty because its not stored in viewstate. What do you do in this situation? Is this the ...

How to know the technologies used in websites ?

Possible Duplicate: How can I tell what a website was written in? Is there a way to find out what are the web technologies used to build certain websites ? For example I like this website : http://www.grouprecipes.com How can I know what technologies he used without contacting him ? ...

.net 2.0 ajax jquery pagemethod 404 object not found

in my master page, i have <head> <script type="text/javascript"> $(document).ready(function() { $("#result").click(function() { $.ajax({type: "POST",url: "ws.aspx/HelloWorld",data: "{}",contentType: "application/json; charset=utf-8",dataType: "json",success: function(msg) { $("#result").text(msg.d); } }); }); </script> </head> <body> <f...

How do I post information to a server when a link is clicked?

Alright so I want my users to be able to click a link that will allow them to add a movie to their favourite. So in example I have http://xxx.com/favorite.php?userid=1&amp;movieid=1020 For the moment all works well, it adds the values into database, but since it's movies, I do not wish the page to reload, hence the use of Ajax which I ...

Rails 3 AJAX remote form call backs

I'm upgrading from rails 2.3.8 to 3.0.0, so I need to replace the remote_form_for helper calls with form_for(@object, :remote=>true). I've been following along with Simone Carletti but I cant seem to get the ajax callbacks from rails.js to fire. My generated HTML is: <form accept-charset="UTF-8" action="/vendor_shipments" class="new_v...

where to store state on server

Hi, I am developing a feature in my app where I need to store the state of a particular series of actions between 2 users, just like an ajax based chat service. The scenario is as follows: A user can is able to see which other users are online and then challenge one of them. The other user receives the challenge and accepts it. Now bo...

Could not convert javascript argument

After trying to append some code to a div layer I received the following error and don't know why. uncaught exception: [Exception... "Could not convert JavaScript argument arg 0 [nsIDOMDocumentFragment.appendChild]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://code.jquery.com/jquery-latest.min.js...

jquery ajax response from variable from a target file

Hi, I am sending username and password to some target file (auth.php) using jquery ajax. In auth.php file, i have many variables "var a1", "var b1". If authentication success, the variable "a1" set to pass(a1='pass'). My problem is how to access the only the "a1" variable from "auth.php" using the ajax response. small code is below:...

Running Ajax in IE, FF, and Safari

I'm trying to create an ajax connection to a weather xml feed and then parse returned data. I don't have any issues making a connection via IE, but for some reason I don't have any luck in FF or Safari. Basically what I'm doing is running an html file that contains the following code. <html> <script type="text/javascript" language="jav...

Firefox reloads javascripts

Hello, I am a beginner web developer and here is my problem: In short: I keep getting similar message in Firebug for all the javascripts I include in the page: GET =1284615828481">http://localhost.:33085/Scripts/jquery.form.js?=1284615828481 200 OK 1.01s In details: I am loading a webpage using AJAX . This page contains references t...

Regarding highslide lightbox issue

Hi, I am trying to open a page with onclick as below HTML <a onclick="loadwave(44,33)" href="javascript:void(0);"> wow its working pretty</a> Javascript function loadwave(qid,wid){ url= gSitePath+'question/forum/?qid='+qid+'&wid='+wid; return hs.htmlExpand(url, { outlineType: 'rounded-white',wrapperClassName: 'draggable-head...

link_to_remote doesn't work :with using jrails

I am trying to use link_to_remote with :with parameter so I can pass my parameters but I am using jrails and it seems it doesn't work. I use it another spot with jrails and prototype and it worked fine. Here is my code in jrails where I don't use prototype: <%= link_to_remote render(:partial => "back_button_text"), {:url => { :contro...

Problems installing Dajaxice properly

I have dajaxice installed on my python2.6 dist-packages folder, that seems to work alright with importing the stuff. But it throws all kinds of errors, since the django template tags are not being rendered. invalid property id [Break on this error] {% for module in dajaxice_js_functions %}\n Makes sense, so I tried putting the ...