Why do I get this error when executing this javascript?

== Issue
==
I have another kind of problem with Firefox
== Description
==
<code>var firefoxWindow = getWindows()[0];
var browser = firefoxWindow.getBrowser();
var doc = browser.contentDocument;
var elem = null;
var elems = doc.getElementsByTagName('td');
for(a=0;a &lt; elems.length;a++){ if( [[elems[a] !== null && elems[a].hasAttributes() <u> true && elems[a].getAttribute('onclick') !== null && elems[a].getAttribute('onclick').toString().match(/doNothing/gim) !== null && elems[a].getAttribute('onclick').toString().match(/Goodbye Wonderful/gim).length &gt;= 0) || (elems[a] !== null && elems[a].onclick !== null && elems[a].onclick.toString().match(/Goodbye Wonderful/gim) !== null && elems[a].onclick.toString().match(/Goodbye Wonderful/gim).length &gt;= 0]]) { elem = elems[a]; } }
var found = false;
var window = null;
for(var i=0; i &lt; firefoxWindow.frames.length; i++) }
function recursiveSearch(frames){ for(var i=0; i= 0) || (elems[a] !== null && elems[a].onclick !== null && elems[a].onclick.toString().match(/Goodbye Wonderful/gim) !== null && elems[a].onclick.toString().match(/Goodbye Wonderful/gim).length &gt;= 0))) { elem = elems[a]; } } if(elem) else{ if(frames[i].frames.length&gt;0) }}}if(!elem && window.frames.length &gt; 0){ recursiveSearch(window.frames); }var origColor = '';if(elem !== null) elem.style.backgroundColor = 'yellow';}
</code>
Using this javascript through jssh to assert that there is a element with an onclick handler that contains the phrase Goodbye Wonderful returns an odd error message :
Received: uncaught exception: [Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: interactive :: :: line 1" data: no]
I've looked just about everywhere for an answer and none of them have anything to do with what I'm trying to do with this javascript. It works fine in FF 3.6 but when run in the 4.0b1 this causes that weird exception.
== This happened
==
Every time Firefox opened
== Updated to FF 4.0b1
==
== User Agent
==
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.0 Safari/534.3

Sorry but the javascript syntax got messed up a little bit when posted. And jssh was built with 4.0b1 and then I packaged it as an XPI to install as an extension.

Similar Messages

  • Why do I get unknown error when I try to add to my iCloud storage

    Why do I get unknown error when I try and add storage to iCloud account ? I have funds in account but I do not have a credit card # on file.

    This didn't solve it for me. Card details already there, and iTunes purchases working fine.
    But just to be sure I' have re-entered and resaved my card info and checked, re-entered and re-checked my appleID info.
    Still not working.
    Anyone got any other suggestions?

  • Why am I getting an error when I place two OAM files one after the other in different pages?

    Why am I getting an error when I place two OAM files one after the other in different pages? They do not load or play correctly.  They are both configured to play automatically with a .125 second delay and both have a white rectangle "poster" over for a hidden effect.

    Thanks for the idea, Scott! I initially tried your idea, but my OAM files were still not loading correctly.  I tried other combinations of OAM files, and it seems to work fine.
    Back to my original OAM files: I made sure that my elements in my Edge Animate project had different names. I originally copied parts of some elements from one to another, and I think it was confusing to DPS to read it. 

  • Why am i getting an error when trying to download ios6

    Why am i getting an error when trying ios6

    I have no idea. Don't think anybody else will be able to figure it out either from the information you have provided.
    Might help if we knew the error message and/or number. It is a start anyway.

  • Why do I get server error when logging into Icloud on my pc

    Why do i get server error when i try to log into icloud control panel on my pc

    document.write(''); document.cookie = 'CTINC=1; expires=Fri, 08-Oct-2021 04:56:11 GMT; domain=.royalbank.com; path=/'; document.cookie = 'SiteStamp=XXDtZ12Ou3WtAF; expires=Fri, 08-Oct-2021 04:56:11 GMT; domain=.royalbank.com; path=/'; document.cookie = 'Persistent_id_XXDtZ12Ou3WtAF=0BD14F766ACA:1318308966; expires=Fri, 08-Oct-2021 04:56:11 GMT; domain=.royalbank.com; path=/';

  • Why am I getting an error when I sync my iPhone 5S?

    The error message "The iPhone "iPhone name" cannot be synced.  An unknown error occurred (-54)." came up when I have been syncing my new iPhone 5S.
    This didn't start happening until last night, when I restored my iPhone from an old back-up I had from my iPhone 4 that I recently transisioned away from.  Was this a mistake?  Do I have to restore it to factory settings to get this error to go away?  What do I need to do?
    Also, something to note is that when I looked this error message up, I came up with some solutions for an iPod getting this same error message, but nothing with an iPhone.  The solutions had something to do with a locked file blocking the process.  How do I know if a file is blocked?
    I have an mp3 on my iPhone that won't go away with deselecting "Sync Music,"  But every other music file was able to come off with clicking that button.  Is that the problem?  The only way I can think of getting this file off is to do a factory reset to my iPhone.  I'd prefer not to do that because I lost some phone numbers in the process of restoring it this last time.  Apparently my back-up was from 2013, when I could've sworn I backed it up right before I got my new iPhone.
    I'd love help with this, please.  Thank you so much!

    I am copying this for you from another thread:
    == Error -54 ==
    From an OS9 reference, error -54 is a software lock on a file or a permissions error. (Some of the old codes still apply to OSX although there is no formal list of OSX error codes.)
    First, try simply restarting your computer.
    iTunes Library cannot be saved (Error -54) -https://discussions.apple.com/thread/1912814
    Unknown error (-54) while syncing ipod -https://discussions.apple.com/thread/1082953 - problem was locked files
    Why does iTunes keep showing a -54 error when I sync my iPad? -https://discussions.apple.com/thread/3727114
    Error -54 possibly related to Touch Copy -https://discussions.apple.com/thread/3727114 - cleared by deleting preferences on iPad.
    I hope this helps.

  • Why Do I get an Error When I Query?

    Hi
    When I search for messages on an empty folder
    ie: GWFolderObj.messages.Find(p_strQuery)
    I Get this Error, but ONLY when the folder is empty...
    A first chance exception of type
    'System.Runtime.InteropServices.COMException' occurred in
    Microsoft.VisualBasic.dll
    Any ideas as to why??
    Thanks,
    A.

    That's the truth. I get the same error when I log in
    (and it's on my Mac computers!!).
    Thanks for sharing! I was beginning to feel paranoid and think it was a Windows XP thing...

  • Why do I get an error when trying to send email?

    When I try to email a photo directly from iPhoto, I get an error message that tells me that server is unable to identify email name and password. WHY?
    I verified and email address and password are correct>
    Also, I have listed to email addresses on my MAC a Gmail address and a Comcast (other) account, but when I click on stamp for email on my desktop it opens both mailboxes in one place. Is there a way to separate them.
    Any answer and help provided will be greatly appreciarted.

    Have you ever tried to access email via your iPhone in the past with this service? Has it ever worked? I'm looking at their support page and cannot find any information regarding access via a mobile device. I'm wondering since it is a satellite service that you cannot access their domain from cellular service. I'm not positive, but a search of their support page is not yielding much information.
    Also, the incoming server is not your problem. It is the outgoing server or SMTP. According to the settings, it should be smtp.everyone.net. It does not use SSL for the outgoing server, and the username is your entire email address and then your password.
    You should be able to use the information for the Mac mail that I found in this link. http://www.skybeam.com/support/helpful-guides/email-support/mac-mail/ If that doesn't work, I would call their support phone number and ask about using their mail on a mobile device.

  • Why am I getting an error when trying to export a jpeg at 300 dpi?

    I am trying to export a 18" x 24" illustrator file to a jpg at RGB 72dpi and CMYK 300 dpi.  72, no problem but when I try to export at 300 I get an error message. Any ideas why this is happening?

    Not so much a RAM problem as it may be a scratch disk problem.  Illustrator may be looking for 1.) a place to put the file, and 2.) enough scratch space to accomplish the op.  Try opening the .ai file using Photoshop using the size 18 x 24 @ 300 ppi in the Open dialog.  That will rasterize the file ( not sure why you'd want to ).

  • Why do I get an error when clicking on topics in email?

    I subscribe to the forum posts that I create and by doing so I get an email when the thread has been updated. The email contains a link to the message thread but when I click I got an Apple.com webpage saying "An error has occurred". Does anyone else have this problem? How do you fix it?

    That's the truth. I get the same error when I log in
    (and it's on my Mac computers!!).
    Thanks for sharing! I was beginning to feel paranoid and think it was a Windows XP thing...

  • Why do I get "unknown error" when trying to download apps with my iPhone when I put the correct password in?

    I keep getting "unknown error" message come up when I try to get an app. I have put my password in correctly but I then get a message saying I've put my password in incorrectly too many times. So I change my password but I still get the "unknown error" message. I have changed my password 4 times now and nothing is working

    I received this email from Apple and this corrected the problem for me...  I only had to reset the iTunes cache
    1) Open iTunes
    2) At the top menu, click File > Preferences (iTunes > Preferences on a Mac)
    3) In the Preferences menu, click the Advanced tab
    4) In the Advanced menu, you should see a button that says "Reset Cache". Please click this button.

  • Why do I get an error when I try to configure a channel with the tktds7x4 driver?

    I use the TDS754D scope. My complete function call is:
    errStatus = tktds7x4_ConfigureChannel( ScopeHandle, "CH1", 5.0, 2.0, TKTDS7X4_VAL_DC, 1.0, VI_TRUE);
    When I step through it, I see that I get an error on the driver line
    viCheckParm(Ivi_SetAttributeReal64 (vi, channel, TKTDS7X4_ATTR_VERTICAL_RANGE, 0, range), 3, "Range");
    I'm also getting an error with tktds7x4_ConfigureEdgeTriggerSource
    I just downloaded and installed this driver, and it is the first time I have tried to use it. I'm running it in Microsoft Visual C++ 6.0, but it is a C program.

    I hadn't done too much debugging when I wrote the question. All I knew was that I got a timeout error when I used that call. Over the weekend I tracked it down to a problem in the function tktds7x4_InvalidateTriggerAttributes, and specifically, the line
    checkErr( Ivi_GetAttributeViString (vi, VI_NULL, TKTDS7X4_ATTR_INSTR_COMM_TRIGGER_SOURCE, 0, BUFFER_SIZE, triggerSource));
    My scope does not have the 2C option, so there is no communication trigger function. When the driver queries the communication trigger source, the scope apparently does not return anything because it does not understand. I added the lines
    if (!strcmp(triggerSource, channelName))
    checkErr (Ivi_InvalidateAttribute (vi, VI_NULL, TKTDS7X4_ATTR_TRIGGER_LEVEL));
    checkErr(
    Ivi_GetAttributeViInt32(vi, VI_NULL, TKTDS7X4_ATTR_INSTR_OPTIONS, 0, &options));
    if (isOpt2C)
    before that line of code (at line 7360), along with a closing brace before the label "Error:"
    Also, at line 399, I added the following 3 lines:
    { "CH1" , "CH1" },
    { "CH2" , "CH2" },
    { "CH3" , "CH3" },
    { "CH4" , "CH4" },
    even though the comment for triggerSourceStringTableEntries says that it is for non-channel sources only. I am not positive that it was necessary, but I think it was.
    With those changes, the driver now works correctly for me. I have attached my updated driver source code. I am never happy to change a commercial driver, though. If someone were to re-download this driver and re-install it, all my changes would be lost, and the driver would no longer work.
    Attachments:
    tktds7x4.c ‏664 KB

  • Why am i getting an error when trying to upgrade from 10.7.5 to 10.9

    when i try and upgrade from 10.7.5 osx lion to 10.9 i get an error, i have 2GB of memory and 144MB of storage. can someone help?

    This would indicate that your MacBook Air does not meet the requirements for Mavericks.
    To install Mavericks, you need one of these Macs:
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later),
    MacBook Pro (15-inch or 17-inch, Mid/Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)
    Your Mac also needs:
    OS X Mountain Lion, Lion, or Snow Leopard v10.6.8 already installed
    2 GB or more of memory
    8 GB or more of available space

  • Why do I get an error when the code is working?

    Hi guys,
    I get an error on the 'employeeList[i].id' and 'employeeList[i].label'.
    Though everything works when I click the 'Search Button' (all text fields populate with the correct data).... but I still get an 1010 error.
    Any idea's why?
    search_txt = input textfield
    name_txt = dynamic textfield
    id_txt = dynamic textfield
    TypeError: Error #1010: A term is undefined and has no properties.
    var employeeList:Array = new Array();
    // array populated in another function using
    // employeeList.push({label:employeed[i], id:employeed[i+1]});
    function search(e:MouseEvent):void{
        for(var i:int=0; employeeList.length; i++){
            if(search_txt.text == employeeList[i].id){
                name_txt.text = employeeList[i].label;
                id_txt.text = employeeList[i].id;
    search_mc.addEventListener(MouseEvent.MOUSE_UP,search,false,0,true);
    Thanks,
    Sky

    Probably because you have an error... when does your loop stop with what you have?
    for(var i:int=0; employeeList.length; i++)

  • Why do I get HDCP error when streaming my own movies from iDevices?

    iPad, iPhone --> ATV causes HDCP content error and will not play. It loads, shows the first frame and progress bar then just goes to the error. I understand that HDCP is a copy protection / copyright effort but it is my own video - c'mon Apple Engineers, this error is all over your forums, it's time for our patch please!

    The message says that there is something wrong with the digital 'handshake'
    that takes place when a website and Adobe try to communicate.  This could
    be caused by an error in the ebooks.com's authentication protocol, or with
    Windows software that won't let the site connect to Adobe.
    If you're using Windows 7, you'll have (to get help?) to check the security
    settings as the first step in resolving the 'issues' that Win 7 has.
    You'll end up having Windows 7 settings allowing communications with that
    website.
    Hope this helps!
    =========

Maybe you are looking for

  • Uploading data from Excel sheet into SAP.

    Dear All, I want to upload data existing in Excel sheet into SAP. Is there any possibility with the following requirements? 1) Excel file contains serial numbers with different values.Like power(230Wp),Voc,Isc,Vmp and Imp. 2) We need to upload the sa

  • Why does ppi matter for web images?

    Hello When placing an image in my (web/pixel) project the resolution is dependent from the set ppi. When I create a new document for web, then logically only the pixels matter. Nonetheless there's a ppi field, why? And depending what value it has, pl

  • Copied a page from a co-worker, but design tab is empty.

    My co-worker sent me a jsp and java file for a page he's developing so that I could review it and do a little work on it. When I open the jsp, I see the 3 tabs: Design, Jsp, and Java. The Jsp and Java pages work fine, but the Design page is empty. Ho

  • Increased number of Abandoned calls

    Hi All We have a Severity 1 case going on and its that we are getting huge number of abandoned calls in UCCX and on a particual CSQ. Both the CUCM and UCCX team confirmed that there are no issues at therespective entities and the issue is from the Vo

  • Approvals for transporting XI objects

    Does anyone have documentation on how your companies are handling approvals for transporting XI objects? I need to prepare a change management document that will be SOX compliant and wanted to know how everyone else is handling approvals? Any suggest