to gather the value from the check boxes:
var filtersArray = $("input[@name='filters']:checked").map(function(i,n){
return $(n).val();
}).get();
Posting to php file
$.post("php/performSearch.php", {
keywords: $('#keywords').val(),
'filters[]': filtersArray},
function(data){...
Sorry the title isn't great, it's sort of a loaded question..
What I am trying to do is load multiple pages from links on a page (they are on the same host). In my case it is a forum in the thread view, and I'd like to load the last page of posts so there's some kind of preview.
To keep it simple, my code example assumes jquery is alrea...
Ok, this is downright bizarre. I am building a web application that relies on long held HTTP connection using COMET, and using this to stream data from the server to the application.
Now, the problem is that this does not seem to go well with some anti-virus programs. We are now on beta, and some users are facing problems with the appl...
Hi All,
I've got a textbox being used to enter a password inside a wizard control. I'm trying to get a password strength meter working with it.
Unfortunately, the password box isn't visible until step 4 and this means that I can't register the event handler onload() and putting some JS next to the PW box to register the event handler d...
How can I accomplish the following using jQuery: Open a popup window that returns a value to the parent window when a link in the child window is clicked, close the child window, and then have the parent automatically submit a form based on the value returned?
I realize that the jQuery Dialog is a popular solution, but I require a popu...
I use AJAX to check Australian domain availability with this web service:
http://portal.ausregistry.com.au/whois/whois_check_result.jsp?qry=[AU domain goes here]
Are there equivalent services that expose availability for other TLD's? (particularly the big 3: .com, .org, .net)
...
I am new to Javascript, JSON and jQuery. So please be easy on me. I have a JSP page that contain a drop down list. The contents of the drop down list are populated when the page is loaded. I wrote a Servlet that return the contain of the drop down list in the form of Map, and convert it to JSON string and sent back to the jsp via respons...
I was playing around with this earlier and failed to query craigslist for a page successfully.
I would like to return the page from: http://sfbay.craigslist.org/art/
using an ajax call, parse the html and process the results. For the purposes of this question, I am only interested in completing the query and retrieving the html.
...
Is it possible to make a call from a view to a controller via ajax (in my case using JQuery) that doesn't return anything? I'm just setting some variables in session and there is no output to display.
I tried setting the method on my controller to void but it won't work. Right now I've marked the method return as JSonResult and I'm simp...
We have an application which relies heavily on Adobe Spry. For authentication purposes a Single Sign On Solution is used. (Its a WebSeal, but I don't think that matters to much)
We now have pretty much exactly the problem described here: http://www.ibm.com/developerworks/tivoli/library/t-ajaxtam/index.html#user_session_expire i.e. we ge...
Hi there,
I have an ajax accordion in my web application. I have 2 HTML radio buttons; the first one is checked to show all the accordion header content,second one is to make a DIV block visible. Also the user can enter a text to search through Accordion headers, which is working fine.
By default the DIV block is invisible, as soon as ...
i am currently working on a search engine for a small database but feel as if my approach to building it has been a bit bloated so far. does anyone have any suggestions on how i could streamline the ajax code? here is my ajax.php file....
<p><a href="#clients" class="form">Clients</a>
<a href="#files" class="form">Files</a>  ...
Please be gentle, as I'm still new to web programming and -very- new to Ajax!
I've created a C# function which extracts data from an mssql database, formats it to a json string and returns that. Now I need to make a call from my javascript (jQuery) slider through an aspx page that is related to the C# code file.
I have actually never d...
I am trying to communicate with Google's spell check service using jQuery. Google's service requires that you post XML and it will in turn return an XML response. In IE, the success callback gets hit every time, but in non-IE browsers (tested in Firefox and Chrome) the error callback is getting hit every time.
The biggest difference is ...
hello all
i dont know its possible or no?
i have a project in php ,
can we scan image on php or javascript or ... via scanner , is any way for that?
...
My project uses a JSON feed to grab info about earthquakes within a specified latitude and longitude boundary, essentially making a box. I take this info and turn all the results into markers on a Google map. I need each marker to also display some additional information, so I'm trying to use the built in InfoWindow objects such that w...
I'm using form_remote_tag(:url => {:controller => "home", :action => "search"}, :update => "mydiv"). When I click submit on the form "mydiv" is populated with the error "Template is missing. Missing template home/search.erb in view path app/views". I've tried multiple render options in def search, but they all result in the same error...
Hi all,
I'm developing a simple auxiliary class to send requests using XmlHttpRequest (code below). But I cant make it work. At google chrome, for example, I get the error INVALID_STATE_ERR: DOM Exception 11 and at the other browsers I get a status == 0
Thanks
//@method XRequest: Object constructor. As this implements a singleton, t...
If my Ajax requests set a X-Requested-With header, can I just skip the CSRF check if this header is present? Can I be sure it cannot be forged (with the user session)?
...
Hi, I have come into a bit of a problem. I am dynamically updating dropdown lists using JQuery and PHP. I am using the following JQuery code to run a PHP page and insert the results into the page:
$("#booking-form-area").change(function()
{
ajax_availabletimes();
})
function ajax_availabletimes(){
var venue_val=$("#booking-form...