Posts Tagged ‘IE’

Browser with Tabs, Why not Ctrl+Z (Undo) to recover closed tabs?

Almost every program has “Undo” feature, popularly known as Ctrl+Z (because of the key combination)! Added to this even when working with Windows based operating system, when you have accidentally delete files or folders, you can recover them back immediately by pressing Ctrl+Z

Later today I had a very interesting article (in one of the tabbed page) that I was reading in IE for later day. After sometime without realizing this I closed this tab page and my fingers went on to press Ctrl+Z automatically, but there was no action for this keystroke. That’s when I thought of blogging about this asking why this feature wasn’t thought of or implemented in any of the latest browsers?


Launching an Infopath form with a button click

March 22, 2010 2 comments

When an Infopath form is published to Sharepoint Form Library, the only way to open a new form is either my navigating to the corresponding sharepoint library and click “New” or by clicking on the “Fill Out This Form” menu.

In order to open a new Infopath Form elsewhere in the Sharepoint site, you can use the below script and use a button click to achieve the same. As shown in the script below all you need is the sharepoint document library link.

<script type="text/vbscript" language="vbscript">
	Dim urlLibrary
	Dim urlTemplate
	urlLibrary = "http://sharepoint/sites/teamsite/DocLibrary"
	urlTemplate = urlLibrary + "/forms/template.xsn"

	Sub CreateNewInfoPathDocument
	  dim objOpenXMLDocuments
	  set objOpenXMLDocuments = Createobject("SharePoint.OpenXMLDocuments")
	  objOpenXMLDocuments.CreateNewDocument2 window, urlTemplate, urlLibrary
	End Sub

<!--Button Code-->

<button onclick="CreateNewInfoPathDocument()">Create New</button>
%d bloggers like this: