473,796 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

using javascript to set outlook meeting request date

16 New Member
I have a script for my companies internal network that I am developing to ease the transition away from out old conference room scheduling system to outlook. (this is a stop gap until we can get developer time to do a proper server side solution)

The users are use to a web interface and the conference rooms AD names are not human friendly so I decided to use some ActiveX to create a sort of meeting request link on a web page so when you click on it, it opens up the meeting request form with the proper conference room address already populated in the form.

The problem I have now is how to I use a text field data that holds the users desired date so when they look at availability of the room the proper day will already be there.

I know I need to set the my object's start property to a datetime, but, after parsing the string for the numerical values, how do I turn them into a datetime value with javascript?

Thanks,

Jeremy
Nov 18 '07 #1
10 6095
acoder
16,027 Recognized Expert Moderator MVP
Use the Date() object and set the date with the setFullYear() method.
Nov 19 '07 #2
mofmans2ndcoming
16 New Member
Use the Date() object and set the date with the setFullYear() method.
That will produce a date that outlook will accept?

Edit:

I just tried and it will not accept a data object or any of its possible outputs. Outlook accepts the "DateTime" data type. Javascript's date() object is not that type, nor does it output to that type.
Nov 19 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
Oh, I thought you wanted a date/time object within JavaScript.

What format does Outlook take?
Nov 19 '07 #4
mofmans2ndcoming
16 New Member
Oh, I thought you wanted a date/time object within JavaScript.

What format does Outlook take?

I posted in my edit, but will reply.

Outlook accepts the datetime type used in MS's APIs.


Thanks for the fast reply.
Nov 19 '07 #5
acoder
16,027 Recognized Expert Moderator MVP
This is not possible with standard JavaScript but you could possibly achieve this with ActiveX and a bit of VB(?)

Perhaps if you post your code, someone will be able to help you with the ActiveX code.
Nov 19 '07 #6
mofmans2ndcoming
16 New Member
Expand|Select|Wrap|Line Numbers
  1.     objOL = new ActiveXObject("outlook.application");
  2.     objAppt = objOL.CreateItem(olAppointmentItem);
  3.     objAppt.Subject = "My Appointment";
  4.     /*objAppt.Start = */
  5.  
  6.     objAppt.MeetingStatus = olMeeting;
  7.     objAppt.start = formatDate(date);
  8.     objAppt.RequiredAttendees = "mytest@testing.net";
  9.     objAppt.display();
Thank you for your help thus far.

I figured I would have to use some more activeX. the issue I have right now is that I do not have access to a back end so server side code will not fly. Is there an ActiveX object that I can use, or a method in the current object I have that will allow me to create a datetime type?

What are the recommendations ?

Thanks
Nov 19 '07 #7
mofmans2ndcoming
16 New Member
Would this work?

Expand|Select|Wrap|Line Numbers
  1. <script language = "vbscript">
  2. MyVBFunction(a,b,c)
  3. [function that accepts integers and returns a DateTime]
  4. </script>
  5.  
  6. <script language = "javascript">
  7. ...
  8.  
  9. ApptObj.start = MyVBFunction(1,2,2007);
  10.  
  11. ....
  12. </script>
I have looked around and mixing and intermingling like this seems possible. VBScript should have the ability to generate a DateTime, it runs client side, and I am in an IE only environment so incompatibility with other browsers will not matter.

ideas?
Nov 20 '07 #8
acoder
16,027 Recognized Expert Moderator MVP
OK, try something like:
Expand|Select|Wrap|Line Numbers
  1. objAppt.Start = "11/20/2007 3:00:00 PM";
That should hopefully work with your ActiveX code.
Nov 20 '07 #9
mofmans2ndcoming
16 New Member
OK, try something like:
Expand|Select|Wrap|Line Numbers
  1. objAppt.Start = "11/20/2007 3:00:00 PM";
That should hopefully work with your ActiveX code.
That worked! I had tried something like that but I think I did not include the time.

I am glad I will not have to use a mixture of VBScript and Javascript.

Is there a reference anywhere that you used? I tried looking up information on MSDN but that site is not the friendliest to navigate when you are not use to using it.

Thanks for your help.

Jeremy
Nov 20 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

7
4264
by: | last post by:
Hello, I would like to do the following from a asp.net button click: <form method="POST" action="https://www.1234.com/trans_center/gateway/direct.cgi"> <input type="hidden" name="Merchant" value="Merchant Name"> <input type="hidden" name="OrderID" value="Unique OrderID value"> <input type="hidden" name="email" value="Customers email address (OPTIONAL)">
5
4454
by: | last post by:
Hi all, HttpWebRequest, and SoapHttpClientProtocol both expose a ClientCertificates property, which can hold multiple client certificates, but on the service side, it can only receive one client certificate, since it derives System.Web.Services.WebService class, and it's Context.Request.ClientCertificate is a single HttpClientCertificate object, is there a way to receive all the client certificates that is sent in the request? or does IIS...
2
3130
by: ramkum | last post by:
Hi, I have a system that allows ppl to set up and join online meetings. Currently, I just ask the guy organizing a meeting to submit his timezone and whether its in DST or not on the date of the meeting, and just show that to everyone along with the date and time of the meeting. What I would ideally like to do, is show everyone the date and time of every meeting in THEIR timezone. I think I've pretty much figured out how to use Javascript...
4
12503
by: vidi | last post by:
Hi all, Can someone please send me a working JAVA code that would send a Meeting Request to MS Outlook ? I Badly need this ASAP ... My id: mailvidi@gmail.com Thank You, Vidi
3
2099
by: anthonybrough | last post by:
I have an asp page that has a form to collect user data in a form. when the user clicks submit the input is validated. If any fields are not acceptable the user clicks on a button to go back to the original form to correct the input. This all works fine until I try to incorporate a javascript to display a popup calendar which posts the selected date back to a field on the form. This script works fine in itself, however if the page is...
2
2297
by: keri | last post by:
Hi, I am going to post this in an outlook group as well - however somebody here probably has a better answer for me. I have a table where the user assigns a activity to a date (eg meeting or holiday etc). I want those dates assigned an activity to appear as an appointment in outlook. I know how to code to create the appointment as the user enters the activity for the date - however the user may then change the activity for a certain...
1
6165
by: GraemeC | last post by:
I have a database that is used to book venues and assign people to those venues. The person doing the booking can send an appointment request from Access to an individuals Outlook calendar. This part of the system works fine. I can also send a cancelled appointment request from Access to the same individual for the same appointment but for some reason Outlook is not recognising the cancel request as being for the original appointment so when...
13
5035
by: mofmans2ndcoming | last post by:
Hi all, I have looked through MSDN on this one and can't seem to find the answer anywhere. I have created a JavaScript that will launch a meeting request for an address selected from a list. The problem that is occurring is that when the meeting request opens, and I look at the availability grid, any recipient I put in from the code shows "no information" for availability. The weird thing is that if I delete something like a middle...
2
2499
by: Vighneswar | last post by:
Hi All I am doing with a standalone application in .NET, where I have to invoke the Outlook / Outlook Express by passing account info (username, password, pop3 server, ... etc) and SQL Server client by passing the connection details. I request anyone can suggest me the approach in meeting the requirement. Thanks in advance. Regards
0
9683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9529
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.