Swf Not getting focus in Opera
Hi All
I did embed an swf file in html.The file is working fine in all browsers except opera(all versions).
I am facing problem that flash didn't get focus when application initially load.User has to click on page.
Then the application works fine.
Here is the code of the application:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Main</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
html, body { height:100%; background-color: #ffffff;}
body { margin:0; padding:0}
#flashContent, div#flashContent, object { width:950px; height:650px; margin:auto; margin-top: 50px; border: none; }
</style>
</head>
<body onLoad = "getAppFocus();">
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="950" height="650" id="Main" name="main" align="middle">
<param name="movie" value="main.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="main.swf" width="950" height="650">
<param name="movie" value="main.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>
Please suggest some solution for this.
Thanks
maybe you can use JavaScript:
document.getElementById('Main').focus();
Similar Messages
-
Tab not getting focus on left-click after suspend in Windows 7 64-bit.
When I left-click on a tab in Firefox 4 rc 2 after my pc wakes up from suspend in Windows 7 64-bit the tab is not getting focus. I have to use the hotkeys in order to move to that tab. My mouse works fine in other programs.
I have an imac
I have an magic pad (same thing as the touch pad on a macbook really)
I have an usb mouse I use both in windows and osx
if your trackpad somehow was registered as actived for some reason it would seem as if it was the mouse
had some *** situations both in windows and osx when my cat sit on the magicpad -
How to make a JScrollPane not getting Focus?
How to make a JScrollPane not getting Focus?
When i tab out from a textfield inside a scroll pane focus is going to ScrollPane .And if i press tab once more then only focus is going to other textField which is outside the scrollpane.
For me when i press tab from a text field inside a scrollPane ,i should go to textfield out side the scroll pane.
satishHi,
I've the same problem, that I have to double click on tab
to step from a textfield with a scrollpane to the next textfield in my panel.
I tried to implement a FocusListener on my JScrollPane, but without success.
Can you tell me in detail how to implement this listener ?
Kind regards
Andy Kanzlers -
Swing JTextFeild is not getting focus - Using jdk-7u17-windows-i586
Hi All
Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
OS : Windows
Used Java Version : jdk-7u17-windows-i586
Issue : JTextFeild is not getting focus993277 wrote:
Hi All
Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
OS : Windows
Used Java Version : jdk-7u17-windows-i586
Issue : JTextFeild is not getting focusThat's an incomplete bug report, not a question. This is a forum, not a bug tracking system. Try bugs.sun.com. And you may want to include a small sample program in the bug report that demonstrates the problem. -
Toolbar icons are not getting focus
The buttons on the toolbar are not getting focus when I move the mouse over the buttons. I am facing this problem if I use JRE 1.5.0_15 but it is working fine in JRE 1.6.0_6.
But I need solution in JRE1.5.0_15.
Can anybody please help me out is there any work around in JRE 1.5.0_15.
Regards
VenkatI found the solution, We need to change
some coding style by giving conditions for particular version , foe example we should make changes in color initialisation. Insteatof color.red , use [RGB,1,0,0] and many......... -
[OpenBox] Window not getting focus if skip_taskbar is set to 'yes'
I have bound gmrun to ALT-F2. When I have skip_taskbar set to yes in rc.xml, gmrun does not get focus. This is quite annoying as I have manually click on it to get the focus.
<application name="gmrun">
<position>
<x>center</x>
<y>center</y>
</position>
<focus>yes</focus>
<layer>above</layer>
<skip_taskbar>yes</skip_taskbar>
</application>
If, however, I remove skip_taskbar as shown below, gmrun get its focus when launched.
<application name="gmrun">
<position>
<x>center</x>
<y>center</y>
</position>
<focus>yes</focus>
<layer>above</layer>
</application>
* Same issue with mplayer/terminal - Doesn't get focus when skip_taskbar is set to 'yes'.
Last edited by keerthi (2008-10-03 19:45:36)I have the same problem, but, and this part is really bad, I also mostly don't have this issue.
So I can't help except to say I run OB 3.4.7.2 and [sometimes!] have the same issue as you.
-dav7
Last edited by dav7 (2008-10-04 03:49:06) -
Custom TextInput itemEditor not getting focus.
I have an AdvancedDataGrid that has a custom itemEditor on an amounts field. If I do an inline textInput itemEditor everything works fine, but if I separate out the textInput itemEditor into it's own component then when I click on the amounts column it doesn't seem to get focus. What happens is I click once and it appears like the text box has appeared, but there is not cursor, so I can't start typing my amount. I need to click a second time in the cell for the cursor to appear.
Here are my datagrid columns:
<datagrids:columns>
<mx:AdvancedDataGridColumn dataField="Customer" headerText="Cust" editable="false"/>
<mx:AdvancedDataGridColumn dataField="Balance" headerText="Bal" editable="false"/>
<mx:AdvancedDataGridColumn dataField="paymentAmountString" headerText="Amount"
editable="true" textAlign="right"
editorDataField="amountText" itemEditor="com.ihcfs.flex.renderers.AdvancedAmountTextInputRenderer">
</mx:AdvancedDataGridColumn>
</datagrids:columns>
Here is my custom renderer/editor, I've tried both a spark TextInput and an mx:TextInput. They both have the same behavior.
<?xml version="1.0" encoding="utf-8"?>
<s:MXAdvancedDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
focusEnabled="true">
<fx:Script>
<![CDATA[
public var amountText:String;
]]>
</fx:Script>
<s:TextInput id="amountTextInput"
width="100%" height="100%"
textAlign="right"
change="amountText = amountTextInput.text;"
focusEnabled="true"
editable="true"
restrict="[0-9][.]"/>
</s:MXAdvancedDataGridItemRenderer>
If I do an inline item editor it works just fine, it's when I move it out to a reusable component that this behavior happens.
Inline:
<datagrids:columns>
<mx:DataGridColumn dataField="customer" headerText="Cust"
editable="false" textAlign="center"/>
<mx:DataGridColumn dataField="balance" headerText="Bal"
editable="false" textAlign="center"/>
<mx:DataGridColumn dataField="paymentAmountString" headerText="Amount"
editable="true" editorDataField="text" textAlign="right">
<mx:itemEditor>
<fx:Component>
<mx:TextInput width="100%" height="100%" textAlign="right"
focusOut="textinput1_focusOutHandler(event)"
focusIn="textinput1_focusInHandler(event)">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.controls.Text;
import mx.events.FlexEvent;
import mx.formatters.CurrencyFormatter;
[Bindable]
private var originalAmount:Number;
private var amountFormatter:CurrencyFormatter = new CurrencyFormatter();
protected function textinput1_focusOutHandler(event:FocusEvent):void
var e:TextEvent = new TextEvent("amountEntered", true);
var textField:TextField = event.target as TextField;
var newAmount:Number = 0;
if(!isNaN(parseFloat(textField.text))){
newAmount = parseFloat(textField.text);
e.text = new String((newAmount - originalAmount) + "");
dispatchEvent(e);
protected function textinput1_focusInHandler(event:FocusEvent):void
var textfield:TextField = event.target as TextField;
if(!isNaN(parseFloat(textfield.text))){
originalAmount = parseFloat(textfield.text);
} else {
originalAmount = 0;
]]>
</fx:Script>
</mx:TextInput>
</fx:Component>
</mx:itemEditor>
</mx:DataGridColumn>
</datagrids:columns>
Thanks for the help!I attempted to do as you said using the following code:
override public function setFocus():void{
stage.focus = amountTextInput;
amountTextInput.setFocus();
I also tried adding an event handler to my renderer to capture the focus in event and try the same thing:
<s:MXAdvancedDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
focusEnabled="true"
focusIn="mxadvanceddatagriditemrenderer1_focusInHandler(event)">
protected function mxadvanceddatagriditemrenderer1_focusInHandler(event:FocusEvent):void
amountTextInput.setFocus();
Neither of these solutions work. I could just go back to using the inline code, but I'd prefer to not copy and paste that code into several different grids.
Thanks again for the help. -
Why my textfield can not get focus?
I put a textfield on the first tab of a tabbed panel. I need this textfield to get the focus when I open the first tab. I tried to use grabfocus() method in the constructor of class, but it does not work. Does anybody know why? and how can I solve it?
Thanks!No, I didn't call grab/requestFocus on the event thread.
My code is like this:
public class GeneralPane extends JPanel {
JPanel ltPane;
private JTextField txtCountry;
public GeneralPane() {
initComponents();
private void initComponents(){
setLayout(new BorderLayout());
//Add another Panel to contain Labels and Text fileds
ltPane = new JPanel();
FocusListener mFL = new FL();
txtCountry = new JTextField("US", 20);
//this listener is used to store the data in the textfield into a variable
txtCountry.addFocusListener(mFL);
// add the textfield into ltPane
mUtil.insertTextPane(txtCountry,ltPane);
//txtCountry got focus
//txtCountry.setFocusable(true);
ltPane.requestFocus();
//txtCountry.requestFocusInWindow();
Then in the main program, I create an instance of this class and then use addTab(...) function into the my tabbedPanel.
The logic is simple, but the textfield still couldn't get focus when I open the tabbedPanel. -
Modal Dialog does not get focus on first click
Hi,
Identified an issue in Windows Safari 5 with Modal Dialog boxes. The below is issue.
When a Message box (Validation message) is displayed to the user the control is not getting transferred to the message box instead it still lies with the parent page.
For Example:
A list box is visible with values in parent page, when you click delete, the confirmation message pops up.
On the mouse click on confirmation message, the focus would be changed to an item in the list box of the parent page and that particular item gets deleted instead of the selected item.
Understanding:
-When a Modal dialog box is displayed control is not passed to the Dialog box .
-Once the user click mouse once then the control is passed to the Dialog box.
-The second mouse click only the action is performed.Work-around: Click on the "title bar" of the modal dialog box. You now have control. If you click other areas of the modal dialog before clicking the title bar, it will usually register behind the box.
I think Apple forgot the code to 'select the modal dialog' after 'displaying it', which is why the work-around works perfectly.
It's a common bug that hasn't been fixed yet in 5.x that did not exist in 4.x. I would submit a bug report and hope they fix it in the next update. -
Sub menu not getting focus/highlighted
Hi,
I am facing issue where Sub Menu dosent get highlighed
I have followed following steps
I have created a new customized page.
Then I have created a function for this customized page
I have included this function in Menu
So when i navigate to the desired menu,i can see my sub menu.
Once i click on the sub menu my page gets displayed.
Only issue I am facing is that My sub menu is not getting highlighted (When i click
on Oracle Sub menus they do get highlighted)
Do i need to set some attributes at PageLayout ? Any clues ?
Thanks,Within your processRequest, please call pageContext.resetMenuContext and pass your menu function name.
pageContext.resetMenuContext("MY_MENU_FUNCTION"); -
Input Text in a row of a table is not getting focused after PPR
Hi All,
I have a use case where the form will have a table and one of the columns will have inputtext and the other column will have outputtext. Once the user enters some data in inputtext and presses the down arrow, i am using autosubmit and valuechangelistener to call some method in bb which will show popup in the page. And after selecting some value from popup, i close the popup by setting the first row's outputtext with some data and wants to make the cursor focus to the next row's inputtext.
Its working without PPR, but when we use PPR to set the outputtext component, its failing the focus is getting lost. Any ideas would be helpful.
Regards,
NHi,
Check following will helpul
http://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus -
Avoid window getting focus after pressing a mouse button on it
I want that a window does not get focus although I press a mouse button on it, in Windows XP.
I have search in Microsoft help and this fact is controlled by the Operating System itself. The notification that is sent after the user presses a mouse button is WM_MOUSEACTIVATE notification. The return value of this notification indicates the behaviour of the window after the mouse down, existing 4 options: MA_ACTIVATE, MA_ACTIVATEANDEAT; MA_NOACTIVATE & MA_NOACTIVATEANDEAT. The default is the first one, but I want to change the behaviour of the window to be the the third one: MA_NOACTIVATE, that does not activate the window, and does not discard the mouse message. The function that performs this is DefWindowProc according to the MSDN Help content.
Any help about doing this in Labview? Is there any special function in Labview that allows setting this behaviour to a window or should I use a Windows dll? In that case how can be programmed? Has anyone done it before? I'm working with Labview 8.6.1, and I haven't found anything about this. Any help will be very useful.
Thank you very much in advance.
David FernándezIt is the front panel window of a VI which I don't want to get focus. I have tried to achive this with property nodes, but the problem I think that cannot be solved in this way, because is the Operative System that gives the focus to the window when pressing a mouse button before Labview does anything. You can release the focus once the window have taken it with the Front Panel window focus property node, but what I really want is to keep the focus on the old window.
My idea is that the VI act as a background of my application, so never can be over the rest of the windows. Some of them are floating but others are standard and I don't want to use modal windows, so I cannot solve this with the Window Appearance options.
I have also tried to discard the mouse down in the Mouse Down? event, but I doesn't work, the window continues getting the focus although does not carry on any action.
Any suggestion?
Thank you for your interest
David F -
Z2 Camera doesn't get focus, photo is burred
Hello. I didn't have any problem with my z2 for 3 months, but from 3 days ago the camera now is not getting focus, the photo/image look like blurred, I've tried the manual focus but also didn't work. Someone had the same problem? How did you solve?
Thank youHi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
That sounds strange, have checked so there are no dirt or similar at the camera lens? You can also try to clear data for the camera via Settings > Apps > The tab "All" > Camera > Clear data.
Otherwise, I suggest that you perform a software repair on your phone via PC Companion:
http://support.sonymobile.com/global-en/tools/pc-companion/
In PC Companion you press start on Support Zone > Start on Update the phone/tablet software > Repair phone/tablet (the blue clickable link in the message) > Follow these steps without having your device connected to the PC.
Follow the instruction that appears in the program and do not connect your device until this guide tells you how to connect it.
- Official Sony Xperia Support Staff
If you're new to our forums make sure that you have read our Discussion guidelines.
If you want to get in touch with the local support team for your country please visit our contact page. -
Master recipes operations not getting transfered in SNP PDS to APO from R3
Hello APO Gurus,
I am trying to transfer SNP PDS for master receipes from R3 to APO.
Issue description::
The operation is not getting transfered correctly , some system default operation "010 generated Operation (from Planned Delive)" is getting generated in APO, also activity and resource capacity is not getting transfered. This situation exist for one plant 1000, for other plant 1100 the SNP PDS created correctly.
i have following points:
1. Is there some customizing setting missing on R3 or APO side for plant 1000 tbefore SNP PDS transfer
2. What need to be checked on master recipes data in R3,
i have checked on below points
1. FG Materials and all the Component Material to be in APO in a Active Integration Model.
2. BOM & Routing and Production Version setup correctly.
3. The Routing Operations have to Relevant to 'SCHEDULING'.
4. Try deleting the existing Integration model for materials & re-create new IM & activate.
Please help me to send SNP PDS correctly to APO to take heuristic run.
Regards
Gajendra
Edited by: Gajendra_APO on Aug 23, 2011 1:14 PMHi,
It is good that you have given your already checked points.
Please check the following things also and try to retransfer the PDS.
1. Check your resource in ECC, whether you have maintained the Process formula.
2. Check you have maintained some values in Master Recipe for processing time
3. Check whether the resource has been transferred for your plant 1000 to APO and an active IM exists.
4. Also check the type of the resource transferred to APO. It should be a single-mixed/ multi-mixed or bucket resource.
Hope this will help you to solve the issue.
Regards,
Manimaran M. -
When trying to empty trash, (securely or not), I get this: The operation can’t be completed because an unexpected error occurred (error code -8003). FWIW, there are nearly 3000 items in my Trash - although this does not seem the source of the problem.
Have you read for possible solutions over in the "More Like This" thread over here?----------------------->
Maybe you are looking for
-
Error 1 occurred at an unidentified location
Good morning, I've gotten the error shown in the screen capture below on a few occasions now. It started occurring when I began running two different experiments from the same CompactRIO hardware. I have a single target which scales all of the data
-
I purchased a download version of Lightroom 6 from Amazon and when i write the license key number i'm getting this message " We are unable to validate this serial number for adobe Lightroom. Please contact Customer Support. "
-
Printing addresses on envelopes
Want to print addresses on half-card envelopes. Set the program for 8.25x5.75 inches. Insert envelope on right side of printer tray. Snug it in. Click on "print." Get a message that says paper size or type is incorrect. Go to devices/printers>select
-
I updated my 3GS software to 4.35 and it no longer automatically opens itunes and syncs even though that is checked a the sync option in iTunes.
-
Date changes for variant in se38
Hi Experts, Can you please share me the reasons how release dates changes in variant while downloading CSV file for PO in se38. In our system automatically release ddates has changed to past in the varainat in se38. Will tehre be any effect while dow