Suresh Behera

The Microsoft .Net Junkies

News

Blogroll

Reading

July 2005 - Posts

About the Pop-up Blocker

About the Pop-up Blocker

Internet Development Index

The Pop-up Blocker feature in Microsoft Internet Explorer 6 for Microsoft Windows XP Service Pack 2 (SP2) protects users from malicious activity that is often hidden behind or initiated by pop-up windows. Designed to give users more control over their Web browsing experience, this feature is on by default, and blocks script-initiated pop-up and pop-under windows that launch automatically from a Web site. By understanding how the Pop-up Blocker works, you can ensure that important information on your Web site gets noticed, and you can provide your users with a better Web-browsing experience.

This document assumes that you are familiar with Dynamic HTML (DHTML) and scripting.

This topic contains the following sections.

Why Do We Need a Pop-up Blocker?

There are many ways in which pop-up windows have been used either to annoy users or to hide malicious activity. Some of the most annoying pop-up window actions include windows that continually reopen when the user closes them, pop-ups that blanket the desktop with banner ads and cover the entire usable space, or pop-ups that keep reappearing, spawned from an offscreen or hidden window. Probably one of the most annoying actions is the pop-up window that appears suddenly and blocks the user's screen, with no visible way to close the window.

Malicious scripts carry out disruptive activities, such as creating pop-up windows that attempt to imitate a user's desktop and then remain in focus, creating pop-up windows that cannot be closed, or creating pop-ups that appear offscreen where they go unnoticed. These activities often hide malicious activity running behind the pop-up window.

What Does the Pop-up Blocker Block?

The Pop-up Blocker blocks script-initiated pop-up windows that are created by the following methods, without the user clicking a link. If users enable the most restrictive setting in the Pop-up Blocker Settings, the Pop-up Blocker blocks windows that are opened by these methods from a user-initiated action, such as clicking a page element or tabbing to a link and then pressing ENTER.

In addition to blocking script-initiated pop-up windows, the Pop-up Blocker also blocks

  • setHomePage() from launching automatically. This function can be launched only from a user-initiated action, such as clicking a page element or tabbing to a link and then pressing ENTER.
  • Scripts from automatically targeting the search pane.
  • Windows that are opened automatically from DHTML elements that overlap content on the same page.
  • Scripts from calling window.open on an onunload event in an attempt to get the user to stay on a site, or to serve the user one more ad.
  • Scripts from targeting and then navigating to a named frame that doesn't exist.

When the Pop-up Blocker prevents pop-up windows from appearing, the action triggers the Information Bar. Users can decide if they want to see the blocked window by clicking on the Information Bar.

For More information..
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp

 

Suresh Behera

 

Posted: Jul 29 2005, 10:48 AM by Suresh Behera | with no comments
Filed under:
Office Development Resource

Good document resource for Mcirosoft Office development

http://www.only4gurus.com/v3/ShowCat.asp?Cat=Office%20Development&PP=14

Microsoft Office and OLE Automation Documentation Links

Automation, program-to-program control, is our favorite programming technique.  Below are a number of useful links to information regarding this technology.  Almost all links are to articles on msdn.microsoft.com.  While edited here to remove some lesser used sections and to add the General Info section, the vast majority of this material can be found, in its original form, at http://msdn.microsoft.com/library/techart/vsofficedev.asp.

General Info
Office Automation
   
Automating MS Office Applications
   
Visual Basic - Frequently Asked Questions
   
Visual Basic - Information and Sample Code
   
Visual C++/MFC - Frequently Asked Questions
   
Visual C++/MFC - Information and Sample Code
   
Troubleshooting Office Automation
Office Web Solutions
   
Office on the Web Server - Frequently Asked Questions
   
ASP - Server-Side Solutions
   
Client-Side Solutions
   
Office Web Components
   
Office HTML/XML Documents
Office Add-ins and Components
   
COM Add-ins
   
Smart Tags
   
Excel RealTimeData (RTD) Servers
   
Excel Add-ins (XLLs)
   
Word Add-ins (WLLs)
   
ActiveX Controls
Office Document Format Information
   
Office Binary File Formats
   
Office Document Properties
Office OLE Objects and ActiveX Documents
Automating Internet Explorer
Configuring DCOM 

More ..
http://www.jinksinc.com/JTMOther/JTMAutomation.html

 

Suresh Behera

Posted: Jul 27 2005, 12:15 PM by Suresh Behera | with no comments
Filed under:
Server-Side Automation of Office

It was bit difficult to create a server side office automation and now it is easy in VSTO 2.0.Here is nice article from MSDN.

Overview of Server Capabilities in Visual Studio 2005 Tools for Office

Introduction
Architectural Considerations when Using Server Data Capabilities
Deployment and Security Considerations
Sample Solution Development Steps
Code Security
Conclusion
Additional Resources
About the Author

Cheers..

Suresh Behera

Excel .Net Technical Articles

Recently Published


Excel 2003

Office Shared Services

Suresh Behera

Super-Easy Guide to the Microsoft Office Excel 2003 Object Model
Learn how easy it is to use the Excel object model to customize the way you work with Excel. Lessons include creating subroutines, the basics of objects, methods, and properties, and using dialog boxes. (29 printed pages)

