Call page function from firefox extension
DUPLICATE: how-do-i-execute-a-page-defined-javascript-function-from-a-firefox-extension I'm really need call page-defined JS function from my FF extension. But i'm take error "function * is no defined" ...
DUPLICATE: how-do-i-execute-a-page-defined-javascript-function-from-a-firefox-extension I'm really need call page-defined JS function from my FF extension. But i'm take error "function * is no defined" ...
If I click on the image it should be changed the color of the part of the image.Then I want to replace the image.Can it be done using javasript? Pls help me. ...
Hello, Is it possible to unfocus a textarea. I couldnt find any $('#textarea').unfocus()? Thanks ...
Hi there can anyone help, i have a developed a function that when called should open a window but it returns NULL. If i do the opening window in the original javascript function it works. I suppose its the original function passes control to the other function but for some reason this doesn't work.. Here is my original function, this b...
phew! That was a long title. I'm reading WROX' book on Professional JavaScript for web developers and I came across this sample code, and I was just wondering if that was best practice: function convertToArray(nodes) { array = new Array(); for (var i=0, len=nodes.length; i < len; i++) { array.push(nodes[i]); } return ...
Is there a way to take the current target of an event with ie 7 or 8? With other browser (firefox, opera, chrome etc.) we can use event.currentTarget or also we can use the 'this' kewyword to refer the object received the event. But in explorer we don't have currentTarget property and the 'this' refers to window object! So how can I d...
Hi there, Is there anyway to calling a function from another function .. little hard to explain. heres in example. One function loads html page and when ready it calls the original function. I think i need to pass in a reference but unsure how to do this... if i set it to "this" - it doesn't seem to work ANy ideas? order.prototype.p...
Hello I have been asked to write an app which screen scrapes info from an intranet web page and presents the certain info from it in a nice easy to view format. The web page is a real mess and requires the user to click on half a dozen icons to discover if an ordered item has arrived or has been receipted. As you can imagine users find...
When a user selects a file in a web page I want to be able to extract just the filename. I did try str.search function but it seems to fail when the file name is something like this: c:\uploads\ilike.this.file.jpg. How can we extract just the file name without extension? ...
Can any body give me some sample source code showing how to connect to a SQL server 2005 database from javascript locally.I am learning web programming on my desktop.Or do I need to use any other scripting language. Suggest me some alternatives if u have. (but I am now trying to do it with javascript).Thanks in advance.My sql server is l...
HI, I have multiple checkboxes in my report. I am using two buttons Select All and Deselect All for selecting all checkboxes and deselecting all checkboxes. But am not able to pass the checked values to another report. Only if I manually select the checkboxes then only those values are getting passed in the report. Can anyone help me o...
I am trying to print a page using javascript, it works fine but the issue comes with a page havign form inside it. If we print the form values being printed are fine but what we get is html controls (like input ,dropdown) are also being printed. Can some one have any other idea except server side processing ...
Hi there. If I have a page with a form (imagine a simple one with just TextBoxes and a submit button) and I want to allow the user to dinamiccally add more TextBoxes to the form via javascript, what is the best way to handle the request server side? Example: I have a page rendered like the following : <input type = "text" id = "control...
Disclaimer: As it says in the title, this is targeted at Internet Explorer only. That's a perk of doing internal development - it makes life a little easier when dealing with stuff like this. Disclaimer 2: I can reproduce this in IE7 and IE6. I have not tried IE8, as this is not available for us in our corporate environment. My goal is...
I have created an ActiveX dll using VB6 and packaged it using the Package & Deployment Wizard which has resulted in a cab file and a demo HTML page. This ActiveX dll contains a simgle method that returns a string and accepts no arguments. The trouble I'm having is that when I call the method I always get a "Object does not support thi...
I wanted to check whether the variable is defined or not. eg alert( x ); Throws a not defined error How can I catch this error? ...
Ok, so here's the deal: Currently we have a page that calls a popup window and there is a link in that popup that redirects the parent page to another location. That all works just fine. CURRENT: PRODUCT PAGE <--> POPUP However, I am creating a new feature where the main page calls a new child window for product details. That produc...
I'm writing an application that utilizes Javascript timouts and intervals to update the page, is there a way to see how many intervals are setup? I want to make sure that I'm not accidentally going to kill the browser by having hundreds of intervals setup. is this even an issue? ...
In my recent project, I am using the click event like so: $(".nav-item").click(function(evt){ do something here... }) Inside the event handler function, I want to look at the children of the event target using jQuery selectors. Something like $(event.target + " > .subitem").html() assuming .subitem was a childnode with a class ...
I am using an activeX control for the PDF-XChange Viewer software. Their support team gave me the following code sample: <html> <head> <title>PDF-XChange Viewer ActiveX test...</title> <script language="VBScript"> Sub btnGetProperty_OnClick() PXCV.OpenDocument "/sandpit/appsheet/faxcentre2/Faxes/1234-56789-abc-123-3.pdf", 0...