Jump to content

Recommended Posts

Posted

Hi All,

 

I have been displaying a google calendar on the desktop of the computers using .HTA that i was sent by somebody on here.

 

This has stopped working with the errors An error has occurred in the script on this page "object doesnt support property or method 'map'

 

An error has occurred in the script on this page "object doesnt support property or method '_init'

 

The code is:

 

Calendar            window.resizeTo(480,410); //just so I can deal with a small window so I can move around my screen    var windowWidth = window.outerWidth || document.body.clientWidth;    window.moveTo(screen.width - windowWidth,0);    

 

Does anybody know why this may be?

 

Kind Regards.

Posted

Hello,

 

This particular HTA code you have supplied works fine. Have you removed anything before adding it here?

Although your Select="Yes" does not have a quote at the start. I have used this and gave it a quick look over and it creates a small HTA window. with an empty iFrame.

  • Thanks 2
Posted

Maybe its the iframe to embed the google calendar.

 

Here is the code i have with the calendar still in.

 

Calendar			window.resizeTo(480,410); //just so I can deal with a small window so I can move around my screen	var windowWidth = window.outerWidth || document.body.clientWidth;	window.moveTo(screen.width - windowWidth,0);	

Posted

Tell you what - would you like me to write a more modern version of this?

Is it an account you have access to so you have the login details etc?

 

Google seem to have blocked calendar access via iFrames.

 

Posted

Ok - can you please list all mandatory requirements and all "would be nice to have" and I shall do my best to knock up a quick one for you :)

It will be using C# and a WPF application :)

Posted
Nearly sorted but might have to finish it when I get home due to the fact I don't have one of my libraries with me that enables me to use Chrome but I just had it working but I want to improve it :)
Posted

Currently have:

> Calendar loading using Chrome

> Calendar not showing in Taskbar

> Calendar has no border or title bar so no close or minimize button (I have also got it to ignore Alt+F4, I can remove this if you like)

> It is resizable by grabbing the edges but I have set a minimum size so it cannot be utterly crushed

 

Just need to set the opening location on the screen.

Posted

Well I think I am finished, just needs you to test it and approve it!

Would you like to PM me and we can find away to send you the .exe and the project file?

 

Currently:

> Loads the calendar

> Loads in the top right corner

> Can't be closed even with Alt+F4

> Can't be minimized

> Can be resized but can't be made super super small

> Has a small bit of text at the bottom that says "Refresh" if the user wants to manually refresh

> Auto refreshes every 5 minutes

 

I hope this is ok.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...