Skip to Content
author's profile photo Former Member
Former Member

How to run jquery after the form elements(DOM elements) finished loading?

Hi,

I have to run jquery once the form elements gets loaded completely.. is thr any default function which gets called once dom is loaded... Jquery which is used is to hide textbox of fileuploader and change the text "browse" to upload icon.. Implementation is like i hav a toolpage wid scrollcontainers..inside scrollcontainer i have form with fileuploader.. onload of the form i want to change default file uploader to button wid upload icon in it which behaves like a fileuploader..

Thanks,

Ananthi.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2016 at 04:07 AM

    In simple, functionality of this in below format


    file.PNG (4.0 kB)
    upload.PNG (651 B)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2016 at 04:36 AM

    Hi Ananthi,


    For every control, there is an addEventDelegate method, you can try something like this:

    var oForm = this.getView().byId("oForm"); //Get hold of form
    oForm.addEventDelegate({
         onAfterRendering: function(){
         //Now Form is loaded, here you can handle the logic
         }
    }, oForm);
    

    Regards,

    Sai.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.