View Full Version : Smartphone HTML Tricks
goofy166
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>
</form>
</TD></TR></TABLE></BODY></html>
brntcrsp
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
goofy166
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:
http://www.jennerresearch.com
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.
goofy166
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:
http://www.smartphonetricks.com
The submit stuff is the Frontpage default.
All of it can be removed so I simplifed it to:
<html><head><title>SmartPhoneTricks.com</title></head><BODY>
<TABLE cellspacing=0 cellpadding=0 border=0>
<TR><TD><p>mitchwaitepress.com</p>
<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">
Crackers</p>
</form>
</TD></TR></TABLE></BODY></html>
goofy166
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.
Mitch
Kris Kumar
09-24-2003, 01:28 PM
Cool...
Looking forward to some neat tricks on Smartphonetricks.com
Kris
goofy166
09-24-2003, 10:14 PM
Here is the magic link with the answers:
http://www.sophonix.com/articles/spcontent.asp
brntcrsp
09-24-2003, 10:26 PM
Here is the magic link with the answers:
http://www.sophonix.com/articles/spcontent.asp
excellent! a great refernece for future mobile site design. although this will change with the introduction of windows mobile 2003 for smartphone.
vBulletin® v3.8.9, Copyright ©2000-2019, vBulletin Solutions, Inc.