HJ wrote:
Seems like a registered component, so why doesn't it work?
Has something been changed recently that I should know?
Is there some invalid code in it?

This probably doesn't explain your problem, but getClassObject should accept nsISupports as well as nsIFactory, and mzContentNotifier probably needs neither nsIObserver nor nsIFactory.
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

From [EMAIL PROTECTED] Wed Apr 19 15:03:25 2006
Return-path: <[EMAIL PROTECTED]>
Envelope-to: [email protected]
Delivery-date: Wed, 19 Apr 2006 15:03:25 -0700
Received: from exprod5mx144.postini.com ([64.18.0.176] helo=psmtp.com)
        by mail-archive.com with smtp (Exim 4.50)
        id 1FWKlh-0003WT-MK
        for [email protected]; Wed, 19 Apr 2006 15:03:25 -0700
Received: from source ([70.85.225.26]) (using TLSv1) by 
exprod5mx144.postini.com ([64.18.4.10]) with SMTP;
        Wed, 19 Apr 2006 18:03:25 EDT
Received: (qmail 9935 invoked from network); 19 Apr 2006 19:03:06 -0300
Received: from localhost (HELO trollmedia.servermatrix.com) ([EMAIL PROTECTED])
 by localhost with SMTP; 19 Apr 2006 19:03:06 -0300
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 9721 invoked from network); 19 Apr 2006 19:03:03 -0300
Received: from xproxy.gmail.com (66.249.82.194)
        by theplanet-70-85-225-30.troll.com.br with SMTP;
        19 Apr 2006 19:03:03 -0300
Received: by xproxy.gmail.com with SMTP id i29so823857wxd
        for <[email protected]>; Wed, 19 Apr 2006 15:02:58 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
        
h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
        
b=qNaAkgLw1ynR6mvR5k42Zo6sNulEeu8N9Yo1m/aKM2dcOFkW01deUCYso/o39E4V4Urj95iL1zZIPzNWlIBLbn8tYnVoePorf3QY9VKx5h2Ac2yUe4B3clM0MWJwYAscbwmhFvmCBmRFEASiN4mfltc+q/Pj4/rHpbmlOg+31Yg=
Received: by 10.70.46.11 with SMTP id t11mr149679wxt;
        Wed, 19 Apr 2006 15:02:58 -0700 (PDT)
Received: by 10.70.22.10 with HTTP; Wed, 19 Apr 2006 15:02:58 -0700 (PDT)
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 19 Apr 2006 19:02:58 -0300
From: "Marco Antonio C. Santos" <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [cf-brasil] - Validando caracteres
In-Reply-To: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_17603_10548538.1145484178575"
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
X-BeenThere: [email protected]
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: [email protected]
List-Id: CF-Brasil <cf-brasil.coldfusion.org.br>
List-Unsubscribe: <http://lists.coldfusion.org.br/mailman/listinfo/cf-brasil>, <mailto:[EMAIL PROTECTED]>
List-Archive: <http://lists.coldfusion.org.br/pipermail/cf-brasil>
List-Post: <mailto:[email protected]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <http://lists.coldfusion.org.br/mailman/listinfo/cf-brasil>,
        <mailto:[EMAIL PROTECTED]>
Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
X-pstn-levels:     (S:31.43341/99.90000 R:95.9108 P:95.9108 M:97.0232 C:98.7678 
)
X-pstn-settings: 3 (1.0000:1.0000) s gt3 gt2 gt1 r p m c X-pstn-addresses: from <[EMAIL PROTECTED]> [294/10]
------=_Part_17603_10548538.1145484178575
Content-Type: text/plain; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hilso,

voc=EA pode tentar essa UDF:

http://www.cflib.org/udf.cfm?ID=3D565

Com um c=F3digo simples como isso:

<cfscript>
/**
* Escapes all regular expression *&quot;*special characters*&quot;*
in a string with *&quot;*\*&quot;*.
*
* @param theString =09 The string to format. (Required)
* @return Returns a string.
* @author Shawn Seley ([EMAIL PROTECTED])
* @version 1, June 26, 2002
*/
function REEscape(theString){
=09var special_char_list      =3D "\,+,*,?,.,[,],^,$,(,),{,},|,-";
=09var esc_special_char_list  =3D "\\,\+,\*,\?,\.,\[,\],\^,\$,\(,\),\{,\},\=
|,\-";
=09return ReplaceList(theString, special_char_list, esc_special_char_list);
}
</cfscript>

[]s

Marco

On 4/19/06, Wilson Rocha <[EMAIL PROTECTED]> wrote:

 Fala quase char=E1....



Voc=EA pode fazer essa valida=E7=E3o de duas formas. Uma server-side (CF)=
e
outra client-side (JavaScript)



Para as duas formas voc=EA pode usar express=F5es regulares.



Aqui vai uma p=E1gina que fala express=F5es regulares usando CF.

http://www.activsoftware.com/resources/discussion/messages.cfm?id=3D1036



E outra usando JavaScript:

http://www.imasters.com.br/artigo/2515



abra=E7os



Wilson



---

