NERD INTEGRATION
- March 2nd, 2010
- Write comment
Posting to my main website. This should auto cross-post to my Facebook page.
Archive for the ‘Nifty Idea’ Category
Posting to my main website. This should auto cross-post to my Facebook page.
If you have Verizon, they specifically block this because they want you to purchase an Air Card so they can charge you a lot more money for the same thing. They also swear it breaks your warranty. I don’t know about Sprint phones, but I do use my Tmobile phone and my normal android data plan to surf the net using my laptop at times and from places I wouldn’t normally be able to.
1. Download pdanet for your computer. Here.
2. Install it. Follow the directions on the install screens.
3. Download pdanet for your android phone.
4. Start up PDAnet on your phone.
5. Start up PDAnet on your computer.
6. Plug your USB cable into your phone.
7. Plug the other end of your USB cable into your desktop computer.
8. right click on the pdanet icon in your system tray (you did start it up like I told you, right?)
9. Click ‘connect’
10. Open your browser and start browsing.
Continuation of this post.
This is a pretty nifty idea, but it will only ever be an idea without some code. We’re going to use php, javascript, and html to make everything work together seamlessly. Here is the Landing Page code:
Create the HTML form, clicking Submit invokes controller.php
if (document.location.protocol === "https:")
icpForm1156.action = "https://app.icontact.com/icp/signup.php";
function verifyRequired1156() {
if (icpForm1156["fields_email"].value == "") {
icpForm1156["fields_email"].focus();
alert("The Email field is required.");
return false;
}
if (icpForm1156["fields_fname"].value == "") {
icpForm1156["fields_fname"].focus();
alert("The First Name field is required.");
return false;
}
return true;
}
// ]]></script>
This javascript validates the form for required fields.
Close your html tags for the Landing Page
Read more
If you’ve ever coded a html form, there is a good chance you’ve been asked by a client to have that form go to more than once place. There are many ways to accomplish this … and I’ve come up with one of my own.
Let’s start out with the simple steps.
Let’s add in the steps that the user doesn’t see.