How can I open an url in the current active browser which is been provided as a part of the mail
Example- I receive an email in my outlook.I am browsing also.If I click on the url provided in the email it must open in the current browser window which is open
I don't think that is possible with a URL. The handling of http: protocol is operating system dependent, and really shouldn't be messed with.
My default browser is FlashPeak SlimBrowser and with this as my default browser it isn't a problem since this is what it does by default. I use SlimBrowser since the web site I work on is keyed to IE and SlimBrowser uses the IE Object with any of the automatic IE junk disabled. No question about popups since they don't happen unless I click on them.
The click interface in outlook is using the API to open the default browser window. The default browser determines how it is going to handle the request.
Related
I am working on web app in OutSystems 10.0. In the application, if I log out, it logs off. But when I click the browser back Button, it redirects to the Previous page (which should be displayed only after login). Any suggestions?
You probably need to have roles on the pages, if the pages have the role anonymous anyone can open it.
You're probably accessing the website via http and not https, so when you press back on the browser it will show you a cached version of the previous page.
Because it's the cached version, the session and roles are not checked.
As a recommendation, force the https protocol.
Following the link provided by #Abdulhakeem, they recommend the following:
Add a hidden input to the page - initialize it to some value (for example 'no') - so when the page is rendered by the server it always has a 'no'
Add a bit of Javascript to the page ready event to:
Check that value - if it's not what you'd expect from the server (in our case, <> 'no'), force refresh the page (see below)
If it is still set to what you'd expect from the server, change it (in our case to 'yes') and do nothing else
I recommend downloading the .oml provided in the post and reviewing how they actually implemented it.
if you can change to https, you can also in every action that is on the page that do changes on the database. check if you have permissions or you are logged. that way if the person tries to do back and do some action you can redirect it somewhere.
Through Document Interaction, my iOS app registers itself as an editor of .sgf and .ugi files. So I can open such files from - let's say - attachements in Mail.
However, when trying the same from Safari, I get inconsistent behavior. I try to open .sgf documents that are available via HTTP into my App.
Some http links trigger the gray box with "Open in..." button... Good.
http://gtl.xmp.net/reviews/data/82/8201-DavidB-mukai-jettero.sgf
Other links open as a text file in Safari... Unwanted.
http://learngo.world-go.org/golibrary/samplelessons/studygroup30k/2004-06-11_20-30k.sgf
Is there a way to get the "open in..." button on all?
After some research I got most of the answer from this page:
https://developer.mozilla.org/en/Properly_Configuring_Server_MIME_Types
And this web tool:
http://www.rexswain.com/httpview.html
SafariMobile looks at the MIME-type that is returned by the web server to determine what to do with the link (view within Safari or offer 'Open In...'.
Supported types like 'text/plain', 'text/html', 'image/gif' are all displayed within Safari. Whereas an unsupported type like 'application/zip' will trigger the 'Open in...' interface.
But Safari will even try to display a link of the type 'application/octet-stream', which is the mime-type typically used for unknown binary formats. I suppose Apple did this to overcome web servers that fail to provide the proper mime-type.
Supplying the type along within the HTML code is ignored by Safari.
<a href='file.sgf' type='application/x-go-sgf'>
The only (I think) solution is to change the configuration of the web server.
When i run my scripts as Junit test case, the browser opens up and also tries to open the provided URL. But, only the header and footer of the website is opened with the message "Cookies and Javascript Required
In order to correctly view this website, you will need Cookies and Javascript enabled on your browser. To set your browser to support these requirements, please visit your browser's help menu for the appropriate instructions."
This makes the entire script to fail as the Web elements are not displayed.
You need to provide some more information:
Does this behavior happen when you access the site normally i.e. without Selenium RC involved?
Which browser are you using?
Have you tried another browser? You can do that by changing the parameters in this line:
seleniumId = new DefaultSelenium( "localhost", 4444, "*iexplore", "http://URL");
(A useful trick is to put garbage in the browser parameter and when you run it, the error message shows all the allowable browser strings.)
Have you tried to enable cookies and Javascript? What happens then?
If you don't want cookies and Javascript enabled normally and you are using FireFox, you can set Selenium RC up to use a special proxy that does allow this (but only for Selenium tests). See here
My client's website opens external links in new windows (with target="_blank"). The links are also routed through a logger which responds with a 302 redirect to the desired page.
For example, instead of
...
We have
...
Where /redirect?to=$url returns an HTTP 302 to $url.
This works fine in all browsers except IE8. Instead of opening a new window with the desired URL, IE8 opens a new window and stalls with a progress throbber and an empty address bar. If I then hit stop and reload, the desired URL loads.
Has anyone encountered this problem? Is there a known solution that preserved my client's desired behavior? That is, to open links in a new window with redirect-based logging.
I know it's just a workaround, but... use JS redirection if the browser is IE8?
Watch your traffic in a network traffic debugger like Fiddler2 to see what's happening on the wire. You can then add the exact raw text of the HTTP response to your question to help with replicating your results.
Also, is this redirection crossing between IE security zones (e.g. Internet,Intranet, etc)? In particular, it's always interesting if a redirection crosses (Vista+) from a Protected Mode Zone to a non-Protected Mode zone, as this goes through a rather obscure codepath in IE.
I am not use: Process.Start (String, String) to open a link. But every time the browser open a new tab or new window to open the link.
Is there a way that to open the link in the latest opened page? Just redirection, no new tab or new window?
This is not really up to you (the programmer) to decide but to the user: Some browsers have an option for this setting. You shouldn't try modifying the user's selected browser behaviour.
Someone of my team did this once in an instant messenger application that we were writing, without asking for other opinions first. The users were super annoyed that our application kept overwriting their opened pages.