Yahoo! 360° News | Beta Feedback
Start your own Yahoo! 360° page

Yogish

Top Page  |  Blog  |  Feeds  |  Friends  |  Lists

  • School: Canara High School

Add

Yogish is not connected to you in Yahoo! 360°.

Last updated Fri Sep 30, 2005 Member since February 2005

Its all happening here...--> Click here

1 - 5 of 36 First | < Prev | Next > | Last

My World! Our World! Everyones World! Full Post View | List View

Everything you want to know about this world!

XUL label element trick
If you have 2 label elements next to each other, it always lead to a gap in between. This is because of the default CSS style applied to label element. The gap between them is usually 11 pixels. The default style applied to label element is

margin: 1px 5px 2px 6px;

That is 5px to the right and 6px to the left.

To remove the space beween 2 adjacent label element one need override the existing style by doing the following:

<hbox>
  <label style="margin-right: 0px;" value="Hello "/>
  <label style="margin-left: 0px;" value="World!"/>
</hbox>


XUL does not support native anchor element. One can get the link in the text via html anchor tag (a). I advice against using any html elements within XUL. Sometimes I use it for bullet points (ul and li). There is CSS style I can apply to the existing elements to get bullet list. But I am lazy to do so... :-)

To get the link effect in XUL without using html anchor element do the following:

1. Specify global css file as the stylehseet in the extension's .xul or .xml file.

   <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

2. Set the class attribute to text-link.

   <label class="text-link" value="I am a link now!"/>

This trick works only if the label element's value attribute is used for the text of the label. If you include text as the child of the label element, text-link class has no effect.

  <label class="text-link">I am a link now!</label>

The above example does not work.

Wednesday August 16, 2006 - 06:05pm (PDT) Permanent Link | 0 Comments
Some useful functions for firefox extensions
Include the following lines in your .xul file.

<script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
<script type="application/x-javascript" src="chrome://browser/content/browser.js"/>

With these 2 scripts included in your extension, you will get many useful functions for FREE.

I found 2 functions useful for me for the current extension I am working on (Secret project... ).

whereToOpenLink(event): This function require an event object. Every event in firefox has an associated event object. For example,

  <menuitem label="Click Me!" oncommand="whereToOpenLink(event);"/>

openUILinkIn(url, browserTarget): This function open the given url in the browserTarget. browserTarget is the return value from whereToOpenLink function.

<menuitem label="Click Me!" oncommand="openUILinkIn('http://www.yahoo.com', whereToOpenLink(event));"/>

openPreferences(paneId): This function open the preferences window with paneId as the default tab. By default firefox has the following pane Ids.

  • paneGeneral
  • panePrivacy
  • paneContent
  • paneTabs
  • paneDownloads
  • paneAdvanced
For example,

 <button label="Open Advanced Preferences" oncommand="openPreferences('paneAdvanced');"/>

I will post more functions as and when I find out new ones.

Till then, happy exntensioning....

Wednesday August 16, 2006 - 05:47pm (PDT) Permanent Link | 0 Comments
Spell check for Yahoo! 360 blog
The very basic feature like spell check is missing in Yahoo! 360 blog. Why? Is Yahoo! 360 team working on adding spell check to blog?  
Friday July 21, 2006 - 12:51pm (PDT) Permanent Link | 0 Comments
Indian answer to terror...
Israel -
POPULATION: 7 million (less than half of Mumbai)
SIZE: Less than that of Kerala
ACT OF VIOLENCE AGAINST IT: 2 soldiers kidnapped by Hezbolla, 1 by Hamas
RETALIATORY ACTION : war on Lebanon and Gaza

India -
POPULATION: 1 billion+
SIZE: 6th largest in the world
ACT OF VIOLENCE AGAINST IT: 200+ dead in Mumbai blast, 8 in Kashmir
RETALIATORY ACTION: a speech by our Prime Minister and condolence messages...

I am not saying that India should wage war against the country which is sponsoring the this terrorists. Indian government can do much more than speech and condolence messages. Indian army should cross the line of control (LOC) and dismantle all the known terrorist training camps.

Over the weekend some one told me that India should give up Kashmir and be done with this issue. What if India give up Kahsmir? Will this terrorism stop. No.. I don't think so. If only Kashmir is their goal, they would have concentrated more in only that part. But they are not interested on Kashmir. They are interested in inflicting harm on innocent people. Only way to stop them is to destroy them from the root.

Let peace prevail...

Friday July 21, 2006 - 12:50pm (PDT) Permanent Link | 0 Comments
Omen - The bulk folder
Omen - The bulk folder magnify
Today my Yahoo! Mail bulk folder is owned by an evil (666)
Tuesday July 18, 2006 - 09:17pm (PDT) Permanent Link | 0 Comments

Add My World! Our World! Everyones World! to your personalized My Yahoo! page:

Add to My Yahoo!RSS About My Yahoo! & RSS
1 - 5 of 36 First | < Prev | Next > | Last

HIGHLIGHTED POSTS