I want to navigate between menu tabs and display content without using any java script and j query .
because, when java script disabled from the browser its does not work.
I have attached image for menu tab.
can anybody help
Thanks
Sanjeev
See my answer here: Is it possible to have tabs without javascript
Yes, it's possible, but it won't work everywhere (yet!)
If you aren't going to use javascript, then you are pretty much stuck having each tab be a link that refreshes the whole page, with the new tab marked somehow as active and its content included.
Related
When we use JAWs for accessibility purpose we find an issue with Tab button. It's work correct for IE browser, but wrong for Edge. When SWT Edge browser widget display and we use Tab button JAWs pronounce wrong Link/Button label, (it repeat the previous one, but if we click Enter right link will open).The issue is random, sometimes it's work correct but sometimes simply repeat the previous Link title/label. It's work ok if I use U button but wrong for Tab. I've tested browser's part locally running it at Edge browser and found that Tab button work correct with JAWs. But when I run application as a part of Eclipse RCP application with SWT Edge browser I found an error. It seems like we have some conflict/problem between SWT Edge and Jaws. May be some one understand the problem and can help with it? Thank you
I want to click on flash button which should open a new tab and in turn I need to do some operations on that page and return to the main page. Can anyone help with the code in Java? I have seen that flash doesn't work on Selenium, if so what are the alternatives?
I never tried, but i found this link, http://www.adobe.com/devnet/flash/articles/flash_selenium.html, maybe is useful for you. Is a plugin to use selenium in Flash front end
I am using DJBrowser in my swing application to show a static html page with style sheets.
The JWebBrowser instance is added inside the panel and the panel is inside JFrame. The issue is with focus not coming back inside the browser when the browser frame regains the focus.
I am using java 6 (jdk 1.6.0_21 to be specific).
I have tried the SimpleWebBrowserExample inside the DJProject. After opening the JWebBrowser, the focus/cursor will go inside the browser content e.g. google search text field. When the screen is de-focused by ALT+TAB and refocused using the same keys, focus does not come inside the text field again (Not sure where the focus is going).
In my application, after opening the html page in the browser user generally wants to find some words inside the page using CTRL+F option then switch between the application and browser often. But after switching to browser user cannot access CTRL+F option as there is no focus on the native browser. (Unless he/she clicks on the browser by mouse).
After reading other similar posts I have tried setting the focus to the native component like - getNativeComponent().requestFocus(), but this did not work.
Could someone please help?
I got the answer to my question above from Christopher Deckers.
If you control the web page, you could keep track of the focused control, and maybe execute Javascript code to restore focus when you detect it should re-acquire it. Javascript code could be something like:
document.getElementById("mytext").focus();
This helped me. Now the web component is getting focus when the window is focused.
Just sharing with you all.
Thanks,
Tushar
I wanted to know how to create the same ui as in the jquery tabs of following link:
http://jqueryui.com/tabs/
I am concerned with the look and feel the view underneath the selected tabs should be looking exactly the way it is shown in the link above.
Also I need to change the background image of the tab i have 2 separate image for selected and unselected tabs.
How to go ahead with this please guide me with example or tutorial?
I searched a lot but was unable to find any technique for doing this attaching the image for reference
Thanks in Advance please do reply.
I'm working on an application that uses the SWT Browser widget to display an HTML page with some JavaScript in it. The JavaScript tries to use window.resizeTo to change the size of the window, but it currently isn't having any effect.
I've fiddled with the browser settings, and it doesn't seem to be an issue with the underlying browser; switching between Mozilla and Internet Explorer rendering engines has no effect. I suspect that SWT simply doesn't automatically re-size the window in response to JavaScript functions.
I can easily re-size the window from my Java code, but I need to know when to re-size it, and how big JavaScript wants it to be. Does SWT provide a way to listen for this? If so, how?
I still don't know of any way to get this information, but a work-around is to change SWT versions. Some of them implement JavaScript's window.resizeTo automatically, and some of them do not.