[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?



Ⓙⓐⓚⓔ 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] *
<[EMAIL PROTECTED] > wrote:

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 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 .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();

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

come to do something

really basic and i'm really struggling how to do

it with jquery. I

guess that is the problem with "changing the way

that you write

JavaScript".

Anyhow, i won't be leaving jquery any time soon (i

don't think) and

i'd appreciate if someone could tell me how i do

the following.


Within html content i am including email addresses

in the following

format someone

somehwere.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 want to getElementsByClass('email') and use

javascript to replace

 with @. Then i want to

getElementsByClass('jhide') and hide the

explanation which is no longer relevant.

How do i do this in jquery? Thanks for all of your

help.








-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ 





-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ 





-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ 





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ 




[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 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:
>
> $(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 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 .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();
> > >
> > > 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 come to do
> > > something
> > > > really basic and i'm really struggling how to do it with jquery. I
> > > > guess that is the problem with "changing the way that you write
> > > > JavaScript".
> > > >
> > > > Anyhow, i won't be leaving jquery any time soon (i don't think)
> > > and
> > > > i'd appreciate if someone could tell me how i do the following.
> > > >
> > > > Within html content i am including email addresses in the
> > > following
> > > > format someone somehwere.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 want to getElementsByClass('email') and use javascript to
> > > replace
> > > >  with @. Then i want to getElementsByClass('jhide') and hide
> > > the
> > > > explanation which is no longer relevant.
> > > >
> > > > How do i do this in jquery? Thanks for all of your help.
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
> >
> >
>
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
>


--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[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] * 
<[EMAIL PROTECTED] > wrote:


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 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 .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();

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 come to

do something

really basic and i'm really struggling how to do it

with jquery. I

guess that is the problem with "changing the way that

you write

JavaScript".

Anyhow, i won't be leaving jquery any time soon (i

don't think) and

i'd appreciate if someone could tell me how i do the

following.


Within html content i am including email addresses in

the following

format someone somehwere.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 want to getElementsByClass('email') and use

javascript to replace

 with @. Then i want to getElementsByClass('jhide')

and hide the

explanation which is no longer relevant.

How do i do this in jquery? Thanks for all of your help.







-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ 





-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ 





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ 




[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:

$(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 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 .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();
> >
> > 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 come to do something
> > > really basic and i'm really struggling how to do it with jquery. I
> > > guess that is the problem with "changing the way that you write
> > > JavaScript".
> > >
> > > Anyhow, i won't be leaving jquery any time soon (i don't think) and
> > > i'd appreciate if someone could tell me how i do the following.
> > >
> > > Within html content i am including email addresses in the following
> > > format someone somehwere.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 want to getElementsByClass('email') and use javascript to replace
> > >  with @. Then i want to getElementsByClass('jhide') and hide the
> >
> > > explanation which is no longer relevant.
> > >
> > > How do i do this in jquery? Thanks for all of your help.
> > >
> > >
> >
>
>
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
>


--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[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 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 .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();

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 come to do

something

really basic and i'm really struggling how to do it with

jquery. I

guess that is the problem with "changing the way that you write
JavaScript".

Anyhow, i won't be leaving jquery any time soon (i don't

think) and

i'd appreciate if someone could tell me how i do the following.

Within html content i am including email addresses in the

following

format someone somehwere.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 want to getElementsByClass('email') and use javascript to

replace

 with @. Then i want to getElementsByClass('jhide') and

hide the

explanation which is no longer relevant.

How do i do this in jquery? Thanks for all of your help.







-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ 





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ 




[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 .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();
>
> 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 come to do something
> > really basic and i'm really struggling how to do it with jquery. I
> > guess that is the problem with "changing the way that you write
> > JavaScript".
> >
> > Anyhow, i won't be leaving jquery any time soon (i don't think) and
> > i'd appreciate if someone could tell me how i do the following.
> >
> > Within html content i am including email addresses in the following
> > format someone somehwere.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 want to getElementsByClass('email') and use javascript to replace
> >  with @. Then i want to getElementsByClass('jhide') and hide the
> > explanation which is no longer relevant.
> >
> > How do i do this in jquery? Thanks for all of your help.
> >
> >
>



--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[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?"



[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()
{
}

Nothing's happening! Its not even hiding the .jhide?

How would some jquery code?

Fahed

John Resig wrote:


$("span.email").each(function(){
 $(this).html( $(this).html().replace("","@") );
});

$("p.jhide").hide();

Not too bad!

--John

On 5/13/07, fambizzari <[EMAIL PROTECTED]> <[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 come to do something
really basic and i'm really struggling how to do it with jquery. I
guess that is the problem with "changing the way that you write
JavaScript".

Anyhow, i won't be leaving jquery any time soon (i don't think) and
i'd appreciate if someone could tell me how i do the following.

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 want to getElementsByClass('email') and use javascript to replace
 with @. Then i want to getElementsByClass('jhide') and hide the
explanation which is no longer relevant.

How do i do this in jquery? Thanks for all of your help.





.





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[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()
{
}

Nothing's happening! Its not even hiding the .jhide?

How would some jquery code?

Fahed

John Resig wrote:



$("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 come to do something
really basic and i'm really struggling how to do it with jquery. I
guess that is the problem with "changing the way that you write
JavaScript".

Anyhow, i won't be leaving jquery any time soon (i don't think) and
i'd appreciate if someone could tell me how i do the following.

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 want to getElementsByClass('email') and use javascript to replace
 with @. Then i want to getElementsByClass('jhide') and hide the
explanation which is no longer relevant.

How do i do this in jquery? Thanks for all of your help.






.



[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:



$("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 come to do something
> really basic and i'm really struggling how to do it with jquery. I
> guess that is the problem with "changing the way that you write
> JavaScript".
>
> Anyhow, i won't be leaving jquery any time soon (i don't think) and
> i'd appreciate if someone could tell me how i do the following.
>
> Within html content i am including email addresses in the following
> format someone somehwere.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 want to getElementsByClass('email') and use javascript to replace
>  with @. Then i want to getElementsByClass('jhide') and hide
the
> explanation which is no longer relevant.
>
> How do i do this in jquery? Thanks for all of your help.
>
>




--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ 




[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 Resig wrote:



$("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 come to do something
really basic and i'm really struggling how to do it with jquery. I
guess that is the problem with "changing the way that you write
JavaScript".

Anyhow, i won't be leaving jquery any time soon (i don't think) and
i'd appreciate if someone could tell me how i do the following.

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 want to getElementsByClass('email') and use javascript to replace
 with @. Then i want to getElementsByClass('jhide') and hide the
explanation which is no longer relevant.

How do i do this in jquery? Thanks for all of your help.






.



[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();

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 come to do something
> really basic and i'm really struggling how to do it with jquery. I
> guess that is the problem with "changing the way that you write
> JavaScript".
>
> Anyhow, i won't be leaving jquery any time soon (i don't think) and
> i'd appreciate if someone could tell me how i do the following.
>
> 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 want to getElementsByClass('email') and use javascript to replace
>  with @. Then i want to getElementsByClass('jhide') and hide the
> explanation which is no longer relevant.
>
> How do i do this in jquery? Thanks for all of your help.
>
>





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[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 come to do something
really basic and i'm really struggling how to do it with jquery. I
guess that is the problem with "changing the way that you write
JavaScript".

Anyhow, i won't be leaving jquery any time soon (i don't think) and
i'd appreciate if someone could tell me how i do the following.

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 want to getElementsByClass('email') and use javascript to replace
 with @. Then i want to getElementsByClass('jhide') and hide the
explanation which is no longer relevant.

How do i do this in jquery? Thanks for all of your help.




[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 then working on non js content. I've now come to do something
really basic and i'm really struggling how to do it with jquery. I
guess that is the problem with "changing the way that you write
JavaScript".

Anyhow, i won't be leaving jquery any time soon (i don't think) and
i'd appreciate if someone could tell me how i do the following.

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 want to getElementsByClass('email') and use javascript to replace
 with @. Then i want to getElementsByClass('jhide') and hide the
explanation which is no longer relevant.

How do i do this in jquery? Thanks for all of your help.





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] The problem with jquery!!!

2007-05-12 Thread fambizzari

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 come to do something
really basic and i'm really struggling how to do it with jquery. I
guess that is the problem with "changing the way that you write
JavaScript".

Anyhow, i won't be leaving jquery any time soon (i don't think) and
i'd appreciate if someone could tell me how i do the following.

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 want to getElementsByClass('email') and use javascript to replace
 with @. Then i want to getElementsByClass('jhide') and hide the
explanation which is no longer relevant.

How do i do this in jquery? Thanks for all of your help.



[jQuery] Re: partially loaded ajax callback

2007-05-12 Thread Ⓙⓐⓚⓔ

I added it to my jquery branch
http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js

What happens now???

On 5/11/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:


added to the bug tracker, http://dev.jquery.com/ticket/1172



On 5/10/07, Mike Alsup < [EMAIL PROTECTED]> wrote:
>
>
> Cool!  I like it.
>
> Mike
>
> > I have a demo, it just shows the count of characters.
> >
> > http://jpassoc.com/Library.html
>



--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: Suggestion - A | B | C | - Navigation container

2007-05-12 Thread Ⓙⓐⓚⓔ

Thanks Mario, I put it up in the plugins directory of the svn.
http://jqueryjs.googlecode.com/svn/trunk/plugins/letters/


On 5/12/07, Mario Moura <[EMAIL PROTECTED]> wrote:


Amazing,

Thanks a lot, should be in Jquery Plugins page,

Regards

Mario

2007/5/12, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]>:
>
> thanks Bill,
> Like any piece of new code, there are bound to be bugs... click works
> better here than toggle, so :
>
> 
> http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
>
> http://www.w3.org/1999/xhtml"; xml:lang="en">
> 
> 
> letters
> 
> 
> 
> jQuery.keysOf = function(obj){
> var keys = []
> for(keys[keys.length] in obj);
> return keys
> }
> jQuery.fn.letters = function(speed){
> var ul = jQuery(this)
> var items = {}
> var lis = ul.children()
> var div = jQuery("
") > .prependTo(ul.parent()) > lis.each(function(){ > var let = > jQuery(this).hide().html().charAt(0).toUpperCase() > if (!items[let]) items[let] = [] > items[let].push(this) > }) > var keys = jQuery.keysOf(items).sort().reverse() > for (var i in keys){ > (function(i){ // scope i > jQuery("" + keys[i] +"") > .css({textDecoration: > 'underline',cursor:'pointer'}) > .click(function(){ > lis.hide() > > jQuery(items[keys[i]]).show(speed,function(){jQuery(this).attr('style','')}) > > }) > .prependTo(div) > if (i | > ").prependTo(div) > })(i) > } > } > jQuery(function($){ > $('ul.alpha').letters('slow') > }); > > > > > jaime > nacho > noelle > andy > duncan > jake > junior > donna > mario > anna > bill > john > > > > > > On 5/11/07, Bil Corry < [EMAIL PROTECTED]> wrote: > > > > > > Ⓙⓐⓚⓔ wrote on 5/11/2007 5:06 PM: > > > As a plug in: > > > > Very cool, thanks for sharing! > > > > - Bil > > > > > > > > > > > > > -- > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ -- Mário Alberto Chaves Moura [EMAIL PROTECTED] 31-9157-6000 -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ

[jQuery] DOM friendly link creation

2007-05-12 Thread Gordon

I had previously written a javascript that scans a div inside a HTML
document for keywords and then wraps those words in hyperlinks, as
part of adynamic help system.  This worked by modifying the innerHTML
of the div in question.  This approach worked but had a few problems,
namely that you had to be careful you didn't accidentally try to wrap
links around form elements, tag attributes and other such things, and
that it didn't work in Safari.

I did a recode recently that made use of the jQuery library. It cut
the line count of the script in half but it still worked in
fundamentally the same way as before, by doing regex search and
replace on the .html() of the target div.

I then had the job of writing other scripts that would do various jobs
on our site, and this was where I hit a serious snag.  Some jQuery
animation effects were to be included on $(document).ready, as the
search and replace script did.  No problem, I thought, because jQuery
queues events up for you, but unfortunately not.

The link wrapper is set to fire before the animation effects begin,
but it tends to complete while the animations are still in progress
(the link wrapper fetches the keywords to look for through AJAX so
there's a slight but definite lag between the script starting and the
links being added) and as the animation effect is taking place on an
element inside the innerHTML of the div the link wrapper is working on
it causes the animation to stall and the browser CPU usage to shoot up
to 100%.

I can only guess that when the innerHTML gets replaced by the link
wrapper the element the animation is being applied to ceases to exist
for a moment before returning.

I could get the link wrapper to fire the animation to begin once it
has completed or to get the animation to fire the link wrapper when
the animation finished with function callbacks of course, but then the
two scripts would become co dependant.  One would need the other to
run to start it, even though the page in question may not need it.

Would it be possible to do what I want with an approach other than
regexing on the HTML inside my target div?  A way to turn text in the
document into links in a DOM friendly way would be the best bet, and
it might also allow the link wrapper to work in safari.

Failing that, is there a way that I can get each script to check for
the other's existence and wait for the other to complete before
running if it finds it?  For example, I assume there is soem way to
tell if there's an animation in progress.  If so how can I get one
script to check for an animation in progress and wait for it to end if
it finds one?



[jQuery] Re: random images

2007-05-12 Thread Rodrigo Castilho Galvão Ferreira

Initiating in 1 at "totalNum" for example:

var rndNum = (Math.floor(Math.random() * totalNum)+1);



--
Rodrigo Castilho Galvão Ferreira
www.rodrigocastilho.com







On 5/12/07, Glen Lipka <[EMAIL PROTECTED]> wrote:

I have pick random images for a background like this:
 var totalNum = 4; //the total number of images in a folder.
 var rndNum = Math.floor(Math.random() * totalNum);
 $("div#header").css("background-image","url(myimage" +
rndNum + ".gif)");

But this assumes you have a set of images with a naming scheme.
Jakes plugin looks alot more robust.  But this is the first I have seen it.

Jake, you might want to package this on a sample page and submit it to the
plugins page.  Looks good.

Glen


On 5/12/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> you can see some random images, and reading them from a folder, on my dog
Junior's site!
>
> http://jpassoc.com/junior
>
> All plug-in quality.
>
>
>
> On 5/12/07, Sharique <[EMAIL PROTECTED]> wrote:
> >
> > I want to show random images from a folder.
> > How I can do this?
> > 
> > Sharique
> >
> >
>
>
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ




[jQuery] Re: validate plugin + form plugin + thickbox

2007-05-12 Thread [EMAIL PROTECTED]

Gahh...I just fixed it.  Apparently, when the validator
script tries to focus on a field in a form that is hidden with
display: none, ie throws some script error, and stops scripting. I
can't believe how long it took to find that out.  It was easy enough
to position the form that was meant to be hidden off the page with
absolute positioning after that, and lo and behold, problem solved.
Although, if anyone has a better solution to make sure the validator
functions are ran with the thickbox content, please let me know.

Thanks,
Chaim



[jQuery] Re: random images

2007-05-12 Thread Ⓙⓐⓚⓔ

I just got set up on SVN to do that!!! I've got several cool utilitarian
plugins and a ajax patch for partial status reporting, I would be cooler
than a whirling gif!

On 5/12/07, Glen Lipka <[EMAIL PROTECTED]> wrote:


I have pick random images for a background like this:

  var totalNum = 4; //the total number of images in a folder.
  var rndNum = Math.floor(Math.random() * totalNum);
  $("div#header").css("background-image","url(myimage" + rndNum  + ".gif)");

But this assumes you have a set of images with a naming scheme.
Jakes plugin looks alot more robust.  But this is the first I have seen
it.

Jake, you might want to package this on a sample page and submit it to the
plugins page.  Looks good.

Glen

On 5/12/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
> you can see some random images, and reading them from a folder, on my
> dog Junior's site!
>
> http://jpassoc.com/junior
>
> All plug-in quality.
>
> On 5/12/07, Sharique <[EMAIL PROTECTED]> wrote:
> >
> >
> > I want to show random images from a folder.
> > How I can do this?
> > 
> > Sharique
> >
> >
>
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ






--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: random images

2007-05-12 Thread Glen Lipka

I have pick random images for a background like this:

 var totalNum = 4; //the total number of images in a folder.
 var rndNum = Math.floor(Math.random() * totalNum);
 $("div#header").css("background-image","url(myimage" + rndNum  + ".gif)");

But this assumes you have a set of images with a naming scheme.
Jakes plugin looks alot more robust.  But this is the first I have seen it.

Jake, you might want to package this on a sample page and submit it to the
plugins page.  Looks good.

Glen

On 5/12/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:


you can see some random images, and reading them from a folder, on my dog
Junior's site!

http://jpassoc.com/junior

All plug-in quality.

On 5/12/07, Sharique <[EMAIL PROTECTED]> wrote:
>
>
> I want to show random images from a folder.
> How I can do this?
> 
> Sharique
>
>


--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: random images

2007-05-12 Thread Ⓙⓐⓚⓔ

you can see some random images, and reading them from a folder, on my dog
Junior's site!

http://jpassoc.com/junior

All plug-in quality.

On 5/12/07, Sharique <[EMAIL PROTECTED]> wrote:



I want to show random images from a folder.
How I can do this?

Sharique





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] random images

