Discussion Forums  >  Uncategorized

Replies: 6    Views: 241

jonathanmiami
I hate code!
Profile
Posts: 20
Reg: Dec 09, 2010
Miami
200
01/14/12 04:15 PM (14 years ago)

Custom HTML / Text

Using the Custom HTML / Text Form's buttons or actions seems to be disable... What would be the best approach to have a form work? <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> <html xmlns=http://www.w3.org/1999/xhtml> <head> <meta http-equiv=Content-Type content=text/html; charset=UTF-8 /> <title>Untitled Document</title> </head> <body> <!-- Start of example five. (copy from here) --> <form action=http://demos.listmessenger.com/pro/2.2.1/public/listmessenger.php method=post> <table cellspacing=1 cellpadding=1 border=0> <tbody> <tr> <td><label for=email_address>E-mail Address:</label>  </td> <td><input type=text id=email_address name=email_address value= /></td> </tr> <tr> <td><label for=firstname>Firstname:</label>  </td> <td><input type=text id=firstname name=firstname value= /></td> </tr> <tr> <td><label for=lastname>Lastname:</label>  </td> <td><input type=text id=lastname name=lastname value= /></td> </tr> <tr> <td style=vertical-align: top>Select Groups:</td> <td> <input type=checkbox id=group_ids_1 name=group_ids[] value=ENTER_GROUP_ID_HERE> <label for=group_ids_1>GroupName 1</label><br /> <input type=checkbox id=group_ids_2 name=group_ids[] value=ENTER_GROUP_ID_HERE> <label for=group_ids_2>GroupName 2</label><br /> <input type=checkbox id=group_ids_3 name=group_ids[] value=ENTER_GROUP_ID_HERE> <label for=group_ids_3>GroupName 3</label><br /> </td> </tr> <tr> <td style=padding-top: 15px> </td> <td style=padding-top: 15px> <img src=http://demos.listmessenger.com/pro/2.2.1/public/listmessenger.php?action=captcha width=172 height=45 alt=CAPTCHA Image title=CAPTCHA Image /> </td> </tr> <tr> <td style=padding-bottom: 15px> <label for=captcha_code class=required>Security Code</label> </td> <td style=padding-bottom: 15px> <input type=text id=captcha_code name=captcha_code value= autocomplete=off style=width: 170px /> </td> </tr> <tr> <td><label for=action_subscribe>Subscribe:</label> <input type=radio id=action_subscribe name=action value=subscribe checked=checked /></td> <td><label for=action_unsubscribe>UnSubscribe:</label> <input type=radio id=action_unsubscribe name=action value=unsubscribe /></td> </tr> <tr> <td colspan=2 style=text-align: right> <input type=submit name=submit value=Proceed /> </td> </tr> </tbody> </table> </form> <!-- End of example five. (to here) --> </body> </html>
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/14/12 04:29 PM (14 years ago)
It should work with no problems...I have done it successfully myself. Another way to do it is to create a local HTML page...like form.html, put the code into there, and then create an HTML screen and link to that page. The page should go into BT_Docs. Remember to add the page to your Xcode project as well! Does that help? Mark
 
jonathanmiami
I hate code!
Profile
Posts: 20
Reg: Dec 09, 2010
Miami
200
like
01/14/12 04:37 PM (14 years ago)
Wow, thanks for the fast response! I'm glad i'm not alone on this world!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/14/12 04:54 PM (14 years ago)
No problem! Let us know if this fixes your problem, or if you continue to have issues. And, in case you need it, here's a document that shows how to add files to Xcode: http://www.buzztouch.com/resources/Adding_Files_To_A_Project_v1.0.pdf Mark
 
jonathanmiami
I hate code!
Profile
Posts: 20
Reg: Dec 09, 2010
Miami
200
like
01/14/12 04:55 PM (14 years ago)
Ok, I got it to work but my code looks really tiny on the page...how can I make it look like if it was a form made for an iPhone app? do you have any CSS Code that may help me out? Thanks!
 
bracesport
Apple Fan
Profile
Posts: 49
Reg: Jun 02, 2011
Wellington
490
like
01/14/12 05:21 PM (14 years ago)
you can scale it using this code at the beginning <meta content=width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0 name=viewport />
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/14/12 05:23 PM (14 years ago)
And I use this for iPhone vs. iPad style sheets: <head> <title></title> <meta content=text/html; charset=UTF-8 http-equiv=Content-Type /> <meta content=width=device-width; initial-scale=1.0; maximum-scale=2.0; user-scalable=1; name=viewport /> <link rel=stylesheet media=all and (max-device-width: 480px) href=iphone.css> <link rel=stylesheet media=all and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) href=ipad-portrait.css> </head> Mark
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.