[jQuery] Re: problem with IE extracting the document title from an ajax request response

2009-04-09 Thread RobG



On Apr 8, 4:36 pm, Zac Spitzer zac.spit...@gmail.com wrote:
 Is there a trick with IE for extracting the title from
 an ajax response?

 This works fine in FF but fails in IE using 1.3.2
 var newTitle=$(response).filter(TITLE);

Presumably response is an HTML document, so why not:

 var newTitle = response.getElementsByTagName('title')[0];


That should work even if it's an XML document.


--
Rob


[jQuery] Re: problem with IE extracting the document title from an ajax request response

2009-04-08 Thread Jordon Bedwell

Uhm, doesn't google disable Javascript and follow the non-javascript
version?

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Zac Spitzer
Sent: Wednesday, April 08, 2009 12:37 AM
To: jQuery (English)
Subject: [jQuery] problem with IE extracting the document title from an ajax
request response


Is there a trick with IE for extracting the title from
an ajax response?

This works fine in FF but fails in IE using 1.3.2
var newTitle=$(response).filter(TITLE);

it's a horrible problem to google as title is sooo common

z



[jQuery] Re: problem with IE extracting the document title from an ajax request response

2009-04-08 Thread Jonathan Vanherpe (T T NV)


I think he meant that putting 'title' in your search query is useless 
when googling, because pretty much every html document out there 
contains the word.


Jonathan

Jordon Bedwell wrote:

Uhm, doesn't google disable Javascript and follow the non-javascript
version?

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Zac Spitzer
Sent: Wednesday, April 08, 2009 12:37 AM
To: jQuery (English)
Subject: [jQuery] problem with IE extracting the document title from an ajax
request response


Is there a trick with IE for extracting the title from
an ajax response?

This works fine in FF but fails in IE using 1.3.2
var newTitle=$(response).filter(TITLE);

it's a horrible problem to google as title is sooo common

z





--
Jonathan Vanherpe - Tallieu  Tallieu NV - jonat...@tnt.be


[jQuery] Re: problem with IE extracting the document title from an ajax request response

2009-04-08 Thread Michael Lawson

What does your response look like?

cheers

Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone:  1-828-355-5544
E-mail:  mjlaw...@us.ibm.com

'Examine my teachings critically, as a gold assayer would test gold. If you
find they make sense, conform to your experience, and don't harm yourself
or others, only then should you accept them.'


   
  From:   Zac Spitzer zac.spit...@gmail.com  
   
  To: jQuery (English) jquery-en@googlegroups.com  
   
  Date:   04/08/2009 08:36 AM  
   
  Subject:[jQuery] problem with IE extracting the document title from an 
ajax request  response
   






Is there a trick with IE for extracting the title from
an ajax response?

This works fine in FF but fails in IE using 1.3.2
var newTitle=$(response).filter(TITLE);

it's a horrible problem to google as title is sooo common

z

inline: graycol.gifinline: ecblank.gif

[jQuery] Re: problem with IE extracting the document title from an ajax request response

2009-04-08 Thread Zac Spitzer

I get a null object back from jquery

this is only for hijaxed content, nothing to do with SEO

basically i'm substituting page content and i want to grab the title
from
the document i pull in via ajax and update the page

at the moment i'm falling back on good old html parsing for IE

z

On Apr 8, 11:31 pm, Michael Lawson mjlaw...@us.ibm.com wrote:
 What does your response look like?

 cheers

 Michael Lawson
 Content Tools Developer, Global Solutions, ibm.com
 Phone:  1-828-355-5544
 E-mail:  mjlaw...@us.ibm.com

 'Examine my teachings critically, as a gold assayer would test gold. If you
 find they make sense, conform to your experience, and don't harm yourself
 or others, only then should you accept them.'

   From:       Zac Spitzer zac.spit...@gmail.com                             
                                                      

   To:         jQuery (English) jquery-en@googlegroups.com                 
                                                      

   Date:       04/08/2009 08:36 AM                                             
                                                      

   Subject:    [jQuery] problem with IE extracting the document title from an 
 ajax request  response                                

 Is there a trick with IE for extracting the title from
 an ajax response?

 This works fine in FF but fails in IE using 1.3.2
 var newTitle=$(response).filter(TITLE);

 it's a horrible problem to google as title is sooo common

 z

  graycol.gif
  1KViewDownload

  ecblank.gif
  1KViewDownload