News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Browser Interaction with URLs
Author Message
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: Browser Interaction with URLs

FLTK functions in murgaLua must be called with "fltk.<function>". Otherwise you'll get a nil value.
This is what I did:

Code:
fltk.fl_open_uri("http://localhost")

and got my local server loaded in Firefox. The "file" protocol did not work for me.

The second and third arguments are optional, and trying those didn't seem to make any difference for me. As I said before, my problem is most likely that my system does not have a default file manager and I haven't got a clue how to configure it outside of a specific desktop environment. For now I'm just pleased that it at least works for the http protocol.

UPDATE: Apparently the http protocol only works for me if I already have Firefox opened. I'm guessing it's using "firefox-remote" (or "mozilla"?) rather than "firefox".

This post was last modified: 07-25-2007 01:48 PM by mikshaw.

07-25-2007 01:44 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Browser Interaction with URLs - iGame3D - 07-16-2007, 08:35 PM
RE: Browser Interaction with URLs - mikshaw - 07-25-2007 01:44 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: