ajax

update mysql detabase by using ajax

how we can update mysql detabase by using ajax... any help or consept.. ...

Rails form in external site with ajax

Basically I'm wondering if it's possible to have a form on a site outside of mail Rails app to POST to a form in my Rails app. For example (not what I'm going to be doing) a contact form on a Wordpress site, when submitted would POST the values to my Rails app. What would my steps be to make that possible? Or any references that are alre...

Ajax driven timeline-style blog (in Drupal)

I have created a blog in drupal using CCK and taxonomy. I wish to display my posts in a timeline, according to the posted date (using views). So far I have created a listing of the post titles on a timeline. I now want to display the posts using ajax, wherein clicking on a post title will load the content of that node on the same page. G...

Data from UI to Controller in ASP.NET MVC

Hi, Could you you tell me the best way to get data from UI to send them to the controller. What do you think a bout the code below ? Is there an another solution without all this javascript/jquery/ajax code ? Thanks, function CustomerAddSave() { $('#btSave').bind('click', function (event) { $.ajax({ type: "POST...

How can server push changes to an HTML page created using JSF?

When we create a JSF page, a client request allows generation of HTML dynamically using a combination of java code and HTML. Can we introduce hooks in the HTML page using JSF framework, that allow server to update the HTML page based on events occurring at the server? ...

Ajax post doesn't work with html in parameters in combination with .net 4 framework

After upgrading our project to the .net 4.0 framework (from 3.5), we facing some problems with ajax calls with html in the parameters. As soon as the user enters some html in a text area the ajax call isn't executed anymore. If the user enters plain text only, there is no problem. <script language="javascript"> /* Doesn't work */ var...

Prototype and Ajax Search in Wordpress

So I got this code from http://www.elliotswan.com/2007/06/27/better-than-live-ajax-wordpress-ready-search-version-2/ and it works great for live search. The problem I'm having is that when a new search is made while there are results shown it should bindup the results, change to the new results, and then binddown the list of new results....

Content changes in fancybox div only appear after closing and re-opening

Hi folks, I have a form which displays in a jQuery FancyBox div with id "mcform". When a button is clicked I call this function: function postit() { $.ajax({ type: "POST", url: 'listSubscribe.php', data: "fname=" + $("#fname").val() + "&lname=" + $("#lname").val() + "&email=" + $("#email").val(), success: fun...

jersey webservice returns a 415 when executing a PUT from Ext.Ajax.request

Hey all, So, I've got a pretty simple RESTful jersey webservice, and I'm wanting to call it from my javascript code. I have no problem executing a GET request, but for some reason, when I execute a PUT, I get back a "415 Unsupported Media Type" error. Any idea what I'm doing wrong? Here's my webservice : package servlet; import jav...

Javascript form validation "onKeyup vs on keydown"

Group, I have a quick question? -Is there a way to trigger this onclick event when the last keypress is up. for example: verify that newPwd==reTypePwd on the last keyup in reTypePwd text box. If my password is foo I would like for the event to trigger on "o" and not "f". function allClear() { var newPasswd = document.getElementById('...

Issue with METHOD in prototype / Ajax.Request

Here is my code where I am trying to call yahoo api via Ajax to find current weather: var query = "select * from weather.forecast where location in ('UKXX0085','UKXX0061','CAXX0518','CHXX0049') and u='c'"; var url = 'http://query.yahooapis.com/v1/public/yql?q=' + encodeURIComponent(query) +'&rnd=1344223&format=json&callback=jsonp1285353...

Special Character problem in xml object

Hi, Actually I am just a starter of XML. In one of my task, I am doing the following: var req = new XMLHttpRequest(); req.open('GET', 'http://www.mohin.com/test.xml', false); req.send(); var xmlObj = req.responseXML; Now, I am getting the XML as: <?xml version="1.0" encoding="utf-8"?> <Items status="as"> <Song title="Helios (...

Handling clicks for jQuery AJAX (with PHP)

Not sure how to phrase this question exactly, but I'll give it a shot. (If you have a suggestion for how to phrase it better so others can find it, tell me and I'll edit it). I want to know the best practices for handling clicks on a page that are then processed using AJAX. I have been temporarily using code that looks like this in the ...

AJAX toolkit -- problem with webservice execute

I'm having a hard time understanding what is going on here. I am trying to code up some onClick javascript for a button on a Force.com list view for a custom object. Here's the JS. {!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")} {!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")} var myURL = sforce.apex.execute("MyWebServices", "myUrl", {})...

Problem with ajax loaded content in jScrollPane in jQuery

HI, I have a problem with jQuery, jScrollPane and loading data with AJAX. When I have static data a div the scrollpane works fine, but as soon as I load data with AJAX in the div the scrollpane disappears. I know that I have to reinitialise the scrollpane after that, so I am doing this.. but probably wrong as it is not working. So, the...

Sometimes my request comes in as HTML and other times as TEXT/*. Why?

I have an AJAX upload action for my Rails app. Sometimes it comes in as: Started POST "/products/temp_upload" for 63.148.78.244 at Fri Sep 24 21:34:27 +0000 2010 Processing by ProductsController#temp_upload as HTML And everything runs smoothly. Other times it comes in as: Started POST "/products/temp_upload" for 63.148.78.244 at ...

refresh a javascript file after an event?

I am using a keynav plugin that allows me to navigate up and down though a list. This list is dynamically generated using ajax and mysql. the suggesstions appear when someone begins to search into an input box. if the user clicks off and the list closes and then begins a new search, when the list is generated the second time, the keybo...

How do I know if the user clicks the "back" button?

I'm using anchors for dealing with unique urls for an ajaxy website. However, I want to reload the content when the user hits the Browser's "back" button so the contents always matches the url. How can I achieve this? Is there a jQuery event triggering when user clicks "Back"? ...

Is there any other way besides browser extensions that one could have a GUI bar hover over any website a user visits?

Goal I want to create a web app with a horizontal GUI bar that floats with the user as they move from site to site. e.g. A user will sign into the web at the home page and then proceed to say Google to start searching for their topic. Once they are signed in and leave the web app homepage a horizontal GUI bar will appear on each page th...

How to receive jQuery.get() in django view

I have a very simple test with jQuery and a django view: HTML - Includes jQuery.js JavaScript - $(document).ready( $.get("/index/" ); ) Django urls.py: (r'^index/', index_view ), Django views.py: def index_view(request): if request.GET: return HttpResponse( "RECEIVED GET" ) Debugging in browser, the javascript gets called ...