*Wilson Dias da Rocha Neto* ([EMAIL PROTECTED])

Analista de Sistemas

Coordena=E7=E3o Geral de Moderniza=E7=E3o e Informa=E7=E3o =96 CGMOI

Superintend=EAncia da Zona Franca de Manaus =96 Suframa

*Website:* http://www.suframa.gov.br

*MSN:* [EMAIL PROTECTED]

*ICQ: *3918671

*Telefone:* (92) 3614-7214
  ------------------------------

*De:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *Em nome de *Hilso Vasques Junior
*Enviada em:* quarta-feira, 19 de abril de 2006 10:06
*Para:* CF Brasil
*Assunto:* [cf-brasil] - Validando caracteres



Bom dia galera,



Estou com uma lista que vai ser gerada apartir do meu  banco para um
arquivo XML.



Preciso filtrar alguns caracteres do banco, por exemplo, vou ter dois
campos vindo, Nome e E-mail



No nome preciso retirar todos os campos que poderiam dar erro ao enviar
e-mail, como por exemplo, (, ' " / < >) e no e-mail verificar se ele =E9
v=E1lido, ou seja, se tem @ se n=E3o tem / acentos e etc.



A pergunta, qual fun=E7=E3o no cold que me permite fazer esse filtro?



Valeu



Abra=E7o





Junior


------=_Part_17603_10548538.1145484178575
Content-Type: text/html; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hilso,<br><br>voc=EA pode tentar essa UDF:<br><br><a href=3D"http://www.cfl=
ib.org/udf.cfm?ID=3D565">http://www.cflib.org/udf.cfm?ID=3D565</a><br><br>C=
om um c=F3digo simples como isso:<br><br><pre><font color=3D"MAROON">&lt;cf=
script&gt;
</font><br>/**<br> * Escapes all regular expression <b><i>&amp;quot;</i></b=
special characters<b><i>&amp;quot;</i></b> in a string with <b><i>&amp;quo=
t;</i></b>\<b><i>&amp;quot;</i></b>.<br> * <br> * @param theString =09 The =
string to format. (Required)
<br> * @return Returns a string. <br> * @author Shawn Seley (<a href=3D"mai=
lto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>) <br> * @version 1, June 26,<font =
color=3D"BLUE"> 2002</font> <br> */<br>function REEscape(theString){<br>=09=
var special_char_list      =3D=20
<font color=3D"BLUE">&quot;\,+,*,?,.,[,],^,$,(,),{,},|,-&quot;</font>;<br>=
=09var esc_special_char_list  =3D <font color=3D"BLUE">&quot;\\,\+,\*,\?,\.=
,\[,\],\^,\$,\(,\),\{,\},\|,\-&quot;</font>;<br>=09return ReplaceList(theSt=
ring, special_char_list, esc_special_char_list);
<br>}<br><font color=3D"MAROON">&lt;/cfscript&gt;</font>
</pre>[]s<br><br>Marco<br><br><div><span class=3D"gmail_quote">On 4/19/06, =
<b class=3D"gmail_sendername">Wilson Rocha</b> &lt;<a href=3D"mailto:[EMAIL 
PROTECTED]
suframa.gov.br">[EMAIL PROTECTED]</a>&gt; wrote:</span><blockquote class=
=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin=
: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=3D"direction: ltr;">











<div>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">Fala quase char=E1....</span></fon=
t></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">Voc=EA pode fazer essa valida=E7=
=E3o de duas
formas. Uma server-side (CF) e outra client-side (JavaScript)</span></font>=
</p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">Para as duas formas voc=EA pode us=
ar express=F5es
regulares.</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">Aqui vai uma p=E1gina que fala exp=
ress=F5es regulares
usando CF.</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;"><a href=3D"http://www.activsoftwar=
e.com/resources/discussion/messages.cfm?id=3D1036" target=3D"_blank" onclic=
k=3D"return top.js.OpenExtLink(window,event,this)">
http://www.activsoftware.com/resources/discussion/messages.cfm?id=3D1036</a=

</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">E outra usando JavaScript:</span><=
/font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;"><a href=3D"http://www.imasters.com=
.br/artigo/2515" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(win=
dow,event,this)">
http://www.imasters.com.br/artigo/2515</a></span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">abra=E7os</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">Wilson</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">---</span></font></p>

<p><strong><b><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D=
"font-size: 10pt; font-family: Arial; color: navy;">Wilson Dias da Rocha Ne=
to</span></font></b></strong><font color=3D"navy" face=3D"Arial" size=3D"2"=
<span style=3D"font-size: 10pt; font-family: Arial; color: navy;">
(<a href=3D"mailto:[EMAIL PROTECTED]" target=3D"_blank" onclick=3D"retu=
rn top.js.OpenExtLink(window,event,this)">[EMAIL PROTECTED]</a>)</span><=
/font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">Analista de Sistemas</span></font>=
</p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">Coordena=E7=E3o Geral de Moderniza=
=E7=E3o e
Informa=E7=E3o =96 CGMOI</span></font></p>

<p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">Superintend=EAncia da Zona Franca =
de Manaus
=96 Suframa </span></font></p>

<p><strong><b><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D=
"font-size: 10pt; font-family: Arial; color: navy;" lang=3D"EN-US">Website:=
</span></font></b></strong><font color=3D"navy" face=3D"Arial" size=3D"2"><=
span style=3D"font-size: 10pt; font-family: Arial; color: navy;" lang=3D"EN=
-US">
</span></font><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=
=3D"font-size: 10pt; font-family: Arial; color: navy;"><a href=3D"http://ww=
w.suframa.gov.br" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(wi=
ndow,event,this)">
<span lang=3D"EN-US">http://www.suframa.gov.br</span></a></span></font><fon=
t color=3D"navy"><span style=3D"color: navy;" lang=3D"EN-US"></span></font>=
</p>

