Archive for the ‘Nifty Idea’ Category

NERD INTEGRATION

Posting to my main website. This should auto cross-post to my Facebook page.

Tether your Android using PDAnet

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.

Multiple form actions pt. 2

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:

<!–
css code
–>
<div id="container"><form id="icpsignup1156" action="controller.php" accept-charset="UTF-8" method="post">
<div id="SignUp">
<div id="SignUp" style="position: absolute; overflow: hidden; left: 596px; top: 264px;"><input name="fields_fname" type="text" /></div>
<div id="email_itxt" style="position: absolute; overflow: hidden; left: 596px; top: 314px;"><input name="fields_email" type="text" /></div>
<div id="submit_btn" style="position: absolute; overflow: hidden; left: 593px; top: 346px;"><input alt="Alt Text Here" name="submit" src="button.jpg" type="image" /> <input name="listid" type="hidden" value="00000" /> <input name="specialid:00000" type="hidden" value="CT99" /> <input name="clientid" type="hidden" value="000000" /> <input name="formid" type="hidden" value="0000" /> <input name="reallistid" type="hidden" value="1" /> <input name="doubleopt" type="hidden" value="0" /></div>
<!– CONTAINER END –></div>

Create the HTML form, clicking Submit invokes controller.php

<script type="text/javascript">// < ![CDATA[
var icpForm1156 = document.getElementById('icpsignup1156');

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.

</form></div>

Close your html tags for the Landing Page
Read more

Multiple form actions pt. 1

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.
User lands on your Landing Page
User fills out the form on your Landing Page
User submits the form
User arrives at the ‘Thank You’ page
Let’s add in the steps that the user doesn’t see.
User lands on your Landing Page
Hidden date/time/affiliate form fields are populated
User fills out the form on your Landing Page
User clicks Submit button
Form is validated for required fields
Controller.php is invoked via the form action=”controller.php” tag element
Controller.php generates an email to you that says ‘hey, User has filled out your form!’
Controller.php finishes and throws the user over to the Thank You Page
While this process is more involved than the user knows, it remains fairly straight-forward. It is simple, and
useful… but what happens when we want the user to fill the form out twice? Users don’t like being asked twice to
do something… especially when it comes to ponying up their email address.
Let’s have a user fill out the form once. Let’s say it signs the user up for your Affiliate Program. The user is
aware of what is going on, we’re not here to play tricks on anyone. Let’s also say that the Affiliate Program you
use is robust and powerful, and if you click this link, the shameless author (me)  will get a few bucks if you end
up buying the software. Let’s also be honest and admit that the Affiliate Program’s email marketing functionality is
pretty weak.
You want the form to sign the user up to your iContact email list as well as Post Affiliate Pro. This can be
accomplished with a single click, and the user will be signed up for your program and also get all of the emails you
send them. Do Not Spam your email list, treat these folks as you would treat your own children. They’re your
lifeblood, and you should do right by them. /soapbox
Again, we’ll break down what needs to happen from our super-smart webguy/webgirl perspective:
User lands on your Landing Page
Hidden date/time/affiliate form fields are populated
User fills out the form on your Landing Page
User clicks Submit button
Form is validated for required fields
Controller.php is invoked via the form action=”controller.php” tag element
Controller.php generates an email to you that says ‘hey, User has filled out your form!’
Controller.php finishes and throws the user over to the Thank You Page
On the Thank You Page, an invisible form with the exact same fields as the Landing Page is loaded
Invisible div with an iframe is on the Thank You page.
OnLoad event invokes a small javascript that submits the form data again, this time to iContact, via the invisible
iframe
User is now signed up in your iContact account.
Stay tuned for the next post where we take a look under the hood. It will be full of fun, php, javascript, html and
cake. Except for the cake.
-Dan

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.

  1. User lands on your Landing Page
  2. User fills out the form on your Landing Page
  3. User submits the form
  4. User arrives at the ‘Thank You’ page

Let’s add in the steps that the user doesn’t see.

Read more

Return top

DorkLogic, Inc.

DorkLogic is a group of IT Professionals

Switch to our mobile site