Javascript Error : Object Required

the title sums it up....
I'VE DONE
searched the forum, didn't find anything to solve my problem
and with google this seems to be a symptom for many problems, no
luck there either.
there isn't really any component i can play with to
troublshoot, it's syntax related.
MY SETUP:
I'm using javascript and reading an XML document. using a for
loop, i display all the nodes in the XML and print to the page.
MY PROBLEM:
i get the following annoying error after page load:
Line: 239
Char: 5
Error: "Object Required"
Code: 0
URL: www.blah.com
i've pasted the related code.
line "239", the error is indicated.
novice web programmer, greatly appreciate any pointers,
directions, tips, tricks, workarounds etc.

DanM. wrote:
> SIMPLIFIED QUESTION:
>
>
> in short, why is this illegal?
>
> var titleArray = new Array();
> for (var x = 0; x < 20; x++) {
> //BELOW IS LINE 239, THE ERROR****************
> titleArray[x] = news.childNodes(x).firstChild.text;
var titleArray = new Array();
for (var x = 0; x < 20; x++) {
var TEXT;
if(TEXT=news.childNodes.item(x).firstChild.data){
if (TEXT.nodeType == 1){
titleArray.push(TEXT);
You may be grabbing white space or another <tag>, not
text nodes. And
hard coding the loop max can be a problem too, unless you
know there are
exactly 20.
for (var x = 0; x <news.childNodes.length ; x++)
Mick
> }
>
> because i commented out everything but those lines, and
still got the same
> error.
>
>
>

Similar Messages

  • Reg Javascript Error Object required Error

    Hi all,
      I have configured ITS 6.20 and implemented ESS in EP 6.0 SR1. I am getting Javascript Error Object required Error in some browsers when i try to access the ITS pages . What should i do in browser settings in order to resolve this error.
    Thanks
    Vasudevan Gopalan

    Hi all
    Resolved the issue as mentioned in note# 852690 . Thanks
    Regards
    Vasu

  • Problem: Portal Content Structure (Javascript error: object required)

    Hello,
    i have a problem with my Internet Explorer 7 and the Enterprise Portal 6.0 SP 16. After the login, the Navigation Structure of the Portal Content isn't shown, after a while a error message pops up saying: error: object required.
    The Portal is functional in Firefox 3.0 so i suggest that the problem is based on the internet explorer Browser.
    Maybe someone has an idea and can help me resolving this annoying problem. Java from Sun is installed an activated in IE.
    Thank you!
    here a screenshot
    http://s6b.directupload.net/images/081016/oy2nau9e.jpg
    Edited by: Mehmet Apaydin on Oct 16, 2008 10:49 AM

    solved!
    something really timewasting. I just had to add the site as a trusted site in IE. But it only works if you youse the NAME e.g. www.sapportal60:50000/irj/portal, using the ip adress dosn't work and that's what i did in the first place.
    with best regards
    Mehmet Apaydin

  • Script error "object required" when log off

    I have created a new user and assigned the "Everyone" role to it. I log in to the portal using this new user. Then I press logoff. Then I press OK. Now I get the script error below:
    line:91
    char:8
    Error: Object required
    code:0
    URL: http://.....
    any idea why I get this error?
    note: I don't get a logoff error when I use the administrator or other user IDs.

    Hi,
    you are using a customized masthead. InSP14 SAP changed some Javascript and therefor, the "object" your are colling in your logoff() function is missing. You'll have to comment out this JS call in your masthead. Check the IE error message explanation, it will show you the line where the error occurs.
    I've already posted the solution in this forum, but unfortunately, I'm not able to find my previous post
    br,
    Tobias

  • Error: Object Required apperas when accessing Content Admin Portal Content

    After installing Ep 7.0 sp16 Portal and logging in as Administrator we get
    Error: Object Required apperas when accessing Content Admin >Portal Content
    The same error appears when trying to access System Admin > permissions.
    Anything to do with catolog search is throwing Error: Object Required  popup.
    Appreciate feedback in resolving this.
    Rajesh.R.

    I have just started to get this error as well... On my computer I get the "Error: Object Required" when accessing the Portal Content page but if I log in on someone elses computer using the same browser, OS, etc The error does not appear and I am able to browse the Portal Content.
    Any more insight on the resolution to this issue would be appreciated.

  • Script throwing error" Object required: 'API'

    Hi All,
    We need help in one issue. We have following script which is running fine when we ran it from script editor, but when use this as expression in import format is throwing error
    Error: An error occurred importing the file.
    Detail: Object required: 'API'
    At line: 12
    Script:
    Function ME_to_LE(strField, strRecord)
    ME_to_LE =API.SqlMgr.fMapItemLookup (749, "UD8", Left(strField,3))
    End Function
    We have created few other Scripts which are running fine and producing required result when we check them with MsgBox. But when we are using these scripts in import format it is saying: Object required: 'API'
    IF I can not use API object in import script, how can I process multiple column with one script. We need to derive three-four column based on one input column and we don't want to write separate import script for each column. How and where we can write this script?
    Are we missing any step? Any help will be highly appreciated. Looks I asked long question :)
    Thanks,
    Shivendra
    Edited by: shiv2 on Sep 16, 2011 9:30 AM
    Edited by: shiv2 on Sep 16, 2011 10:36 AM

    Hi Robb,
    "It looks like you and James are on the same project" That is correct.
    OK. In requirment we have three-four column based on these column we need to derive few other column. We want to do spilitting and validation in Import itself. This is mainly a Validation requirment.
    There is one column which may have 12,13,14,17 or any other number of character in it. first three will represent one dimension but exact value be a mapped result based on these three digits.
    There are many validation based on the number on charaters and most importantly we don't want to process other column is validation get failed at any stage.
    Do we have anything like Import Action? Probably we want to change that script. Or if we can write something like integration script. We need every column to be processed in one shot.
    I don't think it is self explantry. Can we have your email please?
    Thanks,
    Shivendra
    Edited by: shiv2 on Sep 16, 2011 8:52 PM

  • Runtime error Object Required - Captivate 5

    Hi,
    Wondering if anyone else has come across this problem and found any solution.
    I have created .swf using Captivate 5 and when I upload them to our learning environment (Learning Pool), the flash plays through to the end fine but clicking on next/menu (within the learning environment) I get Runtime Error, Line 52 Object Required.
    Is there any publishing setting or anything that anyone has come across to make the swf work?  (I have a call logged with our environment provider but obviously they don't support captivate so...)
    Regards
    Annabel

    Are you uploading the Captivate content as a SCORM package to your LMS or are you just uploading the SWF?

  • Javascript error: object expected

    hai..
    i used two javascript show(),hide(id) methods for particular page items... i had called those methods from the templates bcoz im passing some id from the template that is needed in the page level javascripts...
    now my problem is for some i didnt not implemented those methods hide(id) & show() bcoz it is not needed for me in that page , but its showing me error saying 'Object Expected' .. how can i overcome this problem...
    do i need to override the method in each n every page... is there any alternate solution for this...
    anoo

    Hello,
    >> but its showing me error saying 'Object Expected' .. how can i overcome this problem...
    Another option is to condition these show/hide functions. You can use something like this:
    if ($x(‘id’)){
       hide(‘id’);
    }That will prevent the functions from running if the element ID ‘id’ is not rendered on the page.
    Regards,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefits us all.

  • Error: Object required".

    When I click on Content Administrator Role , I find one Popup u201CError: Object requiredu201D.
    I assigned all actions in content admin role. But the result is same.
    I assigned Content/User/System Administrator Roles to User .How to solve it.

    Hi Sanjay,
    1.Try to check in the Portal URL access using the hostname and not by Ip Address.
    2.Restart the server
    Thanks,
    Tulasi Palnati
    Edited by: Tulasi Palnati on Mar 13, 2009 7:53 AM

  • Javascript - Object required error for visual studio 2010

    Hi - I have downloaded the crystal report RTM for visual studio 2010.
    My App server is windows 2008.
    We are using crystal reports as part of CRM application
    I am getting  javascript error 'Object Required'  at the following line:
    The debugger after the error message refers to this:
    bobj.crv.stateManager.setComponentState('ctl00_ContentPlaceHolder2_CrystalReportViewer1__UI',eval('('document.getElementById('__CRYSTALSTATEctl00$ContentPlaceHolder2$CrystalReportViewer1').value')'));
    The website has all the required aspnet_client files and have made sure the application is able to load them.
    When tried with a new sample solution the reports work.
    Please help. I need to make the crystal reports work with the CRM solution...

    I am assuming this is happening after you have deployed your app and that the app works as expected on your development computer(?). Please confirm...
    I need you to tell me the following:
    1) how was the app compiled; any cpu, 32 bit, 64 bit?
    2) how was the CR runtime deployed (what MSI / MSM did you use?)?
    3) if this app is installed under custom app pool see the following:
    Deploy the CrystalReportViewers13 virtual directory as a sub-directory of your application.
    Copy the Crystalreportviewers13 folder to be a sub-folder at the root of your application. You can configure where your application looks for this folder by using the following Help file [SAP Crystal Reports .NET SDK Developer Guide
    |http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip] and search the document for ("web.config";). In the section "Configuring your web.config file" follow the instructions specified for setting the resourceURI attribute. This way you can control updates to the viewers when deploying your application.
    Note the resourceURI value is the name of the viewers directory and should be preceded with a Tilde
    ie value="~/crystalreportviewers13"
    Also, have a look at the following two articles. Both are pre CRVS2010, however the ideas re. deploying to a custom app pool still apply. All that changes is the folder name.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Javascript errors while startingup ......

    i`m getting javascript errors while startingup the prog ...... i tried to delete the cash file and still the problem appearing .....
    its so many errors and i have to press only ok ....
    Set FSO=CreateObject("Scripting.FileSystemObject")
    i`m using dw cs6 windows7 64bit

    Hi Ravi,
    According to your description, my understanding is that you encountered the error "Object required" when you try to add attachment to list in SharePoint 2013.
    For your issue, you can refer to the blog:
    http://kiran-kakanur.blogspot.com/2010/02/how-to-resolve-object-required-error-in.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Javascript error on ADF Popup

    Hi,
    I have a very strange problem.I am using ADF Popup ,action on one of the button in the Popup opens another Popup on top of it(Using popup.show(hints) JS to open this popup).
    When i try to close the second Popup (Using popup.hide()) it throws Javascript error Error:Object Required in IE7,Same code works fine in FireFox.Any suggestions ,please?

    We are using JDEV 11.1.1.0.0.
    Code to Open/Close popup.
    public void ShowPopup(String clientId,String Id){
    FacesContext context = FacesContext.getCurrentInstance();
    String popupId = clientId;
    String alignId =Id; //inputText290.getClientId(FacesContext.getCurrentInstance());
    StringBuilder script = new StringBuilder();
    script.append("var popup = AdfPage.PAGE.findComponent('").append(popupId).append("'); ").
    append("if (!popup.isPopupVisible()) { ").
    append("var hints = {}; ").
    append("hints[AdfRichPopup.HINT_ALIGN_ID] = '").append(alignId).append("'; ").
    append("hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_AFTER_END; ").
    append("popup.show(hints);}");
    ExtendedRenderKitService erks =
    Service.getService(context.getRenderKit(),
    ExtendedRenderKitService.class);
    erks.addScript(context, script.toString());
    public void closePopup(String popupId){
    StringBuilder script = new StringBuilder();
    FacesContext context = FacesContext.getCurrentInstance();
    script.append("var popup = AdfPage.PAGE.findComponent('").append(popupId).append("'); ")
    .append("if (popup.isPopupVisible()) { ")
    .append("popup.hide();}");
    ExtendedRenderKitService erks =
    Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
    erks.addScript(context, script.toString());
    Command Button action for the Button on the popup
    public String commandButton50_action() {
    // Add event code here...
    closePopup(popup13.getClientId(FacesContext.getCurrentInstance()));
    return null;
    JSPX Code:
    <af:popup binding="#{backingBeanScope.backing_MbrMemberReview.popup8}"
    id="popup8" contentDelivery="lazyUncached"
    popupFetchListener="#{backingBeanScope.backing_MbrMemberReview.popup8_popupFetchListener}">
    <af:panelWindow binding="#{backingBeanScope.backing_MbrMemberReview.panelWindow8}"
    id="panelWindow8"
    title="Search for Member to Combine"
    inlineStyle="width:600px; height:400px;"
    modal="true">
    <af:commandButton text="OK"
    binding="#{backingBeanScope.backing_MbrMemberReview.commandButton50}"
    id="commandButton50"
    inlineStyle="width:80px; height:15px; text-align:center;"
    action="#{backingBeanScope.backing_MbrMemberReview.commandButton50_action}"
    partialSubmit="true"/>
    </af:panelWindow>
    </af:popup>

  • Javascript errors while adding attachment to list on ribbon sp 2013

    Hi All,
    Javascript errors while adding attachment to list sp 2013
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.3)
    Timestamp: Mon, 20 Oct 2014 09:49:13 UTC
    Message: Object required
    Line: 1
    Char: 122565
    Code: 0
    URI:
    https://server.com/_layouts/15/form.js?rev=PxBF2F2E04Ut1YUooXDAbg%3D%3D
    Screen become blank and nothing is dosplayed  when attach item is clicked for custom list
    Ravi

    Hi Ravi,
    According to your description, my understanding is that you encountered the error "Object required" when you try to add attachment to list in SharePoint 2013.
    For your issue, you can refer to the blog:
    http://kiran-kakanur.blogspot.com/2010/02/how-to-resolve-object-required-error-in.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Object Required: 'Wscript'

    I've used the below VB script in my .hta application for selecting the folder. But when there is no folder is selected and I click 'Cancel' button then am getting Script error: Object Required: 'Wscript'.
    Sub ButtOutFolder
      Const MY_COMPUTER = &H11&
    Const WINDOW_HANDLE = 0
    Const OPTIONS = 0
    Set objShell      = CreateObject("Shell.Application")
    Set objFolder     = objShell.Namespace(MY_COMPUTER)
    Set objFolderItem = objFolder.Self
            strPath = objFolderItem.Path
    Set objFolder = objShell.BrowseForFolder _
    (WINDOW_HANDLE, "Select a folder:", OPTIONS, strPath)
    If objFolder Is Nothing Then
    Wscript.Quit
    End If
    Set objFolderItem = objFolder.Self
    objPath = objFolderItem.Path
            OUTFOLDERPATH = objPath
            OutpathTxt.value = OUTFOLDERPATH
    End Sub

    Simple example:
    <html>
    <head>
    <title>My HTML Application</title>
    <script language="vbscript">
    Sub ButtOutFolder
    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.BrowseForFolder(0, "Select a folder:", 0)
    If objFolder Is Nothing Then
    MsgBox "No folder selected -CANCELED"
    Exit Sub
    End If
    txtFolderPath.value = objFolder.Self.Path
    End Sub
    </script>
    <hta:application
    applicationname="MyHTA"
    border="dialog"
    borderstyle="normal"
    >
    </head>
    <body>
    <input type="button" Value="Select Folder" onclick="ButtOutFolder">&nbsp;<input id="txtFolderPath" type="text" size="65">
    </body>
    </html>
    ¯\_(ツ)_/¯

  • JavaScript error when using HoverMenu

    Hi,
    I'm using the HoverMenu with the TreeView in my project. When I call JavaScript methods in my form from the menu I get JavaScript Object Expected errors.
    For test I have made a simple DynPage iView (see code below). When I try to call the script reloadTree() from buttons, links, checkbox etc. everything works just fine. Trying to call the same method in the setClientSideScript of a hover menu item I get a JavaScript error: Object expected.
    I have tried to add the script method as raw text to the form with no luck. If I use the Document.setHeadRawText the script is inserted in the body and not in the header as described in the documentation.
    If I add alert('Some test') directly to the setClientSideScript it works just fine
    The code example is from the doProcessBeforeOutput()
    Document doc = getDocument();
    doc.setHeadRawText("<script>function reloadTree(){alert('Alert inside reloadTree function');}</script>");
    myForm.addRawText("<a href="#" onClick="reloadTree()">Test of reloadTree() from a href...</a>");
    HoverMenu hover = new HoverMenu("HoverMenu");
    hover.setMenuTrigger(com.sapportals.htmlb.enum.HoverMenuTrigger.ONCLICK);
    hover.addMenuItem("TEST1", "Test of reloadTree() from hovermenu...").setClientSideScript("reloadTree()");
    TextView tv = new TextView("click here to test reloadTree()");
    tv.setHoverMenu(hover);
    form.addComponent(tv);
    Button bt_Refresh = new Button("Button_HiddenRefresh");
    bt_Refresh.setText("Test of reloadTree() from button");
    bt_Refresh.setOnClientClick("reloadTree()");
    form.addComponent(bt_Refresh);
    Checkbox cb = new Checkbox("Checkbox");
    cb.setText("Test from checkbox");
    cb.setDisabled(false);
    cb.setChecked(true);
    cb.setOnClientClick("reloadTree()");
    form.addComponent(cb);
    Does anyone know why the HoverMenu item script in setClientSideScript cannot access JavaScript functions in my form ?
    Regards
    Michael

    Hi,
    I'm using the HoverMenu with the TreeView in my project. When I call JavaScript methods in my form from the menu I get JavaScript Object Expected errors.
    For test I have made a simple DynPage iView (see code below). When I try to call the script reloadTree() from buttons, links, checkbox etc. everything works just fine. Trying to call the same method in the setClientSideScript of a hover menu item I get a JavaScript error: Object expected.
    I have tried to add the script method as raw text to the form with no luck. If I use the Document.setHeadRawText the script is inserted in the body and not in the header as described in the documentation.
    If I add alert('Some test') directly to the setClientSideScript it works just fine
    The code example is from the doProcessBeforeOutput()
    Document doc = getDocument();
    doc.setHeadRawText("<script>function reloadTree(){alert('Alert inside reloadTree function');}</script>");
    myForm.addRawText("<a href="#" onClick="reloadTree()">Test of reloadTree() from a href...</a>");
    HoverMenu hover = new HoverMenu("HoverMenu");
    hover.setMenuTrigger(com.sapportals.htmlb.enum.HoverMenuTrigger.ONCLICK);
    hover.addMenuItem("TEST1", "Test of reloadTree() from hovermenu...").setClientSideScript("reloadTree()");
    TextView tv = new TextView("click here to test reloadTree()");
    tv.setHoverMenu(hover);
    form.addComponent(tv);
    Button bt_Refresh = new Button("Button_HiddenRefresh");
    bt_Refresh.setText("Test of reloadTree() from button");
    bt_Refresh.setOnClientClick("reloadTree()");
    form.addComponent(bt_Refresh);
    Checkbox cb = new Checkbox("Checkbox");
    cb.setText("Test from checkbox");
    cb.setDisabled(false);
    cb.setChecked(true);
    cb.setOnClientClick("reloadTree()");
    form.addComponent(cb);
    Does anyone know why the HoverMenu item script in setClientSideScript cannot access JavaScript functions in my form ?
    Regards
    Michael

Maybe you are looking for

  • Can't paste password in "connect to server" login box

    I need to connect to a webDAV site that assigns temporary login passwords to my established ID. (The temp password lasts 8 hours and is 30+ characters long.) In Leopard 10.5.6, I can't copy the assigned password from the resulting web page and paste

  • Regarding Curve 9220 battery purchase!!!!

    Hey there, Actually  my battery of curve 9220 is dead, so I have gone to your HCL service center in Noida, India (T- touch), so they told me about two options for it either I should purchase orginal costing ₹2500 or compatible one costing ₹1450. How

  • Confused about Source/Project File Conversion Sizes

    Which means.... I drop a 34MB .mov file into iDVD and it shows up in the Project Info window as 430 MB. Is this the way it has to work? Second (related) question: I now have 26 minutes of files loaded into the iDVD project (showing 1.47 GB in iDVD).

  • CC won't install latest version of After Effects

    For some reason CC is only installing version 12.0, which is incompatible with Mavericks. In the desktop drop-down menu it is saying After Effects is up to date but when I check the version it is saying 12.0 and also won't launch due to it being this

  • Having trouble displaying a JPanel on a JFrame

    Hello all, I'm fairly new to Java and I am having trouble displaying a JPanel on a JFrame. Pretty much I have a class called Task which has a JPanel object. Everytime the user creates a new task, a JPanel with the required information is created on s