[jQuery] Re: The problem with jquery!!!

2007-05-13 Thread Brad Perkins
If you are trying to use $(this).html( $(this).html().replace("","@") ); Could the problem be that "" isn't matching "" ? On May 12, 11:31 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > The actual html reads > > someonesomehwerecom

[jQuery] Re: The problem with jquery!!!

2007-05-13 Thread Kelvin Luck
> Within html content i am including email addresses in the following > format someonesomehwere.com and then > following such occurences with an explanation for > what means for those non-savvy internet users that might > actually try to send an email with instead of the @ sign. > I wrote a ver

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread [EMAIL PROTECTED]
thanks Ⓙⓐⓚⓔ wrote: http://jquery.glyphix.com/ the debug plugin! off http://docs.jquery.com/Plugins the main plugins page. On 5/12/07, [EMAIL PROTECTED] * <[EMAIL PROTECTED] > wrote: Can you point me to the plugin please? Ⓙⓐⓚⓔ w

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread Ⓙⓐⓚⓔ
http://jquery.glyphix.com/ the debug plugin! off http://docs.jquery.com/Plugins the main plugins page. On 5/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Can you point me to the plugin please? Ⓙⓐⓚⓔ wrote: console.log( $("p.jhide")) would show the p that just got hid, if it really foun

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread [EMAIL PROTECTED]
Can you point me to the plugin please? Ⓙⓐⓚⓔ wrote: console.log( $("p.jhide")) would show the p that just got hid, if it really found a there are lots of commands in firebug, and even a plugin on the jquery site to make it easier. On 5/12/07, [EMAIL PROTECTED] *

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread Ⓙⓐⓚⓔ
console.log( $("p.jhide")) would show the p that just got hid, if it really found a there are lots of commands in firebug, and even a plugin on the jquery site to make it easier. On 5/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: So, to help me out, if i have the following code: $(doc

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread [EMAIL PROTECTED]
So, to help me out, if i have the following code: $(document).ready(function() { $("span.email").each(function(){ $(this).html( $(this).html().replace("","@") ); }); $("p.jhide").hide(); }); Where and how would i use console.log(anything) to see what's going wrong? Fahed Ⓙⓐⓚⓔ wrote: john's t

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread Ⓙⓐⓚⓔ
john's trick should do the job with .html or .text On 5/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: The actual html reads someonesomehwerecom Fahed Ⓙⓐⓚⓔ wrote: jake home renders as < div>jake home for me in firefox 2. I guess the just gets ignored when re-inserted with

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread Ⓙⓐⓚⓔ
firebug is a great add-on for firefox, you get to add console.log(anything) into your code, and when your code faults, it's very easy to see what's gone wrong http://getfirebug.com On 5/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I meant so say, "How would someone debug jquery code?"

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread [EMAIL PROTECTED]
I meant so say, "How would someone debug jquery code?" [EMAIL PROTECTED] wrote: Thanks for the fast responses. Is that supposed to read: $(this).html( $(this).html() I've stuck the same code block offered by John into $(document).ready(function() { } Nothi

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread [EMAIL PROTECTED]
The actual html reads someonesomehwerecom Fahed Ⓙⓐⓚⓔ wrote: jake home renders as < div>jake home for me in firefox 2. I guess the just gets ignored when re-inserted with .html() Not too bad! On 5/12/07, *John Resig* <[EMAIL PROTECTED] > wrote:

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread [EMAIL PROTECTED]
Thanks for the fast responses. Is that supposed to read: $(this).html( $(this).html() I've stuck the same code block offered by John into $(document).ready(function() { } Nothing's happening! Its not even hiding the .jhide? How would some jquery code? Fahed John

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread Ⓙⓐⓚⓔ
jake home renders as jake home for me in firefox 2. I guess the just gets ignored when re-inserted with .html() Not too bad! On 5/12/07, John Resig <[EMAIL PROTECTED]> wrote: $("span.email").each(function(){ $(this).html( $(this).html().replace("","@") ); }); $("p.jhide").hide();

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread John Resig
$("span.email").each(function(){ $(this).html( $(this).html().replace("","@") ); }); $("p.jhide").hide(); Not too bad! --John On 5/13/07, fambizzari <[EMAIL PROTECTED]> wrote: I started using jquery a month or two ago and i've spent the time since then working on non js content. I've now c

[jQuery] Re: The problem with jquery!!!

2007-05-12 Thread Ⓙⓐⓚⓔ
You can do it , but it's messy! $("span.email").text() does not include the $("span.email").html() might, but there might be an extra generated somewhere in the dom, On 5/12/07, fambizzari <[EMAIL PROTECTED]> wrote: I started using jquery a month or two ago and i've spent the time since th