I've done some things where I've just written the <@results encoding=NONE> variable out via FILE action to an HTML file to be made available to others...
----- Original Message ----- From: "Scott Cadillac" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 26, 2004 11:45 AM Subject: Re: Witango-Talk: Incorporating content from another site > Oh, well that's a different question ;-) > > To "publish" your content, you have two popular choices. There maybe > others, but here's my 3 cents: > > ~~ XML, using an RSS (or RDF) Vocabulary used widely by Weblogs (a.k.a. > Blogs). Although this is not a simple implementation, here is some > information to get you started: > > http://blogs.law.harvard.edu/tech/rss > > Here's an example RSS XML Feed from one of my sites: > http://witango.org/witango-websightings-rss.taf > > > ~~ JavaScript, where you use a TAF file to dynamically output JavaScript > code which the other sites can call by simply using the SRC attribute of > the <SCRIPT/> tag. Something like: > > ---call your site---- > <script src="http://www.stefansite.com/published_text.taf"></script> > > ---your TAF output---- > // write your output just like > // an external JS file, so no <script> tags > > document.write("<div style=\"width:100px\">"); > document.write("Some text from Stefan\'s database"); > document.write("</div>"); > > // content finished > ---------------------- > > Then, all your other sites have to do is embed the <script > src="..."></script> code in their pages, in the HTML "where" they want > the content to appear. > > Note: It also doesn't hurt to specify a custom HTTP Header for your > JavaScript output, something like: > > <@ASSIGN request$httpHeader VALUE="HTTP/1.1 200 OK<@CRLF>Content-Type: > application/x-javascript<@CRLF><@CRLF>"> > > You could also make the JavaScript file static by having your Witango > application dynamically write the file as text on your server, and give > it a *.js extension. > > Hope this helps. Cheers... > > Scott Cadillac, > Witango.org - http://witango.org > 403-281-6090 - [EMAIL PROTECTED] > -- > Information for the Witango Developer Community > --------------------- > > XML-Extranet - http://xmlx.ca > 403-281-6090 - [EMAIL PROTECTED] > -- > Well-formed Development (for hire) > --------------------- > > > -----Original Message----- > From: Stefan Gonick <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: Mon, 26 Jan 2004 14:21:10 -0500 > Subject: Re: Witango-Talk: Incorporating content from another site > > > Unfortunately, this approach would only work for Witango sites. > > The special content comes from me using Witango, but the > > other sites are generic sites. How do I set it up so that they > > can use my Witango content on their pages? > > > > Stefan > > > > At 02:17 PM 1/26/2004, you wrote: > > >Well...now that you mention it... > > > > > >If it were me, I'd: > > > > > >~~ Use <@URL> to get the other site's page content. > > >~~ Parse the HTML for the text I needed. > > > > > >and use either of the following to embed the content into my page: > > >~~ Dump the parsed text into my TAF/HTML output. > > >~~ Use JavaScript SRC to get the content. > > >~~ Use XML Databinding in MSIE to embed the content (mix some XSLT in > > >there). > > > > > >All without using IFRAME. > > > > > >But, I thought the question was more about IFRAMEs :-) > > > > > >Hope this helps. Cheers.... > > > > > >Scott Cadillac, > > >Witango.org - http://witango.org > > >403-281-6090 - [EMAIL PROTECTED] > > >-- > > >Information for the Witango Developer Community > > >--------------------- > > > > > >XML-Extranet - http://xmlx.ca > > >403-281-6090 - [EMAIL PROTECTED] > > >-- > > >Well-formed Development (for hire) > > >--------------------- > > > > > > > > >-----Original Message----- > > >From: Bill Conlon <[EMAIL PROTECTED]> > > >To: "Witango-Talk" <[EMAIL PROTECTED]> > > >Date: Mon, 26 Jan 2004 11:08:14 -0800 > > >Subject: Re: Witango-Talk: Incorporating content from another site > > > > > > > I'm surprised Scott didn't suggest an XML feed with XSLT for format > > > > control. > > > > > > > > >Good question Stefan, > > > > > > > > > >I don't think I've ever heard this one asked before. > > > > > > > > > >Although I don't have an answer for you, I think you'll find that > > > > content > > > > >in a IFRAME (or regular FRAME) is not readable via Script "if" the > > > > page > > > > >in the IFRAME is from a different domain than the parent page > > (page > > > > with > > > > >IFRAME tag). > > > > > > > > > >JavaScript will through an "Access denied" sort of message. This > > is a > > > > >security feature of MS Internet Explorer and other browsers (or at > > > > least > > > > >it should be). > > > > > > > > > >Good luck. Cheers... > > > > > > > > > >Scott Cadillac, > > > > >Witango.org - http://witango.org > > > > >403-281-6090 - [EMAIL PROTECTED] > > > > >-- > > > > >Information for the Witango Developer Community > > > > >--------------------- > > > > > > > > > >XML-Extranet - http://xmlx.ca > > > > >403-281-6090 - [EMAIL PROTECTED] > > > > >-- > > > > >Well-formed Development (for hire) > > > > >--------------------- > > > > > > > > > > > > > > >-----Original Message----- > > > > >From: Stefan Gonick <[EMAIL PROTECTED]> > > > > >To: [EMAIL PROTECTED] > > > > >Date: Mon, 26 Jan 2004 13:41:32 -0500 > > > > >Subject: Witango-Talk: Incorporating content from another site > > > > > > > > > >> Hi Everyone, > > > > >> > > > > >> I want to generate content that will appear on other > > > > >> people's sites. I can get it to work to a limited degree > > > > >> with iframes. The problem with iframes for me is that > > > > >> you have to specify the height of the frame in advance > > > > >> (I think). My content is variable, so I don't know how > > > > >> much height it will need. > > > > >> > > > > >> I have two questions: > > > > >> > > > > >> 1. Is there a way to set up an iframe so that it accommodates > > > > >> the height of the content generated? > > > > >> > > > > >> 2. Is there an alternative way of doing this with Javascript? > > > > >> > > > > >> Thanks, > > > > >> Stefan > > > > >> > > > > >> ======================================================== > > > > >> Database WebWorks: Dynamic web sites through database > > integration > > > > >> http://www.DatabaseWebWorks.com > > > > >> > > > > >> > > > > > > _______________________________________________________________________ > > > > >> _ > > > > >> TO UNSUBSCRIBE: Go to > > http://www.witango.com/developer/maillist.taf > > > > > > > > > > > >______________________________________________________________________ > > > > __ > > > > >TO UNSUBSCRIBE: Go to > > http://www.witango.com/developer/maillist.taf > > > > > > > > > > > > > > > > > Bill Conlon > > > > > > > > To the Point > > > > 345 California Avenue Suite 2 > > > > Palo Alto, CA 94306 > > > > > > > > office: 650.327.2175 > > > > fax: 650.329.8335 > > > > mobile: 650.906.9929 > > > > e-mail: mailto:[EMAIL PROTECTED] > > > > web: http://www.tothept.com > > > > > > > > > > > > > > _______________________________________________________________________ > > > > _ > > > > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > > > > > >______________________________________________________________________ > > __ > > >TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > > > > ======================================================== > > Database WebWorks: Dynamic web sites through database integration > > http://www.DatabaseWebWorks.com > > _______________________________________________________________________ > > _ > > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > > ������������������������������������������������������������������������D�T�5T%45$�$S�v�F��GG���wwr�v�F�v��6���FWfV��W"����Ɨ7B�F`
