Hi Brian -

I don't think you need to post to SO, we should be able to help you here.

I see two pieces to this:

1. Can the iPad access each of the URLs independently?
     a. Enter http://192.168.1.5:65011/jijx <http://192.168.1.5:65011/jijx>
     b. Enter http://192.168.1.5:65011/t <http://192.168.1.5:65011/jijx>gsj
     c. Enter http://192.168.1.5:65011/ <http://192.168.1.5:65011/jijx>
~Projects/tgsjhs/tgsjhshelp.html
<http://127.0.0.1:65001/~Projects/tgsjhs/tgsjhshelp.html>

2. If the iPad browser can access each of those URLs, then it becomes a
question of how to generate the frame HTML. I agree that storing it on the
device is not ideal. The right solution is to have JHS emit that HTML. It
should be along the lines of the HTML you are already emitting. Instead of
hard coding the IP address, you'll probably want to dynamically determine it


If you've already tried these things, I or someone else can provide some
sample JHS code to output that html. Let us know

Thanks
Joe


On Tue, Sep 23, 2014 at 1:50 PM, Brian Schott <[email protected]>
wrote:

> Greg,
>
> Yes, x and y refer to the server. That trickiness is not something I know
> how to fix or even to describe for a search or question on Stackoverflow
> for example.
>
> All,
>
> In direct communication with Bob T I learned that his comment regarding the
> frame resizing issue on iOS was meant as a possible reason that the frames
> appear empty. But I rather suspect that is not the problem and that the
> html code I posted is just inadequate.
>
> If Greg is correct, that there may be a way to do this, I could use help
> learning that way or at least a way to describe the situation on SO in a
> manner where folks outside the J community could help. Let me start with
> such a description below and ask for rewrite tips.
>
> *****below is the draft question******
>
> I have a javascript and html application that works in a 3-frame browser
> window on my desktop computer. In addition to enabling the client to
> perform some graphical experiments, the application performs as a server
> for clients on the same wifi local area network, provided the clients
> supply the required network URL address, something like the following.
> These clients are meant to be using tablets or laptops.
>
> 192.168.1.5:65011/jijx
>
> Actually, by itself, that works fine, and the client on the tablet/laptop
> computer can do some things, but not the key graphical things because of
> the way the server app is programmed in J.
>
> On the desktop computer the client can do all the graphics and other things
> by opening the saved code below in a browser window because the saved code
> is save in a file on the desktop computer.
>
> <html><head><title>Turtle Graphics</title></head>
>  <frameset cols="24%,*">
>   <frame src="http://127.0.0.1:65001/jijx";
>    name="ijx",
>    scrolling='auto'>
>  <frameset rows="87%,*">
>   <frame src="http://127.0.0.1:65001/tgsj";
>    name="ijs",
>    scrolling='auto'>
>   <frame src="http://127.0.0.1:65001/~Projects/tgsjhs/tgsjhshelp.html";
>    name="help",
>    scrolling='auto'>
>  </frameset>
>  </frameset>
> </html>
>
> The problem is that I want to avoid saving a similar html file on the
> client devices [a file in which one just replaces the (localhost) URLs in
> the html code with the network URL, is not adequate].
>
> How can my goal be accomplished?
>
>
> On Sun, Sep 21, 2014 at 5:18 PM, greg heil <[email protected]> wrote:
>
> > Brian
> >
> > >i presume x and y pertain to the server. Getting the page means the
> > client is logged into the JHS instance... Addressing another frame is a
> bit
> > tricky but doable, within a machine. One has to go outside that document
> in
> > the dom.
> >
> > >Interesting social interactions could occur though if one was able to
> get
> > millimeter resolution in real space of various client windows!
> >
> > greg
> > ~krsnadas.org
> >
> >
> > --
> >
> > from: Brian Schott <[email protected]>
> > to: Programming forum <[email protected]>
> > date: 21 September 2014 13:53
> > subject: Re: [Jprogramming] JHS on a local network
> >
> > >To see the 3-frame window, I had to change each of the URLs in the html
> > file to 192.168.1.x:65yyyy . But I can still not enter nor see anything
> in
> > the frames.
> >
> > Also, I do not know how to see the browser page source on my tablet.
> >
> > ---
> > (B=)
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
>
> --
> (B=) <-----my sig
> Brian Schott
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to