Search the web
Sign In
New User? Sign Up
yhoomobiledevelopers · Yahoo! Mobile Developers Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
submitting form with blueprint   Message List  
Reply | Forward Message #608 of 915 |
Re: submitting form with blueprint

I'm using the following and it's working fine...I wonder if you need
to use the "post" instead of "get" in your submission. Normally in
HTML I don't think it matters, but here it might...

<page>
<page-header>
<masthead layout="simple">
<layout-items>
<block class="title">Login</block>
</layout-items>
</masthead>
</page-header>
<models>
<model id="auth">
<instance id="auth_inst">
<data xmlns="">
<tenant></tenant>
<username></username>
<password></password>
</data>
</instance>
<submission method="urlencoded-post"
resource="login.jsp" />
</model>
</models>
<content>
<input ref="tenant">
<label>Tenant:</label>
</input>
<input ref="username">
<label>User Name:</label>
</input>
<secret ref="password">
<label>Password:</label>
</secret>
<submit>
<label>Login</label>
</submit>
</content>
</page>


--- In yhoomobiledevelopers@yahoogroups.com, "justinsubscribe"
<justinsubscribe@...> wrote:
>
> Hi,
> Anybody have simple sample code on how to submit a form using
> blueprint (get or post). I created one that did go to another page
> when i press submit but no matter what input i place on the textbox,
> the submitted variables did not change. I'm stuck on this.
>
> Thanks for the help
>
> The code I used is below:
> it supposed to submit values from the two textbox to formsubmit.aspx
> But no matter what I type on the two textboxes the values are always
> the default (in models)
>
>
> Justin
>
> <models>
> &#8722;
> <model id="personal_info">
> &#8722;
> <instance>
> &#8722;
> <data>
> <name>justin</name>
> <address>ubi ave 1</address>
> </data>
> </instance>
> <submission method="get" resource="formsubmit.aspx"/>
> </model>
> </models>
> &#8722;
> <content>
> &#8722;
> <module>
> &#8722;
> <header layout="simple">
> &#8722;
> <layout-items>
> <block>module 1</block>
> </layout-items>
> </header>
> &#8722;
> <input model="personal_info" ref="name">
> <label>Name:</label>
> </input>
> &#8722;
> <input model="personal_info" ref="address">
> <label>Address:</label>
> </input>
> &#8722;
> <submit>
> <label>submit button</label>
> </submit>
> </module>
> </content>
>





Wed Oct 8, 2008 4:10 pm

jodibuckingham
Online Now Online Now
Send Email Send Email

Forward
Message #608 of 915 |
Expand Messages Author Sort by Date

Hi, Anybody have simple sample code on how to submit a form using blueprint (get or post). I created one that did go to another page when i press submit but no...
justinsubscribe
Offline Send Email
Oct 8, 2008
3:56 pm

I'm using the following and it's working fine...I wonder if you need to use the "post" instead of "get" in your submission. Normally in HTML I don't think it...
jodibuckingham
Online Now Send Email
Oct 8, 2008
4:42 pm

thanks jodi very much it worked apparently putting model="personal_info" into the input tag was causing the error. Justin <input model="personal_info"...
justinsubscribe
Offline Send Email
Oct 9, 2008
1:04 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help