Displaying 7 results from an estimated 7 matches for "get_href".
Did you mean:
  get_cred
  
2005 May 03
4
Wx::HtmlWindow.on_link_clicked
...tml < Wx::HtmlWindow
    def initialize(*args)
        super
        @shell = Win32API.new(''shell32'', ''ShellExecute'', ''LPPPPI'', ''L'')
    end
    def on_link_clicked(link)
        @shell.call 0, ''open'', link.get_href, nil, nil, 1
    end
end
class App < Wx::App
    def on_init
        dialog = Wx::Dialog.new nil, -1, ''About''
        sizer = Wx::BoxSizer.new Wx::VERTICAL
        dialog.set_sizer sizer
        html = WrappedHtml.new dialog, -1
        html.set_page <<EOF
<html>
&l...
2006 Dec 11
0
[780] trunk/wxruby2/samples/html/html.rb: Error handling eg if no network present or server down
...</span><span class="lines">@@ -61,7 +68,11 @@
</span><span class="cx">   end
</span><span class="cx"> 
</span><span class="cx">   def on_link_clicked(link)
</span><del>-    link_uri = URI.parse(link.get_href)
</del><ins>+    href = link.get_href
+    if href =~ /^#/
+        super(link)
+    end
+    link_uri = URI.parse(href)
</ins><span class="cx">     @loaded_uri = load_page_from_uri(link_uri)
</span><span class="cx">   end
</span><spa...
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 -
2009 Oct 09
0
Wine release 1.1.31
...t declaration.
      mshtml: Moved init_dispex call to HTMLElement_Init.
      mshtml: Added HTMLAnchorElement dispex data.
      mshtml: Use dispinterface DISPID_VALUE implementation if available.
      mshtml: Get rid of no longer needed HTMLLocation_value.
      mshtml: Added IHTMLAnchorElement::get_href implementation.
      mshtml: Added IHTMLAnchorElement::get_href tests.
      mshtml: Use document.defaultView to get iframe contentWindow.
      mshtml: Added IHTMLDOMNode::cloneNode implementation.
      jscript: Added FIXME about IClassFactoryEx.
      mshtml.idl: Moved IHTMLElement dispinterfac...
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...e(file)
+    @loaded_uri = URI.parse("file:////" + file)
+    super file
+    @loaded_uri
+  end
+  
+  def set_page(html)
+    super html
+    @html_src = html
+    get_related_frame.addr_bar.set_value(@loaded_uri.to_s)
+  end
+
+  def on_link_clicked(link)
+    link_uri = URI.parse(link.get_href)
+    @loaded_uri = load_page_from_uri(link_uri)
+  end
+
+  def on_cell_mouse_hover(cell, x, y)
+    if link = cell.get_link
+      get_related_frame.set_status_text(link.get_href)
+    else
+      get_related_frame.set_status_text('''')
+    end
+  end
+end
+
+# The frame or self-...
2009 Aug 21
0
Wine release 1.1.28
...32: Run the explorer process from the system directory.
Alistair Leslie-Hughes (9):
      shdocvw: Add basic support for InPlaceDeactivate.
      msxml3: IXMLDOMElement doesn't support IObjectIdentity.
      msxml3: Register missing MXXMLWriter interfaces.
      mshtml: Implement IHTMLLocation get_href.
      msxml3: Support loading windows file paths.
      mshtml: Implement IHTMLCurrentStyle_get_visibility.
      mshtml: Implement IHTMLStyle get/put borderLeftWidth.
      mshtml: Implement HTMLCurrentStyle_get_borderLeftWidth.
      mshtml: Implement IHTMLStyle get/put wordSpacing.
Andrew Eiku...
2009 Oct 23
0
Wine release 1.1.32
...mshtml: Add helper function get_url_components.
      mshtml: Implement IHTMLLocation::get_port.
      mshtml: Implement IHTMLLocation::get_protocol.
      mshtml: Implement IHTMLLocation::get_host.
      mshtml: Implement IHTMLLocation::get_hostname.
      mshtml: Reimplement IHTMLLocation::get_href.
      mshtml: Reimplement HTMLLocation::get_pathname.
      mshtml: Implement IHTMLLocation::get_hash.
      mshtml: Implement IHTMLLocation::get_search.
      mshtml/tests: Remove todo_wine paths.
      hlink.idl: Fix typo in comment.
      hlink: Use HLINKSETF flags in Hlink::fnSetMonikerReferen...