Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
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
?
630 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

604 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