Click to See Complete Forum and Search --> : iPhone Data Submit...


aaronking
November 4th, 2008, 02:12 AM
Hello,

Im trying to create a html page for an iphone.

I have it display correctly but the only thing is i can't get it to submit the data which is entered in.

I want it to display as:
http://127.0.0.1/page2.htm?line1=linenumber1&line2=linenumber2

I am using the following HTML code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta id="viewport" name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<title>Page1</title>
<link href="iui/iui.css" media="screen" rel="stylesheet" type="text/css" />
<link href="iui/iuix.css" media="screen" rel="stylesheet" type="text/css" />
<script src="iui/iui.js" type="text/javascript"></script>
</head>
<body>
<div class="toolbar">
<h1 id="pageTitle">Data</h1>
<a id="backButton" class="button" href="#"></a>
</div>


<form action="page2.html" class="panel" method=GET selected="true" title="Data">
<fieldset>
<div class="row">
<label>Line1</label>
<input name="line1" type="text" id="line1" maxlength="50" value="" size="20" />
</div>
<div class="row">
<label>Line2</label>
<input name="line2" type="text" id="line1" maxlength="50" size="20" />
</div>
</fieldset>
<input type="submit" value="Submit" name="go" class="go" />
</form>

</body>
</html>



I have attacted the CSS files and JS files which i am using (which I found on the net)

anyone know how to make it display the line1 and line2 text in the URL when submiting it? it works in IE fine but don't on Safari or the iphone.

Can someone help me out?

Thanks

PeejAvery
November 4th, 2008, 07:32 AM
The problem is that the JS file iui.js is overwriting attributes of the form and doing window redirection. You're going to have to alter around the JS file to make it work the way you want.