Opening Page In Firefox After Installing The Addon?
Jul 5, 2011
My am trying to open my home page after the firefox restarts for the first time after installation.For this i am adding the event handler on load page and checks where this event is executed for the first time or not.
But my problem is how to open the page in new tab when the firefox get started. I use
`window.open("https://www.xyz.com/");`
but that opens the page in new window that might even be open in internet explorer.So is there any way to open the page in new tab in same window which is going to be open.
I'm writing a firefox addon to readout the facebook-privacysettings of an user.
[url]
There are a lot of "Edit settings" which open a dialog like this:
The HTML code looks like this:
My solution idea was to fake the ajax call like this:
I got this parameter from Firebug, and i get the same answer as the "manual"-click. It's javascript code, beginning with "for...". however the dialog doesn't open, the DOM node isn't added and i get the alert "Error! Status = 200 OK"
So I just figured: why the comlicated way with ajax, can't I somehow fake the real manual click? If someone knows a way with ajax or faking the click?
Unfortunately, if a user opens the link in a new tab (e.g right click->open in new tab), my onLinkClick function does NOT get called. This happens with Firefox (various versions, including the latest one - 1.5.0.1).
Does anyone know if there is a way to work around that and catch even the "open in new tab" clicks/events?
I'm looking for a little help/feedback regarding using a plugin called jqPrint. I haven't used jQuery extensively, and I am new to plugins, so please forgive any novice errors.
First of all, i see on the source page for the plugin [URL].. that it is made for 1.3.x. I assume this does not mean that mean it is incompatible with 1.4.2, which is what my project uses. I have a script with the source code, and I can access a test function. However, I'm running into several problems when trying to to use the primary function of the script.
[Code]...
I'm not quite sure what I'm doing wrong. The script is set up so I can access a test function, but the source function does not work. I would think anyone using the author's script should not need to edit it, but I can't figure out why my project cant' find the jqprint function.
I am a new to jQuery and am trying to install the TimePicker plugins. [URL]. I have downloaded the files and uploaded them to my site. The code I have looks like this: In Header: <script src="[URL]" type="text/javascript"></script> <script src="[URL]" type="text/javascript"></script> <script src="scripts/jquery-ui-timepicker-0.2.9/jquery.ui.timepicker.js"></script> $('#timepicker').timepicker(); In body: <input id="timepicker" type="text" name="leave">
The little addon you have for user registration where they have to click the box serveral times - is that something you made, or is that something you found?
It would be awesome if you guys would let me convert that into a drupal module - as my site has been getting hit by several spammers, and im not a fan of captcha as much as I am your module.
I am designing a tabless web page.The page contains 2 div sections.One is for menus and other is to display the contents of the page by clicking the menus.I don't want to use frames and iframes.Is it possible to do it using the div tag? The code I had used is show below.
Im having problem with this slideshow I wanna do. Im a beginner and dont really know how to do, when I want to check the small pictures, and then open a bigger version of them in another page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
I've been trying to edit this script but it continues to open my slideshow images into new tabs. I would like that the images on the slideshows when clicked they will open in the same tab. How can I do that? Here is the script I am using
This script (put on your browser shortcuts bar) allows you to highlight any word on the page you are currently browsing, and on clicking, be taken to the wikipedia entry for that term:
The problem is, i would like it to open the entry in a new page or tab, but i cant work out how to.
javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("You didn't select any text. Enter a search phrase:", ""); if (q!=null) location="http://en.wikipedia.org/wiki/" + escape(q).replace(/ /g, "+"); void 0
I want to create a new window with a page loaded inside and use javascript in the calling page to examine the contents of the new page (after waiting a couple of seconds) and based on what the new page holds branch off in different directions. Its almost a bit like page scraping but client side on my PC through the browser.
How would I accomplish this, I know the basics of javascript (very basics) and thought something along the lines of this might work:
Code: <html> <script language="javascript"> function openwindow() {
[Code]....
PS: That code above was just me trying to access the page thats loaded up and ALERT it up on screen
I've seent his done on a couple websites.. alot on cargo type portfolios but havent been able to figure out how its done. I tried looking at this site here .. if you click any of the thumbnails u can see what I mean.. I been looking for this feature for my own site since it would get rid of the modal window im usin now and I can place more info into something like that.
I have two questions. I have a html page has two "data-role=page" objects. When I open that page by clicking on a link, the second page is displayed rather than the first. If I add "rel=external" in the link, the first page shows up but the back button is missing. Is there any way to ensure the first page shows up and the back button is visible.
The second, how can I call $("#pageObject").dialog(). I tried this on a link, nothing happens. Can't I use I<a href="#pageObject" data-rel="dialog">Open dialog</a>. This does not seem to work for internal pages. Is there a method to open internal pages as popups?
my sites all resize for users resolution by checking existing cookies but if i change my res then refresh its all wrong. I wrote a program to overwrite cookies on opening page but are there drawbacks ? if cookies havent expired do they get rewritten (like at startup) to keep them fresh? if so when(in the case of res)? if i write short term cookies will that cause problems for others?.
I've seent his done on a couple websites.. alot on cargo type portfolios but havent been able to figure out how its done. I tried looking at this site here .. if you click any of the thumbnails u can see what I mean.. I been looking for this feature for my own site since it would get rid of the modal window im usin now and I can place more info into something like that. here's a site with something similar, but it doesnt work with javascript disabled. What would be the best way to do somethin like this?
I am working on an internal work site. In the site I have a text box and on entering a specific code I want it to open a new page that links to a document that has the same name. ie. if user types red, I want it to find the document red.html in a folder. To make my colleagues job easier, I want the text box to autocomplete. Below is a section of the code I plan to use:
Code: <script> var arrValues = ["red", "orange", "yellow", "green", "blue", "indigo", "violet", "brown"]; </script></head><body> <h2>Autocomplete Textbox Example</h2> <p>Type in a color in lowercase:<br /> <input type="text" value="" id="txt1" onkeypress="return autocomplete(this, event, arrValues)" /></p> </body> </html>
How to modify this to: 1) Link the text entered to the document I want opened 2) Open this document upon 'enter' pressed
is there any way I can stop document.write from outputting info to a new page I would prefer to have it shown in a textarea.
Info from an array that is suppose to display in a text area when button is clicked and when another button is clicked it is suppose to show some other info. But what happens is the first info displays in textarea for a few seconds and then the second info is displayed but on a new page and not the textarea where I want it to go
I have marked code within the code // I want this specific code to be displayed second but I know its in the wrong spot.
Here is the code
[CODE] function show() { var myArray = new Array();
I have url links in an Access Database which open different info screens depending on the record. I want to include some code in the html which isn't blocked by browsers, but restricts the html code to an initial window of approx 800x600, but can be resized, but importantly the database screen doesn't 'get lost' underneath the browser window.
I have a button in my site which when clicked, will set the current page to be the home page for the user. I use the following code:
var hiddenLink = document.getElementById('dummyLink'); hiddenLink.style.behavior='url(#default#homepage)' hiddenLink.setHomePage('http://www.123.com'); somewhere in my <body>, I have the following link definition:
<a href="#" id="'dummyLink'" style="display:none"></a> Now, this solution works fine for IE But I need to have a working solution for Firefox and Opera too. Does anyone know how to solve this in these 2 browers?