2007-05-12 Thread Sharique

I want to show random images from a folder.
How I can do this?

Sharique



[jQuery] Re: JQuery Form Plugin: encodeURIcomponent/decodeURI with ISO-8859-1

2007-05-12 Thread sithram

Thanks Tony and Mike for your help, but I continue with the same
problem after your indications.

If I don't use ajax to send data (I mean I use normal submit) the ASP
page of the server works fine and insert information with the correct
characters.

Regards,

Xavier

On 12 mayo, 15:39, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> You just need to decode the UTF on the server.  JavaScript uses UTF-8
> for encoding.  You don't want to send the unencoded data, that defeats
> the whole point of encoding.
>
> Mike
>
> >   function showFORM(formData, jqForm, options) {
> > var queryString = $.param(formData);
> > qs=queryString.split('&');
> > for (var x=0;x >   i=qs[x].split('=');
> >   if (i[0]=='cmt') {
> > alert('cmt (decode):\n\n'+decodeURI(i[1]));
> > alert('\n\ncmt:\n\n'+i[1]);
> > }
> > }
> >  return true;
> >   }
>
> > In the message box I think that the decode information is that I need
> > to send, not the encode one.



[jQuery] Re: validate plugin + form plugin + thickbox

2007-05-12 Thread oscar esp

