1. html

Euman wrote about me launching html from Eu,, actually, i wrote how to
get the launched html to auto-scroll a specific tag in the html. Dan Moyer
did the actual launch of the *.htm file.

What to write from Eu to a disk file for IE to display into a file, to an html
target, expanded version:

 <html>
 <head>
 <meta http-equiv=refresh content="0;
 url=file:///C:/EUPHORIA/HTML/lib_p_r.htm#reverse">
 </head>
 </html>

You can leave out the <head></head> and put it all on one line too, like
this:

<html> <meta http-equiv=refresh content="0;
url=file:///C:/EUPHORIA/HTML/lib_p_r.htm#reverse"> </html>

( that line prolly word-wrapped in your email reader, but it belongs on one
line.) That way, when Eu is writing the new file out, it's just one write()
operation.

So Dan, how did you end up launching it, for best effect?

Kat

new topic     » topic index » view message » categorize

2. Re: html

Kat,

Well, I just used shellExecute, like this:
  shellExecute("open","redirect.htm",Maximize),

where "redirect.htm" is, as you suggested, a file which was written out by
the program just before the shellExecute, and made to contain: a html header
which causes the browser to jump to another document,  the url to jump to
(including the specific tag in the doc to jump to), and a end footer to
close the html.

Here's an excerpt from how I used it (it's used in my "Modified Ide" in the
archives, which is a slight modification of Judith's elaboration of David's
IDE, which allows for easy copying of the general (syntactical) forms of
Euphoria and Win32Lib routines into the IDE editor, from lists of all the
routines, as well as jumps to specific help for each routine):

-- note: I think I did following to replace dos backslashes with html
forward slashes
sequence libPath
libPath = current_dir()  -- needs to be set for where *your* html doc is
for m = 1 to length(libPath) do
  if equal(libPath[m], '\\') then
     libPath[m] = '/'
  end if
end for

-- help for INDIVIDUAL Win32Lib routines, from HTML doc
procedure Click_W32RouHelpButton()
integer CatForJump, RoutForJump

-- note: as Kat points out, probably doesn't need the <head> nor the \n in
following:
DummyFirst = "<html>\n<head>\n<meta http-equiv=refresh content=\"0;\nurl= "
& "file:///" & libPath & "/win32lib.htm"
DummyLast  = "\">\n</head>\n</html>"

CatForJump = getIndex(W32CategoriesCombo)
RoutForJump = getIndex(W32RoutinesCombo)

-- jumps to named tag in help html (skips "colors" category if selected):
if equal(W32RoutinesCategories[CatForJump][1], "Colors") = 0 then
  AfileHandle = open("redirect.htm", "w")
  puts(AfileHandle, DummyFirst & "#" &
W32RoutineNames[CatForJump][RoutForJump][3] & DummyLast)
  close(AfileHandle)

  shellExecute("open","redirect.htm",Maximize)

end if

Hope this helps.

Dan



----- Original Message -----
From: "Kat" <gertie at PELL.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Saturday, December 16, 2000 10:30 AM
Subject: html


> Euman wrote about me launching html from Eu,, actually, i wrote how to
> get the launched html to auto-scroll a specific tag in the html. Dan Moyer
> did the actual launch of the *.htm file.
>
> What to write from Eu to a disk file for IE to display into a file, to an
html
> target, expanded version:
>
>  <html>
>  <head>
>  <meta http-equiv=refresh content="0;
>  url=file:///C:/EUPHORIA/HTML/lib_p_r.htm#reverse">
>  </head>
>  </html>
>
> You can leave out the <head></head> and put it all on one line too, like
> this:
>
> <html> <meta http-equiv=refresh content="0;
> url=file:///C:/EUPHORIA/HTML/lib_p_r.htm#reverse"> </html>
>
> ( that line prolly word-wrapped in your email reader, but it belongs on
one
> line.) That way, when Eu is writing the new file out, it's just one
write()
> operation.
>
> So Dan, how did you end up launching it, for best effect?
>
> Kat

new topic     » goto parent     » topic index » view message » categorize

3. Re: html

John,

shellExecute is a Win32Lib function.

>From the Win32Lib manual:

shellExecute( command, file, style )
Launch a Windows application
Category: Utilities

This is a wrapper around the Win32 ShellExecute command.


Dan Moyer

----- Original Message -----
From: "John" <jwr6dmr at CS.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Saturday, December 23, 2000 6:49 PM
Subject: Re: html


<snip>
>
> 2. I can't find shellExecute in my HTML reference so I am suspecting that
> is a JavaScript function?
>

<snip>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu