Posts Tagged ‘FireFox’

about:config trick for window.close() In Firefox

Wednesday, July 7th, 2010
This article is from my exp. on turning on the configuration in FF after each release.The script window.close() won’t work after every release from mozilla. The reason i found was “dom.allow_scripts_to_close_windows” in all.js will be set to false by default. I was trying to do it in the hard way,i.e Go to the location of all.js and change it manually. But i found a another easy method we can call the about:config page in FireFox, we can toggle it easier. The following shows how to do it.
Enter about:config in location bar
Openingabtcnfg
Shows all the options available
options
Search for dom.allow_script
allow_scripts
Highlight the entry dom.allow_scripts_to_close_windows and double click to toggle to true
Then write a simple script to check window.close()
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Migrating FF3.0.11 Add-on into FF3.5

Sunday, September 20th, 2009
The recent Update from Mozilla for FF, made me to go crazy, Add-ons in my FF3.0.11 are not working in my new FF.Here is the work around, yeahhh ;)
When you are trying to install the extension, it may you give you the following error.
Install Failed
Download the XPI Files, For that You can follow this step.
saveas
Once you download the xpi file, rename the file extension with .zip.Open with Winzip/7Zip/Winrar.You will get the following structure.
struct
Open the install.rdf and change the em:maxVersion tag as follows
			<em:targetApplication>
				<Description>
					<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
					<em:minVersion>3.0b1</em:minVersion>
					<em:maxVersion>3.5.*</em:maxVersion>
				</Description>
			</em:targetApplication>
		
When you are saving and closing your editor and go back to Winzip, You”ll be getting the following prompt. Click on “Yes”
conf
Then rename your file to .xpi extension and just drag the file into FF. Then you”ll get the add-on installed.If you get any signing error, delete the meta-inf folder from the XPI file.
Have g8t time!!!!!
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

getElementsByTagName

Monday, March 2nd, 2009
All we know that getElementsByTagName() a DOM function in Javascript is used to get all the child elements for an particular element.Consider this following scenario I have an table with the id as “parentTable”, which has many child tables in it. so my structure will be like this,
			<table id='parentTable'>
				<tr>
					<td>
						<table id='childTable1'>
							<tr>
								<td>My First Article</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		
If i’m going to use parentTable.getElementByTagName(”tr”), i’ll be getting the count as 2, Which is what i’m not looking for. I wanted to get the count as 1.Guys please give some alternative suggesstion.
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Get Adobe Flash player