Re: Get action back from Gtkmozembed

I haven’t tested this, but it should work.

Suppose that you put your textbox and button in an HTML form with a GET

Username: When the user fills out the form and clicks submit, GtkMozembed will try to open the url "html_form_action.html?user=dan".

So in your code, set up a handler for the ‘open_uri’ signal and examine
the url that the user is trying to open. If it looks like
“html_form_action.html?user=XXX” then handle the signal yourself,
extract the XXX and use the data however you want.


----- Original Message ----
From: Diego B. [email protected]
To: [email protected]
Sent: Tuesday, May 6, 2008 5:01:10 PM
Subject: [ruby-gnome2-devel-en] Get action back from Gtkmozembed

Hi guys,

If i use Gtkmozembed without a webserver, using it with just ruby and a
template library, if i make a textinput or button or anything, how can i
read back the data? anyone have a suggestion?

Posted via

This email is sponsored by the 2008 JavaOne(SM) Conference
Don’t miss this year’s exciting event. There’s still time to save $100.
Use priority code J8TL2D2.;198757673;13503038;p?

ruby-gnome2-devel-en mailing list
rem[email protected]

I have no idea how to do this, i tried some codes and none worked, i
dont know well how to work with http >.< need some help
this is the code im using to render the data, mab is a markup generated
from markaby

(window =“destroy”) {Gtk.main_quit}
gecko =

gecko.open_stream “file:///”, “text/html”
gecko.append_data “#{mab}”


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs