Skip to main content

Home/ jquery/ Group items tagged programming

Rss Feed Group items tagged

pagetribe .

Working with jQuery, Part 3: Rich Internet applications with jQuery and Ajax : JQuery: ... - 0 views

shared by pagetribe . on 17 Dec 08 - Cached
  • // hides every other <p> on the page $("p:odd").hide();
  • // place a username and password input field on the page <input type=text id="username"> <input type=password id="pass"> // call a server-based PHP file that will process the information passed to it $.post("myFormProcessor.php", {username: $("#username").val(), password: $("#pass").val()}); // conversely, this PHP file could also return information to the function, from which // you could process the results $.post("myFormProcessor.php", {username: $("#username").val(), password: $("#pass").val()}, function(data){ // the data variable contains the text returned from the server, you don't // have to set anything up ahead of time, jQuery will do it all for you if (data != "ERROR") $("#responseDiv").text(data); } );
  • What does this mean? Well, based on the ability to load any Web page, and then parse it with jQuery, you have at your hands a very effective and easy-to-program page scraper, from which you can gather any type of information from any page.
  • ...1 more annotation...
  • <%=message.id %>
1 - 4 of 4
Showing 20 items per page