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.

Similar Messages

  • Error: object expected in WAD-javascript

    hi all,
    i have written a .js file which i am using in WAD templates.
    there are certain functions which , when i move to the .js file i get the error: object expected.
    if i keep those functions in the template i do not get ne error.
    i just can't figure out why it is happening.
    please help
    Godhuli

    i guess after moving to file in the MIME repository, you have properly linked it. if you still get this error it may be that server cache is causing problem.
    you can invalidate the server cache from SMICM transaction. (this you may have to do it every time you change the .js file and reload it to MIME repository)
    also check this thread for clearing cache
    How to clear Cache in SAP BW
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

  • EIC  Error *nty_is_active* is undefined & Error: Object expected

    Hello,
    Installation Product Version ECC 6.0
    We´re implemented Employee Interaction Center (EIC).EH 4 SP2
    Component version: EHP 4 for SAP ERP 6.0 /7.0.
    We have already installed the component EIC in the system and activated some services in SICF and Activation of Business functions in EIC in Transaction SFW5.
    The problem is that when i launch the transactino "HREIC" the web explorer 7.0, launch an error about some configuration object:
    ERROR: 
    Line: 301
    Char: 9
    Error nty_is_active is undefined
    Code:0
    Line: 295
    Char: 9
    Error: Object expected
    Code:0
    Could you recomend me also some configuration guide with all the details that i have to configurate to EIC, please?
    Thanks so much for your help!
    Edited by: llello gomez on Jun 3, 2009 5:01 PM

    Hi Ilello,
    You said you activated "some" services via SICF.  Please make sure they are all activated as below and see SAP Note 1176990:
    ICF services must be activated via transaction SICF:
    /sap/bc/bsp/sap/hreic_vp,
    /sap/bc/bsp/sap/ic_base,
    /sap/bc/bsp/sap/hreic_rt_rep_vp,
    /sap/bc/notify,
    /sap/bc/bsp/sap/sam_notifying,
    /sap/bc/bsp/sap/sam_sess_queue,
    /sap/bc/bsp/sap/hrrcf_btf_edit.
    /sap/bc/bsp/sap/crm_bm
    We are in the middle of configuration of the EIC now.  Many parts to put together but we hope the final product will meet our expectations.
    Paul
    Edited by: Paul Davidson on Jun 4, 2009 11:03 AM

  • Microsoft JScript Runtime Error, Line: 0, Error: Object Expected?

    Hi,
    I just got a new computer and I have Java 2 Runtime Environment SE v 1.4.2. I keep having problems with it. It says, "Microsoft JScript Runtime Error, Line:0, Error: Object Expected. I have no idea what to do or what is actually causing this. It shows up randomly when I have been using "Dell Jukebox by musicmatch" or even when I'm surfing. Can someone please help me fix the problem?
    "Jay"

    Hi,
    I just got a new computer and I have Java 2 Runtime
    Environment SE v 1.4.2. I keep having problems with
    it. It says, "Microsoft JScript Runtime Error, Line:0,
    Error: Object Expected. I have no idea what to do or
    what is actually causing this. This is not a java err. It is a scripting error.
    It shows up randomly
    when I have been using "Dell Jukebox by musicmatch" or
    even when I'm surfing. Can someone please help me fix
    the problem?
    "Jay" Someone can certainly help you - contact the website's webmaster & send them the err. They wrote it; they have to fix it.

  • 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

  • A Runtime Error Has Occured Do you wish to Debug? Line 90 Error: Object Expected

    A Runtime Error Has Occured Do you wish to Debug? Line 90
    Error: Object Expected
    This error is recieved when trying to open "The Fan" video
    news Page from Comcast, This error appears and when you select yes
    or no, the page comes up to install Adobe Flash Player, however
    even after installing it, the error still appears when attempting
    again, even after restart, this does not occur on Firefox, only
    IE

    Also I am on Windows Vista

  • Error "object expected" w/ SWF in HTML

    My Captivate 4 SWF file runs fine in my Flare Help page, until I click off elsewhere (not within the movie) I get an error message about an Object expected on line 53. When I remove the SWF demo (or insert an old RoboDemo SWF) I get no error msg. Searching the Web leads me to believe I need the to load (include) the STANDARD.JS file (that Captivate 4 publishes along with the SWF) into the HTML page. However, I have not found how to do that. Can some supply the code and instructions where to put the code and where the standard.js file should reside when delivered to user?
    I have tried placing this in the Header of the HTML page:
                   <script src="standard.js" type="text/javascript"></script>
    But that didn't do it: same error.
    Roger

    Hi Roger
    Too bad you aren't using RoboHelp!
    Flare should have the RoboHelp equivalent of a concept known as "Baggage Files". You might ask in the Flare forums about how to set about adding the standard.js as what RoboHelp would know as a Baggage File. Surely Flare has an equivalent. And if not, well, there's always RoboHelp to switch back to!
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • 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.
    >
    >
    >

  • Script error "object expected"

    Hello,
    I have tried everything I could find on the internet and I still get script error message "object expected" "code 0" in the script http://127.0.0.1:1133/app/_js/adobe.js
    during installation. After that the installation just hangs and there is no other way as to kill the process.
    Windows XP 32bit
    Internet Explorer 8
    Thanks,
    Vladimir
    Solution: workaround over download the standalone installation did it

    Hi,
    Nice to know that you could solve this issue.
    The workaround:
    Download the installer from http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html#main-pars_header
    Close browsers and double-click the installer.
    Thanks,
    Sunil

  • CE10 Enterprise error "Object Expected" when tyring to view a report.

    I'm getting an error when I try to view a report connecting to Crystal Enterprise that states "object Expected". 
    However I can schedule the report and see the results so the ONLY problem is trying to view the report.
    Now, I have searched these forums and I came across and thread with the title "CE10 - Automation server can't create object Error " and the person responding says "...Your solution might be in note #1216330".
    So how do I find that note in these forums?
    I really need to get this issue resolved.

    Hi Debbie,
    The note means the SAP note (Knowledge based article)
    You can access the SAP note by going to the Service Market Place (SMP) by using the below link
    http://www.service.sap.com
    Click on the SAP note search and put in the above number to search the note.
    In case you are not able to get it below is the content of the same note.
    1216330 - Err Msg: "...Automation Server can't create object." when launching ePortfolio
    Symptom
    In Crystal Enterprise (CE) 8.5 or 9 when ePortfolio is clicked on the Crystal Enterprise Launchpad, the following error occurs:
    "There was an error retrieving data from the server: Automation Server can't create object."
    Why does this error occur and how can it be resolved?
    Resolution
    This error occurs if a Hot Fix is installed under a user account that does not have sufficient rights to correctly install it. If this occurs, Enterpriseframework.dll is not registered with the operating system and Sessionmanager.dll is not loaded correctly.
    To resolve this error message, do one of the following things:
    " Log on to the CE server using the local administrator account and run the Hot Fix executable again.
    - OR -
    " Reregister Enterpriseframework.dll
    To do this:
    1. Log on to the CE server with the local administrator account.
    2. Open Microsoft Windows Explorer and navigate to C:\Program Files\Crystal Decisions\Enterprise 9\win32_x86. Leave Windows Explorer open while performing the rest of this procedure.
    3. Click 'Start', and then click 'Run'. The 'Run' dialog box appears.
    4. In the 'Open' field, type "REGSVR32". Do not click 'OK' yet.
    5. Drag Enterpriseframework.dll from the Windows Explorer window into the 'Open' field of the 'Run' dialog box behind REGSVR32.
    You will see the following after you drag the DLL into the 'Open' field:
    REGSVR32 "C:\Program Files\Crystal Decisions\Enterprise9\win32_x86\
    Enterpriseframework.dll"
    6. Click 'OK'.
    The following confirmation appears:
    "DLLRegisterServer in C:\Program Files\Crystal Decisions\Enterprise 9\win32_x86\Enterpriseframework.dll succeeded."
    Now you can successfully launch ePortfolio from the Crystal Enterprise Launchpad.
    Keywords
    LAUNCH PAD OPEN LOG ON LOGON LOGIN LOG IN Crystal Enterprise ePortfolio User Rights , c2013852
    Regards,
    Aditya Joshi

  • 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

  • Microsoft Jscript runtime error: Object expected

    I have a Visual Studio 2005 web application that uses a Crystal Viewer to display reports developed in XI. When I run the application on my development PC, I get no error, even with the debug turned on in IE7.  When I run the application on my PC, using the web server address  and click on the drop down to select the parameter, I get an error that says; u201CMicrosoft Jscript runtime error: Object expectedu201D.  Both my development PC and the code published on the web server use the fully qualified report path down to the webserver name.  No problem on my development PC running in Visual Studio, but a problem accessing the server.  The onClick portion is the highlighted area is where the debug  stops.  This is code that is created from crystal.  Originally, I was getting an error; 'Load Report Failed', but once I used the full path name of the report down the the webserver name, that error disappeared. I have XI installed on the web server and I can open and run the reports there.  What am I missing on the web server?  Thanks.

    That would be the CR Service Pack located here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006255422008E/crxir2_sp4_inc.exe
    You will then have to ensure that the same runtime is on the server. Use the msm or msi files from here:
    http://resources.businessobjects.com/support/communityCS/FilesAndUpdates/crxir2sp4_net_merge_modules.zip
    https://smpdl.sap-ag.de/~sapidp/012002523100009657852008E/crxir2sp4_net_si.zip
    I'd recommend the msi as it does not require you to build a deployment project. Ensure that you uninstall the current CR runtime on the server. Also, once that is done, check to make sure that the c:\program files\business objects directory is removed. Then install the CR runtime using the above msi file.
    Ludek

  • 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

  • Javascript error with JSF and TOMAHAWK

    I've got two selectOneMenu in my page and I would like to change the selected item of the second selectOneMenu when an item is selected in the first selectOneMenu.
    I tried to implement a solution using Tomahawk. The idea is to generate a click event on a hidden link when an item is selected like explained here:
    http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces
    When I click on the selectOneMenu, I always have following javascript error : object expected.
    Here is my page:
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
         <f:view>
              <head>
              </head>
              <body>
                   <h:form id="Monitoring">
                   <SCRIPT language="JavaScript" type="text/javascript">
                   function clickLink(linkId)
                        var fireOnThis = document.getElementById(linkId)
                        alert('le champ a pour valeur : '+linkId)
                        alert('le obj a pour valeur : '+fireOnThis.value)
                        if (document.createEvent)
                        var evObj = document.createEvent('MouseEvents')
                        evObj.initEvent( 'click', true, false )
                        fireOnThis.dispatchEvent(evObj)
                        else if (document.createEventObject)
                        fireOnThis.fireEvent('onclick')
                   </SCRIPT>
                   <t:commandLink id="hiddenLink" forceId="true" style="display:none; visibility:hidden;" action="#{TotoBean.selectModule}"/>
                        <h:selectOneMenu id="modulefilter" value="#{TototBean.moduleId}" rendered="true" onchange="clickLink('hiddenLink');" >
              <f:selectItems value="#{TototBean.moduleList}" />
              </h:selectOneMenu>      
                        <h:selectOneMenu id="servicefilter" value="#{TototBean.serviceId}" rendered="true" onchange="clickLink('hiddenLink');" >
              <f:selectItems value="#{TototBean.serviceList}" />
              </h:selectOneMenu>      
                   </h:form>
              </body>
         </f:view>
    </html>
    and my bean:
    package com.toto.monitoring.bean;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ValueChangeEvent;
    import javax.faces.model.SelectItem;
    public final class TototBean extends Object {
         private ArrayList<SelectItem> moduleList;
         private ArrayList<SelectItem> serviceList;
         private String          moduleId;
         private String          serviceId;
         public TototBean() {
              super();
              // TODO Auto-generated constructor stub
              this.moduleList           = new ArrayList<SelectItem>();
              this.serviceList           = new ArrayList<SelectItem>();
              initModuleList();
              initServiceList();
         public String selectModule() {
              System.out.println("change");
              setServiceId("All Services");
              return(null);
         final List initModuleList() {
              System.out.println("init module list");
              moduleList = new ArrayList<SelectItem>();
              moduleList.add(new SelectItem("All Modules", "All Modules"));
              moduleList.add(new SelectItem("Module 1", "Module 1"));
              moduleList.add(new SelectItem("Module 2", "Module 2"));
              return moduleList;
         public List getModuleList() {
              System.out.println("get module list");
              return moduleList;
         public String getModuleId() {
              System.out.println("get module ID");
              return moduleId;
         public void setModuleId(String id) {
              System.out.println("set module ID");
              moduleId = id;
         final List initServiceList() {
              System.out.println("init service list");
              serviceList = new ArrayList<SelectItem>();
              serviceList.add(new SelectItem("All Services", "All Services"));
              serviceList.add(new SelectItem("Service 1", "Service 1"));
              serviceList.add(new SelectItem("Service 2", "Service 2"));
              return serviceList;
         public List getServiceList() {
              System.out.println("get service list");
              return serviceList;
         public String getServiceId() {
              System.out.println("get service ID");
              return serviceId;
         public void setServiceId(String id) {
              System.out.println("set service ID");
              serviceId = id;
    Any idea ?
    Thanks for your help.

    The hiddenLink has no value. Does it really need one as it is just used to submit the form ?

  • "Object expected" JavaScript error in IE7/IE8 using AC_RunActiveContent v1.7

    So this is a low-priority but annoying problem I seem to be having on a site with the AC_RunActiveContent embedding script that Flash CS3 automatically generates (v1.7, according to the comments). In IE7 and IE8, I keep getting these alerts when the page first come up:
    Line: 39
    Char: 1
    Error: Object expected
    Code: 0
    URL: etc.
    What's weird is that Line 39 of the file seems to be in the midst of a try-catch thing, so I don't see why that error should even be showing up. Mind you, the site is working fine - the Flash shows up fine - like I said, not high-priority. I'd just like to try and get rid of that error if I can. Anyone else have any idea what's going on here, and how I might be able to fix it?

    Bump. Also, additional details: Yes, I did upload the script to the server. Yes, it's being found and read properly by the browsers, including IE7 and IE8; I've confirmed this using the Developer's Toolbar. So it's not the same problem that everyone who's asked about this before has had; yes, I did dig up those posts via Google before I came here, and yes, I have made sure. So any other thoughts?

Maybe you are looking for

  • Multiple copies of the same page?

    Hi, under the previous version of iWeb, I somehow managed to create three 'Welcome' pages. All three are the same page, and all three show up in my .mac account online. However, I've since upgraded to Leopard (erase and install) and don't have any wa

  • Satellite C50-A-15L: unable to play music or video files via media player

    Hi all I am having problems with my media player and explorer functions all of a sudden - it seems to have occured after a recent 'important update' (always causes more issues than fixes). Anyway, since this update, I have been unable to play any mus

  • Problem PLEASE HELP ASAP

    Why does my ipod touch 5 when out of battery, and when i turned it to sleep, i kept going from 20% less to above 20% what is going on?

  • JVM 1.5.0_12 SIGSEGV crash on Solaris Sparc

    # An unexpected error has been detected by HotSpot Virtual Machine: #  SIGSEGV (0xb) at pc=0xff330f84, pid=17836, tid=12 # Java VM: Java HotSpot(TM) Server VM (1.5.0_12-b04 mixed mode) # Problematic frame: # C  [libc_psr.so.1+0xf84]  memcpy+0x994 ---

  • Email client issue Symbian Belle

    Hello everyone. I just installed Symbian Belle in my nokia N8, and configured the email client with my Gmail account.  I'm getting a strange error when I try to read any message of my inbox.  Every time that I try to read a message, all that I can se