How do I create a favorites button that will add the div to an html page called "My Watchlist"? - button

I'm trying to create a streaming service that has a custom watchlist that stores whatever the user marks as their favorite. On each card, there would be a play button and a favorites button. The favorites button would (if clicked) add that specific movie/tv show to their watchlist (which is on another page in the same website0 and save both the status of the favorites button to localstorage and save the movie/tv show to localstorage until they remove it. Can someone help me?
I haven't tried anything yet, which is why I need help.

Related

Update only new data from Firebase in SwiftUI

My question is very complex, and my English is not that well, so please excuse if you don't understand me.
I have a SwiftUI File, which builds for each Item in a folder on my firebase an special Button.
If I touch this Button, it will hide. The problem is, I want that if the SwiftUI File reloads, I want to see only these Buttons which I haven't tapped before. (I want to Store which Buttons are Tapped). The Problem is, each time I reload the SwiftUI File, It'll make new Buttons, which aren't tapped yet.
My Question is now, how can I create only for the new Items in my Folder (on the firebase) an Button. The old once should be displayed too, if they were not tapped.
You can store Bool in Firebase. Just load items which false and when you tap a button you make the value true.

Button triggering a specific message from the user

I've been trying a messenger chatbot from a Taiwanese company, but I found it not so funny to play: Is it possible to design a button with a text on it which will trigger an automatic message with a different text from the user?
F.e. something like:
Button text: OK >>>> Text: I'm not sure I can help, but I'll do my best.
When creating a button within messenger you add a postback value which is going to be post to your webhook when someone clicks on the button. You can then test the specific value to act upon it. IF source === "MY_SPECIFIC_VALUE_BEHIND_BUTTON" THEN ...

Visual indication for inline buttons

Is there a way to show some visual indication that the inline button has been pressed in telegram bot.
I have a bit which send inline keyboard, and when I press each buttons it works perfectly fine, but there is a slight delay in getting response from the server. As there is no visual indication to show if a button has been pressed, it is confusing for uses to know if the button was pressed and end up pressing the same button several times.
there are different types of inline buttons in Telegram:
Opens URL (with url).
Forward a message (with switch_inline_query).
Insert query at the chat (with switch_inline_query_current_chat).
Button with action (with callback_data).
I suppose you are refering to the last type of button, in that case, if a user press a button you will get the callback_data via CallbackQuery, and that lets you modify the original message with editMessageText to add something like:
Button TEST pressed.
As an alternative way, after you got the callback response at your server, you can use Emoji for showing feedback to your users. Just edit the inline message and edit some relative emoji to the button text.

LiveCycle ES 2.5 Aws_Action field JavaScript

I have a form that I am designing in Adobe LiveCycle ES 2.5 for a client.
Quick background for the project: It involves taking an even older PDF and converting it to allow digital signatures with potential Reject/Accept buttons.
Does anyone know how to determine in the click event (AWS_SUBMIT::click) for the submit button which submit button was actually clicked??
Like the Reject vs Accept button.
The client only has access to Adobe LiveCycle es2.5 workbench/suite.
The AWS_ACTION field's raw value contains the caption of the button that was clicked, but not until it has been clicked - before that, the rawvalue is null. You can put code in the AWS_SUBMIT button click event to do various things based on the value of AWS_ACTION. I have used it before to do different validation depending on the action taken, eg, if the form is rejected, check that they have entered a comment before allowing it to submit, etc.
The possible values for AWS_ACTION match up with the list of user action names you set in that process task in Workbench.

Use Page Items in a Button Link in Apex Express

i have a little problem. I'm using Oracle Applicarion Express and i'm trying to use some page items in a Link created for a button. I created the Button as region button, and selected in the region" Action when button clicked" "Redirect to URL". In this URL i want to use two pageitems. I tried already to use them mit ":PAGE_ITEM" or "&PAGE_ITEM." but non way works. Can someone help me please?
What does the resulting hyperlink look like? The chance is great that it looks like
f?p=<app_id>:10:<session id>::::P10_ITEM1,P10_ITEM2:,
This is because when using the substitution syntax like &PAGE_ITEM. will put the session state of the referenced item in the string. Since the button is rendered during the loading of the page it will use the session state of the item at that time.
When you then fill in a value for PAGE_ITEM, this will not change the session state of that item - and even if it did it would not matter since the button was already rendered.
If this is the case then you'd better have the button submit the page, and define an on submit before validations/computations branch to act on that button. In the branch you can then safely use the session state of the required items.

Resources