• On controls created on the fly…

    Home » Forums » Developers, developers, developers » Web design and development » On controls created on the fly…

    Author
    Topic
    #429033

    This is the scenario: I have a button on a form. Clicking the button will create and populate a drop-down box and will also add a second button , both on the freshly created page, all this thanks to Javascript functions that reside in between the tags of the original page. The question is…if I wanted to bind -different- code to the onclick event of the newly created button, where would that code be located for the new button to see?.

    Viewing 0 reply threads
    Author
    Replies
    • #998186

      Hi Raul

      Is there a way you could put all your script in a js file and then use the following code between the head tags

      You can build all your javascript function is ExternalFile.js….or have I missed your point grin

      • #998196

        HmmmmmI could create all the code external. That’s possible. I’m still unsure that the new button will be aware of the existance of such external source of code. Let me try it out. Thanks.

    Viewing 0 reply threads
    Reply To: On controls created on the fly…

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: