• is there away to have it focussed straight away?

    By Adam Foster 2 decades ago

    so you don't have to double click the folder icon…



    object.focus is not allowed…

    • Yes

      By Mark Haller 2 decades ago

      Hi there



      Do you mean you get the "Click to activate and use this control" message? If so, I did this:


      1. Add some JS anywhere (either in JS Header or in your own .JS file)



        function myprintln(s) { document.writeln(s); }


      2. Then in the sfNewAttachments subform, change the println to myprintln



        And it will magically work!







        If it's something else you are talking about, can you be more specific?





        Marky_UK
      • Focus of uploader

        By Adam Foster 2 decades ago

        Hi Mark, thanks for the reply.



        Yes I think you understand me, i want to avoid the double click to load a file.



        I have added the myprintln function but I cannot find the existing println line to change.

        Can you be a bit more specific.



        My version was downloaded on 3rd July if this helps. Is there a newer version?



        Thanks for this by the way.

        -Adam

        • By Mark Haller 2 decades ago

          Hey Adam



          You should see some code in the sfNewAttachments form that starts