Precisely, you'd need to proxy. By the way, if you get it to work, it would be great if you could document the steps on our wiki. Thanks!
David Gudmundur A. Thorisson wrote: > David, I managed to get maybe half-way with your suggestions. My > embedded Longwell does initialize and start doing something, but then > hangs. I tracked this down to a security issues relating to Ajax > requests between from my pages and Longwell. The error message below > maybe says it all, but basically my Catalyst web-app is running on > port 3000 on my local host, while Longwell needs its own standalone > port (right?), currently 8080. So not only does the domain have to be > the same, but also the port: > > >> Unsafe JavaScript attempt to access frame with URL http:// >> 127.0.0.1:8080/resources/api/content/history.html?0 from frame with >> URL http://127.0.0.1:3000/study/list. Domains, protocols and ports >> must match. >> > > > It is a bit unclear to me how I can run the standalone Longwell > instance within my web-app domain+port. How can I get around this: > some Javascript security settings perhaps, or could I proxy requests > sent to e.g. localhost:3000/longwell to localhost:8080? > > > Mummi > > On 6 Dec 2007, at 03:35, David Huynh wrote: > > >> Gudmundur, >> >> To integrate Longwell-CSI with your webapp, first, longwell-csi >> must be >> served on the same domain as the webapp (meaning that its scripts must >> have URLs with the same domain as the HTML file into which you want to >> integrate the Longwell-CSI user interface). Second, take a look at >> >> >> http://simile.mit.edu/repository/longwell/trunk/src/main/webapp/ >> longwell-csi/templates/commands/start.vt >> >> That's a Velocity template (much like ASP or JSP). Actually, it's >> probably easier to just look at the HTML that Longwell-CSI serves >> up by >> default. There are a few things in there that you need to copy over to >> your HTML file. >> - the various <link> elements at the top for styling >> - the various <script> elements >> - the onLoad event and its hook in the <body> element >> Also, within <body>, you must have 3 <div> elements with id equal >> "control-panel", "view-panel", and "browse-panel". You can place them >> anywhere and style them anyhow you like. >> >> Let us know if that works out for you! >> >> David >> >> Gudmundur A. Thorisson wrote: >> >>> Hi. Thanks to SIMILE developers for bring such cool toys like Exhibit >>> and Longwell to the masses! I started out with Exhibit recently for a >>> project and found it very nice, except for the scalability: I need to >>> handle several thousand items (at least) and that's too big for >>> Exhibit. >>> >>> I saw the Longwell CSI configuration mentioned on the SIMILE >>> website, tried it out and am very impressed, seems to fit my needs >>> perfectly. However, I am working within a Perl--based webapp >>> framework (Catalyst) and am wondering what the best way is to >>> integrate a Longwell server with my other stuff. I tried putting it >>> in an <iframe> but that didn't work, probably breaks some Javascript/ >>> Ajax stuff that Longwell relies on. Any ideas on how to solve this, >>> maybe do the <iframe> trick in a certain way, something else? >>> Thanks! >>> >>> >>> Best regards, keep up the good work! >>> >>> >>> Mummi, Leicester >>> >>> >>> ----------------------------------------------------------- >>> Gudmundur A. Thorisson, PhD student, Brookes lab >>> Department of Genetics >>> University of Leicester >>> University Road >>> Leicester, LE1 7RH, UK >>> E-mail: [EMAIL PROTECTED] >>> Tel: +44 (0)116 252-3055 >>> >>> >>> >>> >>> _______________________________________________ >>> General mailing list >>> [email protected] >>> http://simile.mit.edu/mailman/listinfo/general >>> >>> >> _______________________________________________ >> General mailing list >> [email protected] >> http://simile.mit.edu/mailman/listinfo/general >> > > _______________________________________________ > General mailing list > [email protected] > http://simile.mit.edu/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
