Henrk wrote:
> I try to use the view-source command to see if there was any way to
> identify a certain area of a web-site. It seems to me that its
> connected to "class" (class="name of textfield")
> It would be great if someone could make a code-template which could be
> reproduced for other sites by substituting with other class names
> (found in view-source) in a site.
you could try something like this...
CmdUtils.CreateCommand({
name: "my-class-command",
preview: function ( pblock ) {
doc = Application.activeWindow.activeTab.document;
var someclass = doc.getElementsByClassName('my-class');
if (someclass.length < 1) {
pblock.innerHTML ="name of my-class not found do something";
}else{
pblock.innerHTML ="name of my-class found do something";
}
},
})
Its a simple command template I use, its a bit hacky but its a good
place to start to experiment if a class name is found or not, paste it
into the command editor ;-)
--
Martin McEvoy
http://weborganics.co.uk/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---