Depending on the browser and/or user options it may or may not be possible to open new windows/tabs. The variations discourage me from looking much deeper.
Being puzzled or empowered depends on ones view. A desktop application user has certain expectations. A browser user might have different ones. The suggested open mechanism has the virtue of working the same for all browsers and users and is standard browser practice. On Sun, Jan 16, 2011 at 1:10 PM, Henry Rich <[email protected]> wrote: > I would favor just opening the tab for the file. If it is possible to > open the tab but leave the user looking at the same tab he was on, that > would be best. > > I think that when a user runs a lab he is trusting the lab writer to > provide the best tutorial display, and he would feel puzzled rather than > empowered by an option to click a link. > > Henry Rich > > On 1/16/2011 12:16 PM, Eric Iverson wrote: > > I was hoping to avoid this for the first release, but the use of open in > > labs is going to be a nuisance. > > > > I have taken to heart (so far) the rule strongly favored by some web > > programmers that opening windows/tabs with javascript is a bad bad thing. > > That is, windows/tabs should only be opened by explicit user actions that > > cause the browser to open a new window/tab. I have taken this to mean > that > > the user must click a link (with ctrl/shift as they wish). The use of > open > > is a bit contrary to this. > > > > I wonder if the following definition of open would be of interest: > > > > open_z_=: 3 : 0 > > t=. ('jijs?mid=open&path=',jpath y)jhref_jhs_ y > > jhtml'<div contenteditable="false">',t,'</div>' > > ) > > > > Sentence > > open'~temp/foo.ijs' > > puts a link to open the file in the jijx window. > > > > Comments? > > > > On Sun, Jan 16, 2011 at 11:40 AM, David Mitchell<[email protected] > >wrote: > > > >> I noticed that there are several labs that use 'open' to display source > >> files. > >> > >> Is there any way that jhs can open a new browser (or tab) as a > replacement > >> for open? > >> -- > >> > >> On 1/16/2011 11:15, Eric Iverson wrote: > >>> This probably won't be fixed in time for the release. Work on cleaning > up > >>> labs can be pursued seriously by several people after the release is > out. > >>> > >>> For this lab what is required is that the dlltest.cpp file be changed > to > >> a > >>> somewhat simpler .c file and that is handle 32/64 windows/linux > >>> requirements. Then the lab needs edited to say the binary needs to be > >> built > >>> for the users platform and the rest of the lab should then run. > >>> > >>> On Sun, Jan 16, 2011 at 5:42 AM, David Mitchell<[email protected] > >>> wrote: > >>> > >>>> Lab: DLL: Writing and Using a DLL > >>>> ... > >>>> ── (3 of 58) overview (ctd) ───────────────────────────────── > >>>> The next step opens dlltest.cpp. > >>>> > >>>> Study it and position it so you can refer to it. Whenever a > >>>> new procedure is mentioned, take a look at its definition. > >>>> ) > >>>> > >>>> ── (4 of 58) overview (ctd) ───────────────────────────────── > >>>> ) > >>>> open '~system\examples\dllwrite\dlltest.cpp' > >>>> |value error: open > >>>> | open'~system\examples\dllwrite\dlltest.cpp' > >>>> |[-0] > >>>> > >>>> --- > >>>> JVERSION > >>>> Engine: j701/2011-01-10/11:25 > >>>> Library: 7.01.034 > >>>> Platform: Win 64 > >>>> Installer: j701a_win64.exe > >>>> InstallPath: c:/users/me/j64_j701b/j64-701 > >> ---------------------------------------------------------------------- > >> For information about J forums see http://www.jsoftware.com/forums.htm > >> > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
