Cursor not focusing in the text field after Object tag load in IE
Hi,
We have an applets class "ABC.class" in our application. To include this class in a jsp page we are using OBJECT tag. This tag is written inside a if block in the jsp page. Based on the if condition this OBJECT tag has to be loaded. Below is the code we are using:
<%
if(testCondition)
%>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" NAME="applet" width="0" height="0">
<PARAM NAME="CODE" VALUE="ABC.class" >
<input type="hidden" id='myText' value="Please configure the jinitiator version to Oracle applicaitons Jinitiator version." >
No JDK 1.3 support for APPLET!!
</OBJECT>
<%
%>
In the above code if the "if condition" is satisfying, then cursor is not focusing on the required field. The code to focus on the field is written in the javascript function which is called onLoading the page.
we are using IE 7 and IE8. In IE 7 sometimes working fine but in IE 8 we are getting this issue.
Can anyone please help us how to focus the cursor on the required field even in the case of the Object tag loading.
Thanks,
Eswari
Hi Nicky,
Thanks for your reply.
We are not using JQuery.
Actually the code to focus is written in the function which is called onLoad of the page that will be executed after the page loading. If we keep alerts in the onLoad function then the cursor is focusing to the required field.
Thanks,
Eshwari
Similar Messages
-
I can't enter any value in the Text field, after loading flash files
Hi to all,
In my Java application, I'm using a text field and a panel to load flash files. I'm using JDIC 0.9.1 to load the flash files in the panel. The flash files are created by Flash CS4.
While running the application, I can't enter any value in the Text field, after minimize and maximize the application I can enter the values.
This problem happens after change the jre version from 1.6 to 1.7.
I'm getting the following exception while running the application.
org.jdesktop.jdic.init.JdicInitException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at org.jdesktop.jdic.init.JdicManager.initBrowserNati ve(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unkn own Source)
pls give me a solution.
Thanks in advance...:)I can't enter any values in JTextField after loading the flash files., locking.
-
So when I youtube the same version as mine it still show to other users the text field option but on my insert panel under forms it does not give me the option
PLEASE HELPHi Taatueeyy,
As this sound weird issue, I'll suggest you to clear preferences and then try launching.
How to clean preferences, please check the below link
http://forums.adobe.com/thread/494811
If this doesn't resolve your problem. please reveret. -
Unable to set focus to login text field AUTOMATICALLY on page load
Hi,
I'm trying to have my flash (AS 2) login page have the
username field start blinking right away after the page is loaded
but so far, no success.
I've added the following Javascript to the HTML wrapper:
But it still doesnt work. Can anyone help?
See whats happening by
clicking here.Use the following in the Flash code:
Selection.setFocus(username_field_instance_name); -
How do I set focus to a text field after I click a button that calls a webservice?
I have a web service that returns back a table. In order to show the values in the table I had to check the re-merge Form Data on the Webservice Button. My question is , How do I set focus to a field on the screen after re-merge happens.
I was reading SetFocus documentation and it says
You cannot use setFocus with the form:ready, layout:ready, or initialize events.
What I need is an event like doc:ready or someother event where I can put the set focus code in. doc:ready was triggered when the form first loads which is great and I was able to put my Initial setfocus. When I pressed the button that calls the webservice and thr re-merge happened doc:ready event was not triggered so now I am not sure where to put the set focus. -
Updated - Cursor focus in HTML text field in JEditorPane
The last poster just save my bacon - so an update for others: Adding a JEditorPane to a JWindow will result in all the <INPUT type=text> form elements to be non focusable. Switching to JFrame does make things work again - but I would love to have a JWindow again (I don't want the title bar for a kiosk type operation).
thanks!
brian
Here is the guy I do thank!!!
** PROBLEM
How do I make cursor focus go into an HTML text field in a JEditorPane?
My test appplication is a JPanel containing a JEditorPane and nothing else. The content type is text/html. The HTML text contains a form and an INPUT TYPE=TEXT tag. I use setEditable(false) because I do not want the user to edit the paragraph text, only to type in the text field.
The text field does not get cursor focus. Tab does nothing. The user can click with the mouse to place focus in the text field, so the field is capable of receiving focus. I guess the field is in a View that stops it participating in the component hierarchy.
Is there a way to make this work?
** SOLUTION! - ok, if you don't use JWindow
It turns out that setEditable(false) is not enough. The JEditorPane still gets in the way of the focus cycle. It also needs setFocusCycleRoot(false) and setFocusable(false) to prevent it from participating in focus. Focus on the text field then works normally.
fpI don't want the title bar for a kiosk type operation).You could use an undecorated frame. Read the API for more info.
Or, maybe this posting will help:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=675445 -
I love FIrefox browser and prefer to use it on all my devices, PC, Smart Tv, Phone, Tablet etc. In recent times Iv'e had problems though, everytime I try to comment on a facebook post with each key stroke the cursor jumps back to the beginning of the text field and by the time I finish typing I look up and find jibberish, yesterday I upgraded this RKM Mk902 Android device that I am typing on now unfortunately using Chrome from Anroid 4.2.2 to android 4.4.2 Kit-Kat and thought I would no longer have that problem but the issue is still there. I also have discovered I'm having similar problems with FireFox on my Cube U39GT tablet. As I spend more time on Facebook than any other website I have to find a solution. I thought it may of been one of the addons that i use causing the problems such as Phony but I still get the issue without the addons and after a clean install. Please help me sort out this problem so I can once more use FireFox on my Android devices.
I found this, it seems that there are a few issues in Android as well with the wrong placement for the cursor when you type: [https://github.com/RobinHerbots/jquery.inputmask/issues/465] but since it is only happening in facebook, this is odd.
What this means is that they are working on fixing specific issues like this and I am not sure when this will be fixed.
Does this happen with both keyboards that are offered in the Android Settings? -
Is there a way to get the cursor position index of html text field
I'm trying to work on a text pad like MC with "insert text at
position X" and "find and replace" can anyone tell me how to find
the cursor index of an html text field. Selection.getBeginIndex() ,
Selection.getEndIndex(), Selection.getCaretIndex() as far as I know
these methods only work with text and not htmltext.
What I'm trying to do is assign different parts of the string
to variables so that I can combine them to reconstitute my html
string.enfantterrible:
If I understand correctly, you want the corresponding
position in the
htmlText propery of the caret index (which as you point out
is only the
position in the plain text version of the textfield content).
Below is how I would do it. Maybe there's an easier or more
efficient
way (using XML objects etc), but I don't know it. You could
conduct all
your string searches in the plain text and then convert the
result to
the html positions. I didn't build this to accept negative
parameters
for the pos parameter (e.g. from end of string backwards) but
the
function could be adapted to do this too if necessary. The
test data is
not proper html from a text field, but it doesn't really
matter what it
is so long as its formatted correctly. It just separates the
tags from
the content to enable apples with apples comparison.
//some test data
var testStringXML = "<format>Hel<b>lo i can't
t<i>ell you h</i>ow hap</b>py I
am.</format>";
var undecoratedString = "Hello i can't tell you how happy I
am.";
//the conversion function
function findDecoratedPosition(pos:Number, xmlString:String,
test:Boolean):Number {
//anything between '<' and '>' should be excluded from
plain text search.
//create an array of array elements (n=2) consisting of tag
then plain text
//requires correctly formatted xml/html
var tempArr:Array = xmlString.split("<");
for (var aa = 0; aa<tempArr.length; aa++) {
tempArr[aa] = tempArr[aa].split(">");
//remove the first and last elements of the new array (these
are empty)
tempArr.pop();
tempArr.shift();
//find the corresponding plaintext location and calculate
the "decorated" position
var retPos:Number = 0;
var posCount:Number = 0;
for (var aa = 0; aa<tempArr.length; aa++) {
retPos += tempArr[aa][0].length+2+tempArr[aa][1].length;
//+2 allows for missing < and >
posCount += tempArr[aa][1].length;
if (posCount>pos) {
return (retPos+(pos-posCount));
//out of range
return -1;
//test code:
for (var aa = 0; aa<undecoratedString.length; aa++) {
var altPos = findDecoratedPosition(aa, testStringXML);
trace(undecoratedString.charAt(aa)+" in position "+aa+"
plainText equates to position "+altPos+" in the decorated version
["+testStringXML.charAt(altPos)+"]");
} -
How to make the text fields as mandatory (in 'notes and attachment' tab)?
Hi,
We have defined some Fixed Values for texts under IMG>SRM>SRM Server>Cross Application Basic Settings>Text Schema>Define Fixed Values for Texts, for a certain transaction type of RFx responses for a text schema.
Because of this, the bidder can choose one of these fixed values for texts. This is perfectly working fine.
Now the question is, we want to make the texts fields as mandatory. i.e. The bidder should not be able to submit the responses if certain texts are blank.
Is there be any BadI for this?
GHYou can use BBP_DOC_CHECK_Badi for this field validation using a filter value RFx/Bid (I ont remember exact word).
Regards,
Jagadish. -
Print just what is typed in the text field without printing the text fields
Hello,
I'm trying to print a form after I filled in the text fields, but would like it to print just what I typed in the field, not the text field and the color in the text field. I use CS3.
Any help would be appreciated!Hello Teddy and wellcome to the group!
If you want to change fonts or other things then you might need to use the PrePrint method. What I normally do is select PrePrint from the "Show" section in the Script Editor (If you do not have it go to the toolbar at the top, Windows, and select Script Editor). After you select PrePrint you can now either type the name of the subform and field you want to change (or you can put your cursor in the Scripting Dialog box, hold CTRL and then select the field with your mouse) and then type in the JS to change the font. it is something like TextField1.fillcolor = "255, 255, 255"; (that changes the background fill to white). You can also replace fillcolor with font or border to change the color of the font or the border. I put a link to an Adobe website that goes over JS color changes below. You just need to add a PrePrint method for each field that you wish to remove the necessary highlighting on. Then once the user either hits a Print button that you have on the form or uses CTRL+P to print the form it will remove any highlighting.
Now On the Text Field not printing itself that I am not sure what you are asking for. Are you asking for the caption not to print or for there not to be a box around the data that is entered? If you do not want to have a box surround the text field that is in the Object section of the field (see image below). You just need to select None if you just want the text. If you want to change that with JS I put another link below that has the code to change the border color to white and the user cannot see it. If you do not want the caption to print the only method is to delete the caption from the text field and replace it with static text that can be hidden, but I am assuming that is not what you are talking about (correct me if I am wrong though).
http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/ChangingFieldAndSubf ormBGColors.pdf
https://forums.adobe.com/thread/1409617 -
Clearing text field after query
I have seen alot of old post on this but no answers, I am wondering if anyone knows how to accomplish clearing a text field after a query has been executed?
Example:
User types a query in the search field, clicks submit then the query is returned and the search field is empty again ready for the next query.I tried that and I was getting "(null)" in the value of the column I queried.
This is what I came up with and it seems to be working. In the Page Definition click Edit Attributes and add this line to the On Load section:
onload="html_GetElement('PX_SEARCH').value=''; html_GetElement('PX_SEARCH').focus()"That will clear the field and focus the cursor in the same field so its ready for another query. -
The dropdown menu in the banner should be behind the text fields.
Hi Andy,
In our Application we have three Menus...The problem we are facing in that when ever we move the cursor, a drop down list will appear.. which is covering the text fields...
The dropdown menu in the banner should be behind the text fields.
Can u pls help me in this...
anoo..Hi Anoo,
(You can actually ask questions to everyone, not just me!)
Normally, dropdown menus are supposed to be on top of all other items, so the user can pick an option from the menu. In fact, usually the problem is that select lists in IE appear on top of menus, not the other way around!
What you may have to look in to is adding a z-index value to items. Have a look at: http://msdn.microsoft.com/en-us/library/ms531188(VS.85).aspx
z-indexes determine the order in which items appear when two or more occupy the same space on the page. The higher the number the nearer to the top that item is. You can use negative or positive numbers. So, if item A has a z-index of 1 and item B has a z-index of 2, then item B will appear on top of item A.
A z-index can be set as a style on your menus:
<........ style="z-index:-1".....>Andy -
How to increase the height of the text field in Adobe Central
How do I increase the height of the text field in Adobe Central? I know how to change the font size but visually the height of the text field (<0.5cm) looks too small.
I want to be able to print the form and fill it out by hand. But the text field height is too small.
Please help.
Thanks
GenHi;
Are you saving your form as a PDF from FormsCentral to distribute the PDF form?
In the FormsCentral form authoring tools you do not have control over the size of the field. If you are using a PDF however you can edit that PDF in Acrobat after saving from FormsCentral and can edit the size, border, color etc of the fields.
If you want to edit a FormsCentral PDF you'll want to review this FAQ:
http://forums.adobe.com/docs/DOC-3661
Thanks,
Josh -
How to keep the focus on the inputtext field.
Hi,
I'm using jdev 11.1.2.0
I have two inputtext fields.
when i tabout from firstinputtextfield , i'm calling a javascript to set focus on to the second textinput field.
this is working fine.
Second textfield has one server listner onblur event.
When i add value change listener on the firstinputext field, after tabout from the first field , focus is going to set to next field and calling the serverlistener of the second field.
how to make the not to call the serverlistner function of the second field when i tabout from the first field?(serverlistener is called only when i tabout from the second field on onblur event)(Thi is happening in ie8)
Any suggestion would be appreciated.
Thank you.If you have a value change listener it will send up ajax call when you tab out which may be have a bad interaction with your client listener. Instead of using a client listener you could try adding the javascript call to response from the value change listener. In your value change listener add a call to the javascript method that sets the focus
public void addScriptToResponse(String script){
ExtendedRenderKitService erkService = Service.getService(getFacesContext().getRenderKit(), ExtendedRenderKitService.class);
erkService.addScript(getFacesContext(),script);
} -
Cursor not appearing in password input field
Hi All,
I know this is probably going to be a bit of a long shot but i have got two fields on the front screen of my web dynpro for abap, with the second field set as a password field.
When I tab through the fields the cursor apears in the first field but when I press tab again to move to the second password field, although it highlights the field the cursor does not appear so I cant start typing without actually using the mouse to click in the field!
If i place the password field first or make it a normal input field rather than a password field this problem goes away but obviously these are not valid solutions to this problem.
Any ideas would be much appreciated.
Mart
P.s. i am not 100% certain about this and not sure if it will help with a solution but i believe this bug has only surfaced since we upgraded to the lastest patch level!Hi All,
Before I raise a support ticket with SAP I was just wondering if anyone ever found a solution to this problem. Have managed to put off finding a solution for as long as possible:-( Only solution i have find so far is to capture the user pressing enter and then passing the focus onto the password field but this is not great as the user has to press enter instead of tab which is not particulally intuative.
Regards
Mart
Maybe you are looking for
-
I had over 80 songs I purchased through iTunes using my iTouch. My iTouch got ruined and now I have an iPhone4. I did not sync 50 of those songs to my iTouch. When I visit iTunes, only 32 songs are showing up. When I try to repurchase the lost so
-
Open Purchase Order (VA01)
Hi Guru's, I am new to SD Module. My requirement is to create Sales Order . That SO should take Open Purchase order. How to check the condition for this requirement? Is any status or Indicatior will maintain in tables?? Thanks & Regards, Meenakshi.
-
My brand new macbook air is just over 1 month old, and I am already having a problem. While working on a pages doc I stepped away for a couple of minutes to find that my notebook went to sleep. battery life was 71%. So I tryed to wake it by keying a
-
Mail app constantly synching with iCloud server after upgrade to Mavericks
Since upgrading to Mavericks, Mail has been constantly synching with the iCloud server - and I mean constantly. I know this because I have the Activity window open. Consequently there is often a significant lag between clicking Send on a new message
-
Using Data Socket with LabView 7 Image Display
I want to to connect the Image Display over the Data Socket, but its not working?