I dont know if my problem has any relation (I am using form &
validate pluggin)

- I have a form with a submit button. (Submit button call a asp page
to save all fields)

- I have next code:

jQuery('#seccionesForm').submit(function()
{
var options = {
beforeSubmit: preSubmitSeccion, // pre-submit callback
success: postSubmitSeccion // post-submit callback
};

jQuery("#seccionesForm").validate(
   {
   submitHandler: function(form)
 {
 jQuery("#seccionesForm").ajaxSubmit(options);
return false;
 }
});
}

Then:
First click on submit button : works nice.
Second click on submit button: send the form twice
3 click: send form 3 times...

Any idea why is send more than one time?




[jQuery] Re: validate plugin + form plugin + thickbox

2007-05-12 Thread [EMAIL PROTECTED]

Alright, after realizing that everything works perfectly well outside
of the thickbox, it seems that that is the problem.   I guess the
question becomes, how do I load the form validation plugin and the
forms plugin for an ajax submitting form within a thickbox.

Thanks again,
Chaim



[jQuery] validate plugin + form plugin + thickbox

2007-05-12 Thread [EMAIL PROTECTED]

Hi Everyone,
I had an earlier problem that I asked about a couple days ago, turns
out it was just formatting bugs, but now I have a couple more.

Here's the problem:
I'm trying to use the form plugin, the validate plugin, and thickbox
together. The thickbox window has the form in it, which is loaded from
a hidden inline div in the page. The form is ajax submitted after
being validated by the validate plugin.
I have two issues I'm trying to deal with.

1. IE7/6 will run the validate script once correctly, but then stops
working, and attempting to submit the form again loads the page it's
targeting.  Firefox of course, runs fine.

2. I'd like to have the error messages returned from the validate
plugin to appear after the form fields that cause the errors, but they
are loading in the source div, not in the thickbox iframe.  Not sure
how to make that work.

Here's the code I'm using (also, I'm using $.getScript to load this
whenever thickbox loads a frame, to get it loaded inside the thickbox
frame, but if there's a better way to do that, let me know. I'm kind
of new to javascript.)

$(document).ready(function(){



 $('#TB_ajaxContent
#tbAjaxForm').validate({
 errorLabelContainer: $("#TB_ajaxContent #errorBox"),
  wrapper:
"p",
rules: {
email: {email:
true, required: true},
friendMail:
{email: true}
},
submitHandler: function(form) {
$(form).ajaxSubmit({
success: function() {
  self.parent.tb_show('Email My Visit','#TB_inline?
height=180&width=407&inlineId=tbSuccess','');
   },
error: function()
{
self.parent.tb_show('Email My
Visit','#TB_inline?height=180&width=407&inlineId=tbFailure','');
   }
});
}
});
});

Unfortunately, I can't post a link because it's a locked down dev
site, but if anyone has any insight, or would like any more
information, please let me know.

Thanks in advance for any help - I've been working on this for a
several days, and it's making me crazy.

-Chaim Eisenberg



[jQuery] Re: JQuery Form Plugin: encodeURIcomponent/decodeURI with ISO-8859-1

2007-05-12 Thread Mike Alsup


You just need to decode the UTF on the server.  JavaScript uses UTF-8
for encoding.  You don't want to send the unencoded data, that defeats
the whole point of encoding.

Mike


  function showFORM(formData, jqForm, options) {
var queryString = $.param(formData);
qs=queryString.split('&');
for (var x=0;x

[jQuery] Re: a problem with $.each() function

2007-05-12 Thread Emil Ivanov

The $.each function iterates over a collection, for example array.
(http://docs.jquery.com/JavaScript#.24.each.28_obj.2C_fn_.29)
It works because in javascript (without IE, ofcourse) object can be
threated as associative arrays.

If what you want is to iterate through children use $(document).each()
or $(window).each().

Regards,
Emil Ivanov

On May 12, 2:24 pm, Guapo <[EMAIL PROTECTED]> wrote:
> when i write
> $(document).ready(function(){
> $.each(document,function(k,v){
> document.writeln(k+""+v+");
> });});
>
> it works ,but when i change the document to window,as follows
> $(document).ready(function(){
> $.each(window,function(k,v){
> document.writeln(k+""+v+");
> });});
>
> nothing output,why?
> thank u all!



[jQuery] Re: Download indicator

2007-05-12 Thread Emil Ivanov

http://www.ajaxload.info/

Try this address. Here you'll find a nice web2.0 generator. It's very
cool.

Regards,
Emil Ivanov

On May 12, 3:01 pm, wyo <[EMAIL PROTECTED]> wrote:
> My gallery including size fitting now works mosty (except with Firefox/
> SeaMonkey) but I need to have a download indicator to show when the
> download takes a little longer. I've seen Thickbox uses a
> "loadingAnimation.gif". Is there a general available download
> indicator which I could use? Is this animation also possible as a
> ".png"?
>
> I'd like to position this inicator statically centered on the image,
> only showing or hiding when needed. Is this possible and how?
>
> img = $(' class="picture" style="border: solid
> 1px">').appendTo('#pictures').hide().bind('load', showImage);
>
>   function showImage() {
> img.show();
>   }
>
> 
>
> Full source "http://www.orpatec.ch/index.php?page=gallery.php";
>
> O. Wyss



[jQuery] Download indicator

2007-05-12 Thread wyo

My gallery including size fitting now works mosty (except with Firefox/
SeaMonkey) but I need to have a download indicator to show when the
download takes a little longer. I've seen Thickbox uses a
"loadingAnimation.gif". Is there a general available download
indicator which I could use? Is this animation also possible as a
".png"?

I'd like to position this inicator statically centered on the image,
only showing or hiding when needed. Is this possible and how?

img = $('').appendTo('#pictures').hide().bind('load', showImage);

  function showImage() {
img.show();
  }



Full source "http://www.orpatec.ch/index.php?page=gallery.php";

O. Wyss



[jQuery] Re: tabs 2.7

2007-05-12 Thread Klaus Hartl


oscar esp wrote:


1)I am using some plugins to build a page.
2)I am using jQuery.noConflict();

I have a a page that works fine using: validatorr, metada plugins.

However when I use a tabs 2.7 plugin in order to load that page into a
tab a error is produced

Microsoft JScript runtime error: 'jQuery' is undefined

any idea?


I couldn't reproduce that error. The following worked fine for me in IE 
6, 7 and Firefox 2:


var _ = jQuery.noConflict();
_(function() {
_('#container-1').tabs();
});

As well as this:

jQuery.noConflict();
jQuery(function() {
jQuery('#container-1').tabs();
});

Could you post your code? Maybe I can spot the error then.


-- Klaus



[jQuery] a problem with $.each() function

2007-05-12 Thread Guapo

when i write
$(document).ready(function(){
$.each(document,function(k,v){
document.writeln(k+""+v+");
});
});
it works ,but when i change the document to window,as follows
$(document).ready(function(){
$.each(window,function(k,v){
document.writeln(k+""+v+");
});
});
nothing output,why?
thank u all!



[jQuery] Re: Suggestion - A | B | C | - Navigation container

2007-05-12 Thread Mario Moura

Amazing,

Thanks a lot, should be in Jquery Plugins page,

Regards

Mario

2007/5/12, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]>:


thanks Bill,
Like any piece of new code, there are bound to be bugs... click works
better here than toggle, so :


http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en">


letters



jQuery.keysOf = function(obj){
var keys = []
for(keys[keys.length] in obj);
return keys
}
jQuery.fn.letters = function(speed){
var ul = jQuery(this)
var items = {}
var lis = ul.children()
var div = jQuery("
") .prependTo(ul.parent()) lis.each(function(){ var let = jQuery(this).hide().html().charAt(0).toUpperCase() if (!items[let]) items[let] = [] items[let].push(this) }) var keys = jQuery.keysOf(items).sort().reverse() for (var i in keys){ (function(i){ // scope i jQuery("" + keys[i] +"") .css({textDecoration: 'underline',cursor:'pointer'}) .click(function(){ lis.hide() jQuery(items[keys[i]]).show(speed,function(){jQuery(this).attr('style','')}) }) .prependTo(div) if (i | ").prependTo(div) })(i) } } jQuery(function($){ $('ul.alpha').letters('slow') }); jaime nacho noelle andy duncan jake junior donna mario anna bill john On 5/11/07, Bil Corry < [EMAIL PROTECTED]> wrote: > > > Ⓙⓐⓚⓔ wrote on 5/11/2007 5:06 PM: > > As a plug in: > > Very cool, thanks for sharing! > > - Bil > > > > > -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ -- Mário Alberto Chaves Moura [EMAIL PROTECTED] 31-9157-6000

[jQuery] tabs 2.7

2007-05-12 Thread oscar esp


1)I am using some plugins to build a page.
2)I am using jQuery.noConflict();

I have a a page that works fine using: validatorr, metada plugins.

However when I use a tabs 2.7 plugin in order to load that page into a
tab a error is produced

Microsoft JScript runtime error: 'jQuery' is undefined

any idea?



[jQuery] Re: JQuery Form Plugin: encodeURIcomponent/decodeURI with ISO-8859-1

2007-05-12 Thread Tony

Maybe you shuld use a option 'contentType' in the $.ajax function, or
simple use $.ajaxSetup to setup ISO-8859-1 charset. See documenttation
of jQuery how to do that.

Regards
Tony



[jQuery] Re: $.load() not working as it should after submitting a form

2007-05-12 Thread Lion29

Actually I figured it out :) it was a problem with a js script on my
form (farbtastic) I am now using getScript and it all works great ;)
htnaks for your time!



