?
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
Medium Priority
?
623 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 2000 total points
ID: 34035629
Any update?
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month13 days, 2 hours left to enroll

777 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