[jQuery] Re: Advanced Problem - Any takers?

2007-11-05 Thread ja

Here is is... pretty big, but this is all of it.


project1 2.0

X



St: 





UL: 





Ct: 





Pc? 








Send to:




kk



is



sr



dd



Ax



ery



Re



ss



jk



af





Send G:




Group 99



Test Group



El Groupo



El Groupo 99



Mucho Groupo



Le Groupe





 To:




 Extra:i.e. - asdfasdf,asdfasdf,etc.












On Nov 4, 2:31 pm, Wil Stuckey <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-11-02 at 19:37 +, ja wrote:
> > Karl,
>
> > I just tried your suggestion, still no luck. Any other ideas?
>
> > Josh
>
> I think you probably have a problem with the html you are inserting.
> Can you paste that in?
>
> Wil



[jQuery] Re: Advanced Problem - Any takers?

2007-11-04 Thread Wil Stuckey

On Fri, 2007-11-02 at 19:37 +, ja wrote:
> Karl,
> 
> I just tried your suggestion, still no luck. Any other ideas?
> 
> Josh


I think you probably have a problem with the html you are inserting. 
Can you paste that in?

Wil



[jQuery] Re: Advanced Problem - Any takers? (Repost - didn't seem to show up)

2007-11-03 Thread chanel grooveshark

you might not need jquery to accomplish that, try:

document.body.innerHTML += YOUR_VAR;

On Nov 3, 11:34 am, "John Resig" <[EMAIL PROTECTED]> wrote:
> We'll need to see a page to know what's going on - that code, alone,
> shouldn't cause problems.
>
> --John
>
> On 11/3/07, ja <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm dynamically inserting html into a page that only contains an
> > image. Such as...
> > 
> >  
> >  http://my_domain.com/my_image.jpg"/>
> >  
> > 
>
> > my script has a large amount of html that i want to insert. the html
> > is stored in a variable . Such as..
> > var my_var = "HI";
> > (the actual html is much larger and more complicated than my example)
>
> > I then have..
> > $('body').append(my_var);
>
> > which you would think would insert the html into the page. it doesn't,
> > instead it just inserts it as text. The source in Firebug is now...
> > 
> >  
> >  http://my_domain.com/my_image.jpg"/>
> >  HI
> >  
> > 
>
> > NOTE: that extra div that's all CAPS, isn't a typo. jquery inserts
> > that for some reason and I don't know why.
> > The page doesn't render the "HI" as html, it displays it as
> > plain text.
> > If I use the same code on a page that has some more to it, like
> > google's homepage, the extra "" isn't there and my html gets
> > inserted properly (not as text).
>
> > any clues as to why? is this a bug? am I missing some aspect of web
> > pages when they are only images?
> > Thanks in advanced for your help.
> > Josh



[jQuery] Re: Advanced Problem - Any takers? (Repost - didn't seem to show up)

2007-11-03 Thread John Resig

We'll need to see a page to know what's going on - that code, alone,
shouldn't cause problems.

--John

On 11/3/07, ja <[EMAIL PROTECTED]> wrote:
>
> I'm dynamically inserting html into a page that only contains an
> image. Such as...
> 
>  
>  http://my_domain.com/my_image.jpg"/>
>  
> 
>
> my script has a large amount of html that i want to insert. the html
> is stored in a variable . Such as..
> var my_var = "HI";
> (the actual html is much larger and more complicated than my example)
>
> I then have..
> $('body').append(my_var);
>
> which you would think would insert the html into the page. it doesn't,
> instead it just inserts it as text. The source in Firebug is now...
> 
>  
>  http://my_domain.com/my_image.jpg"/>
>  HI
>  
> 
>
> NOTE: that extra div that's all CAPS, isn't a typo. jquery inserts
> that for some reason and I don't know why.
> The page doesn't render the "HI" as html, it displays it as
> plain text.
> If I use the same code on a page that has some more to it, like
> google's homepage, the extra "" isn't there and my html gets
> inserted properly (not as text).
>
> any clues as to why? is this a bug? am I missing some aspect of web
> pages when they are only images?
> Thanks in advanced for your help.
> Josh
>
>


[jQuery] Re: Advanced Problem - Any takers?

2007-11-02 Thread arpowers


from your example it looks like it is adding it .. as HTML to the page... 
I assume by 'text' you mean escaped... but your example shows it as not
being escaped..

the mystery DIV element is new to me and I'm sure is causing the problem.

My guess is that its a problem with the HTML in your variable... are your
quotes escaped?





ja-6 wrote:
> 
> 
> I'm dynamically inserting html into a page that only contains an
> image. Such as...
> 
>  
>http://my_domain.com/my_image.jpg 
>  
> 
> 
> my script has a large amount of html that i want to insert. the html
> is stored in a variable . Such as..
> var my_var = "HI";
> (the actual html is much larger and more complicated than my example)
> 
> I then have..
> $('body').append(my_var);
> 
> which you would think would insert the html into the page. it doesn't,
> instead it just inserts it as text. The source in Firebug is now...
> 
>  
>http://my_domain.com/my_image.jpg 
>   HI
>  
> 
> 
> NOTE: that extra div that's all CAPS, isn't a typo. jquery inserts
> that for some reason and I don't know why.
> The page doesn't render the "HI" as html, it displays it as
> plain text.
> If I use the same code on a page that has some more to it, like
> google's homepage, the extra "" isn't there and my html gets
> inserted properly (not as text).
> 
> any clues as to why? is this a bug? am I missing some aspect of web
> pages when they are only images?
> Thanks in advanced for your help.
> Josh
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Advanced-Problem---Any-takers--tf4739677s27240.html#a13556844
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Advanced Problem - Any takers?

2007-11-02 Thread Mike Alsup

> Hey Mike,
>
> That's a dandy image you put in there. ;-)


Just seeing if you were paying attention, Karl!


[jQuery] Re: Advanced Problem - Any takers?

2007-11-02 Thread Karl Swedberg

On Nov 2, 2007, at 5:42 PM, Mike Alsup wrote:



Karl,

Thanks for the help, but it didn't seem to work. Any other
suggestions?

Josh



It sure works for me




var my_var = "
This text is appended!
"; $(function() { $('body').append(my_var); }); http://jquery.com/images/book-learning.png"/> Hey Mike, That's a dandy image you put in there. ;-) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Advanced Problem - Any takers?

2007-11-02 Thread abba bryant


Can you post the html you are trying to append? It sounds like you might have
found a bug but seeing as how I can append fine with the simple samples
given there might be some sort of problem in your appended markup that is
triggering it.


ja-6 wrote:
> 
> 
> Karl,
> 
> Thanks for the help, but it didn't seem to work. Any other
> suggestions?
> 
> Josh
> 
> On Nov 2, 1:49 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>> Hi there,
>>
>> Instead of this:
>>
>> > var my_var = "HI";
>>
>> try this:
>>
>> var my_var = $("HI");
>>
>> Hope that helps.
>>
>> --Karl
>> _
>> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>>
>> On Nov 2, 2007, at 1:53 PM, ja wrote:
>>
>>
>>
>> > I'm dynamically inserting html into a page that only contains an
>> > image. Such as...
>> > 
>> >  
>> >http://my_domain.com/my_image.jpg 
>> >  
>> > 
>>
>> > my script has a large amount of html that i want to insert. the html
>> > is stored in a variable . Such as..
>> > var my_var = "HI";
>> > (the actual html is much larger and more complicated than my example)
>>
>> > I then have..
>> > $('body').append(my_var);
>>
>> > which you would think would insert the html into the page. it doesn't,
>> > instead it just inserts it as text. The source in Firebug is now...
>> > 
>> >  
>> >http://my_domain.com/my_image.jpg 
>> >   HI
>> >  
>> > 
>>
>> > NOTE: that extra div that's all CAPS, isn't a typo. jquery inserts
>> > that for some reason and I don't know why.
>> > The page doesn't render the "HI" as html, it displays it as
>> > plain text.
>> > If I use the same code on a page that has some more to it, like
>> > google's homepage, the extra "" isn't there and my html gets
>> > inserted properly (not as text).
>>
>> > any clues as to why? is this a bug? am I missing some aspect of web
>> > pages when they are only images?
>> > Thanks in advanced for your help.
>> > Josh
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Advanced-Problem---Any-takers--tf4739677s27240.html#a13556911
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Advanced Problem - Any takers?

2007-11-02 Thread Mike Alsup

> Karl,
>
> Thanks for the help, but it didn't seem to work. Any other
> suggestions?
>
> Josh


It sure works for me




var my_var = "
This text is appended!
"; $(function() { $('body').append(my_var); }); http://jquery.com/images/book-learning.png"/>

[jQuery] Re: Advanced Problem - Any takers?

2007-11-02 Thread ja

Karl,

I just tried your suggestion, still no luck. Any other ideas?

Josh

On Nov 2, 1:49 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> Instead of this:
>
> > var my_var = "HI";
>
> try this:
>
> var my_var = $("HI");
>
> Hope that helps.
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Nov 2, 2007, at 1:53 PM, ja wrote:
>
>
>
> > I'm dynamically inserting html into a page that only contains an
> > image. Such as...
> > 
> >  
> >   http://my_domain.com/my_image.jpg"/>
> >  
> > 
>
> > my script has a large amount of html that i want to insert. the html
> > is stored in a variable . Such as..
> > var my_var = "HI";
> > (the actual html is much larger and more complicated than my example)
>
> > I then have..
> > $('body').append(my_var);
>
> > which you would think would insert the html into the page. it doesn't,
> > instead it just inserts it as text. The source in Firebug is now...
> > 
> >  
> >   http://my_domain.com/my_image.jpg"/>
> >   HI
> >  
> > 
>
> > NOTE: that extra div that's all CAPS, isn't a typo. jquery inserts
> > that for some reason and I don't know why.
> > The page doesn't render the "HI" as html, it displays it as
> > plain text.
> > If I use the same code on a page that has some more to it, like
> > google's homepage, the extra "" isn't there and my html gets
> > inserted properly (not as text).
>
> > any clues as to why? is this a bug? am I missing some aspect of web
> > pages when they are only images?
> > Thanks in advanced for your help.
> > Josh



[jQuery] Re: Advanced Problem - Any takers?

2007-11-02 Thread ja

Karl,

Thanks for the help, but it didn't seem to work. Any other
suggestions?

Josh

On Nov 2, 1:49 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> Instead of this:
>
> > var my_var = "HI";
>
> try this:
>
> var my_var = $("HI");
>
> Hope that helps.
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Nov 2, 2007, at 1:53 PM, ja wrote:
>
>
>
> > I'm dynamically inserting html into a page that only contains an
> > image. Such as...
> > 
> >  
> >   http://my_domain.com/my_image.jpg"/>
> >  
> > 
>
> > my script has a large amount of html that i want to insert. the html
> > is stored in a variable . Such as..
> > var my_var = "HI";
> > (the actual html is much larger and more complicated than my example)
>
> > I then have..
> > $('body').append(my_var);
>
> > which you would think would insert the html into the page. it doesn't,
> > instead it just inserts it as text. The source in Firebug is now...
> > 
> >  
> >   http://my_domain.com/my_image.jpg"/>
> >   HI
> >  
> > 
>
> > NOTE: that extra div that's all CAPS, isn't a typo. jquery inserts
> > that for some reason and I don't know why.
> > The page doesn't render the "HI" as html, it displays it as
> > plain text.
> > If I use the same code on a page that has some more to it, like
> > google's homepage, the extra "" isn't there and my html gets
> > inserted properly (not as text).
>
> > any clues as to why? is this a bug? am I missing some aspect of web
> > pages when they are only images?
> > Thanks in advanced for your help.
> > Josh



[jQuery] Re: Advanced Problem - Any takers?

2007-11-02 Thread Karl Swedberg

Hi there,

Instead of this:


var my_var = "HI";


try this:

var my_var = $("HI");


Hope that helps.

--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Nov 2, 2007, at 1:53 PM, ja wrote:



I'm dynamically inserting html into a page that only contains an
image. Such as...

 
  http://my_domain.com/my_image.jpg"/>
 


my script has a large amount of html that i want to insert. the html
is stored in a variable . Such as..
var my_var = "HI";
(the actual html is much larger and more complicated than my example)

I then have..
$('body').append(my_var);

which you would think would insert the html into the page. it doesn't,
instead it just inserts it as text. The source in Firebug is now...

 
  http://my_domain.com/my_image.jpg"/>
  HI
 


NOTE: that extra div that's all CAPS, isn't a typo. jquery inserts
that for some reason and I don't know why.
The page doesn't render the "HI" as html, it displays it as
plain text.
If I use the same code on a page that has some more to it, like
google's homepage, the extra "" isn't there and my html gets
inserted properly (not as text).

any clues as to why? is this a bug? am I missing some aspect of web
pages when they are only images?
Thanks in advanced for your help.
Josh