Log in

View Full Version : Smartphone HTML Tricks

09-24-2003, 03:39 AM
Can anyone tell me what tricks are needed to make HTML code SPV friendly. here is my code:

<html><head><title>SmartPhoneTricks.com</title></head><BODY><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD><p>mitchwaitepress.com</p>

<form method="POST" webbot-onSubmit action="--WEBBOT-SELF--" onSubmit="location.href='_derived/nortbots.htm';return false;">

<p><input type="checkbox" name="C1" value="ON">Blueberries</p>
<p><input type="checkbox" name="C2" value="ON">Bread</p>
<p><input type="checkbox" name="C3" value="ON">Bananas</p>
<p><input type="checkbox" name="C4" value="ON">Milk</p>
<p><input type="checkbox" name="C5" value="ON">Crackers</p>
<p><input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset" name="B2"></p>


09-24-2003, 04:25 AM
Two things that may not be supported:

1) You don't have closing tags for body or html - I don't know if it matters or not, but it's generally good practice to close the tags

2) You are using the OnSubmit method from your FORM tag = this again may not be supported by the SPIE. Try changing it to:

<FORM method="POST" action="_derived/nortbots.htm">

If memory serves, SPIE only supports HTML 3.2 and the OnSubmit event is only supported by HTML 4.0

09-24-2003, 04:38 AM
Thanks for the input, this board is fantastic.

It was a mistake on my part, I put the ending body and html tags in there, and it doesn't make a difference, I still get a blank page.

I went to this site:


They have a edit box where you put your URL and it reformats it to work on the phone. I tried it from the phone with www.smartphonetricks.com and it works. But when I examined there code its pretty strange, they seem to refer you first to there site, using some PHP to reformat the HTML. Lost me in the forest.

There must be a genius on this board that knows the answer :)

PS What would be the alternative to my on submit tag.

Kris Kumar
09-24-2003, 04:50 AM
I copied and pasted the html code into a file named .html and copied it to the smartphone...launched it. It shows all the checkboxes and buttons.

The page renders okay (was that a problem?).

Submit of course doesnt work, no idea. What is all that Bot (webbot-onSubmit) stuff in the OnSubmit.

09-24-2003, 05:17 AM
That was nice of you, I didn't think of looking at it locally on the phone. I have the identical code in my server and it won't open on the phone when I browse to it:


The submit stuff is the Frontpage default.

All of it can be removed so I simplifed it to:

<TABLE cellspacing=0 cellpadding=0 border=0>
<form method="POST">

<p><input type="checkbox" name="C1" value="ON">
Blueberries</p><p><input type="checkbox" name="C2" value="ON">
Bread</p><p><input type="checkbox" name="C3" value="ON">
Bananas</p><p><input type="checkbox" name="C4" value="ON">
Milk</p><p><input type="checkbox" name="C5" value="ON">


09-24-2003, 05:22 AM
I thought perhaps it was the URL forwarding from mydomains that was doing it so I tried the actual domain and that worked!

So something weird is happening in URL forwarding.

Thanks for helping, this forum is pure gold.


Kris Kumar
09-24-2003, 01:28 PM

Looking forward to some neat tricks on Smartphonetricks.com


09-24-2003, 10:14 PM
Here is the magic link with the answers:


09-24-2003, 10:26 PM
Here is the magic link with the answers:


excellent! a great refernece for future mobile site design. although this will change with the introduction of windows mobile 2003 for smartphone.