Welcome Guest   | Login   
  Search  
  Index |  Recent Threads |  Register | 


Quick Go »
Thread Status: Normal
Total posts in this thread: 3
[Change thread status] [Delete this Thread] [Move this Thread]
[Add To My Favorites] [Watch this Thread] [Post new Thread]
Author
Previous Thread This topic has been viewed 165 times and has 2 replies Next Thread
holytrinitypottstown
New Member



Joined: Aug 10, 2005
Posts: 10
Status: Offline

Edit this Post   Problem solved? ... all the weird JavaScript errors/oddities that people have been having Reply to this Post
Reply with Quote
[Delete this Thread]

Ever since I started using your site, I've had the same problems that many other users have reported (default date is Jan 1, 2000...also many event details are lost when trying to edit.)

I also have been getting a Javascript exception when loading any add/edit page:

Line: 1043
Char: 1
Error: Access is denied.
Code: 0
URL: http://localendar.com/elsie?DAM=EventEditor&event_id=7&public_event=Y

It struck me just now that this is probably related. So I traced the initial Click on Add Event into a debugger. The above error happens when your PopulateForm() function attempts to access properties of "document.styleSheets[1]". Even attempting a quick watch on "document.styleSheets[1].rules" yields "Access is denied". The URL of the offending stylesheet is "http://www.localendar.com/css/niftyCorners.css".

So somehow this stylesheet isn't recognized as being in the same security domain as the page/script that is trying to access it. Notice the url I've been using is "localendar.com". The script is trying to access "www.localendar.com". To the browser, this is two different domains, and access will be denied. It would be allowed if it were the other way around (child domains are allowed to access parents'.)

If you haven't reproduced it yet, you are probably using "www". I'll bet if you omit that and type just "localendar.com" you'll see the problem right away.

There may be something you can do on your servers to configure them to see the two as the same domain....another solution is to redirect people to "www" if you detect that they tried to go to "localendar.com".

Sorry for analyzing/intruding. I'm an engineer myself; I can't help it. biggrin

-John B.
----------------------------------------
[Edit 1 times, last edit by holytrinitypottstown at Aug 10, 2005, 5:42:57 PM]
[Aug 10, 2005, 5:42:16 PM] [First IP: 65.90.206.254 - Last IP: 65.90.206.254] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
holytrinitypottstown
New Member



Joined: Aug 10, 2005
Posts: 10
Status: Offline

Edit this Post   Re: Problem solved? ... all the weird JavaScript errors/oddities that people have been having Reply to this Post
Reply with Quote
[Delete this Post]

BTW the reason this would cause all the other problems is that the script of the current scope (PopulateForm) will halt after an error. Other scripts will continue, so it may not be obvious that there is a script problem...but I guess it's PopulateForm that fills in all the correct dates/etc.

Having said all that....Great job with the calendar. It's very well done.
[Aug 10, 2005, 5:45:07 PM] [65.90.206.254] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Aug 9, 2022
Posts: 6437
Status: Offline
Edit this Post   Re: Problem solved? ... all the weird JavaScript errors/oddities that people have been having Reply to this Post
Reply with Quote
[Delete this Post]

Close - the issue isn't specifically related to the domain name, but that was a valuable clue in that it connected 2 seemingly unrelated bugs we've been unable to duplicate.

Thanks for your help: And for your troubles (and helping us find ours), a free Premium Webmaster subscription! biggrin

Of course; I hope this is fixed now for everyone. Comments?
----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news
[Aug 12, 2005, 11:06:16 AM] [70.107.233.250] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
[Show Thread Printable Version] [Post new Thread]

Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us