{ "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

\n

Plat:Android; Sdk:1.5

\n

Login.html

\n
\n<!DOCTYPE HTML>\n<html>\n  <head>
\n
\n\n\n
\n
\n
\n&lt;link rel=&quot;stylesheet&quot; href=&quot;css/pub.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;\n&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;script/jquery.js&quot;&gt;&lt;/script&gt;\n&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;\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&lt;/script&gt;\n&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;\n    $(document).ready(function() {\n        initialize();\n    });\n    &lt;/script&gt;\n
\n
\n\n\n
\n </head>\n <body>\n\n
\n
\n&lt;div id=&quot;container&quot;&gt;\n    &lt;div style=&quot;-webkit-border-radius:10px;background:#627C92;padding:3px;width:90%&quot;&gt;\n        &lt;div id=&quot;email&quot;&gt;&lt;/div&gt;\n        &lt;div id=&quot;password&quot;&gt;&lt;/div&gt;\n        &lt;div id=&quot;login&quot;&gt;&lt;/div&gt;\n    &lt;/div&gt;  \n&lt;/div&gt;\n
\n
\n\n\n
\n </body>\n</html>\n
\n

app.js

\n
\nvar webview = Titanium.UI.createWebView({url:'login.html'});\nvar win = Titanium.UI.createWindow();\nwin.add(webview);\nwin.open();\n
{html}", "attachment": [], "flagged": false, "summary": "Create textfield in html file using titanium api", "creator": { "name": "davidlee", "key": "davidlee", "displayName": "davidlee", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "davidlee", "key": "davidlee", "displayName": "davidlee", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "209726", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Helpdesk question, not bug.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T13:25:24.000+0000", "updated": "2012-07-26T13:25:24.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }