Javascript error on entering maxLength to textInput

We have a UIX page with around 1 text input:
<messageTextInput model="${bindings.Notes}"
columns="80"
maximumLength="250"
rows="6" required="yes"
prompt="Notes" id="Notes"/>
We have set maximum length for the text input. When we try to key in maximum characters for this text input except the Notes field,
its working fine. But when we key in maximum characters for the Notes field(with new line character(\n) inbetween) we get the following javascript error,
Line: 2004
Char:1
Error: "Invalid Syntax"
Code:0

We found the problem with the Message Text Input field.
We have removed the maximumLength for the Message Text Input field. We manually take the length of the field (Length of the field included characters, spaces, carriage returns) and check the same against the maximum length specified in the DB. If the length is more than maximum length , an alert is prompted to the user. This is working fine. If the length is less than maximum length, it doesn't shown an alert, but at times an JBO exception was thrown as you said. When we analyzed we found that the JDeveloper calculates the length of the field as,
     Length entered by the user (Our case it is 1197)+
     No of carriage returns (Our case it is 14) = Length which is checked against maximum length specified in the DB (Our case it is 1211)
Since it is greater than 1200, it throws an JBO Exception. If we remove 11 characters, it works fine.
We add the number of carriage returns and total length of the field. If it is more than maximum length, we alert an message.
The above mentioned solution worked fine. But at times if I give a set of lines without carriage returns it throws the java script error.
Can any one please help out. This has become a critical issue in our project

Similar Messages

  • Error when starting Firefox 3.6. "Javascript Application error. Invalid username/password combination. If you continue to get this error, try entering your email address as your username." Any suggestions on what to look for to resolve this?

    When starting Mozilla Firefox 3.6, I get an error window which opens up additionally overtop my browser windows stating:
    "Javascript Application"
    followed with :
    "Invalid username/password combination. If you continue to get this error, try entering your email address as your username."
    Obviously it is happening with one of my email addresses/usernames & password combinations of which I know the username for (which I choose not to post here) and I'm not sure where to begin looking for a resolution to this problem.

    I was able to resolve this by disabling (under Tools - Add-ons) Yahoo! Mail Notifier
    Hope this helps some of you also!

  • Javascript Error in InputField Date Type

    Hi,
    We have migrated the Enterprise Portal Application EP5SP6 to NW2004s SP6.Everything works fine except one issue in a Manager Reports, Where we are using Date type InputField.
    Code used:
    <hbj:inputField
    id="otherdate1"
    type="DATE"
    showHelp="TRUE"
    size="10"
    maxlength="10"
    jsObjectNeeded="true"
    disabled="TRUE"
    >
    <%
    JSP-scriptlet-START----
    otherPeriodFrom=myContext.getParamIdForComponent(otherdate1);
    JSP-scriptlet-END----
    %>
    </hbj:inputField>
    Javascript Error : Line : 3958 code: 2 Error: 'Undefined' is null or not an object
    Above Error appears when the below option in IE is selected.And also, Error appears only when the user enters the date.Also, I cannot ask users to uncheck the settings in IE as most of the users doesn't have administrator access to their amchines
    Error doesn't seem to appear when user selects the date from DataPicker component irrespective whether the below option in IE is selected or not.
    IE Setting option :
    Display a Notification about Every Script Error
    I'm not able to find what could be the problem in EP 7.0 as it works perfectly in EP5.0.
    Any ideas would be appreciated !!
    Thanks,
    Jojo

    Sent an OSS message to SAP.SAP found the problem and fixed the issue and will be available in NW2004s SPS9.
    Jojo

  • Getting javascript error while selecting the Recipients in OBIEE delivers.

    Hi All,
    I am working on OBIEE from quite a long time, but recently I came across a error while selecting the Recipients in Recipients list of OBIEE delivers.
    Making it more comprehensive, when I try to create an ibot , after entering all necessary information when I select Recipients in Recipients list and click on ok. I get a JavaScript error "null" is null or an object. The surprising thing is when i select cancel it works as ok.
    Any help will be highly appreciated
    Thanks,
    Jyoti
    Message was edited by:
    user616430

    I think you dont have a field named /BIC/XXXXXX in the table from which you are trying to fetch the data. Chech the spelling of the field name and table name.

  • JAVA SCRIPT application: Invalid username/password combination. If you continue to get this error, try entering your email address as your username.

    Every time I start up Firefox, I get the following:
    JavaScript Application
    "mfernandez1957" Invalid username/password combination. If you continue to get this error, try entering your email address as your username.
    What do I do?
    Another issue is hang ups, I mean every few seconds it hangs up and I get (Not Responding), which is frustrating when you're entering data or whatever and in the middle it freezes so then you have to go back and retype stuff that never got entered. It even hangs right out the gate, I get (Not Responding), I mean, before Firefox is even fully loaded, it hangs, it even hangs (though considerably less frequently) with all my plug ins currently disabled. So that's another issue.
    If y'all can help, I would be grateful.

    hello, please try to [[Reset Firefox – easily fix most problems|reset firefox]] and see if this can address the issue...

  • JAVASCRIPT ERROR  DW CC

    Hey there guys,
    Hope you can assist.
    We have a client with a number of MACs running 10.8.4 and CC. All of them generate an error when doing an HTM preview in DW. Complete CC reinstalls, and erasing and reinstalling the entire OS - even with a new hard drive - results in the error remaining.
    The error is:
    While executing runCommand in LiveView.htm, a Javascript error occured
    Note, this even occurs on simply creating a new document, entering no data and pressing the Live preview button
    As noted, we have been able to duplicate on multiple machines
    Any ideas would be appreciated.
    Thanks in advance
    Barney Buoy®
    M A C M E C H A N I C S

    http://www.dmxzone.com/go/16740/clearing-dreamweaver-s-cache/

  • JavaScript error in keywords.js?

    When entering or modifying 'keywords' in an html-file in Dreamweaver I seem to get the following error when switching applications and returning to DW:
    While executing onBlur in keywords.htm, the following JavaScript error(s) occurred:
    At line 66 of file "...:Adobe Dreamweaver CS5:Configuration:Inspectors:keywords.js": dw.getDocumentDOM().setAttribute is not a function

    Do you get this error in any page, or just this one?
    And you are only changing keywords in a meta keyword tag?  You do know that that tag is not used by the major search engines, right?

  • While executing ObjectTag in flash.htm, a javascript error occurred

    I'm attempting to place a SWF file in an editable region on a page created from a template.  I get the error: While executing ObjectTag in flash.htm, a javascript error occurred.  I saw on another sight that someone found the problem which was editable regions remove the head tag information.  But I do not know how to enter this info.  I tried just putting  a </head> and a head and body tag in code view inside the name region but this did not work. Any help would be appreciated.

    Main.dwt
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    background-color: #00C;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    #container {
    background-color: #FFF;
    width: 900px;
    margin-right: auto;
    margin-left: auto;
    #flashbanner {
    background-color: #FFF;
    height: 350px;
    width: 900px;
    #title {
    background-color: #FFF;
    height: 35px;
    width: 900px;
    #navtop {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer1 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    #navleft {
    background-color: #FFF;
    float: left;
    height: 1200px;
    width: 250px;
    border-right-width: medium;
    border-right-style: solid;
    border-right-color: #00C;
    #mainbody {
    background-color: #FFF;
    height: 1200px;
    width: 646px;
    float: left;
    #spacer2 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    clear: both;
    #navbottom {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer3 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    -->
    </style></head>
    <body>
    <div id="container"><!-- TemplateBeginEditable name="flashbanner" -->
      <div id="flashbanner">flashbanner</div>
    <!-- TemplateEndEditable --><!-- TemplateBeginEditable name="title" -->
    <div id="title">title</div>
    <!-- TemplateEndEditable -->
    <div id="navtop">nav top</div>
      <div id="spacer1"></div>
      <div id="navleft">nav left</div>
      <!-- TemplateBeginEditable name="mainbody" -->
      <div id="mainbody">mainbody</div>
      <!-- TemplateEndEditable -->
      <div id="spacer2"></div>
      <div id="navbottom">nav bottom</div>
      <div id="spacer3"></div>
    container</div>
    </body>
    </html>
    Index.htm
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    background-color: #00C;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    #container {
    background-color: #FFF;
    width: 900px;
    margin-right: auto;
    margin-left: auto;
    #flashbanner {
    background-color: #FFF;
    height: 350px;
    width: 900px;
    #title {
    background-color: #FFF;
    height: 35px;
    width: 900px;
    #navtop {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer1 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    #navleft {
    background-color: #FFF;
    float: left;
    height: 1200px;
    width: 250px;
    border-right-width: medium;
    border-right-style: solid;
    border-right-color: #00C;
    #mainbody {
    background-color: #FFF;
    height: 1200px;
    width: 646px;
    float: left;
    #spacer2 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    clear: both;
    #navbottom {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer3 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    -->
    </style></head>
    <body>
    <div id="container"><!-- InstanceBeginEditable name="flashbanner" -->
      <div id="flashbanner">flashbanner</div>
    <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="title" -->
    <div id="title">title</div>
    <!-- InstanceEndEditable -->
    <div id="navtop">nav top</div>
      <div id="spacer1"></div>
      <div id="navleft">nav left</div>
      <!-- InstanceBeginEditable name="mainbody" -->
      <div id="mainbody">mainbody</div>
      <!-- InstanceEndEditable -->
      <div id="spacer2"></div>
      <div id="navbottom">nav bottom</div>
      <div id="spacer3"></div>
    container</div>
    </body>
    <!-- InstanceEnd --></html>

  • Oracle Content Server Search Gives JavaScript Error

    There is a content server Search error I am facing over here.Whatever criteria or metadata is entered the javascript error comes.It shows the following:
    Line:1445
    Char:4
    Error:Object doesn't support this property or method.
    Code:0
    URL:http://172.18.41.23:90/idc/idcplg?IdcService=GET_DOC_PAGE&Action=GetTemplatePage&Page=STANDARD_QUERY_PAGE
    I had enabled Full Text Serach but I have changed back to the metadata search, as the Full text search was not working as well.I am not sure if there is a collision between various searches as the Oracle Text Search was installed along with Content Server.I am trying to build some pages with new fields and the Search needs to work for that.

    Unable to publish the schema. Unable to publish the view 'ItemPropertyView'. The criteria field doPublish for view ItemPropertyView is missing. [ Details ]
    An error has occurred. The stack trace below shows more information.
    Srinath,
    I saw this error just now in the server log.
    !csSchemaUnableToPublish!csSchemaUnableToPublishView,ItemPropertyView!csSchCriteriaFieldMissing2,doPublish,ItemPropertyView
    intradoc.common.ServiceException: !csSchemaUnableToPublishView,ItemPropertyView
         at intradoc.server.schema.StandardSchemaPublisher.publishEntireView(StandardSchemaPublisher.java:550)
         at intradoc.server.schema.StandardSchemaPublisher.publishViewValues(StandardSchemaPublisher.java:456)
         at intradoc.server.schema.StandardSchemaPublisher.doPublishing(StandardSchemaPublisher.java:331)
         at intradoc.server.schema.StandardSchemaPublisherThread.run(StandardSchemaPublisherThread.java:252)
    Caused by: intradoc.data.DataException: !csSchCriteriaFieldMissing2,doPublish,ItemPropertyView
         at intradoc.server.schema.SchemaUtils.doServerProcessing(SchemaUtils.java:1405)
         at intradoc.server.schema.SharedObjectsTableLoader.loadAllValues(SharedObjectsTableLoader.java:299)
         at intradoc.shared.schema.SchemaViewData.syncViewValues(SchemaViewData.java:687)
         at intradoc.shared.schema.SchemaViewData.getAllViewValuesEx(SchemaViewData.java:241)
         at intradoc.shared.schema.SchemaViewData.getAllViewValues(SchemaViewData.java:234)
         at intradoc.server.schema.StandardSchemaPublisher.publishEntireView(StandardSchemaPublisher.java:515)
         ... 3 more
    Any clues?

  • Delete Record, Javascript error

    Hi everyone
    Just wondering if you can help.  I am getting 2 javascript errors in dreamweaver when I try to enter a delete record using server behaviour.
    They are (in order they appear)
    While executing onblur in DeleteRecord.htm, the following javascript error(s) occured:
    In file "DeleteRecord":
    updateUI is not defined
    Then when I click OK, i get the following
    While executing onblur in DeleteRecord.htm, the following javascript error(s) occured:
    In file "DeleteRecord":
    initializeUI is not defined
    This is happening in all sites and pages.
    I have rebuilt the local configeration files and recreated DAT file etc but am now out of ideas.
    Anyone know of a solution for this??
    Much thanks in advance.

    Here's the full KB article.  Start with 12 & 4 and then go through the rest.  One of those is always the answer:
    http://helpx.adobe.com/dreamweaver/kb/troubleshoot-javascript-errors-dreamweaver-cs4.html

  • Javascript error in detailed navigation

    Hi all
    I have workset inside workset, so it looks like folder in the detailed navigation.
    One of my users is try access this folder on his computers but get a javascript error. He can see the other iViews on the root folder, but when he tries to enter a inside folder he gets a javascript error and he can't continue.Any Ideas?
    Thanks
         Omer

    OK, so this is what I figure out, <u>from testing on the user computer</u>.
    When the user who logged to windows is a regular user with the default settings <u>there is no problem</u> (No matter which user logged to the portal).
    When the user who logged to windows is the problematic user, <u>there is a problem in the portal</u> (No matter which user logged to the portal).
    So it must be a setting in the internet explorer, right?
    it's not the security settings, because I add the portal to the trusted sites and the problem persist.But maybe the settings in Tools --> Internet options --> advance are wrong???
    Any other ideas???

  • JavaScript Error 45

    When I open InDesign CS3 I get JavaSript Error 45, Object invalid, Line 387. Then JavaScript Error 45, Object invalid, Line 345. Then when I try to open or create a new file the application crashes. What can I do?

    Some ideas:
    Retry from a new user account. That will eliminate at least user specific scripts.
    Search for any "jsx" files within "startup scripts" folders, and put them in a safe place.
    Do that only one by one, and restore them after retry if the problem continues.
    It may be a good idea to reinstall InDesign. Leaving that to others to explain.
    If nothing else helps, here is an unusual approach:
    Quit InDesign if it is still open.
    Open /Applications/Utilities/Terminal.app
    Copy paste the following line, eventually adjust the folder path within the quotes if you have a different install directory.
    sudo dtruss "/Applications/Adobe\ InDesign\ CS3/Adobe\ InDesign\ CS3.app/Contents/MacOS/Adobe\ InDesign\ CS3" 2>&1 | grep jsx
    Press the return key
    Enter your admin password when asked.
    Press the return key
    InDesign should launch. Wait a while, startup progress will be slower than usual.
    The output in the terminal window is a trace of all system calls, filtered for the "jsx" file extension of script files.
    When the error dialog pops up, do NOT dismiss it. Switch back to Terminal. Review the last few output lines there, maybe copy them here for discussion or ask in the scripting forum, whether the mentioned files belong to the default installation or not. You can safely ignore anything with "XHTML", "Xml Rules", "OEBExport" or "Digital Edtions".
    For details on dtruss, see
    http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/dtrus s.1m.html
    Good luck,
    Dirk

  • Basic Search Item javascript error

    When I use the Basic Search Item to submit a search, I get a Javascript error:
    Error: 'document.mysearchform.p_looplink' is null or not an object
    Examining the page HTML shows that submitting the serach runs this function
    function fetch() {
    var purl;
    purl = location.href;
    document.mysearchform.p_looplink.value = purl;
    document.mysearchform.submit;
    but the form mysearchform doesn't have a field called p_looplink
    The form fields are
    INPUT TYPE="text" NAME="ms" SIZE="15" MAXLENGTH="30"
    INPUT TYPE="submit" VALUE="Go"
    INPUT TYPE="hidden" NAME="pg" VALUE="33"
    INPUT TYPE="hidden" NAME="search_type" VALUE="Simple"
    INPUT TYPE="hidden" NAME="ll" VALUE=""
    INPUT TYPE="hidden" NAME="p_action" VALUE="SUBMIT"
    INPUT TYPE="hidden" NAME="_dad" VALUE="portal"
    INPUT TYPE="hidden" NAME="_schema" VALUE="PORTAL"
    This bug only appears when you have your browser set to report all Javascript errors - it doesn't prevent the search from working.
    Any ideas about what's going on here?
    Does the basic Search Item (not the portlet) work properly for anyone else?
    Rob

    hi rob,
    this problem is reported in bug 3801639. it is fixed in portal 10.1.2.
    regards,
    christian

  • Image.htm Javascript error

    Dreamweaver has been working fine for me, but this randomly
    has been starting to pop up everytime I try to place an image in
    the site:
    While trying to execute objectTag in Image.htm, the follow
    JavaScript error(s) occurred:
    At line 102 of file "Macintosh HD: Applications: Macromedia
    Dreamweaver 8: Configuration:Objects:Common:Image.js": TypeError:
    cmdDOM.parentWindow.setFormItem is not a function
    I've tried searching for a solution on the Support Pages but
    I haven't found one. Dreamweaver also will no longer allow me to
    use Shift+Enter for single spacing between lines. I'm not sure if
    thats related to the image error. I have been using templates for
    this site, but I have not encountered any of these problems until
    last night.

    You can try this simple fix -
    Quit DW.
    Find this folder -
    C:\Documents and Settings\<username>\Application
    Data\Macromedia\Dreamweaver
    8\Configuration\WinFileCache-*.dat
    (these folders are normally hidden - you may have to use
    Explorer > Tools >
    Folder Options to unhide them)
    or on Mac -
    Library/Application Support/Macromedia/Dreamweaver
    8/Configuration/MacFileCache-*.dat
    and delete it.
    Restart DW. Works better?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Template Help" <[email protected]> wrote in
    message
    news:ee4tv8$5d9$[email protected]..
    > Dreamweaver has been working fine for me, but this
    randomly has been
    > starting
    > to pop up everytime I try to place an image in the site:
    >
    > While trying to execute objectTag in Image.htm, the
    follow JavaScript
    > error(s)
    > occurred:
    >
    > At line 102 of file "Macintosh HD: Applications:
    Macromedia Dreamweaver 8:
    > Configuration:Objects:Common:Image.js": TypeError:
    > cmdDOM.parentWindow.setFormItem is not a function
    >
    > I've tried searching for a solution on the Support Pages
    but I haven't
    > found
    > one. Dreamweaver also will no longer allow me to use
    Shift+Enter for
    > single
    > spacing between lines. I'm not sure if thats related to
    the image error.
    > I
    > have been using templates for this site, but I have not
    encountered any of
    > these problems until last night.
    >

  • Dreamweaver and Javascript error only on one site

    I receive the following error when trying to select recently modified files from the files panel.
    While executing onClick in SelectRecentlyModified.html, the following JavaScript error(s) occurred:
    At line 370 of file "C:\Program Files (x86)\Adobe\Adobe Dreamweaver  CS5\Configuration\Menus\MM\SelectRecentlyModified.js":  DWfile.getAttributes(listItem) has no properties
    I have 4 sites built in DW and only one site is giving this error.  After many days of searching the web and trying the few steps I can find on the web related to this error I still have not resolved it.
    I am using CS5 Suite, Win XP, have IE7 and Firefox but my default brower is Firefox.

    I've now tried that command on multiple sites, including brand new ones I created solely for testing purposes. I also tested it on the same site files on my testing server and in my Subversion repository. I got the same error message every time. This leads me to believe the problem is with the script itself.  I would really like to be able to use this feeature.
    In addition, the Dreamweaver Help for this feature (copied below) suggests I should be seeing options in this feature's dialog box that I'm not seeing:
    Find recently modified files in your site
    In the collapsed Files panel (Window > Files), click the Options menu in the upper-right corner of the Files panel, and then select Edit > Select Recently Modified.
    Do one of the following to indicate search dates for the report:
    To report on all files modified in the last several days, select Files Created or Modified in the Last and enter a number in the box.
    To report on all files modified within a specific time frame, click the Files Created or Modified in the Between radio button, then specify a date range.
    (Optional) Enter a user name in the Modified By box to limit your search to files modified by a specific user between the dates you indicated.Note: This option is only available for reports on Contribute sites.
    Select a radio button to indicate where you want to view files listed in the report, if necessary:
    Local Machine
    if the site contains static pages.
    Testing Server
    if the site contains dynamic pages.Note: This option assumes you defined a Testing Server in the Site Definition dialog box (XREF). If you have not defined a Testing Server and entered a URL prefix for that server, or if you are running the report for more than one site, this option is not available.
    Other Location
    if you want to enter a path in the text box.
    Click OK to save your settings.Dreamweaver highlights the files that were modified within the selected time frame in the Files panel.
    I have set up a testing server for the site (I'm running Apache on my local Mac), and it works. Yet I do not see any option in the dialog box to indicate that I can view the files in a different location. But it's a moot point since I can't view them in any location due to the javascript error.
    Adobe, please advise.

Maybe you are looking for

  • Win 8.1 Updated Hosed my Laptop

    Hi, A few weeks ago, I was prompted on my HP ENVY TouchSmart Sleekbook 4-1115dx (C2K73UA) with auto-update for Wins 8.1.  I accepted and now my computer will not boot up and it rendered it unusable. It attempts to start up but then just goes black fo

  • JSF Reverse Engineering

    Hi All, I have developed JSF application using eclipse. Now, I need to create the class diagrams, sequence diagrams etc. I know it should have been the other way round, but for some reasons I have to go through this path. Is it possible to create the

  • BI/BO necessary for Global Spend Analysis? PI necessary for syndication?

    Hi! I have been reading about MDM and examples of how MDM can be used by companies. One is on its ability to provide accurate and consolidated data for spend analysis. I would like to find out whether the spend analysis solution is only applicable fo

  • Recent pictures have disappeared after back up

    I dragged my picture file to my LaCie external hard drive to back up all pictures. Then I dragged the contents of my picture file to the trash thinking I could open an empty iphoto and bring back all the photos. When I opened iphoto I got a warning s

  • Cloning Semi Transparent Areas

    Is it possible to clone a semi transparent area of an image without the effect being multiplied?