Urgent Help reg setting the maxlength of a text box

Hi all,
I want to set the max length or the no of characters to be entered of a textbox in parent page from a child popup window.
Even if i use the opener property the maxlength is not set. Is there any other way to set the property. I'm not refreshing the parent page when coming back from child page. I tried to set the value of the text box from child and it's working fine. But the maxlength is not working.. Is there any way to do this.. Pls help me to solve this problem.

this is really a js question and im not sure that you can access the formElem.maxlen property unless you get into DOM coding
...but ...
maybe u could use something like this and set it from the parent window to the onkeyup event on the text box in the parent
function textLimit(field, maxlen) {
if (field.value.length > maxlen) {
field.value = field.value.substring(0, maxlen);
alert('your input has been truncated!');
} }hth
g00fy

Similar Messages

  • How to set the cursor in a text box when the application starts?

    Hi. It's me again. Its seems to me that there isn't any Spanish speaker, so I reformulate my question in English. What I want is to place the cursor in the text box so that the user can enter the text. Could anybody help me? Thanks in advance. MamenFLASH$

    Hi. I have Flash 2004 Professional, as 2. Any idea of how can I do it 
    by means of Java Script or action script 2? Thanks in advance. 
    MamenFLASH$
    El 23/01/2010, a las 21:22, kglad escribió:
    >
    you can do that when your flash has focus.  (how you do it depends 
    on your as version).
    >
    and while flash can't set focus on itself, you may be able to use 
    javascript to set focus on your flash.
    >

  • How can I set the tab order of text box controls on each page of a tab control?

    I need to be able to select the tabbing order of individual controls on a single page of a tabbed control. How??

    In LV 6.1 an up you should be ablel to right click on the edge of the tab control when the tab-page in question is selected.
    The bttom selcetion in the pop-up is "Reoder controls in page..."
    selecting this option will switch editing modes to allow you to specify the ored, just like in a cluster.
    I seem to remeber in older versions you had to drag the tabable controls off the tab control, specify the tabbing oder and then drag them back on. The oldest version I have on this machine is 6.1 so that all I can speak for at the moment.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Please help to set the time zone in a porper way

    Dear Folks please help to set the time zone in a porper way
    select sessiontimezone from dual;
    Database: Oracle 11.2.0.2
    Operating system: AIX 5.3
    SESSIONTIMEZONE
    +00:00
    SQL> select systimestamp from dual;
    SYSTIMESTAMP
    06-NOV-12 04.21.07.438426 AM +00:00
    SQL> select dbtimezone from dual;
    DBTIME
    +00:00
    SQL> Select DBMS_SCHEDULER.get_sys_time_zone_name from dual;
    GET_SYS_TIME_ZONE_NAME
    Asia/Kuala_Lumpur
    By looking Doc ID: Note:149120.1 in Metalink:
    ALTER DATABASE <my db name> SET TIME_ZONE = 'Asia/Kuala_Lumpur'
    or
    ALTER DATABASE <my db name> SET TIME_ZONE = '+08:00'
    For reflecting the change I refreshed the db by shutdown and restart.
    but still the returning no timezone value for user schema, please help how to set the time zone in a proper way?

    SQL> conn sys/sys as sysdba
    Connected.
    DBNAME
    db
    SQL> select u.name || '.' || o.name || '.' || c.name "Col TSLTZ"
      2    from sys.obj$ o, sys.col$ c, sys.user$ u
      3   where c.type# = 231
      4     and o.obj# = c.obj#
      5     and u.user# = o.owner#;
    no rows selected
    SQL>  select DBTIMEZONE from dual;
    DBTIME
    +00:00
    SQL> alter database set time_zone='Asia/Kuala_Lumpur';
    Database altered.
    SQL> select DBTIMEZONE from dual;
    DBTIME
    +00:00
    SQL> startup force;
    ORACLE instance started.
    Total System Global Area  426852352 bytes
    Fixed Size                  1375060 bytes
    Variable Size             260048044 bytes
    Database Buffers          159383552 bytes
    Redo Buffers                6045696 bytes
    Database mounted.
    Database opened.
    SQL> select DBTIMEZONE from dual;
    DBTIMEZONE
    Asia/Kuala_LumpurRefer:
    Re: how to check db time zone
    Edited by: Ora on 5 Nov, 2012 11:36 PM

  • Set the css style of text in a column according to the value of another col

    I'd like to set the css style of text in a column according to the value of another column. Each field may end up with a different style of text as a result, for instance.
    Any ideas? I looked thru the forums but couldn't find anything.
    Thanks,
    Linda

    Does the class=”t7Header” make it into the rendered HTML?
    ---The text "class="tHeader" does not show but the other text is rendered using the style t7Header as defined in the stylesheet! Exactly what I wanted.
    You might want to use a div or a span instead of a p.
    ---Yes -
    What's very cool is we can create a display column that is dynamically filled with the html and style wrappers based on a lookup to see what style should be applied according to the actual data value. This is critical as our tables are all dynamic so I can't depend on using the additional APEX methods to control the display of a column (as the # of columns in the view vary from instance to instance) and I did not want the display specs to muddy up my SQL queries.
    I wonder why this is not well documented. It is so easy!
    Thanks again for your help.
    Linda

  • How to retreive the value of a text box that is created dynamically

    hi this is ravi kiran,
    i am working on a project which requires creation of as many text boxes as the number records fetched from the database i.e, if the result set contains 3 records three text boxes must be created.
    here is the code for that
    if(rs1.next()) { %>     //rs1 is the result set object
    <tr>
    <td width="130" ><%= rs1.getString(1)%></td>
    <td width="130" ><%=rs1.getString(3) %></td>
    <td width="184" ><%= rs1.getInt(2)%></td>
    <td width="149"><input type=text size="20" ></td>
    </tr>
    %>
    here the problem is the text boxes are getting created but what ever the value that is entered in the created text boxes must be added and must be displayed in another text box.
    i am having no idea how to do this
    can any one help me
    thanx in advance.

    may be this helps u ,
    Create a counter and increment it every time when it comes to rs.next
    Set ids for the text box with the value of the counter.
    eg: textbox1 , textbox2
    the 1 and 2 shld be created by the counte just append the count value to the string and set it as id of the new text box dinamically created.
    then get the ement by id and get its value and do the process.

  • My mac keeps highlighting different boxes all the time and a text box has appeared on the screen that says what box is highlighted if the sound is turned up when you press a key or click on a box you are informed of the action any ideas what i can do?

    Hi my Mac keeps highlighting different action boxes (on its own) all the time a strange text box has appeared on the screen that informs you if you press a key or click on a item. if the sound is turned up you are informed when a item is highlighted or a you click on a item HELP!

    Hi Thanks for your help fixed the problem
    Kind Regards
    Nannedee

  • How do i change the area of a text box (containg text) with the new 'shapes' transform tool..

    the new Illustrator CC 2014 wont let me change the area of a  text box, the text scales with the box.
    is there a setting im missing somewhere that allows me to change the area /shape of a text box like we could in CC and before?

    edit>preferences>type> uncheck "Auto size new area type"

  • Get the value of output text box in javascript

    Hi all,
    I am trying to retreving the value of output text box using getElementById('form1:outputText3') but was not able to get it.
    Googled it but didnt find any way to get it on the page itself without going to backing bean
    jdeveloper version 10g
    Thanks in advance

    Hi,
    I think this is because out put text is not a component but text written to the page. So I thin you would have to parse the generated HTML for it or use a inputText field and set it to read only
    Frank

  • The curser includes a text box from a previous image or link when the curser is positioned on the side of the page. i click and it goes away but only to return again on the next launched page. how do i get rid of this?

    the cursor includes a text box from a previous image or link when the cursor is positioned on the side of the page. it will mainly happen when i hit "back" from the page i was on. i click and it goes away but only to return again on the next launched page. i also keep several tabs open and it will carry over to any one of them i go to. how do i get rid of this?
    == This happened ==
    Every time Firefox opened
    == when i upgraded to most recent version 3.6.8

    A number of extensions can cause that problem, you'll need to do a little troubleshooting to find out which extension is causing that to happen for you.
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Accessing the value of a text box input

    how do i access the value of a text box on a jsp page..
    eg:if the page name is Test.jsp and it has a text box named text.....

    You're mixing JSP and JavaScript. If you're staying within the same page, e.g. no get/post to another JSP, and you need to update values of a text field within a form, use pure JavaScript, such as:
    <form name="fred">
    <input type="text" name="USERID" size="15" onBlur="document.fred.PASS.value=document.fred.USERID.value;"><br>
    <input type="text" name="PASS" size="15"><br>
    </form>
    This will change the value of the PASS field to the same as the USERID field, which is what I think you were trying to do.
    Not to be rude, but in the interest of keeping the Java forum pure, I would look towards a JavaScipt forum if you wish to use pure JavaScript (http://freewarejava.com/cgi-bin/forumdisplay.cgi?action=topics&number=1&SUBMIT=Go)
    bRi

  • Is it possible to change the size of a text box on a photo book page

    I am a first-time user of the photo book application in iPhoto. I am wondering if it is possible to:
    1. change the size of a text box
    2. have more than one text box on a page
    3. move the text box around.
    Thanks, in advance, for any suggestions someone might have.
    newtongrammy

    I am a first-time user of the photo book application in iPhoto.
    I also was a first-time user, so I started using it. Exploring the possibilities, learning my way around.
    Thanks, in advance, for any suggestions someone might have.
    Click the ? icon
    Oops. Sorry, but you're in the wrong forum : iLife > iPhoto

  • How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit.

    How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit. I am uanble to modify it to 5.38 pt for example. Its only allowing to 1 decimal place.

    Click on each field and the choose Properties from either File menu (or if on Mac hold dow mouse button until context menu appears choose properties)
    go to Font
    choose desired size and type font,you can choose to make this the default.
    Do this with each field.
    Or if you have a lot of fields:
    while one is selected select all of them
    then go to fonts in properties
    change Font and size and make default.

  • How to change the font size of Text box tool ?

    How to change the font size of Text box tool ?
    I am using Acrobat PDF 6.0
    Tools > Advanced Commenting > Text Box Tool
    I need to know how to change the font size. The default font size is too big.
    let me know
    Thanks

    I do not have AA6 available right now (I can check at home this evening). I am also using AA Pro, not Std. In AA7, there is a text box tool that is a commenting tool. When I started typing, a properties toolbar came up that had the font size and such. I haven't figured out how to get the toolbar after the fact. In AA8, I selected the text box tool and then went to view and selected the properties bar (the font size and all showed then), or use Ctrl-E when editing the text. I have not been able to figure out how to edit the text in a text box after you have created it - think it is a mental block right now. Bill

  • How do I adjust the depth of a text box on a page in an iPhoto book?

    How do I adjust the depth of a text box on a page in an iPhoto book?

    You can't.  Those are fixed.  You can create a custom page in Pages where you can duplicate the background add photos with frames, any size of text box and text.  Make sure page size is the same as you've selected for the book. 
    Then do a Print ➙ PDF ➙ Save PDF to iPhoto of that page.  That till create a 200 dpi jpeg file of that page that you can use on a blank page with an image for the background layout. This is a rough example:
    Custom book cover
    Click to view full size
    Custom text page (left)
    Click to view full size
    OT

Maybe you are looking for

  • Xml publisher report giving warning

    Hi friends, I have a issue with xml publisher report. All existing xml publisher reports are working fine. Only the problem is newly created one. Application version 11.5.10.2 dDtabase 9i BIdesktop version is 10.1.3.4.1 MS office  2010 i checked the

  • What is happening with my new line install?

    Hi, I don't normally post on anything like this, but feel I am being left no alternative, other than cancelling my order. I am a new customer to BT and on the 14th of May I placed a order for a broadband and phone package, which was to include a new

  • Kolletion supported in Dreamweaver CS3?

    Hello, is the latest version of Kolletion supported in Dreamweaver® CS3? If not, will it soon or will it be called something else? What's up with updates, or new versions? Thanks

  • Artwork in itunes 12?

    Why can't you control the view of artwork in itunes 12?

  • Dynamic where clause for cursor

    Hi Friends, I have a stored procedure with a single input parameter where in the input comes as a string of values (ex: EMPLOYEE NAMES) separated by commas. I use this parameter in my cursor query and my requirement is like when the parameter is NULL