IU Technology Architecture Lodge
Random and not so random thoughts from Raymond Yee, primarily on the scholarly and educational use of the Web, libraries, educational technology, and information management

 
Home

Print friendly version

Scholar's Box Essay Series

Current Projects

Presentations and Papers

Work on Educational Technology Interop

RY's wiki

RY's personal blog

About This Site

About Raymond Yee

Interactive University

Contact RY

My blogroll

RSS 2.0 feed for this site

 
 

Re: The joys of struggling with Frontier's Manila plugin arch.

Author:   David Carter-Tod  
Posted: 4/25/2002; 11:35:03 AM
Topic: The joys of struggling with Frontier's Manila plugin arch.
Msg #: 409 (in response to 408)
Prev/Next: 408/410
Reads: 2280

Actually, that's pretty much the way I'd do it.  Of course, you could probably wrap it up in a script and call it as something like serveJavascript(adr).

on serveJavascript(adr){
  local (pta = html.getPageTableAddress ());
  pta^.responseHeaders.["Content-Type"] = "text/javascript";
  pta^.responseBody = string(adr^);
  scriptError ("!return")

I usually look at Userland code for hints.  I'm trying to think (without having any code to hand) of instances where they serve JS out of the database, but none spring to mind.

You're right about the documentation, btw.

David


There are responses to this message:




Last update: Thursday, April 25, 2002 at 11:35:03 AM.

This site is using the Vanilla Manila 1999 theme.
The opinions or statements expressed herein should not be taken as a position of or endorsement by the University of California, Berkeley. Nor should the opinions or statements expressed herein be taken as a position of or endorsement of the University of California, Berkeley. Links on these pages to commercial sites do not represent endorsement by the University of California or its affiliates.