[jQuery] $.load() not working as it should after submitting a form

2007-05-12 Thread Lion29

Hello!

I have a problem with dynamically loaded pages. If I load a page into
a div like this:

$('#my_content').load(page, null, function(){
top.console.debug('LOADED ADD FORM');
$('#OrderAddForm').submit(function(){
formSubmit(this.id, 'Shranjujem naročilo');
return false;
});//on submit
});//load

The content get loaded perfectly. On this particular page I have a
form that I am about to submit via ajax like this:

function formSubmit(frm, load_msg){
var FORM = document.getElementById(frm);
var params = {};
var tINPUTS = $(FORM)
.find("[EMAIL PROTECTED], [EMAIL PROTECTED]'text'], [EMAIL 
PROTECTED]'hidden'],
[EMAIL PROTECTED]'password'], [EMAIL PROTECTED]'submit'], [EMAIL PROTECTED],
textarea")
.filter(":enabled")
.each(function(){
params[ this.name || this.id || this.parentNode.name ||
this.parentNode.id ] = this.value;
});//each

$('#side_form').html('Zapri'+load_msg+'');
$('#side_form_close').bind('click', function(){
$('#side_form').empty().SlideOutRight(300);
});

$.ajaxSetup({dataType: "json"});

$.get(FORM.action, params, function(data){
onFormSuccess(data);
});

}


