{ "id": "63603", "key": "TIMOB-2971", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-07-26T13:25:24.000+0000", "created": "2011-04-15T03:33:56.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "19334", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-26T21:32:20.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
I would like to create textboxes using titanium api in a html\ndocument. Is it possible? I have tried but boxes dint seems to\ndisplay. May I know how it can be displayed? I am new to titanium.\nThanks
\nPlat:Android; Sdk:1.5
\nLogin.html
\n<!DOCTYPE HTML>\n<html>\n  <head>
\n
\n\n\n\n\n\n<link rel="stylesheet" href="css/pub.css" type="text/css" media="screen">\n<script type="text/javascript" charset="utf-8" src="script/jquery.js"></script>\n<script type="text/javascript" charset="utf-8">\n    var et;\n    var pass;\n    function initialize(){\n        et  = Titanium.UI.createTextField({\n            id:'email',\n            backgroundColor:'#eeeeee',\n            returnKeyType:Titanium.UI.RETURNKEY_DONE,\n            enableReturnKey:true,\n            keyboardType:Titanium.UI.KEYBOARD,\n            autocorrect:false,\n            hintText:'Email',\n            textAlign:'left',\n            clearOnEdit:true,\n            borderStyle:Titanium.UI.INPUT_BORDERSTYLE_BEZEL,\n            clearButtonMode:Titanium.UI.INPUT_BUTTONMODE_NEVER,\n        });\n\n        pass  = Titanium.UI.createTextField({\n            id:'password',\n            backgroundColor:'#eeeeee',\n            returnKeyType:Titanium.UI.RETURNKEY_DONE,\n            enableReturnKey:true,\n            keyboardType:Titanium.UI.KEYBOARD,\n            autocorrect:false,\n            hintText:'Password',\n            passwordMask:true, \n            textAlign:'left',\n            clearOnEdit:true,\n            borderStyle:Titanium.UI.INPUT_BORDERSTYLE_BEZEL,\n            clearButtonMode:Titanium.UI.INPUT_BUTTONMODE_NEVER,\n        });\n    }\n</script>\n<script type="text/javascript" charset="utf-8">\n    $(document).ready(function() {\n        initialize();\n    });\n    </script>\n\n\n\n\n\n
\n </head>\n <body>\n\n
\n<div id="container">\n    <div style="-webkit-border-radius:10px;background:#627C92;padding:3px;width:90%">\n        <div id="email"></div>\n        <div id="password"></div>\n        <div id="login"></div>\n    </div>  \n</div>\n\n\n\n\n\n
\n </body>\n</html>\n
app.js
\nvar webview = Titanium.UI.createWebView({url:'login.html'});\nvar win = Titanium.UI.createWindow();\nwin.add(webview);\nwin.open();\n