List Info

Thread: XML files




XML files
user name
2006-10-02 09:05:07
Hi,

is it possible to write GM scripts that are executed when FF
displays an XML
file?

Best regards,
Thomas


_______________________________________________
Greasemonkey mailing list
Greasemonkeymozdev.org
http:
//mozdev.org/mailman/listinfo/greasemonkey
XML files
user name
2006-10-02 09:34:51
thg2karate-muellheim.de wrote:
> Hi,
>
> is it possible to write GM scripts that are executed
when FF displays an XML
> file?
>
> Best regards,
> Thomas
>   
absolutely. javascript has several ways to find out what
sort of 
document it is (maybe doctype as in php, you could look at
file 
extension, see if there is a document identifying tag) and
if that type 
seems to be xml, the code is executed. an if(){}.
_______________________________________________
Greasemonkey mailing list
Greasemonkeymozdev.org
http:
//mozdev.org/mailman/listinfo/greasemonkey
XML files
user name
2006-10-02 17:11:15
>> is it possible to write GM scripts that are
executed when FF displays an XML
>> file?
>>
> absolutely.

I just found out what my problem is: It seems to work only
if the XML 
does *not* reference an XSL file. Is this a bug or a feature
(TM)? 

Best regards,
Thomas




_______________________________________________
Greasemonkey mailing list
Greasemonkeymozdev.org
http:
//mozdev.org/mailman/listinfo/greasemonkey
XML files
user name
2006-10-02 20:49:27
Apparently it is a bug in mozilla core:

h
ttps://bugzilla.mozilla.org/show_bug.cgi?id=325891

This was already the subject of some discussion in this list
a couple
of times in the past

http://www.mozdev.org/pipermail/greasemonkey/
2006-March/007981.html
http://www.mozdev.org/pipermail/greasemonkey
/2006-August/009219.html

Incidentally, this would provide a way for stopping GM in a
site(the
only one I know of):
http://mozdev.org/pipermail/greasemonkey/2006-Mar
ch/007991.html

2006/10/2, Thomas Gilgin <thg2karate-muellheim.de>:
> >> is it possible to write GM scripts that are
executed when FF displays an XML
> >> file?
> >>
> > absolutely.
>
> I just found out what my problem is: It seems to work
only if the XML
> does *not* reference an XSL file. Is this a bug or a
feature (TM)? 
>
> Best regards,
> Thomas
>
>
>
>
>
_______________________________________________Greasemonkey
mailing list
_______________________________________________
Greasemonkey mailing list
Greasemonkeymozdev.org
http:
//mozdev.org/mailman/listinfo/greasemonkey
XML files
user name
2006-10-04 12:59:58
> This was already the subject of some discussion in this
list a couple
> of times in the past

Oops, I'm sorry.


> http://www.mozdev.org/pipermail/greasemonkey/
2006-March/007981.html
> http://www.mozdev.org/pipermail/greasemonkey
/2006-August/009219.html

Thanks!

Best regards,
Thomas


_______________________________________________
Greasemonkey mailing list
Greasemonkeymozdev.org
http:
//mozdev.org/mailman/listinfo/greasemonkey
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )