getting value from jQuery modal window page [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
I have a modal window on a page, inside the window it loads a .aspx page within it using an iframe.
I would like the ability on click of a link within the modal window (.aspx) to send back a value to the page that holds the modal window.
Do you know how I can do that? It's basically so I can use the modal as a search, select an item then do things with it in the previous window.
Thanks.

To communicate from the iframe with the caller window you use the window.top.document or the window.parent.document which is suits you.
With simple javascript you look for elements like that:
window.top.document.getElementById("ControlIdToFindOnTop")
and because you work on asp.net make sure that you have set static control id, on your control because the two pages can not communicate to locate the control id using the usual ControlIdToFindOnTop.ControlID
Now using jQuery you can do the same, locate an object on top windows as:
jQuery("#ControlIdToFindOnTop", window.top.document)
And to call functions from iframe that exist on top window you can call something like:
window.top.FunctionToRun();
After you have the control object, you can read the value, the text, their properties, etc...

Related

How to force the Detail page to move right with the Master page on iPad in Xamarin.forms [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
When using an iPhone, the Detail page automatically moves to the right with the Master page when the hamburger/menu icon (☰) is clicked.
Before clicked:
After clicked: (As you can see, the entire Detail page moves with the Master)
However with an iPad, when you click the Hamburger icon, the Master page moves right, but goes on top of the Detail page (and so the Detail page doesn't move right with it)
Before clicked
After clicked (As you can see here, the Detail page does not move right with the Master page. This can be identified by looking at the "Home" Title, and how it does not change position from before to after)
Question
My question would be how to recreate this effect (experienced on iPhone) on iPad. The main reason why I wish to do this, is because of the ShadowEffect I have attached to the NavigationPage.Appearing.
This moves with the navPage, and so on iPads, it is hidden. I also use the MasterBehavior.Popover enum for the MasterBehavior property.
Thanks for your time, Daniel
if you are using master detail page then you can't change the behavior in iPhone even if you change the behavior to popover it will perform same as you shown in the picture. If you want master details page behavior same on every platform you have to use some other libraries Like this Slide over kit.

selenium with C# on IE [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
Switching multiple windows in IE.
First page has LOGIN button which on clicked goes to second window.
Second window takes credentials and has a NEXT button which on clicked goes to third window.
Third window has a button which on clicking moves to the fourth window.
How do I navigate mutiple windows using Selenium with C#.My website runs on IE only.
To switch to the new window after it opens you can use
driver.SwitchTo().Window(driver.WindowHandles.Last());

Closing windows form via taskbar different to close button? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I have a windows forms program which saves properties like its size, location, splitter bar locations &c in a properties file in hte usual way. I've noticed that whenever I close the application by right clicking on its taskbar icon and choosing 'close window', these properties don't save correctly and my application then either won't start or starts with size 0 or something.
Of course I can catch these problems and hack around them, but I would like to know what is different between closing via the form and via the taskbar, so I can handle the appropiate events.
As the first commenter to recommend the use of Form.Closed, I'm demanding my ransom money! :-)

how to dock three panels on same winform in VS2010 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
My goal is to have three panels on one winform and each of them has one listview which docked onto it so that when maximize window, all listview componenets gets automatically resized properly.
As I understand, docking is the the way to go, but it seems I can only dock one listview per panel and one penal per winform, does anyone know a better soluton?
this is in VS2010 c# I am using .net3.5 but Im not limited to any specific versions, but prefer using older version for comaptibility
As noted, you can dock more than one panel in a form. But only one of them can be Dock = Fill, the others won't resize automatically. Unless you add the code to do so in the OnResize override.
A TableLayoutPanel can resize all panels automatically.

transparent popup window that doesnt take focus .net [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I would like to create a Semi transparent popup window that simply appears at a location on the desktop for 3 seconds, it fades in and fades out but doesnt take any focus.
To do this I need to pass a string and fire up the popup in c#, similar to a jQuery popup but this popup must appear on the top most layer above every other window
Whats the correct approach?
If this is WinForms, then you'd just use a timer and the opacity property of the form. The form also has a TopMost property.
As already noticed, Timer+Opacity for fade in/out
and override Form.CreateParams for get rid of focus. You shoud play with Style and ExtStyle properties of params to get exactly what you want. Here is an article with general explanation on this topic:
http://www.codeproject.com/Articles/71808/Creating-a-Form-That-Doesn-t-Take-Focus

Categories

Resources