I noticed a service from Yahoo called Companion that adds a toolbar to my MicrosoftÂ® Internet Explorer browser. The toolbar contains some of their services, such as a search link. Hotbar.com also does this, adding a skin and toolbar. How can I build my own toolbar and add it to Internet Explorer?
There are a variety of ways to interact with and extend the user interface supplied by Internet Explorer. Probably the best place to check out the options and methods that are available is http://msdn.microsoft.com/workshop/browser/ext/overview/overview.asp. These pages describe various ways you can extend the browser experience with explorer bars, toolbands, deskbands, and context menus.
I've got two frames, Frame A and Frame B. Both frames contain buttons. When I click on the button in Frame A, I want to set the focus to the button in Frame B. This doesn't work with the buttons, or with any element that can have focus set to it (like a span, button, or table). It looks like the focus gets set, but then it disappears.
Perhaps the onclick event is not really the best time to move the focus from Button A to Button B, although you might notice that this problem only occurs when you generate a click event through a mouse, not through a keyboard. My solution is relatively simple: just delay refocusing briefly. You can easily do this as part of Button A's onclick event:
window.setInterval "parent.FrameB.ButtonB.focus()", 100
I'm using Microsoft Certificate Server to create server and client certificates. Where can I find more information about the product, including some samples and specific case scenarios?
Here are links to some articles and information that might help you better understand Microsoft Certificate Server: "A Peek Inside Microsoft Security Products" by Aaron Skonnard. Product Home Page for Microsoft Certificate Server at http://www.microsoft.com/security/products/certserver.asp. Overview of Microsoft Certificate Server from MSDNâ¢ at http://msdn.microsoft.com/workshop/security/client/certsvr.asp. Digital Certificates at http://www.microsoft.com/security/tech/Certificates/enroll.asp.
I'm using Visual InterDevÂ® 6.0 and I would like to know how to set a design-time control (DTC) button to be the default for the page (so it doesn't have to be clicked on). I don't want to use an HTML submit button. I want to provide logging onto a site, allowing the user to fill in the user name and password, and press Enter because the control has the default focus.
Reading between the lines, I take it that you want to present the user with a normal looking form that will ask for user name and password, but instead of actually relying on the typical form submission process, you want to use the onclick method of a DTC button. You want this to happen when the user presses the Enter button after filling out the page. You could use DTC elements for the entire process, and thus not need to use a form at all. But since your question focused on the use of a form, I'll assume you have some reason you need to do it this way. Take a look at the code in Figure 1. While it doesn't use a DTC button, it shows everything you need up to the point of submission. The key aspects are that the code is using an image for submission, and that image is invisible. This allows the Enter button to start the submission process. The other important item I've defined is an onsubmit handler for the form. After this handler does whatever I tell it to (in this case, post a message box), it returns false, which cancels the form submission. Depending on exactly how you are coding your DTC elements, you could invoke the appropriate function of your DTC button during the processing of the onsubmit handler. You could call Button1_onclick here to simulate a button click. There could be some interaction problems while processing this action within the onsubmit handler, depending on what else you're doing, so you could use window.setTimeout to queue up the function before returning false to the onsubmit event.
I read an old Geektogeek column regarding various compatibility issues that arise when using Word with Internet Explorer and Navigator. I was excited to see that the first question you addressed was almost exactly what I've been asking for months: how to run Word documents inline in a browser. While your column dealt with opening a Word document in a browser on a PC without Word installed, I simply want to make Word open in a browser window on a computer that has the program installed. But I want Word to open in a particular frame. This is vital since I want users to be able to compose documents in Word while simultaneously reading content provided on the Web site.
Opening a Word document in a frame is relatively simple:
<frameset cols="100,*"><frame src="WebInfo.html"><frame src="WordDoc.doc"></frameset>
But I don't think this will do what you want it to. For one thing, the user can cause the Word document to come up in the browser or in a separate application. This is something that you, the Web designer, have no control over. Another problem is that when a user opens a Word document that lives on your Web site, he will not be allowed to post updates back to it. You won't be able to randomly open and access documents on the user's machine in this fashion either because that would obviously be a security violation. Quite frankly, if you are trying to provide your users with a view of Web information while at the same time allowing them to enter information into a Word document, I highly recommend that you create a project in Visual BasicÂ® that does this. You can easily insert both a Word object and an IEHTML object into a Visual Basic form. Using these two together will allow you to create a rich experience in which you have full control over how and where the document is maintained.
From the July 2000 issue of MSDN Magazine.
More MSDN Magazine Blog entries >
Browse All MSDN Magazines
Subscribe to MSDN Flash newsletter
Receive the MSDN Flash e-mail newsletter every other week, with news and information personalized to your interests and areas of focus.