Joe, When I get the 409 error I get no frames.
Below is the transcript of my session only on the Mac desktop, for now. The error which shows was NOT the result of loading frames.ijs, but rather the result of creating a window with the following URL: http://127.0.0.1:65011/frames . Notice there that 65011 is used, not 65001. When I do use 65001 I get a Safari error: "Safari cannot connect to the server". I may have confused things earlier by even mentioning 65001, because launching JHS specifically asks for 65011. (The message in the transcript below which mentions 65001 (incorrectly) is hardwired into the tgsjhs.ijs script, and needs to be fixed, obviously. I am only now noticing it. But I am quite sure it is not messing up the actual code, because it is being produced by smoutput of itself.) Now, maybe the error is because you did not mean for me to use frames.ijs at all except on the iPad. But I have tried it on the iPad as well and get the same problems. On the iPad the URL is 192.168.1.5:65011, btw. In the transcript below I only produced the script HTML_frames_ so that you could see that it is available after frames.ijs is loaded. J Http Server load'~Projects/tgsjhs/tgsjhs.ijs' Enter the following in a new browser window or tab to use a 3-frame system. 127.0.0.1:65001/~Projects/tgsjhs/console.html load'~Projects/tgsjhs/frames.ijs' |value error: jev_get_frames_ | jev_get_frames_'' *** response not sent for frames *** html409 Conflict HTML_frames_ <html><head><title>Turtle Graphics</title></head> <frameset cols="24%,*"> <frame src="/jijx" name="ijx", scrolling="auto"> <frameset rows="87%,*"> <frame src="/tgsj" name="ijs", scrolling="auto"> <frame src="/~Projects/tgsjhs/tgsjhshelp.html" name="help", scrolling="auto"> </frameset> </frameset> </html> I apologize for making this so hard. I know it must be something simple that I am messing up. On Tue, Sep 23, 2014 at 4:24 PM, Joe Bogner <[email protected]> wrote: > All of that looks right to me > > When you get a 409 error, do you see the three frames on the iPad? > > The note about the external IP address means that your iPad needs to > access something other than 127.0.0.1 (that is localhost)... So > hypothetically getexternalip_jhs_ would return the IP address that > your iPad can reach > > > in hindsight, you don't even need the IP address in the HTML that JHS > is serving: I was blinded by the existing proposed solution. This > should also work: > > > coclass'frames' > coinsert'jhs' > > > HTML=: 0 : 0 > <html><head><title>Turtle Graphics</title></head> > <frameset cols="24%,*"> > <frame src="/jijx" > name="ijx", > scrolling="auto"> > <frameset rows="87%,*"> > <frame src="/tgsj" > name="ijs", > scrolling="auto"> > <frame src="/~Projects/tgsjhs/tgsjhshelp.html" > name="help", > scrolling="auto"> > </frameset> > </frameset> > </html> > ) > > create=: 3 : 0 > htmlresponse HTML > ) > > -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
