all about the jQuery collection object. $("#about")
this lets us dominate the dom so easily. any id on the page can be quickly and easily accessed and manipulated. to change a text box with id of “name” back ground color in your forms for an alert of missing info, $(“#name”).css(“background-color”,”red”);// access textbox id of “name” and change bg color to red and you can chain these together to dominate… $( this ).html(“Tap To Launch”).css(“font-size”, “x-large”).css(“font-family”, “fantasy”).attr(“alt”, “my alt text”) val is awesome.. get the value of a text field (and perhaps even more, got to check.) with $(“#name”).val() set the old getelementbyid….value=”my value” with $(“#name”).val(“my value”); add event to any element via id
$('#target').click(function() { alert('Handler for .click() called.'); });
here is a better way .. you can access the event vars e like flash as3
$("#btnSave").click(function(e){ e.preventDefault(); alert("btnSave is clicked"); return false; });
JQuery provides several ways of adding elements dynamically into an already existing element. Some methods are: before(), insertBefore() after(), insertAfter(), append, appendTo, prepend, prependTo and so on. f you want to change the current active page with JavaScript, you can use the changePage
method. There are a lot of methods and properties that you can set when changing pages, but here are two simple examples:
//transition to the "about us" page with a slideup transition
$.mobile.changePage( "about/us.html",
{ transition: "slideup"} );
//transition to the "search results" page, using data from a form with an ID of "search""
$.mobile.changePage( "searchresults.php", { type: "post", data: $("form#search").serialize() });
Heres a simple click called to div…Jquery is cool because you can put an event on any element with an id from static items that are not usually interactive like div , spans to standard active hot spots like buttons and links. function myAlertFunction( message ){ alert( message); } here is how you would call scripts after page loaded in jquery. $(document).ready(function(){ $(‘div’).click(function(){ myAlertFunction(‘ This is a div’); }) }); here is how you do it in jquery mobile, becuase pages are stored inthe dom of one html page.
$( document ).delegate("#aboutPage", "pageinit", function() { alert('A page with an ID of "aboutPage" was just created by jQuery Mobile!'); });
you delelegate what page the scripts will be attached to via the id.
for linking web pages and changing page via script , in your function use the .attr() to add href, alt, titles – for those great tool tips. $( this ).attr(“href” , “http://celc.dwdenney.com/daycarerecordsforms.html”); this seems like good for image slide show, can read files from folder into array, then change src via timed intervals, use css animation to tint color fade in or opacity fades or some slide trannys
$("img").attr({ src: "/images/hat.gif", title: "jQuery", alt: "jQuery Logo" }); $("div").text($("img").attr("alt"));
this is a sweet way to transition an element.
<script> $(“#book”).css(“display”, “none”); //With the element initially hidden, we can show it slowly: $(‘#clickme’).click(function() { $(‘#book’).fadeIn(‘slow’, function() { // Animation complete }); });< /script>
Here is a good one for sending texts from your apps.< form name=”send_login_id_form” id=”send_login_id_form” method=”GET” action=”assets/devcloud_logic.php” data-ajax=”false”>< select name=”carrier” id=”carrier”>< option value=”verizon”>Verizon</option>< option value=”tmobile”>T-Mobile</option>< option value=”sprint”>Sprint</option>< option value=”att”>AT&T</option>< option value=”virgin”>Virgin Mobile</option>< /select>< label for=”to”>To:</label><input name=”to” type=”text” id=”to” size=”30″ />< label for=”message”>Message:</label><textarea name=”message” cols=”40″ rows=”5″ id=”message”></textarea>< input type=”submit” name=”submit” id=”submit_button” value=”Submit” />< input type=”hidden” id=”action” name=”action” value=”Submit message and phone number to recieve text pass code” />< /form>
fujitsu seems to have some good biometric authentication devices
Users: Device Authentication Better than Passwords
A new study indicates that most users would prefer to have their devices authenticated rather than deal with the complications of passwords.
By Larry Barrett | September 15, 2009 Share
The latest data protection and information security survey conducted by the independent Ponemon Institute suggests that consumers would be willing to let Big Brother encroach a bit on their individual computing devices in exchange for more online security and lot less memorization of pesky user names and passwords.
Of the 551 participants who responded the Traverse City, Mich.-based researcher’s online survey, 70 percent said they’d be willing to have their computers authenticated by an online merchant before purchases are completed and 75 percent of those surveyed said that computer authentication is preferred because it’s more convenient than remembering passwords or answering pre-selected questions.
According to a 2007 password study by Microsoft, the average person has 6.5 Web passwords, each of which is shared across almost four different Web site. The study also found that each user has about 25 accounts that require passwords and he or she types an average of eight passwords a day.
If this particular study and it’s relatively small sample size is indicative of how the majority of consumers feel, so-called device fingerprinting software and technology developed by the likes of Los Altos, Calif.-based ThreatMetrix will soon find a much larger market with e-tailers, online payment processors and even social networking and e-dating sites.
“Actually, I did find the responses a little surprising,” said Larry Ponemon, chairman and founder of the Ponemon Institute. “The responses were overwhelmingly positive and it’s clear people are becoming more comfortable with technology that can authenticate their machines.”
The idea of allowing a third-party Web site to use a software that would then report back the IP address, browser and physical location of a PC or mobile device still strikes some as an invasion of privacy. However, the notion of divulging personal information such as a mother’s maiden name or the last four numbers of a social security number apparently bothers Internet users even more.
In 2008, the Georgia Tech Information Security Center estimated that as many as 15 percent of personal computers were part of a botnet, up from 10 percent in 2007. E-commerce sites, dating sites such as eHarmony and Match.com as well as banks and payment processing centers are increasingly looking at device authentication technology as yet another tool in their ongoing war with hackers, spammers and other garden-variety malfeasants.
“The thing I’ve learned over a number of years is that timing is everything,” said Tom Grubb, vice president of marketing at ThreatMetrix. “I really feel like it’s the right time for this technology. It can help you identify who is a good guy and who is a bad guy without invading anyone’s privacy. The bad guys know that they have to try to act like a good guy and that leaves a trail that we recognize to help protect your network.”
In its report, the Ponemon Institute also found that 78 percent of users think online merchants, banks and social networks should use technology, such as a cookie or other invisible software, to protect consumers’ identities. Only 21 percent of those surveyed want online vendors to require more personal data from the consumers themselves.
According to CyberSource, 7 percent of e-tailers with more than $25 million in annual sales are using device fingerprinting software and another 47 percent said they plan to implement it by year’s end.
“What they’ve come to realize is that previous methods for authenticating credit card transactions and IDs are failing,” said Alisdair Faulkner, vice president of product development at ThreatMetrix. “This technology identifies the device and gives you another tool to use with other security technologies and processes to secure all these transactions.”
Article courtesy of InternetNews.com.
Cloud-aware Network Management Real-life case studies on how large enterprises moved away from traditional legacy tools to ManageEngine OpManager Enterprise Edition for cloud-aware network management experience. Click here to download the white paper.