Is it possible to invoke mobile-safari by protocol like
safari://my.site
From pseudobrowser safari, when it popup after select network with page "Log In" ?
When i select network from my network list in IPad or IPhone i see "Log in" pseudo-safari-browser-window-without-tabs with html code. I wish to redirect from that page to normal safari-browser like if i have installed google chrome. window.location=googlechrome://my.site
Related
We have third party app that has WebBrowser control that allows us to update the HTML content, and wanting to embed iframe of embed.aspx page from MS Graph api, but getting error "This content cannot be displayed in a frame". The HTML displays fine in Chrome and Edge, but IE and webbrowser control block it.
:!This content cannot be displayed in a frame(https://i.stack.imgur.com/JA8Jd.png)
I am using Microsoft Graph to get the preview embed.aspx of an item stored in SharePoint, using driveItem: preview API and I am getting a URL return like this, which is designed to be embedded in iframe.
https://{domain}.sharepoint.com/_layouts/15/embed.aspx?uniqueId={guid}&access_token=eyJ0eXAiOiJKV...
Is there some setting on ie that I can change to allow this content to be displayed in webbrowser control?
I have tried: - setting in ie to allow "Launching programs and files in an IFRAME".
I am using GWT FormPanel to submit a POST request to a servlet which renders a pdf. The screen I am using to post have got a pop up with yes, no and preview button. yes and preview would open a pdf in new tab in browser.
The problem is when I use IE11 and clicks on preview it opens up a pdf well, I dont close the tab go back to previous screen and clicks yes, again request reaches to servlet but this time all the request parameters are null.
If the pdf tab is closed and then I click on yes it again works fine. This is an issue with IE11, works fine with Chrome. Any Ideas ?
If I change it to GET it works fine but I have a huge data that needs to be passed to servlet.
here is a code snippet :
formPanel.setBodyBorder(false);
formPanel.setBorders(false);
formPanel.setHeaderVisible(true);
formPanel.setAction(someURL+ "/someServlet");
formPanel.setMethod(Method.POST);
formPanel.setTarget("somePDF");
formPanel.setId("report");
HiddenField<String> hddnF = new HiddenField<String>();
hddnF.setName("Yogi");
hddnF.setValue("Value is set...");
formPanel.add(hddnF);
formPanel.submit();
Have overridden setTarget to show result(pdf) into new popup/tab
public native void setTarget(String target)/*-{
this.#com.extjs.gxt.ui.client.widget.form.FormPanel::setTarget(Ljava/lang/String;)(target);
}-*/;
Ok, i understand title is not very clear. I'll explain better now:
I have an iframe with asp.net page inside. To redirect parent from the iframe i use this:
ClientScript.RegisterStartupScript(Me.GetType(), "redirector", "window.parent.location.href='myOtherPage.aspx'", True)
It works fine, perfect on Internet Explorer and Chrome, crappy on firefox and opera. In those two browsers user can see single iframe reloading before the parent reloads, but thats not the problem i want to solve.
After a redirect if i hit the Back button on my browser i go back in the old page and bounced forward again. Hitting back again works (with Chrome).
With Internet Explorer no problem, just 1 back works fine.
Firefox and opera bounces me endless times!
I tried to erase the script after execution, so i used this (without any newline):
ClientScript.RegisterStartupScript(Me.GetType(), "redirector",
"<script id=""redirector"">
document.getElementById('redirector').innerHTML = '';
window.parent.location.href='myOtherPage.aspx';
</script>", False)
but its useless. Redirect still works but same two back button problem.
Any idea on this?
I have a small requirement..
if the user dint sign off or log off then he try's to close the browser IE clicking on 'X' (top right of IE or Firefox browser ) then i need to ask a conformation message like "Are you sure you want to close ?" ...
I am using Master page in my application and i tried the event : "window.onbeforeunload " in my master page its works fine, shows an alert(conformation) message. but if i press back button on the browser(IE on IE or Firefox) then also its firing(but it should not) is there any way to full fill my requirement ..I hope i had explained u clearly...if not pl z let me know........
what i mean to say is.. if the Session("USerid") is active or if it contains any value ie.
Session("USerid")="XXX"
at that moment if user trys to close the browse(click in 'X'/Close button browser either IE or Firefox ) it should give prompt a message "are u sure do u want to close?"..
Its all about design steps - but the close and the back button is the same, the close the page, so maybe its impossible to have them all together.
To open, close your script you can make a simple trick. Place them inside a literal and open or close it.
<asp:literal run="server" id="txtCloseAlert">
<script>
... you code here ....
</script>
</asp:literal>
and on code behind.
txtCloseAlert.visible = !string.IsNullOrEmpty(Session("USerid"));
I've looked into this recently and there does not appear to be a standard / consistent way to do this cross-browser hence you back-button problem.
On IE at least you get an event object passed as a parameter to the onbeforeunload method that you can use to get the mouse position, but in FireFox you don't and you would need some other way to determine whether a confirmation is required. It is quite posible that you could get the mouse position in some other way as I haven't looked into that. Point is that if your mouse is not on your form you probably want a confirmation.
You can look at this SO question:
Prevent browser from closing in asp.net
Or do an Internet search on 'onbeforeunload prevent browser closing'.
In your case a synchronous ajax call can be made to the server to do the test.
HTH
How can I open my Default.aspx page without Addressbar, Menubar & Statusbar?
Remember it's the user with an already-opened web browser that chooses to visit your website, effectively Default.aspx page, whether or not the browser is launched by you or a program while testing your website. So a bit of client-side/JavaScript "magic" is needed to modify or fake the desired result based on an already existing browser window...
Using JavaScript, you can launch a new window with those features turned off, and close the old window. For example, IE's window.open(..) args are specified here.
It provides an example
varCustomFeatures = 'titlebar=no, status=no,menubar=no,resizable=yes, scrollbars=no,toolbar=no,location=no,directories=no,left=0,top=0,height=';
window.open(windowURL, '_blank' , varCustomFeatures,true);
Details may vary between browser in which case you will likely need to employ browser detection.
You can't.
However, you can create a popup windows without the bars in Javascript using open method, like this:
open("MyPage.aspx", "MyWindow", "toolbar=no,status=no,menubar=no");