Datasets

Datasets

Automatically put in access code for slideshow

Member
edited March 2023 in Datasets

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

  • Member
    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

  • Member
    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);

  • 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.

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In