<p><strong><b><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D=
"font-size: 10pt; font-family: Arial; color: navy;" lang=3D"EN-US">MSN:</sp=
an></font></b></strong><font color=3D"navy" face=3D"Arial" size=3D"2"><span=
style=3D"font-size: 10pt; font-family: Arial; color: navy;" lang=3D"EN-US"=

</span></font><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=
=3D"font-size: 10pt; font-family: Arial; color: navy;"><a href=3D"mailto:so=
[EMAIL PROTECTED]" target=3D"_blank" onclick=3D"return top.js.OpenExtL=
ink(window,event,this)">
<span lang=3D"EN-US">[EMAIL PROTECTED]</span></a></span></font><font=
color=3D"navy"><span style=3D"color: navy;" lang=3D"EN-US"></span></font><=
/p>

<p><strong><b><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D=
"font-size: 10pt; font-family: Arial; color: navy;" lang=3D"EN-US">ICQ: </s=
pan></font></b></strong><font color=3D"navy" face=3D"Arial" size=3D"2"><spa=
n style=3D"font-size: 10pt; font-family: Arial; color: navy;" lang=3D"EN-US=
">
3918671</span></font><font color=3D"navy"><span style=3D"color: navy;" lang=
=3D"EN-US"></span></font></p>

<p><strong><b><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D=
"font-size: 10pt; font-family: Arial; color: navy;">Telefone:</span></font>=
</b></strong><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"=
font-size: 10pt; font-family: Arial; color: navy;">
(92) 3614-7214&nbsp;</span></font><font face=3D"Arial" size=3D"2"><span st=
yle=3D"font-size: 10pt; font-family: Arial;"></span></font></p>

</div>

<div>

<div style=3D"text-align: center;" align=3D"center"><font face=3D"Times New=
Roman" size=3D"3"><span style=3D"font-size: 12pt;">

<hr align=3D"center" size=3D"2" width=3D"100%">

</span></font></div>

<p><b><font face=3D"Tahoma" size=3D"2"><span style=3D"font-size: 10pt; font=
-family: Tahoma; font-weight: bold;">De:</span></font></b><font face=3D"Tah=
oma" size=3D"2"><span style=3D"font-size: 10pt; font-family: Tahoma;">
<a href=3D"mailto:[EMAIL PROTECTED]" target=3D"_blank" on=
click=3D"return top.js.OpenExtLink(window,event,this)">[EMAIL PROTECTED]
ldfusion.org.br</a>
[mailto:<a href=3D"mailto:[EMAIL PROTECTED]" target=3D"_b=
lank" onclick=3D"return top.js.OpenExtLink(window,event,this)">cf-brasil-bo=
[EMAIL PROTECTED]</a>] <b><span style=3D"font-weight: bold;">Em
nome de </span></b>Hilso Vasques Junior<br>
<b><span style=3D"font-weight: bold;">Enviada em:</span></b> quarta-feira, =
19 de
abril de 2006 10:06<br>
<b><span style=3D"font-weight: bold;">Para:</span></b> CF Brasil<br>
<b><span style=3D"font-weight: bold;">Assunto:</span></b> [cf-brasil] - Val=
idando
caracteres</span></font></p>

</div></div><div style=3D"direction: ltr;"><span class=3D"e" id=3D"q_10ab29=
7e6c69d58c_1">

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">Bom dia galera,</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">Estou com uma lista que vai ser gerada apartir do meu&nbsp;
banco&nbsp;para um arquivo&nbsp;XML.</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">Preciso filtrar alguns caracteres do banco, por exemplo, vou ter dois
campos vindo, Nome e E-mail</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">No nome preciso retirar todos os campos que poderiam dar erro ao enviar
e-mail, como por exemplo, (, ' &quot; / &lt; &gt;) e no e-mail verificar se=
ele
=E9 v=E1lido, ou seja, se tem @ se n=E3o tem / acentos e etc.</span></font>=
</p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">A pergunta, qual fun=E7=E3o no cold que me permite fazer esse filtro?</s=
pan></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">Valeu</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">Abra=E7o</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">&nbsp;</span></font></p>

</div>

<div>

<p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt=
;">Junior</span></font></p>

</div>

</span></div><div style=3D"direction: ltr;"></div>





</div></blockquote></div><br>

------=_Part_17603_10548538.1145484178575--

Reply via email to