Changing reocurring events in Goolge Calendar using javascript console - javascript

I would like to change if an event is reocurring or not using the javascript console. How can i find the variable or function that needs to change and then change it? Noob here trying to learn.

Related

How can I wait for the create/edit entity modal window to finish rendering and execute my custom js code in 2sxc module?

When user presses either create entity button or edit entity button, there's the same modal window in an iframe that is build by js dynamically. So what I'm trying to do is to wait until it's fully rendered and then execute my custom js code. So is there a proper way to do that? Some sort of event like RenderFinished shooting or something? Don't want to use timeout since I understand that it's not a good way to do that.
What I tried so far is that I've added jquery to the page programmatically, since it's not used currently at that particular page for some reason (probably because iframe is built dynamically without jquery and I needed to add it myself).
After that I tried to access iframe via jquery selector and then on iframe.ready access element inside in the same manner (selector and even ready for that element). But iframe is accessed and element inside it is not. Console log inside ready function just outputs no elements found. When I placed breakpoint inside I saw that there's no modal window built yet and my code is executed synchronously before it. So there's nothing to find yet at that moment.
Oh and I tried to put it all inside $(document).ready, of course. But it didn't change the situation neither...
Any ideas about how to do that properly?
The final goal why am I doing all this complicated dancing: I'm trying to add validation that UrlKey for entity is unique. So I want to bind my js function to UrlKey input's onchange event and call backend api to do the validation and return new UrlKey if it wasn't unique and edit the UrlKey input accordingly. The problem that I stumbled upon is to execute my code after modal iframe window is rendered.
Any tips are highly appreciated.
You are in luck :)
2sxc added a Formula feature which will help you with this. There are videos and tutorials and more. See http://r.2sxc.org/formulas

How to get jQuery or Javascript to recognize a dynamically created button?

So I've spent all afternoon trying to get this to work and it doesn't seem like it should be this difficult but it is. Long story short I have a dynamically created button that is only generated with the following identifier...
<a class="delete-row" href="javascript:void(0)">Del</a>
It's created in a Javascript program. It works fine. The problem is when the user clicks on this button I want it to fire off a function but because the button is defined within a program I'm having a hard time capturing it. It's a dynamically created button without a unique qualifier. I have tried various OnClick or Click pieces of code...and to no avail. Any clues as to what I might be doing wrong? I am familiar with onclick scenarios and have gotten them to work before. I believe my challenge here is because the button is being created dynamically.
I've tried something like...
$(document).ready(function(){
$(document).on("click",".delete-row",function()
{
console.log("Test");
});
});
And it's not working. Do I need to add an event listener perhaps?
Thanks in advance for any suggestions.

How to simulate keypress in an iFrame using javascript or query

I am currently trying to write a script using javascript along side a bit of html and some css - but let's stick with Javascript as thats where, I think, my problem comes from...
In short what I want my program to do is these following points:
I have an iFrame in the main window of my program.
The iFrame is used to access a website (obviously duh :P)
There is a button outside of the iFrame.
That button will call a function when pressed by the user.
HERE'S MY PROBLEM:
I want that function to simulate the press of a keyboard key (in that case, a number key followed by the ENTER key twice.
The thing is, I need to 'simulate' these keypress inside the iFrame, so they interact with the website that is access through the iFrame.
In short, I can't seem to find a way to interact with the website in iFrame from outside of it. I would prefer a solution using pure JS but I'm fully aware that there would probably be a much simpler solution using Jquery. So I'm open to either one of them.
I don't think that pieces of my code would help as there is basically nothing coded so far, besides the main function and the basic layout of the page. I'm ready to redo the whole architecture of what I've done so far if needed.
Thanks for you help.
Yann

connecting an event to function in javascript for pdf

im trying to write something in javascript to extend my adobe reader functionlaty.
i have written a function and added it to my menu item and its working fine.
im looking for a way to connecy function to specific events that happen in the file
e.g.
run the function when i click anywhere in the document.
i saw on the documention that an event object is automatically created with specifc properties.
but i dont know how to use that event in the moment it is created, and how to make it to start a function.
thx for the help.

bind function to action in pdf javascript

i wrote a function in javascript for pdf and added it as a button to my menu
the function adds a annotation to the pdf, but i want to be able to determine where the annotation will be placed. i want to use the mouse for that.
i cant find a way for connectiong a mouse click to the function i wrote,
according to what i saw in the java api documantion there is no way to bind a click event to the function.
i tried doing something which is pure java script like this.addEventListener with no success
also tried adding to my code some js libraries like KeyboardJS but also no success.
id rather have a way to bind my function to a mouse click, but a way to bind it to a specific key could also be very useful.
thank you

Categories

Resources