how to reload every tab of browser which have open our webpages - java

gmail use some functionality by which they reload all tabs for the login. that means if we open login form of gmail in different different tabs. then login in single tab gmail automatically reload all the pages and redirect to mail page . how it is possible ?
is there any particular frame work to implement this?

You have multiple possibilities, like:
- Websockets
- Push notifications
- Long polling
I won't recommend you any tools for that, as this may change over time, you will find plenty of resources on Google.

If you are using Chrome browser, then I would suggest you to add an extension like "Reload All Tabs". Once you added this extension you can easily reload all the open tabs by clicking the icon of the extension.

Related

Android WebView: How do I allow deep links?

When I click on a link within my WebView, it behaves as expected - it opens the link within the WebView.
However, if an app can handle that link, I would like to open that app instead. For example, if I tap on a Twitter link, I would like it to open Twitter, else open in-app.
This is how Google Chrome on Android behaves. This is also how WKWebView, the iOS equivalent of WebView, also behaves.
How would I go about implementing that? I have attempted to implement the solutions here but now my app always wants to open the system browser.
Deep Links as handled by OS itself. You just need to implement it properly. For example, in Android if you want to open the following url
http://twitter.com/intent/tweet?text=YOUR_TEXT
it will open the twitter app if the app is installed in your phone. Otherwise it will be opened in your browser.
But in case of iOS you have to specify the URL Scheme for opening in another app. Check the following url
twitter://post?message=YOUR_MSG
So when implementing this SO answer, you should also consider about the URL Schemes.
You should also keep in mind that webview in the application are implemented so that you don't have to open the browser app and no urls are exposed. If you want to open another app, you must consider opening the url in browser from your app so that OS can handle the rest.

Application blocked by security settings error on client' Windows8 OS

We are facing this issue on our clients machine.
Our project uses a third party java applet to open the files in respective softwares.
On windows7 we don have any issue but we have issue on windows8 OS
our project is working fine in IE10 and FF browsers. of windows8
this error is thrown only in chrome.
but when we execute same third party demo site which uses this same java applet to open the files in respective softwares, that is working fine in all browsers without making any changes in settings.
I have read many replies from different ppl that we need to changes the client java secutiry settings.
But how can we ask all our clients to make this setting so this is not a proper solution for our problem.
Please see the image below
![Error message][1] is
"Your security system have blocked an application with expired or not yet valid certificate from running"
please help me solve this ..
Go to Control Panel -> Java -> Security -> Edit Site List
Solution published in my website:
http://www.myerrorsandmysolutions.com/application-blocked-by-security-settings/
Go to Control Panel
Java
in the Security tab click the “Edit Site List…” button
click Add button
insert the URL of the website that you want access in (URL should begin with http:// or https://)
click Add button
click OK button
click OK button
Note: you could find an icon Java (32-bit) rather than Java.
If you won’t find in Control Panel a Java icon or the “Edit Site List…” button is missing and you are sure that Java is installed, open a text editor and create a file with name exception.sites containing the URL of the website that you want access in (URL should begin with http:// or https://) and save it in the following path:
C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\security
where
username
is the name of the user.
go to Control Panel -> Java -> Security , choose minimum security level , Medium(Least secure setting), then click ok , save and try again...

Can you communicate with a browser window, after opening it with a JavaFX app?

My question is just as the title indicates.
I have a JavaFX app, and need to open a browser window. After opening it, I want to be able to communicate from the browser back to the app that opened it.
For example, if I opened the default browser window like this:
URI u = new URI(url);
java.awt.Desktop.getDesktop().browse(u);
Three options:
Through Javascript
Using javascript, and the window name you could access any window.
E.g. See: https://stackoverflow.com/a/16525481/1688441
Through Ajax Calls and a Server/Database
As another user answered, communication could be done with an intermediate server.
Third party library
The only other thing I can think of is using a 3rd party library to get the window within Operating System, though not much more I can suggest.
You can communicate back and forth with a WebView component. See http://docs.oracle.com/javafx/2/webview/jfxpub-webview.htm
If you are launching a page in the hosts browser, you'll need to develop a server based method to communicate.

How to count when a link is clicked?

My webpage have number of links referring to other sites. On every click of the link I have to count that this particular link was clicked from my site.
How can I do this? I am using JSP as view technology with tomcat as web Server.
If you are using google analytics it is easy to setup javascript to record the clicks. This would be far easier than setting up your own redirection as you can still use actual url anchors instead of urls that go through your server.
google analytics has something called event tracking
https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide

Insert a string and click a button on an ASP page from an Android App without opening the page on the phone

I want to send a string from an android application and dump it in a textbox and then click a button present in the ASP website without opening that website on the phone (the button and the textbox are both present on the asp web page).
I have control over the website (stuff like __VIEWSTATE and the __EVENTVALIDATION strings for the ASP Page are available). I would want to know if there is a way to do this using the __VIEWSTATE and the __EVENTVALIDATION strings. If there is an alternate way, could you please kindly explain me in a step-wise manner.
I supouse that you would like to start some process on web site after click (for example create/read/ someinformation). But in case you have access to web site source it would be better to create some WCF service or ASHX and use it you can send any data and get result of operation.
It is not possibe to click on button without open site. or see Can I fire button click event without firing pageload event?

Categories