Home > Domino Tips > Developer > HTML > Use ActiveX control to simulate a Notes Hotspot popup on the Web
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

HTML

Use ActiveX control to simulate a Notes Hotspot popup on the Web


Dhana Sekar
02.06.2002
Rating: -3.22- (out of 5) Hall of fame tip of the month winner


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


We all know, that by creating a hotspot popup in notes, and clicking on it will display a small popup. The same can be simulated on the Web. Normal idea is to open a new window and display the text. Rather than doing that, we can use active x controls to display a small beautiful tool tip. It works only on windows machines. Here is the way to do so.



Code

Step 1:
Create an object tag in your html or notes form like:

<OBJECT   id=popup   type="application/x-oleobject"  
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
;<//OBJECT>

The classid should be exactly the same as above.

Note: To create the object tag, you can directly create them on your form as pass through html, or created a computed for display/computed field and put the object tag as its formula.

Step 2:

Create an ordinary <a href> link
<A HREF=Javascript:ShowPopup()>Tool Tip Text</a>

Step 3:
Inside your script tag in the html head, put the following:

MyFont="Arial,8,,italic";
title="Simulating notes Hotspot popup"

Note: You can put these lines of code in the JSHeader of your form, or create a $$HTMLHead field with this code.

Step 4:
Write the ShowPopup function:

function ShowPopup()
{
document.getElementById("popup").TextPopup(title,MyFont,10,10,-1,-1);
}

Note: You can also put the function in the JSHeader of the form.

Now open your form/html in the browser and click on the link, a small beautiful tool tip help window will appear.

Thanks and Regards
Sekar

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
HTML
Trap an attachment path via the Domino file upload control field
A bevy of Notes/Domino development tips
Styling Lotus Domino Web fields
How to convert Microsoft Word or Microsoft Excel documents to HTML
An easier way to view multiple columns on the Web
How to print a form in landscape format automatically
Tip contest winner: Hide view column while being able to sort it
HTML signature maker
JavaScript autoclose window
Hide relevance score using inline style tag

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts