Displaying 3 results from an estimated 3 matches for "preview_text".
2006 Apr 04
0
Does observe_field work with date_select?
...te_select. Here''s the
rhtml code:
<%= date_select ''course'', ''lab_start_date'' %>
<%= observe_field(:course_lab_start_date, :frequency => 0.5,
:update => :course_lab_start_date_div, :url => {
:action => ''preview_text''}) %>
My ''preview_text'' action is never called. Looking at the html generated,
date_select generates three seperate select fields, and none of them
have id''s. observe_field of course watches for the id...
Any ideas? Any ideas that don''t involve ha...
2006 Nov 06
3
HtmlWindow and friends
Hi
Attached is a patch to add HtmlWindow and some of its friends, including
HtmlEasyPrinting. Also a sample.
I haven''t tried exposing the parsing and rendering API yet to allow
custom tags etc - I just wanted to get basic HTML and the 0.6.0
compatibility classes first. There may well be some quite easy classes left.
There''s one ugly kludge to get OnOpeningURL to compile -
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...Wx::OK|Wx::ICON_INFORMATION )
+ about_dlg.show_modal()
+        about_dlg.destroy()
+ end
+
+ def on_preview
+ print = Wx::HtmlEasyPrinting.new(''Print HTML'', self)
+ print.preview_text(@html_win.html_src)
+ end
+
+ def on_print
+ print = Wx::HtmlEasyPrinting.new(''Print HTML'', self)
+ print.print_text(@html_win.html_src)
+ end
+
+ # utility function to find an icon relative to this ruby script
+ def local_icon_file(icon_name)
+ File.join( File.dirna...