Solved

I want to double click on HTML Table row and intercept on in vb form where the browser control is used

Posted on 2010-09-02
3
619 Views
Last Modified: 2013-12-26
Hi I would be be able to double click on a row in an HMTL table and pass back a unquiue reference number to the the form where the html brower brower window control is displayed.

1) I attach the code for the xslt fie that loads the page notebook.xsl
2) I attach the code for loaduing the browser control  loadit.txt
0
Comment
Question by:peter3244
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Expert Comment

by:kbirecki
ID: 33602397
I haven't used an html browser control, but vb can display forms with rows and have the labels and/or text fields clickable.  Is there a reason you need to use the browser control?  I'm thinking that the browser control is going to be limited to what any browser can do - and triggering vb application events is not one of them.  You should be able to create script in the web page that responds to events like clicking, but I don't think double clicking - that's an application-like function, not a browser function.  I've never seen any html-based web page, other than special cases like flash, silverlight or other non-html technology, be able to recognize a double click.  And at that point, if you were doing that, why not implement the whole app in a browser using your web-based scripting language of choice (php, javascript, etc.)
0
 
LVL 6

Expert Comment

by:judgeking
ID: 33630732
I'm not sure what browser control you're using, I use the DHTMLEdit control.  Something like this should work for you:

HTML code:
    <script language="javascript">
       function SetValue(Val) {
         document.all.ClickValue.value = Val;
       }
    </script>
    <input type="hidden" name="ClickValue" value="0">
    <table bgcolor="white" border=1>
      <tr>
        <td ondblclick="javascript:SetValue(1);">One</td><td>1</td>
      </tr>
      <tr>
        <td ondblclick="javascript:SetValue(2);">Two</td><td>2</td>
      </tr>
    </table>

DHTMLEdit code:

Private Sub DHTMLEdit1_ondblclick()
  MsgBox DHTMLEdit1.DOM.All.ClickValue.Value
End Sub

Open in new window

0
 
LVL 6

Accepted Solution

by:
judgeking earned 500 total points
ID: 34035629
Any update?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question