Author |
Message |
Kris Rudi #1 / 7
|
 odd Add Note behavior
I have a web page running from within outlook, and I use client-side VBScript to add a new note, but when the new note pops up, it always goes out of focus, behind outlook (deselected in task bar). I create the object like this: Set ol = CreateObject("Outlook.Application") Set myNameSpace = ol.Application.GetNameSpace("MAPI") set myFolder = myNameSpace.Folders("Public Folders").Folders("All Public Folders").Folders("clients").Folders("Client Folder Name").Folders("Notes") set myItem = myFolder.Items.Add myItem.display This does create the note, and will add it to the correct folder, but the user clicks on a link to add the note, and then the note pops up, quickly "hides", and the user has to click on the icon in the task bar to bring the new note to the foreground. Is there something I can do to make it stay on top? Thanks, -- Kris Rudin, MS, MCP Aurora Consulting Group, Inc.
|
Mon, 04 Apr 2005 05:15:32 GMT |
|
 |
Patricia Cardoza - [MVP - Outlook #2 / 7
|
 odd Add Note behavior
Is there any code after the last line posted in the same subroutine? -- Patricia Cardoza Outlook MVP www.cardozasolutions.com ~Please post all replies to the newsgroup~
Quote: > I have a web page running from within outlook, and I use client-side > VBScript to add a new note, but when the new note pops up, it always goes > out of focus, behind outlook (deselected in task bar). > I create the object like this: > Set ol = CreateObject("Outlook.Application") > Set myNameSpace = ol.Application.GetNameSpace("MAPI") > set myFolder = myNameSpace.Folders("Public Folders").Folders("All Public > Folders").Folders("clients").Folders("Client Folder
Name").Folders("Notes") Quote: > set myItem = myFolder.Items.Add > myItem.display > This does create the note, and will add it to the correct folder, but the > user clicks on a link to add the note, and then the note pops up, quickly > "hides", and the user has to click on the icon in the task bar to bring the > new note to the foreground. > Is there something I can do to make it stay on top? > Thanks, > -- > Kris Rudin, MS, MCP > Aurora Consulting Group, Inc.
|
Mon, 04 Apr 2005 05:50:18 GMT |
|
 |
Kris Rudi #3 / 7
|
 odd Add Note behavior
No, that's the end of the sub. Kris
Quote: > Is there any code after the last line posted in the same subroutine? > -- > Patricia Cardoza > Outlook MVP > www.cardozasolutions.com > ~Please post all replies to the newsgroup~
> > I have a web page running from within outlook, and I use client-side > > VBScript to add a new note, but when the new note pops up, it always goes > > out of focus, behind outlook (deselected in task bar). > > I create the object like this: > > Set ol = CreateObject("Outlook.Application") > > Set myNameSpace = ol.Application.GetNameSpace("MAPI") > > set myFolder = myNameSpace.Folders("Public Folders").Folders("All Public > > Folders").Folders("clients").Folders("Client Folder > Name").Folders("Notes") > > set myItem = myFolder.Items.Add > > myItem.display > > This does create the note, and will add it to the correct folder, but the > > user clicks on a link to add the note, and then the note pops up, quickly > > "hides", and the user has to click on the icon in the task bar to bring > the > > new note to the foreground. > > Is there something I can do to make it stay on top? > > Thanks, > > -- > > Kris Rudin, MS, MCP > > Aurora Consulting Group, Inc.
|
Mon, 04 Apr 2005 06:18:55 GMT |
|
 |
Patricia Cardoza - [MVP - Outlook #4 / 7
|
 odd Add Note behavior
How's the sub called? -- Patricia Cardoza Outlook MVP www.cardozasolutions.com ~Please post all replies to the newsgroup~
Quote: > No, that's the end of the sub. > Kris
> > Is there any code after the last line posted in the same subroutine? > > -- > > Patricia Cardoza > > Outlook MVP > > www.cardozasolutions.com > > ~Please post all replies to the newsgroup~
> > > I have a web page running from within outlook, and I use client-side > > > VBScript to add a new note, but when the new note pops up, it always > goes > > > out of focus, behind outlook (deselected in task bar). > > > I create the object like this: > > > Set ol = CreateObject("Outlook.Application") > > > Set myNameSpace = ol.Application.GetNameSpace("MAPI") > > > set myFolder = myNameSpace.Folders("Public Folders").Folders("All Public > > > Folders").Folders("clients").Folders("Client Folder > > Name").Folders("Notes") > > > set myItem = myFolder.Items.Add > > > myItem.display > > > This does create the note, and will add it to the correct folder, but > the > > > user clicks on a link to add the note, and then the note pops up, > quickly > > > "hides", and the user has to click on the icon in the task bar to bring > > the > > > new note to the foreground. > > > Is there something I can do to make it stay on top? > > > Thanks, > > > -- > > > Kris Rudin, MS, MCP > > > Aurora Consulting Group, Inc.
|
Mon, 04 Apr 2005 07:27:42 GMT |
|
 |
Kris Rudi #5 / 7
|
 odd Add Note behavior
The code snippet I have included is in a sub called AddNote(): sub AddNote() [code here] end sub I have a link on my web page that looks like this: <a href="#" onclick="AddNote()">Add a Note</a> Very basic and simple. Or, at least it seems to me... Thanks for looking into this! Kris
Quote: > How's the sub called? > -- > Patricia Cardoza > Outlook MVP > www.cardozasolutions.com > ~Please post all replies to the newsgroup~
> > No, that's the end of the sub. > > Kris
message
> > > Is there any code after the last line posted in the same subroutine? > > > -- > > > Patricia Cardoza > > > Outlook MVP > > > www.cardozasolutions.com > > > ~Please post all replies to the newsgroup~
> > > > I have a web page running from within outlook, and I use client-side > > > > VBScript to add a new note, but when the new note pops up, it always > > goes > > > > out of focus, behind outlook (deselected in task bar). > > > > I create the object like this: > > > > Set ol = CreateObject("Outlook.Application") > > > > Set myNameSpace = ol.Application.GetNameSpace("MAPI") > > > > set myFolder = myNameSpace.Folders("Public Folders").Folders("All > Public > > > > Folders").Folders("clients").Folders("Client Folder > > > Name").Folders("Notes") > > > > set myItem = myFolder.Items.Add > > > > myItem.display > > > > This does create the note, and will add it to the correct folder, but > > the > > > > user clicks on a link to add the note, and then the note pops up, > > quickly > > > > "hides", and the user has to click on the icon in the task bar to > bring > > > the > > > > new note to the foreground. > > > > Is there something I can do to make it stay on top? > > > > Thanks, > > > > -- > > > > Kris Rudin, MS, MCP > > > > Aurora Consulting Group, Inc.
|
Tue, 05 Apr 2005 01:15:19 GMT |
|
 |
Stuart Forres #6 / 7
|
 odd Add Note behavior
Possibly the # bookmark is making the link reference the page again (looking for a #), after the sub has run to call the note? Have you tried using a <input type=button onclick="AddNote()" value ="Add a note">? Does it do the same thing? Stuart
Quote: > The code snippet I have included is in a sub called AddNote(): > sub AddNote() > [code here] > end sub > I have a link on my web page that looks like this: > <a href="#" onclick="AddNote()">Add a Note</a> > Very basic and simple. Or, at least it seems to me... > Thanks for looking into this! > Kris
> > How's the sub called? > > -- > > Patricia Cardoza > > Outlook MVP > > www.cardozasolutions.com > > ~Please post all replies to the newsgroup~
> > > No, that's the end of the sub. > > > Kris
> message
> > > > Is there any code after the last line posted in the same subroutine? > > > > -- > > > > Patricia Cardoza > > > > Outlook MVP > > > > www.cardozasolutions.com > > > > ~Please post all replies to the newsgroup~
> > > > > I have a web page running from within outlook, and I use client-side > > > > > VBScript to add a new note, but when the new note pops up, it always > > > goes > > > > > out of focus, behind outlook (deselected in task bar). > > > > > I create the object like this: > > > > > Set ol = CreateObject("Outlook.Application") > > > > > Set myNameSpace = ol.Application.GetNameSpace("MAPI") > > > > > set myFolder = myNameSpace.Folders("Public Folders").Folders("All > > Public > > > > > Folders").Folders("clients").Folders("Client Folder > > > > Name").Folders("Notes") > > > > > set myItem = myFolder.Items.Add > > > > > myItem.display > > > > > This does create the note, and will add it to the correct folder, > but > > > the > > > > > user clicks on a link to add the note, and then the note pops up, > > > quickly > > > > > "hides", and the user has to click on the icon in the task bar to > > bring > > > > the > > > > > new note to the foreground. > > > > > Is there something I can do to make it stay on top? > > > > > Thanks, > > > > > -- > > > > > Kris Rudin, MS, MCP > > > > > Aurora Consulting Group, Inc.
|
Tue, 05 Apr 2005 04:12:03 GMT |
|
 |
Kris Rudi #7 / 7
|
 odd Add Note behavior
Good suggestion - but I found that you can call the Item.display method with a parameter to make it modal (ie, stay on top): myItem.display(true) That seems to work spiffy! Kris
Quote: > Possibly the # bookmark is making the link reference the page again (looking > for a #), after the sub has run to call the note? > Have you tried using a <input type=button onclick="AddNote()" value ="Add a > note">? Does it do the same thing? > Stuart
> > The code snippet I have included is in a sub called AddNote(): > > sub AddNote() > > [code here] > > end sub > > I have a link on my web page that looks like this: > > <a href="#" onclick="AddNote()">Add a Note</a> > > Very basic and simple. Or, at least it seems to me... > > Thanks for looking into this! > > Kris
message
> > > How's the sub called? > > > -- > > > Patricia Cardoza > > > Outlook MVP > > > www.cardozasolutions.com > > > ~Please post all replies to the newsgroup~
> > > > No, that's the end of the sub. > > > > Kris
> > message
> > > > > Is there any code after the last line posted in the same subroutine? > > > > > -- > > > > > Patricia Cardoza > > > > > Outlook MVP > > > > > www.cardozasolutions.com > > > > > ~Please post all replies to the newsgroup~
> > > > > > I have a web page running from within outlook, and I use > client-side > > > > > > VBScript to add a new note, but when the new note pops up, it > always > > > > goes > > > > > > out of focus, behind outlook (deselected in task bar). > > > > > > I create the object like this: > > > > > > Set ol = CreateObject("Outlook.Application") > > > > > > Set myNameSpace = ol.Application.GetNameSpace("MAPI") > > > > > > set myFolder = myNameSpace.Folders("Public
Folders").Folders("All Quote: > > > Public > > > > > > Folders").Folders("clients").Folders("Client Folder > > > > > Name").Folders("Notes") > > > > > > set myItem = myFolder.Items.Add > > > > > > myItem.display > > > > > > This does create the note, and will add it to the correct folder, > > but > > > > the > > > > > > user clicks on a link to add the note, and then the note pops up, > > > > quickly > > > > > > "hides", and the user has to click on the icon in the task bar to > > > bring > > > > > the > > > > > > new note to the foreground. > > > > > > Is there something I can do to make it stay on top? > > > > > > Thanks, > > > > > > -- > > > > > > Kris Rudin, MS, MCP > > > > > > Aurora Consulting Group, Inc.
|
Tue, 05 Apr 2005 05:49:00 GMT |
|
|
|