I've figured the problem out. I was loading 'library' Javascript and writing glue code for each actual page to tailor the library to the content I am generating (using JavaScript to generate CSS, SVG, table layout in my DOM).
So after my first two tags, which I verified are working properly, I have an inline script element that doesn't load its JavaScript content from an external source. Here is a small test case explaining this. <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <script type="text/javascript" language="JavaScript" > <![CDATA[ hello = function() { alert("Hello World!"); } hello() //]]> </script> </head><body></body></html> If you load that from inside the browser, it doesn't call the alert function. However, if you remove the first two lines (XML declaration, the CDATA stuff, above and below the hello lines), it works fine. Put them back in and it stops working. Unless you create new layout and assign it a text/xml mime type. So in the end the problem with my scripts not being called is that I was serving XHTML as text/html and not as text/xml ... and as a result, any content inside the CDATA section was being ignored (probably it was trying to parse it as a tag?). Thanks for the help :-) -- G. On 8/21/06, John W. Long <[EMAIL PROTECTED]> wrote: > Sean Cribbs wrote: > > I think it has to do with having your Radius tags inside an XHTML tag. > > Correct me if I'm wrong, John, but it won't parse them inside tags or their > > attributes? > > It will parse tags inside of HTML attributes. What it can't parse is > tags inside of Radius tag attributes. > > So this works fine: > > <a href="<r:url />">My Link</a> > > but this does not: > > <r:link title="<r:title />" /> > > -- > John Long > http://wiseheartdesign.com > _______________________________________________ > Radiant mailing list > [email protected] > http://lists.radiantcms.org/mailman/listinfo/radiant > _______________________________________________ Radiant mailing list [email protected] http://lists.radiantcms.org/mailman/listinfo/radiant
