Your pages, are they served with Content-Type: application/xhtml+xml Otherwise they are just treated as XML
Regards Tonny On 28 Maj, 12:26, Jeremy Geerdes <[email protected]> wrote: > Hmm. I have rolled the AJAX Search API on many, many XHTML websites, both > transitional and strict, without any problem. Additionally, the sample code > that you linked to validates as XHTML Strict and works for me. Could you > provide a link to your page so we can take a look at what's going on? > > Jeremy R. Geerdes > Effective website design & development > Des Moines, IA > > For more information or a project quote:http://jgeerdes.home.mchsi.com > [email protected] > > If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan > Church! > > On May 28, 2010, at 3:39 AM, Tonny wrote: > > > > > Oddly enough i can't find any posts about (searching). > > > I have an XHTML document in which I intended to use jsapi to load > > jquery. However i get this error in the javascript console > > > TypeError: Result of expression 'p.write' [undefined] is not a > > function. > > > And that correct XHTML does not support the document.write function. > > > Looking for examples i found > > thishttp://code.google.com/apis/ajaxsearch/documentation/#Introduction > > > But that doesn't work either, when served as XHTML. The link on the > > example page causes document to be treated as HTML (and thus the > > DOCTYPE is actually wrong) and then thing work fine. > > > Can it really be that AJAX APIs is completely broken when working with > > XHTML documents? > > > Regards > > Tonny > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google AJAX APIs" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/google-ajax-search-api?hl=en. -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
