• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Creating Component with special behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating Component with special behaviour


  • Subject: Creating Component with special behaviour
  • From: Daniele Corti <email@hidden>
  • Date: Fri, 17 Jul 2015 15:48:13 +0200

Hi list,

I need an advice about a thing that I would like to do:

I'm trying to create a component that works like a generic container, the difference is that it doesn't inject the inner HTML where the component is defined, but in the bottom of the page. I want to do this, because I would like to use in with the Bootstrap Modal Container.

Example:

<wo:form class="form-horizontal">
   .. other form fields...
<wo:MyModalContainer linkText = "Click Me" classLink="btn btn-default" id="MyModal">
    <wo:form>
        ... logic for another form...
    </wo:form>
</wo:MyModalContainer>
... other form fields...
</wo:form>

I would like the result:

<form action="" method="post">
     .. other form fields...
<a href="" class="btn bnt-default" data-toggle="modal" data-target="#MyModal">Click Me</a>
     .. other form fields...
</form>
... other page HTML...
<div class="modal fade" id="MyModal" tabindex="-1" role="dialog" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
       <from action="" method="post">
           ... logic for another form...
       </form>
    </div>
  </div>
</div>
</body>

That's the idea: the code contained in the container is appended to the bottom of the page (with the appropriate changes), but the form still work inside the component it is defined.
I need to do this, because, if i put the code where the component is defined, the second form is removed, changing the HTML DOM, and the fields in the second form inherit the class "form-horizontal" from the first form.

Is there a way to do this?

Thanks!
--
 
Daniele Corti
--
I DON'T DoubleClick
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Creating Component with special behaviour
      • From: Samuel Pelletier <email@hidden>
  • Prev by Date: Re: localInstanceOfObject
  • Next by Date: Re: Creating Component with special behaviour
  • Previous by thread: Re: localInstanceOfObject
  • Next by thread: Re: Creating Component with special behaviour
  • Index(es):
    • Date
    • Thread