ajax

Ajax & Forms Question (Looking for Resources)

I have a select form. After a user selects option A, B, or C I need to use Ajax to load another form based on the users decision. I'm not asking for someone to program this for me. I am just wondering, does anyone know of any good resources to help me accomplish this? Thanks for your time. ...

AJAX & Firefox ?

I'm trying to populate a div in html via ajax. The data source is a google search for "bing sucks" I call the method with loadXMLDoc('http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=Bing%20sucks') It works in InternetExplorer, but it doesn't work with Firefox/Chrome. If I load just a file from the local domain (test....

Testing ReCaptcha Dynamically?

I've got recaptcha working in it's fundamental form - requiring a captcha code and displaying a basic error when it's wrong. But I want to make it more usable, and I'd really appreciate your help. Is there any way to ajaxically send a test/request to see if the captcha code is correct, and if it's not, pre-emptively prompt the user for ...

ASP.NET - how to make AJAX request to the server without getting response with the information for all the update panels I have?

For example, I have three UpdatePanels on the page. I click a button, and I get pretty long response, that contains all the data for the three UpdatePanels, the viewstate string. I want to optimize my query and receive response like "ok" or "not ok". How can I do that? ...

How to get Ajax.Net PageMethod to return JSON

I am using an AJAX.Net to call an ASP.Net PageMethod, which returns JSON serialized JSON data {"d":"[{\"Fromaddress\":\"[email protected]\",\"Toaddress\":\"[email protected]\"},{\"Fromaddress\":\"[email protected]\",\"Toaddress\":\"[email protected]\"}]"} The Response Header states the content type as "Content-Type application/jso...

Remove element from HTML with jQuery

I am building a system where the user builds their own navigation system, the process is when the user visits the site there is a llist of available topics they can select slect a top creates and accordion that holds all that topics content, clicking the topic again should remove the top, currently I have this code, but it does not work,...

Spring Ajax controller - Accept submissions without refreshing page

I am using Starbox in my Spring page. I want to submit the user rating so I can store it in the database and not have to refresh the page for the user. How can I have a Spring controller that accepts this value and doesn't have to return a new view. I don't necessarily need to return any updated html - if the user clicks the Starbox, ...

Wait for getJSON response

i'm trying to make a script using Yahoo's YQL in a web applicaion. The script looks over a text paragraph and then it finds some references and appends on the text as a popup. It all goes fine until I have to loop through each reference with class "verso", after getting my response it appends all the references in the last element of the...

ASP.NET: How to call non-static page method with client AJAX script?

How can this be done? Does this exclude the UpdatePanel functionality when it's done? ...

Jquery Unable to Hover append html

Hi there, I am appending HTML into the DOM via jquery.append - my script is as follows (please excuse the crappy code) myDiv = $("<div class='bottomright' title="+msgID+">"+msgTitle+msgContent+ "</div>").appendTo(document.body).fadeOut(0).slideDown('fast'); shown.push(msgID); is there a different way to address either the hover or th...

Workaround for broken Visualforce onchange event?

Since the onchange event is broken for lookup widgets in Salesforce, has anyone come up with a suitable workaround? The thing seems to have been broken for at least 3 releases, which simply boggles the mind. My desired use is to have the change detected so when a field is selected by the user, I populate another list or related objects...

When to use a lightbox effect?

We've all seen the popular lightbox effects on the web (e.g. JQuery Lightbox and Shadowbox). Yesterday I got into a discussion with a client who is completely enamored with lightboxes and wants to use them every time a form is submitted including: Login forms - click the login button and the lightbox appears with the user name and pass...

Rails Question: Why can I do these two javascript calls separately but not together?

On the homepage of my web app I'm implementing pagination with ajax as well as an autocomplete search. The script I used for the ajax pagination is here: http://wiki.github.com/mislav/will_paginate/ajax-pagination The script I used for autocomplete search is detailed in my own answer to this question: http://stackoverflow.com/questions...

comet with php socket server?

i've read that php doesn´t scale well if a lot of users are using your comet implementation? is that because of the apache server or the php language? what is a socket server and does it fix that problem? someone that has set up a php comet server for a lot of users that could give some advice? ...

JQuery ajax for pdf loading in object tag

I'm embedding a PDF in a web page with the following html <object id="pdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="1024" height="600"> <param name="SRC" value="/GetDoc.ashx?SOID=<%=Html.Encode(Model.OrderID)%>" /> <embed src="/GetDoc.ashx?SOID=<%=Html.Encode(Model.OrderID)%> " ...

php chat client

i need to create a chat application in php+js+ajax which need to be integrated to a site, where am stuck is to create a chat window , that need to be constant while going through different pages in the site . if any one can suggest a better way i will be grateful, thanks in advance ...

Ajax XML issues with XSS validation

While using Ajax in web applications we use XML to transfer the data between server and client. However XSS validation comes into picture, So questions are, 1. Is passing XML like this is correct? 2. Are we exposed to security issues if we turn off XSS validation? 3. Can passing Ajax request with header (content-type = application/xml) ...

What optimizations do modern JavaScript engines perform?

By now, most mainstream browsers have started integrating optimizing JIT compilers to their JavaScript interpreters/virtual machines. That's good for everyone. Now, I'd be hard-pressed to know exactly which optimizations they do perform and how to best take advantage of them. Could anyone point me to references on optimizations in each o...

Is it possible to fill in an Ajax form programatically using php?

Hi, I am using php to fill up a form. Now, it so happens that form is using ajax for many of its fields. e.g. select [country] (ajax will show drop-down filled with states for that country) select [states] (ajax will show drop-down filled with cities) select [city] (ajax will enable a submit button) If it is a simple html bas...

JavaScript puzzle to solve : window.confirm = divConfirm(strMessage)

Scenario is : old site which has lots of JS code already written. If user want to change all the alert messages to new age jazzy Div based alert which are very common using JQuery, YUI, Prototype... etc. There are mainly tree JS dialogs 1. alert To changes this its simple we just have to write new funtion which will show the div po...