Te function collects the form's parameters and send them via $.get().
And it all works GREAT. From the server side I do get a JSON object
that is then inserted into the table in function onFormSuccess.


Now to the problem. I have a button that when clicked this form shows
up. If I click it on the page refresh the form show correctly and each
time I click it after that before actually submitting the form, the
page gets loadded perfectly into the #my_content. But after I submit
the form it stops working! Even If I clean up the #my_content or
comletly remove all the chillds on its container (#slide_form contains
#my_content).. it stops working. So after submiting he form when I
click on this button that runs $('#my_content').load(page,); the
ajax response is actually the HTML code of the page, but the
#my_content never gets rendered with that response. This iss really
odd, since I thought it must be something wrong between the relation
client side > server side, but no... everything works fine. Server
side actually creates the perfect response is just the div doesnt get
rendered!

What is even more strange is that the javascript on the form (that
should be dynamically loaded) gets executed just the div
(#my_content) doesnt get filled with that html!

I have tryed many solutions (submitting the form via $.post() or to
actually replace the $.load function with $.ajax() one:

 $.ajax({
   type: "GET",
   url: page,
   dataType: 'html',
   error: function (msg){
 $('#side_form #my_content').html(msg.responseText);
   },
   success: function(msg){
  alert('ok');
 $('#side_form #my_content').html(msg);
   }
 });

it the same. Now when I am writing this msg It occured to me that
maybe the response is not in the right format so I tryed to insert
before $.load()   $.ajaxSetup({dataType: "html"}); but then it doesnt
work even before form submit!! so my guess is the problem lies in
here!

Please. This problem is bugging me for two days now and I am really
loosing my mind and I know I wont sleep till I solve this thing! I
would really, really appresciate all your suggestions!