facebook

customize form url w/ extra paramenter?: see Example

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #329716 Reply

    mgjackson
    Member

    Hi,

    I’ve previously written a native simple Android App that access’s FogBugz (an online project bug ticket management and time tracking tool).

    To prove MobiOne, I’m trying to re-write the same program.

    All my app does is log on to fogbugz and then return the ticket number currently being worked on and some details and out put them onto the display.

    However, I seem to be tripping up on the first hurdle – My signon screen is based on the example found in the forum, however MobiOne has moved on since that was written and although it sort of works, am having trouble.

    First thing is that I need to pass an extra parameter to the server – ie my url needs to be

    http://companyname.fogbugz.com/api.asp?cmd=login&email=xxxxx&password=yyyyy

    So I’ve set up in the Design Center the Form Action URL as http://companyname.fogbugz.com/api.asp

    How do I add the ?cmd=login bit – Do I in the function
    phoneui.preSubmitForm….= function(form) add something like

    form.action = “http://companyname.fogbugz.com/api.asp?cmd=login”
    and just override the form action.

    What happens to the parameter fields – ie the email and the password – are they appended by MobiOne or do I have to do that manually?

    Many Thanks,
    Matthew Jackson

    #329926 Reply

    Hi Matthew,

    Our team is working on some tutorials now. We hope to begin publishing them next week to provide a framework for creating an app that uses remote data. They will appear on the MobiOne Learning Center and I will notify you on this thread. The custom logic will entail programming in JavaScript with several open source JavaScript libraries.

    #329955 Reply

    support-michael
    Keymaster

    @mgjackson

    One approach for adding your cmd=login parameter is to use a hidden input field. To do this:
    1) drag-drop an html widget on your form
    2) add your html code to create a hidden field

    <input type="hidden" name="cmd" value="login">

    Here is the resulting GET request when the form is submitted:

    http://myservice.com/?cmd=login&id=wayne&password=foobar

    See attachment hidden-input-field.png

    Attachments:
    You must be logged in to view attached files.
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: customize form url w/ extra paramenter?: see Example

You must be logged in to post in the forum log in