[Greasemonkey] in array
A. Alfred Ayache
alfred at lastbyte.ca
Tue Jun 13 16:42:22 EDT 2006
Sounds like the page has changed format.
A. Alfred Ayache
http://lphs76.ca - Reunion community
http://www.rentersPlus.com - Apartment Search
http://www.lastbyte.ca - Web Design, eCommerce, PHP/MySQL, Java, Oracle
Chris Hayes wrote:
> For some reason a script that worked for a long time now says
>
> Error: msgdata.content[msg_nr] has no properties
>
> This is special because it should be a complete array, i see no reason
> for this change.
>
> The line that causes it
> msgdata['content'][msg_nr] = msgdata['content'][msg_nr].replace(
> badwordsArray[bw] , 'removed_replacement' ) ;
>
> Is there a way to do a check to see whether msgdata['content'][msg_nr]
> exists / has properties, without causing an error?
>
> Maybe like the PHP function isset() or in_array() ?
>
>
> thanks,
> Chris
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
> --------------------------------
> Spam/Virus scanning by CanIt Pro
>
> For more information see
> http://www.kgbinternet.com/SpamFilter.htm
>
> To control your spam filter, log in at
> http://filter.kgbinternet.com
>
>
More information about the Greasemonkey
mailing list