I want to Print receipt page on loading page in firefox Firefox shows following error.. Use of getPreventDefault() is deprecated. Use defaultPrevented instead. error source line: src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; > NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 > (NS_ERROR_NOT_AVAILABLE) [nsIDOMWindow.print] error source line: -------------------------------------------------------------------------------- print(); code: [...] read more
I dynamically create a button in the way I found in the Internet: Page = function(...) { ... }; Page.prototype = { ... addButton : function() { var b = content.document.createElement('button'); b.onclick = function() { alert('OnClick'); } }, ... }; Unfortunately, it's not working and throwing the following error: Error: [...] read more
So I've been banging my head against my desk for a few hours on this one and i'm not getting anywhere so help would really be appreciated. The code below has two jquery event handlers which fire off an ajax request. The first one uses GET and the data it [...] read more
My problem : uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMCanvasRenderingContext2D.drawImage]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: file:///***************.js :: redrawView :: line 308" data: no] The code which produce this behaviour (tmpImg is loading dynamically, so if it is not loaded yet, it skip it). if(tmpImg!=null && [...] read more
I am trying to access the localStorage of a page from a Firefox extension. My understanding is that content gives a reference to the window of the current page. When I try and access the localStorage for the page with content.localStorage, I think I am getting a reference to it. [...] read more
When I deploy a cloud service to Windows Azure it causes a number of VSPerf.exe instances to start - anything from 1 to 5. Between them they consume all the CPU and none of the processes ever terminate themselves. If I remotely connect to the instance and terminate the processes [...] read more
I released a new version of a firefox webextension, Copy All Tabs last night. The code is open source and available on github. The new version fixes many bugs and is overall more stable. It works as expected on Windows and Mac (Firefox 61). However, when I was testing on [...] read more
On site there is code like that (its site on LAN) <script language="JavaScript" type="text/javascript"> alert("ble"); </script> I try to disable that alert using GM. I was trying to do this unsafeWindow.alert=function() {}; but I see the alert and get this error Error: uncaught exception: [Exception... "Component is not available" nsresult: [...] read more
I am trying to use a TSaveDialog in Delphi XE6: if not SaveDialog1.Execute(0) then Exit; The call immediately returns false, without displaying any dialog. I traced it down to the act of creating the shell Save Dialog COM object: function TCustomFileSaveDialog.CreateFileDialog: IFileDialog; var LGuid: TGUID; begin LGuid := CLSID_FileSaveDialog; CoCreateInstance(LGuid, [...] read more
I'm working on a simple JavaScript game using HTML5 canvas. It's a very typical game-loop setup involving: * init() function that initializes objects to be used the playfield, randomizing some start x/y positions and similar setup tasks * draw() function that draws all the game objects, including some simple canvas [...] read more
<html> <body> <button type="button" onclick="clickme()">Click Me</button> <script> var test = 0; function clickme() { test = 1; console.log(test); } window.onunload = function() { alert("test"); } </script> </body> </html> I'm using this simple code to test some things with onunload and onbeforeunload. For some reason whenever I refresh/leave the page and [...] read more
Using .Net 4.0 / WPF Application / C# I have the following piece of code in my application, which opens a FileDialog when the Select button is clicked. OpenFileDialog fdgSelectFile; bool? dialogResult; try { fdgSelectFile = new OpenFileDialog {DefaultExt = FileDialogDefaultExt, Filter = FileDialogFilter}; dialogResult = fdgSelectFile.ShowDialog(); if (dialogResult.HasValue && [...] read more
I'm trying to convert a Google Chrome extension to Firefox using Addon SDK (Jetpack). The following code (run as content-script) var property, winProperties = {}; for (property in window) { winProperties[property] = true; } throws this exception when run in Firefox 5.0 and 6.0: Traceback (most recent call last): File [...] read more
Today is my first day working with firefox extensions. Basically I am making an extension that will be used on an internal network to check a web server for new notifications. I used the wizard on the mozilla page to make a skeleton extension and then mainly edited overlay.js with [...] read more
I'm currently trying to get a windows compiled program to work through Wine to run on Linux and MacOSX. When I run the program through wine, it prompts me to install Gecko which I do. Later on in the program, it attempts to use MSHTML to render HTML but I [...] read more
I am working on 1 application in which user can upload files and application shows preview of uploaded file using pdf.js. Server side code is: byte[] content= new BASE64Decoder().decodeBuffer(documentVO.getDocument()); outPutStream.write(content, 0, content.length); responseReturn.setContentType("application/pdf"); Problem is for some of the .tiff files preview is not shown and following warning gets displayed [...] read more
I am using Ruby on Rails 3.0.7 and jQuery 1.6.1 and I am binding an AJAX click event to a link_to HTML output as in the following example: link_to 'Link name', '#', :id => 'link_css_id' As you can see I set the URL to '#'. Doing that when I click [...] read more
Anyone know i can make a jquery soap call to a wcf service? My JQuery Code: $.ajax({ url: "http://localhost/oseop/orderingservice.svc/HelloWorld", data: $("#txtTestRequest").val(), type: "POST", processData: true, contentType: "application/xml; charset=utf-8", timeout: 10000, dataType: "xml", beforeSend: function (xhr) { xhr.setRequestHeader("SOAPAction", "HelloWorld"); }, success: function (xml) { console.log("Sucess"); console.log(xml); }, error: function (xhr) { [...] read more
This is a continuation of Register implementation of a com interface ; only now I've got actual code that needs debugging. I've got two COM objects, one that implements IAudioSessionEvents and one that implements IClassFactory and produces the first object. The following code registers those objects (in accordance with my [...] read more
Bit of an odd one this, I've come back after a week off and my Exchange mailbox is completely inaccessible. The rest of the staff (20 or so) are all fine, but I cant connect to mine using either: 1. My Phone 2. My iPad 3. Outlook 2007 4. OWA [...] read more
Retrieving the COM class factory for component with CLSID {0A80A563-28AE-11D3-9CD6-00C04F8B8EF1} failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)) I've Searched for the entry in Registry I can Find Assembly with {0A80A563-28AE-11D3-9CD6-00C04F8B8EF1} at HKLM\Software\Classes\Wow6432Node\CLSID{0A80A563-28AE-11D3-9CD6-00C04F8B8EF1}\InProcServer32 I've Created Application By using embedded interop types [...] read more
I'm seeing an ambiguous error in Firebug. I don't think it's particularly related to the script I'm writing, however I don't have enough details to be able to determine that from this one error alone. Has anyone seen something similar and have a suggestion? error: > [Exception... "Component is not [...] read more
I am trying to make a simple upload file system, and this is my code , I hope you can help me, help very appreciated init.php <form method="post" action="" enctype="multipart/form-data"> <label for="file">Upload a file</label> <input type="file" name="file" id="fileArchivo" /> <input type="submit" name="submit" id="btnUpload" value="Upload file" /> </form> Ajax mootools method [...] read more
I'm having some trouble writing a JavaScript paint tool. It's a unit test and in the future will be used as a component for a larger project I'm working on. It runs in a canvas but when I try to run it, I get this error message: Error: uncaught exception: [...] read more
I'm getting this awkward error any time I try and create a dialog from Greasemonkey... I believe it has to do with the limitations of XPCNativeWrapper https://developer.mozilla.org/en/XPCNativeWrapper#Limitations_of_XPCNativeWrapper , though I am not 100% sure. None of the core jQuery methods that I've used have caused errors (append, css, submit, keydown, [...] read more
I'm having problems getting fb connect working on subdomains. the connect button comes up fine, but after it authenicates, the popup just goes blank and no action happens after that. I set the base domain for the app that facebook required for subdomains to work. Error Info: For this example [...] read more
I am getting following error from my DLL when executing following statement with ArcGIS Server 10.8: IGISServerConnection conn = new GISServerConnectionClass(); Am I doing something wrong, following are some other information which may help you understand the issue: 1. I am using .NET Framework 4.6.1 2. Marked Embed Interop Type [...] read more
I have this issue with a WinForms project using forms with complex controls. With a certain degree of complexity (e.g. controls number), WinForms can become very slow, this I know. So to get reasonable display performance, Application.VisualStyleState is disabled: Application.VisualStyleState = System.Windows.Forms.VisualStyles.VisualStyleState.NoneEnabled; Using the faster "Windows classic theme" makes the [...] read more
I'm developing an AR-App using Vuforia for model target and Zxing for QR-Code scan. I've set the project up as discriped at the Vuforia Page. While i'm in Playmode everything works fine but once I build it, it's unable to set the Frame Format despite no compile errors while building. [...] read more
I am porting a Chrome Extension to Firefox and there's a use case which requires generating a prompt to take input. A context menu is created, on page context a prompt should open whose result is passed onto a function. In Chrome it works fine, but in Firefox it doesn't. [...] read more
I'm new to UWP, and i tried instantinate MediaPlayer class. On local machine it's work fine, but on mobile emulator throws next exception: > An exception of type 'System.Runtime.InteropServices.COMException' occurred in > project.exe but was not handled in user code > > Additional information: ClassFactory cannot supply requested class (Exception [...] read more
I am currently investigating a website, and have found a curious thing. If I find a PNACL embed element in the developer console, and evaluate it in the Chrome dev console, it logs > anonymous(), with an arrow next to it that reveals it's an ordinary HTML element. However, typeof [...] read more
I am trying to automate the following scenario: I have installed a firefox plugin named FireSSH. Now, I have already manually and able to connect my remote server using the key and related parameters. I want to achieve the automation of this manual process of connecting to the remote client [...] read more
I'm trying to check for a 302 response in a Firefox addon using this rather common piece of observer code but the http-on-examine-response is almost never issued even on a page with a 302 redirect. var httpRequestObserver = { observe: function (subject, topic, data) { console.log(topic) if (topic == 'http-on-examine-response') [...] read more
I am trying to use oauth2 in Firefox, and I found this module from Google: https://github.com/mozilla/oauthorizer However, I am not sure how to use it. I tried the following according to README of the project, Components.utils.import("resource://oauthorizer/modules/oauthconsumer.js"); Yet it reports error of following: > "`Components` is not available in this context.Functionality [...] read more
I am calling an javascript variable inside autocomplete function and and making url in ajax from textbox value but it is showing undefined. function fetchRecords() { var searchStr=$("#tags").val(); var finalLink=urlformjavascriptvariable; $.ajax({ url:finalLink, type: 'GET', dataType :'jsonp', async: false, crossDomain:true, success: function(data) { var resp = data.response; var availableTags = "["; [...] read more
I tried to write a bookmarklet which depends on another script. For this my bookmarklet includes a function like this: function load(url, callback) { var script = document.createElement('script'); script.type = 'text/javascript'; script.src = url; script.async = false; script.onload = callback; document.head.appendChild(script); } The callback function is called on most pages, [...] read more
According to the MDN docs, Firefox appears to have an Assert.jsm module. Those docs say that you can use Components.utils.import("resource://testing-common/Assert.jsm"); in your extension to use it. However, when I try that I get the following error: Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXPCComponents_Utils.import]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" The docs also [...] read more
I am using Lifery 6.2 and working with AUI 2.0. The following code works on tomcat bundle. However, it does not render the jsp in the popup when the portlet is deployed on Weblogic. Has anyone come across this scenario? <portlet:renderURL var="popupSample" windowState="<%=LiferayWindowState.POP_UP.toString()%>"> <portlet:param name="mvcPath" value="/viewPopup.jsp"/> </portlet:renderURL> <script type="text/javascript"> function [...] read more
I'm currently developping a GreaseMonkey user script to provide a direct translation of some form fields inside an Intranet App. Everything goes OK until I call Google Translation API using this code : var apiurl = 'https://ajax.googleapis.com/ajax/services/language/translate?v=1.0&langpair=fr%7Cen&q='; $.getJSON(apiurl+encodeURIComponent(text)+"&callback=?",function(data){ alert('Translation Complete'); //Change text }); Here are my problems : * I'm [...] read more
Im having a problem in my C# project when referencing a x64 OCX compiled in Delphi XE2. The OCX is located and registered in the system32 directory. However when I try to reference it using Visual Studio 2010 it isn't listed in the browse references window, except when I move [...] read more
The idea of my code is create a hidden div which loads the image. When it's load event is fired draw it in the canvas. When I run the code I get this error 0x80040111 (NS_ERROR_NOT_AVAILABLE), yet I am waiting for the load event. Here is my code. HTML <div [...] read more
Before we begin, the following may be a bug, and I will be submitting a bug report as such. I am wondering if anybody else has experienced this issue, and if so, has any ideas for how I can repair the problem. I have firefox open in a single window, [...] read more
In this legacy application there is a javascript eval statement: eval(getElementText(VALUE[0])); The command that it generates is a call to another function. However, in the screen that I'm dealing with that function never gets called in Firefox. Instead FireBug generates this information: > uncaught exception: [Exception... "Component returned failure code: [...] read more
I want to get the size of the page in my extension for Firefox. Before, I used this code: var pageSize = null, cacheService = Components.classes["@mozilla.org/network/cache-service;1"].getService(Components.interfaces.nsICacheService), httpCacheSession = cacheService.createSession("HTTP", 0, true), cacheEntryDescriptor; httpCacheSession.doomEntriesIfExpired = false; cacheEntryDescriptor = httpCacheSession.openCacheEntry(content.document.location.toString().replace(/#.*$/, ""), Components.interfaces.nsICache.ACCESS_READ, false); if ( cacheEntryDescriptor ) { pageSize = Math.round(cacheEntryDescriptor.dataSize / [...] read more
Here's the problem. I wrote a Windows service in C# (Visual Studio 2012) which queries a MS SQL database and then uses FAXCOMEXLIB to send a fax. I am able to reference FAXCOMEXLIB and use the server class and fax document class. Faxes are created and sent. However when I [...] read more
So I am working on my next add-on for Firefox, however, while reading the documentation for ContextMenus, it appears that the onMessage event is never being called, here's my code: exports.main = function(){ var addonTab = require('addon-page'); var data = require('self').data; var tabs = require('tabs'); var cm = require("context-menu"); cm.Item({ [...] read more
Just wondering if anyone else has experienced this or knows why I am getting an error. I'm using javascript from within an iframe to call a parent dom element then use jQuery UI's effect core to shake it. Here is an example: $(document).ready(function(){ if ($("form").length>0) { $("form").submit(function(){ var oParentDoc = [...] read more
I'm trying to add an onclick event to a link, from inside an iframe. The link is located in the parent window of the iframe. The following code is what I'm using, but I'm getting an Exception. I'm testing on Firefox 9.0.1 function creaURL(url){ //Some code to generate the string [...] read more
Using Visual Studio 2008 I first encountered this when trying to open a standard save file dialog box in visual basic. So far I've worked around it after fruitless searching. Now I find that any action which would cause a save/open dialog (eg. ctrl-O) also fails. I've searched more and [...] read more
In my Greasemonkey script, when I obtain a handle on an HTMLImageElement I want to use with an HTML Canvas, I get the following error in Firefox's Error Console (I assume it's because it's enclosed in an XPCNativeWrapper): Error: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMCanvasRenderingContext2D.drawImage] Putting GM_log() statements throughout [...] read more
I've got a problem when implementing the jquery rotate plugin. I implement it like this: var iDirection = 90; var dImg = $("<img/>") .addClass('defect-image') .attr({src: $(this).attr('IMAGE_PATH')}) .load(function(){ //do stuff if img loads without errors }) .error(function(){ $(this).attr({src: 'img/missing.jpg' }); }) .rotate( iDirection ) .appendTo( '.image-container' ); The error I'm getting [...] read more
I am lazy loading snippets of html on our page in order to improve performance. jQuery's load method does not provide access to the full ajax api (things like error callbacks) so I created a more robust version of it. I am calling this method 3-5 times per page on [...] read more
I'm drawing an Image on the canvas using the drawImage function. This is how Im setting the src property of the image: > var img = new Image(); // Create new Image object > img.src = 'test.php?filename=myfile.jpg' and then > oCanvas.width = 600; oCanvas.height = 400; oContext.drawImage(img, 0, 0, 600, [...] read more
I am trying to draw the pictures that I fetched from Flickr through canvas and this is a snippet of my codes. for(var i=0;i<document.getElementsByClassName("canvas").length;++i) { //randomly select one photo var picinfo = photos[Math.floor(Math.random()*photos.length)]; var img = new Image(); //get the pic URL img.src = "http://farm" + picinfo.farm + ".static.flickr.com/" + [...] read more
How do ajax know whether it failed or succeeded if server side doesn't echo anything back? $.ajax(error:..,success:..) I met with this exception in my test: > uncaught exception: [Exception... "Component returned failure code: 0x80040111 > (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]" nsresult: "0x80040111 > (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: > http://localhost/script/tab.js :: anonymous :: [...] read more
Recently, I found some error about timeout. Please see below code. * jQuery timeout : 5000 ms * Servlet sleep : 10000 ms Client side Javascript $.ajaxSetup({ url: "http://localhost:8888/{mydomain}", timeout : 5000, error:function (xhr, textStatus, thrownError){ switch(xhr.status) { case 0 : $('#msg').append("0"); break; case 404: $('#msg').append("404 ERROR."); break; case 500: [...] read more
http://chrishorsnell.co.uk/emblem/rotate.php I am trying to make an image rotate. The jquery rotate plugin ( code.google.com/p/jquery-rotate/ # sorry can only do 1 hyperlink ) plugin works fine, I have got it to work on an image (see example 2), but I am trying to implement it into something else and the [...] read more
I'm using a greasemonkey script to load a page with ajax and automatically fill in the form fields inside the page and submit the form. The problem is that when the form.submit() statement is executed I get an uncaught exception error: "uncaught exception: [Exception... "Component is not available" nsresult: "0x80040111 [...] read more
I've been told to write a dialog in C# which must be instantiated from an unmanaged c++ dll. We do this in other places in our code by simply adding a managed c++ class to the C++ project, then calling the C# dll from the managed c++ class. However I'm [...] read more
I trying update my VS2013 instance to Update 5 but when click on online installer don't do anything in my %temp% setup write this log: [194C:1964][2016-06-10T15:54:58]i001: Burn v3.7.3424.0, Windows v6.1 (Build 7601: Service Pack 1), path: C:\Users\Pedro\Desktop\VS2013.5.exe, cmdline: '' [194C:1964][2016-06-10T15:54:58]e000: Error 0x80040111: Failed to load manifest as XML document. [194C:1964][2016-06-10T15:54:58]e000: [...] read more
Following the instructions from here. I installed IE7. But when I run it with Wine 1.2 with: wine iexplore.exe & I get: Explorer$ fixme:system:SetProcessDPIAware stub! fixme:heap:HeapSetInformation (nil) 1 (nil) 0 fixme:advapi:RegisterTraceGuidsW (0x5b9f97, 0x6f4b08, {3e1fd72a-c323-4574-9917-5ce9c936f78c}, 1, 0x32f414, (null), (null), 0x6f4b10,) fixme:advapi:RegisterTraceGuidsW (0x5b9f97, 0x6f4b28, {afff9c82-5be3-4205-9b3e-49e014c09a63}, 1, 0x32f414, (null), (null), 0x6f4b30,) fixme:advapi:RegisterTraceGuidsW (0x6cd15f38, [...] read more
I am trying to get Chrome running in headless mode with Python, but for some reason I only get a blank page back no matter what website I try to read. Google Chrome: v77 Chromedriver: latest version (tried older versions as well) OS: Ubuntu 18.04.3 LTS (Virtual Server) After doing [...] read more
i am trying to get a regex for an ical service on my host working without success. This is a part of the logfile: Tue Jul 23 13:55:23 2019: ical|T720] [info ] Accepted connection from [::ffff:2.3.4.5]:56450 Tue Jul 23 13:55:23 2019: [net/[::ffff:5.6|T5234] [error ] HrLogon server "http://localhost:123/" user "Admin": logon [...] read more
I have the following code that in some sporadic target machines produce the following exception: > ClassFactory cannot supply requested class (Exception from HRESULT: > 0x80040111) This is the code that produces the exception: WindowingEnvironment winEnv = WindowingEnvironment.FindAll(WindowingEnvironmentKind.Overlapped).FirstOrDefault(); if (winEnv == null) return; IReadOnlyList<DisplayRegion> regions = winEnv.GetDisplayRegions(); List<string> monitorIds = [...] read more
i recently set up required software for development for the Microsoft HoloLens(1st. gen) with the newest version of the HoloLens(1st. gen) emulator (followed the MRTK-Guide: https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/GettingStartedWithTheMRTK.html#get-the-latest-mrtk-unity-packages). I already tested some example scenes from the MRTK on the emulator and everything works as expected. However, when i test the SpatialAwarenessMeshDemo, the [...] read more
I have an extension that helps in submitting forms automatically for a process at work. We are running into a problem with dual select boxes where one option is selected and then that selection changes another field's options. Since setting an option selected property to true doesn't trigger the field's [...] read more
I have a .net (framework version 4.5.1) console application that encounters the following error when it is executed: System.Runtime.InteropServices.COMException (0x80040111): Retrieving the COM class factory for component with CLSID {F374E943-076A-40B9-813E- 0FBFB823E638} failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)). at System.RuntimeTypeHandle.CreateInstance(RuntimeType [...] read more
Issue: The Bank Account data in the form isn't saving to the Stripe API (Stripe::Account), possibly because it's not being correctly or successfully Stripe::Account.retrieve(current_user.stripe_token) Question: What in my code is causing the retrieve to not work or is the issue something else, such as not having webhooks correctly set up, [...] read more
I am getting NS_ERROR_NOT_AVAILABLE exception on firefox 60.0.2 on dialog.show() of a custom dialog. After debugging I ended up that the exception is being produced on line 85351 of ext-modern-all-debug.js: value = computedStyle.getPropertyValue(name); where the property name is opacity and it is not available inside computedStyle. [Exception... "Component is not [...] read more
I am in need to open a pop-up message when my client clicks the link to open an internal application. The message is provided in the alert function. When the user closes the alert, I want him/ her taken to the internal application, for which the link is provided in [...] read more
I'm posting this in the hope it may help others. We have been trying to create a MAPI email profile on a Windows 2008 R2 server to connect to Exchange 2013. Most posts and links will take you to the home page of MFCMAPI which is a great resource. We [...] read more
We are porting all of our project to support 64-bit platforms. All the OCX controls are migrated to target 64-bit. However, I see this error ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)) when I use an AxInterop for the OCX control and invoke EndInit() on it in [...] read more
@Test public void Workflowstatus() throws Exception { guitils.loginToPortal(userName1, password1, driver); guitils.LightiningView(driver); driver.findElement(By.linkText("ICIX")).click(); Thread.sleep(3000); // TP Group 1 TPO.create_tpGroup(driver, Group); Thread.sleep(8000); driver.findElement(By.linkText(Group)).click(); Thread.sleep(8000); // set requirements 1 driver.findElement(By.linkText("Set Requirements")).click(); Thread.sleep(3000); driver.switchTo().frame(driver.findElement(By.id("vfFrameId"))); Thread.sleep(3000); } https [https://i.stack.imgur.com/bz4Gr.png] I m getting mention error while its cliking on the "group" link as mentioned in code. [...] read more
I am trying to use the MAPI libraries from a WCF service application under the LocalService identity, but keep on getting the 0x80040111 MAPI_E_LOGON_FAILED error. As suggested by https://support.microsoft.com/en-us/kb/181739, I have enabled Log on locally for the given user. Do you know where could this be coming from? read more
In our production environment we are installing a Web-based product. The Operating System is Centos 6.5. For this product, we have installed Firefox-33 and Flash Player 11.2.202.406-release.x86_64. The problem is that Firefox starts, but it does not detect Flash Player Plugin. The following error message is reported when we run [...] read more
After connecting to Exchange on a different domain using: rdoSession = RedemptionLoader.new_RDOSession(); rdoSession.LogonHostedExchangeMailbox(Settings.Default.ExchangeServer, Settings.Default.ExchangeUserName, Settings.Default.ExchangePassword); I want to get the default inbox folder: RDOFolder folder = rdoSession.GetDefaultFolder(rdoDefaultFolders.olFolderInbox); But I get this error: System.Runtime.InteropServices.COMException (0x80040111): Error in IMAPISession::OpenMsgStore: MAPI_E_LOGON_FAILED Make sure your code runs under the Windows user identity that has [...] read more
I am working on MVC framework and posting my form by Ajax.BeginForm. No Doubt everything works very well but I have applied a ajax loader/Processing that starts work OnBegin and stops on this event OnComplete. So, when this function works after getting success from server::: function MessageConfirmation(Json) { if ($("#Id").val() [...] read more
I used the following code to save the div content as imgae: function saveDiv() { var canvas = document.getElementById("canvas"); var ctx = canvas.getContext("2d"); var mydiv = $(".mydivclass").html(); var data = "data:image/svg+xml," + "<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'>" + "<foreignObject width='100%' height='100%'>" + mydiv + "</foreignObject>" + "</svg>"; var img = new [...] read more
I have a JavaScript array which contains a number of images. The images have all been taken from a hidden section in my HTML using lines such as sources[0] = document.getElementById("building").src The reason I am getting the images from the HTML rather than directly from the source is because I [...] read more
I can't understand what is the reason that makes these 2 scripts written in javascript behave in different ways. Script 1 var w; function f1() { w = window.open("pg1.html","wind","left=0,top=0,width=480,height=480"); } function f2() { w.close(); } function f3() { w.open("pg1.html","wind","left=0,top=0,width=480,height=480"); } Script 2 function f() { var w = window.open("pg1.html","wind","left=0,top=0,width=480,height=480"); w.close(); [...] read more
I have the following function, which I'm using to load images from the hidden section in my HTML into a JavaScript array: window.onload = function(){ console.log("src " + document.getElementById("building").src); var sources = {}; sources[0] = document.getElementById("building").src, sources[1] = document.getElementById("chair").src, //sources[2] = document.getElementById("drink").src loadImages(sources, drawImage); }; Once the images have been [...] read more
I am working on a project using HTML5 and JavaScript. I am loading an image from the C: drive like this: window.onload = function() { var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); var imageObj = new Image(); imageObj.onload = function() { context.drawImage(imageObj, 69, 50); }; imageObj.src = "file:///C:/Images/Demo.jpg"; }; [...] read more
I want to run a function in TruClient (Firefox) every 0.1 seconds using window.setTimeout: function foobar(delay_accumulator){ if(delay_accumulator >= 100)//10 seconds return; //do something window.setTimeout(function() { foobar(delay_accumulator+1); }, 100); } foobar(0); However, the step fails, giving the following error: > ** 2: Evaluate JavaScript code function foobar(delay_accumula...OBAR"); > foobar(0); ** failed [...] read more
I am posting on the user`s wall using the FB Graph api my function to post on wall is as follow: function PostToWall() { var mymessage = 'my message'; var mypic = 'http://myapp/a.jpg'; var mylink = 'http://www.myapp.com'; var myname = 'myApp'; var mydesc = 'my desc .'; FB.api('/me/feed', 'post', { [...] read more
I am trying to model a chat application on a browser(Firefox).Here I am trying to send the char inserted into a text area on one machine to another client and update its text area. I am trying to send the key pressed on the client using AJAX calls. Below is [...] read more
I'm trying to click a button on a page and I can get the length of the object no problem but when I try to click the item I get this error: Error: uncaught exception: [Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource://greasemonkey/runScript.js :: <TOP_LEVEL> [...] read more
I have a page has an anchor href to the home page and calls ajax on a user request. If I open the page and click on the link to go to the home page it returns to the home page without error, but if I make the page call [...] read more
I've noticed that a greasemonkey script I wrote a while back is no longer working, maybe due to me using Firefox 4 now (although I don't have an earlier version of Firefox on hand with which I could verify this theory). It does the following: myelm.addEventListener('scroll', fonscroll, false); This used [...] read more
I am putting together an Ajax request with JQuery (1.5) on a Django (1.2.5) site. I am working on the Dev Server currently because I plan on doing demonstrations before a full production roll out. The javascript code in the template: function postTest() { $.post("/get_elections", { csrfmiddlewaretoken: $('input[name=csrfmiddlewaretoken]').val() }, alertResult); [...] read more
Calling SetThemeAppProperties with argument which has flag STAP_ALLOW_CONTROLS unset causes CoCreateInstance for Common Dialogs (or at list File Open Dialog, CLSID_FileOpenDialog) to return error 0x80040111. Sample code is following: HRESULT hResult; CComPtr< IFileOpenDialog > pFileOpenInterface1; CComPtr< IFileOpenDialog > pFileOpenInterface2; hResult = ::CoCreateInstance( CLSID_FileOpenDialog, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS( &pFileOpenInterface1 ) ); ::SetThemeAppProperties( [...] read more
Here's what I'm trying to do... It's quite simple and obviously there must be something wrong in what I'm doing but I can't see it, hope you can help me... I have a Vertical Jquery Menu (using accordions) that I want to remember its state. So, I have this code [...] read more
I'm one of the developers of TryAgain, a Firefox add-on, that displays a custom error page when a website fails to load. It essentially replaces Firefox's netError.xhtml with a customized version. In order to execute JavaScript from the extension code within the netError.xhtml, I've added a XUL <command> element to [...] read more
One of my guys had a problem when instantiating InternetExplorer.Application from VB6 and VBScript. It turned out that he (but no one else on the team) had the following entry in the registry apart from the expected (and working) LocalServer32 entry which creates an instance out-of-process using iexplore.exe: [HKEY_CLASSES_ROOT\CLSID{0002DF01-0000-0000-C000-000000000046}\InProcServer32] @="C:\WINDOWS\system32\ieaksie.dll" [...] read more
Error: uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMCanvasRenderingContext2D.drawImage]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://127.0.11.1/test/canvas5_b.php :: setup :: line 27" data: no] function setup() { var e = document.getElementById("mycanvas"); var ctx = e.getContext('2d'); var meter = new Image(); meter.src = "meter.jpg"; var meter_bar = new Image(); [...] read more
i got following part of one of functions if(continiueSend) { $.ajax ({ type: "POST", url: "mailer.php", data: "somestestdata", timeout: 5000, success: function(a) { alert(a); }, error: function (xhr, ajaxOptions, thrownError) { alert(xhr.status); alert(thrownError); } }); } And it works great when server is ok, requested data are sent in less [...] read more
Can anyone help me with the script to refresh the page once . I am already using window.history.forward(1); but it gives me a wierd exception in the console . `Error: uncaught exception: [Exception... "prompt aborted by user" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource:///components/nsPrompter.js :: openTabPrompt :: line 457" [...] read more
Using this javascript through jssh compiled and built for the new firefox 4.0 beta 1 returns an odd message. Here is the code (sorry if it's a little messy) In summary the code checks all frames of a firefox window which is a test page of our unit tests for [...] read more
I'm having an issue trying to call a web service from stored procedure. sp_OACreate 'Msxml2.ServerXMLHTTP' The error code is 0x80040111 - ClassFactory cannot supply requested class The source returned when I run sp_OAGetErrorInfo is msxml3.dll I found msxml3.dll in \Windows\System32\ I have tried to register this dll using regsvr32.exe with [...] read more