- Where Developers Learn, Share, & Build Careers


I am trying to add an html menu inside the access form. How do I get feedback from a webpage in Access (which user is selected in the web page) I am using the Access 2007, MS Webbrozer component.

Any help would be appreciated

Calling the hosting form or webbrowser There is no official way to start any activity from within.

However, there is a nifty trick that I use. After the document loads you can use some element to set up. htmlDoc.all.formDiv.setAttribute "external form", me

Then you can reference the properties and methods of the form from within the webbrowser. Edit

:
Strangely, it seems that as long as I & lt; META http-equiv = 'X-UA-Compatible' content = 'IE = edge, chrome = 1' & gt; tag, the reference remains blank. It appears that the attributes are now more strict, and expecting the setAttribute string.

The next option is to pass the access form ('m') into a variable in WebBrowser. However, this global variable or function is not directly visible.

However, it can be easily removed by adding a function to the prototype of HTMLBodyElement, which argues for the global variable, and can return any class as well.

In the html page, you will have:

  var frm = null; HTMLBodyElement.prototype.setForm = function (f) {frm = f}   

Just pass the reference below from the access: htmlDoc.document.body.setForm (Me) .

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -