Automatically put in access code for slideshow

Hi,

 

I was wondering if there was a way to automatically put in the access code for a slide show? I made a private publication with an access key, and I can't seem to find a way to automatically enter the value of the access code from server-side. I try to edit the field value with javascript, but the webpage does not respond until a key on the user's keyboard is pressed. Is there any way to bypass this?

 

Thanks!

Best Answer

  • user04376
    Accepted Answer

    Nevermind, found the fix in jQuery.

     

    document.forms[0].elements[0].value = "Access_Key";

    $(document).find('input, textarea, select').trigger('input').trigger('change').trigger('keydown');

    scope.$apply(attrs.ngSubmit);

Answers

  • Could you explain your solution a little further? How are you adding .js to a slideshow on the "server-side"?

     

    EDIT -

    I was able to create a grease monkey script to populate the code. Thank you for your code above as it pointed me in the correct direction.