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
10 6095 acoder 16,027
Recognized Expert Moderator MVP
Use the Date() object and set the date with the setFullYear() method.
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.
acoder 16,027
Recognized Expert Moderator MVP
Oh, I thought you wanted a date/time object within JavaScript.
What format does Outlook take?
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.
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.
- objOL = new ActiveXObject("outlook.application");
-
objAppt = objOL.CreateItem(olAppointmentItem);
-
objAppt.Subject = "My Appointment";
-
/*objAppt.Start = */
-
-
objAppt.MeetingStatus = olMeeting;
-
objAppt.start = formatDate(date);
-
objAppt.RequiredAttendees = "mytest@testing.net";
-
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
Would this work? - <script language = "vbscript">
-
MyVBFunction(a,b,c)
-
[function that accepts integers and returns a DateTime]
-
</script>
-
-
<script language = "javascript">
-
...
-
-
ApptObj.start = MyVBFunction(1,2,2007);
-
-
....
-
</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?
acoder 16,027
Recognized Expert Moderator MVP
OK, try something like: - objAppt.Start = "11/20/2007 3:00:00 PM";
That should hopefully work with your ActiveX code.
OK, try something like: - 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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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)">
|
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...
|
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...
|
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
|
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...
| |
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...
|
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...
|
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...
|
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
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |