// hides every other <p> on the page
$("p:odd").hide();
Working with jQuery, Part 3: Rich Internet applications with jQuery and Ajax : JQuery: ... - 0 views
-
-
// 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...
jQuery and JavaScript Coding: Examples and Best Practices | How-To | Smashing Magazine - 0 views
1 - 4 of 4
Showing 20▼ items per page