Contents

Introduction
Why Should I Learn How to Use the Excel Object Model?
Using This Guide
What You Need to Know Before You Get Started
What You'll Know When You Finish the Lessons
Setting Up
Lesson 1: Getting Started
Lesson 2:Programming Concepts: Sub. . . End Sub and Procedures
Lesson 3: Programming Concepts: Objects, Methods, and Properties
Lesson 4: Real-World Example #1
Lesson 5: Creating Your Own Dialog Boxes
Lesson 6: Programming Concept: Collections
Lesson 7: Programming Concept: If This, Then That
Lesson 8: Real World Example #2
Where to Go from Here
Appendix A: Hands-on Challenge Answers

Suresh Behera

How to force User to Enable POPUP

I was writing some popup enable script which looks as follows.

Create three HTML page such as login.html, dummy.html and Youhavetoenable.html

1.  Write following JavaScript code in login.html page

<script type="text/javascript">
 function showMessage ( sURL )
 {
  var w = "top=20,left=30,width=840,height=800,status=yes,scrollbars=yes,resizable=1";
  void window.open ( sURL,"_top",w )
 }
 result = window.open("dummy.html", "popped", "width=10, height=10, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no");
 if (result != null)
 {
  // Not blocking
 }
 else
 {
  //blocking
  showMessage ( 'Youhavetoenable.html' );
 }

</script>

2. Create dummy.html .This is page do nothing other than just to test the window.open.You can write following code on it.

<html>
<head>
<title>Suresh Behera</title>
</head>
<body>
<script language=javascript>
 window.close();
</script>
</body>
</html>


3.Create Youhavetoenable.html  page.This page give message to enable the popup

The above tips tested on IE and it works fine for me.If you have any other idea please let me know.Yes,this will not work if scripting is disabled.

For more about popup.Please have a look on following URL

http://www.microsoft.com/windowsxp/using/web/sp2_popupblocker.mspx
http://www.google.com/support/toolbar/bin/topic.py?topic=116&hl=en

 

Cheers.

Suresh Behera

Posted: Jul 22 2005, 04:56 PM by Suresh Behera | with 4 comment(s)
Filed under:
Update Database on browser close

I was trying to figure to solve the above problem. I tried following way but did not suite perfectly to my requirement and at last I stick to AJAX which is really fun and interesting to implement it.

1. Tried JavaScript onUnload/Onbeforeunload event
                    Problem 
                         - It does not work properly
                         - Do not have control of current browser
                         - Does note work on Netscape

2. Calling web service from JavaScript
3. Remote Scripting from Java Script.
4. XML Activex Object
5. Using AJAX (For More
http://weblogs.asp.net/mschwarz)
         Tips:   
          - For this make sure you disable the Google Popup for JavaScript onunload.
          - Debuge Java Script error on AJAX.

I will try to write more about this issue later some free time.If you have any question send me a mail.

Cheers.

Suresh Behera

Posted: Jul 21 2005, 11:57 AM by Suresh Behera | with 3 comment(s)
Filed under:
Office 2003 Smart Document Software Development Kit (SDK)

This download is for developers who are interested in developing custom solutions that use the smart document functionality introduced in the Microsoft® Office System.

The Microsoft® Office 2003 Smart Document SDK contains documentation, tools, sample code, and XML schemas.

http://www.microsoft.com/downloads/details.aspx?FamilyId=24A557F7-EB06-4A2C-8F6C-2767B174126F&displaylang=en

Suresh Behera

Posted: Jul 21 2005, 11:13 AM by Suresh Behera | with no comments
Filed under:
Department @ Microsoft

Search Jobs or learn more about this department:

Games
Develops and improves Microsoft's cutting-edge games software for the PC and for the Xbox games console.

Hardware
Designs and builds Microsoft hardware peripherals, from ergonomic keyboards and mice to cutting-edge joysticks and game accessories, as well as the Xbox games console.

Information Security
Oversees and devises electronic security solutions for Microsoft products, Internet services, and internal systems.

IT Operations
Manages and maintains Microsoft's corporate IT infrastructure, from networks to intranets to prototype IT technology.

Localization
Translates and adapts Microsoft software to other languages and cultures.

Product Design
Designs the visual and functional front-end user experience for Microsoft products.

Program Management
Defines a new product's technical aspects and oversees its hands-on development.

Software Development
Writes the code that drives Microsoft products and upgrades.

Software Testing
Responsible for maintaining high quality-assurance standards for all Microsoft products.

Usability
Researches and analyzes how customers use Microsoft products, and oversees the usability of products in development.

User Assistance & Education
Plans and delivers assistance—including UI text, Web articles, training, templates, columns, books, quizzes, and Help files — to help customers get the most from Microsoft products.

More
http://members.microsoft.com/careers/careerpath/technical/default.mspx

Suresh Behera

What is it like to interview at Microsoft?

A interview from Zoe Goldring and Gretchen Ledgard

More

http://channel9.msdn.com/ShowPost.aspx?PostID=18472

Suresh Behera

More Posts Next page »