Re: [campsite-support] id parameter
  • Hi Lee,

    Please take a look at this manual page:
    http://code.campware.org/manuals/campsite/3.2/index.php?id=102

    I forgot to update the form pages but these features are there from 3.1
    release. Use html_code and button_html_code parameters to insert any HTML in
    the form tag and button input field. All forms support these parameters.

    E.g.:
    {{ user_form .. button_html_code="id=\"my_id\"" }}
    will output:

    ..



    Mugur

    On Tue, Apr 14, 2009 at 11:11 PM, wrote:

    > Author: Lee
    > Link: http://code.campware.org/phorum/read.php?8,7009,7009#msg-7009
    >
    > --------------------------------------------------------------------------------
    >
    > I have looked through the code, but being unfamiliar with "Smarty" have
    > been unable to find what I am looking for.
    >
    > When you include the following into a template:
    >
    > {{ user_form submit_button="Click To Register" }}
    >
    > the following submit button is generated:
    >
    > >input type="submit" name="f_edit_user" value="Click To Register" /<
    >
    > The problem is the generated code is not javascript friendly, lacking the
    > id parameter.
    >
    > Can someone point me to where within the code the form input lines are
    > created so that I can add the id parameter?
    >
    >
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >