How do I switch to a Modal Popup and identify elements in it using coded steps in Telerik - telerik

Scenario:
Launch a web page
Click on the Login button
A Modal Popup appears with username, password fields and a Sign In button
Expected:
a. I would like to identify username, password and Sign In elements in the Modal Popup,
b. I would like to pass values to the username and password fields in the Modal Popup,
c. I would like to click on the Sign In button in the Modal Popup.
I wish to achieve a, b and c using coded steps. Is that possible?

You can check this code library on the matter: Using r.a.d.window for a login form.

Related

How can I show new modal or update the existed one after an input submit in Slack via API?

I need to show new modal after the submit of the previous one, but I need a trigger_id for it, and there is nothing about it after the submit.
I can use views.update API only instead, and I have a valid response, but the submit button closes the window and nothing happens on the client side after it all.
Slack doesn't show an input in modals without a submit button, so I can't use alternative buttons in the modal too, because a user anyway can click on the submit button and it will be closed.
Is it possible to show or update the modal after an input submit? For example, I need to take a data from the input and show it in the modal after, is it possible?
You could try updating the view using the response_action. That needs to happen within 3 seconds, but doesn't require a trigger_id. Docs for that are here.

ReCAPTCHA auto submit, without submit button

I'm sorry, I speak a little English.
My secret content:
<p>Címek</p><ul id="secret"><li>Cím1</li><li>Cím2</li><li>Cím3</li></ul>
I would like see this (if can: without jQuery):
After valid reCAPTCHA, see (not use submit button):
I do not want use submit button.
How to?

referencing a button on a parent form

On my website...form1 is the parent web page and has a disabled button (button1), a login button and an iframe. The login button sets the source of the iframe to a login form (form2) with a user id and password text boxes and an ok button. Form2's ok button click sets the same iframe source to form3 which evaluates the login and on success, enables the disabled button on form1.
Question: what is the javascript command in form3 to enable the disabled button in form1?
neither
window.parent.getElementById("button1").disabled = false
or
window.document.form1.getElementById("button1").disabled = false
seem to enable the button.
Problem solved. The answer is:
window.top.document.getElementById('button1') or window.parent.document.getElementById('button1') if the parent document isn't the top document.

Wicket: Modal Windows and callback functionality

I have a modal window that shows a panel which contains a form that has some textfields and a submit button
on submit an insert into the database occurs and then I have some ajax behaviour that i want to activate on the modal windows containing page on click of the button.
So flow is at present:
click link
modal window appears
user fills out form
user submits form
form data persisted to db
modal window closes
I need it to do this in addition:
activate some ajax behaviour on the page that contains the panel
any help on how best to do this in the wicket way is appreciated.
I resolved this by passing an instance of the page containing the panel to the panel (i.e. - in the constructor), then calling a method on the page from the panel to perform the Ajax update.
I would be interested to see what others have done or to hear if there are issues with the approach I have taken.
Set up a WindowClose callback.
In the WicketStuff project called ModelX (Disclaimer: I'm the developer of that) I have created an IWindowClosedListener interface which has a method:
void windowClosed(Panel panel, AjaxRequestTarget target)
So then any Page or Panel that can open a modal that needs to do something when that modal is closed simply implements that interface and its windowClosed method gets called at the right time.

How can I set up login using Fancybox?

I am trying to open a control panel in FANCYBOX.
I have a form in my page which its action and field names are same as another website and once user submit it they will redirect to their control panel in that website in a new window.
What I want is to open it in fancybox. I do not want to user leave my page, I just want them to access to that panel inside my website.
And also I want to all links of the opened frame target be _parent. I mean if they go to different parts of their panel it shows in the same fancybox not open a new window.
You might wanna look at iframe i.e. Add class='iframe' to a link check it on this page.

Resources