Click here to Skip to main content
11,494,407 members (70,018 online)

JavaScript

 
AnswerRe: jquery tabslideout plugin and wired behavior Pin
Mayor Daily17-Dec-12 5:22
memberMayor Daily17-Dec-12 5:22 
GeneralRe: jquery tabslideout plugin and wired behavior Pin
Tridip Bhattacharjee18-Dec-12 1:55
memberTridip Bhattacharjee18-Dec-12 1:55 
QuestionNeed help understanding binding Pin
Steve Bondy7-Dec-12 15:00
memberSteve Bondy7-Dec-12 15:00 
QuestionText replace Pin
rakeshs3127-Dec-12 0:06
memberrakeshs3127-Dec-12 0:06 
AnswerRe: Text replace Pin
Richard MacCutchan7-Dec-12 1:43
mvpRichard MacCutchan7-Dec-12 1:43 
GeneralRe: Text replace Pin
rakeshs3129-Dec-12 6:40
memberrakeshs3129-Dec-12 6:40 
QuestionJQuery datePicker SelectMultiple format dd/mm/yy Pin
xnaLearner6-Dec-12 1:37
memberxnaLearner6-Dec-12 1:37 
AnswerRe: JQuery datePicker SelectMultiple format dd/mm/yy Pin
srinivas nv6-Dec-12 22:50
membersrinivas nv6-Dec-12 22:50 
GeneralRe: JQuery datePicker SelectMultiple format dd/mm/yy Pin
xnaLearner10-Dec-12 1:04
memberxnaLearner10-Dec-12 1:04 
QuestionDelete selected rows by table id using javascript Pin
Member 88023075-Dec-12 9:05
memberMember 88023075-Dec-12 9:05 
AnswerRe: Delete selected rows by table id using javascript Pin
Deepak Kr15-Dec-12 19:45
memberDeepak Kr15-Dec-12 19:45 
GeneralRe: Delete selected rows by table id using javascript Pin
Member 88023076-Dec-12 7:20
memberMember 88023076-Dec-12 7:20 
AnswerRe: Delete selected rows by table id using javascript Pin
Graham Breach6-Dec-12 22:41
memberGraham Breach6-Dec-12 22:41 
QuestionHTML5 Javascript Issue [modified] Pin
John Simmons / outlaw programmer3-Dec-12 2:09
mvpJohn Simmons / outlaw programmer3-Dec-12 2:09 
This weekend, I wrote a HTML5 web page with some javascript. This page is composed of eight canvases, each of which displays a certain set of images. The background image is a christmas tree, and each succeeding layer displays a group of ornaments or lights. What ornaments are displayed is determined by the contents of an XML data file. It works fine in the following browsers:

- FireFox v16+
- Google Chrome 23+
- iOS Safari v5.1+

It works partially in the following browsers:

- Opera 12.11 - the background image shows up, but nothing else.
- Android 4.2 Phones - the nutcracker ornament doesn't show up

And doesn't work at all in IE9. (!) This is a *big* problem.

I haven't tried Windows Safari because I hate installing Apple crap on my system, and IE8 (and earlier) is probably a waste of time.

Here's the link to the page: Tree of hope demo[^]

And to download the page source: Zipped web site files[^]

I have no idea why IE9 and Opera refuse to work, but I suspect the problem might be similar in nature. I could really use some help here, because I know just enough about javascript to be considered a deadly weapon.

IE breaks when it tries to call context.drawImage() the first time. I thought it might be because I was only specifying the x/y coordinate, so I added the width and height, but that didn't fix it. Opera breaks in the *2nd* call to context.drawImage() - it draws the tree, but none of the ornament canvases. In both cases, the context in question is indeed valid,and the image it's trying to draw is defined (not null).
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997


modified 3-Dec-12 7:35am.

AnswerRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 6:00
memberGraham Breach3-Dec-12 6:00 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 6:22
mvpJohn Simmons / outlaw programmer3-Dec-12 6:22 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 7:29
memberGraham Breach3-Dec-12 7:29 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 7:40
mvpJohn Simmons / outlaw programmer3-Dec-12 7:40 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 7:48
memberGraham Breach3-Dec-12 7:48 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 10:09
mvpJohn Simmons / outlaw programmer3-Dec-12 10:09 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 12:02
memberGraham Breach3-Dec-12 12:02 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 16:20
mvpJohn Simmons / outlaw programmer3-Dec-12 16:20 
GeneralRe: HTML5 Javascript Issue Pin
Media2r18-Dec-12 1:51
memberMedia2r18-Dec-12 1:51 
GeneralRe: HTML5 Javascript Issue Pin
BrainiacV18-Dec-12 4:46
memberBrainiacV18-Dec-12 4:46 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 6:29
mvpJohn Simmons / outlaw programmer3-Dec-12 6:29 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer4-Dec-12 2:06
mvpJohn Simmons / outlaw programmer4-Dec-12 2:06 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer4-Dec-12 8:31
mvpJohn Simmons / outlaw programmer4-Dec-12 8:31 
GeneralRe: HTML5 Javascript Issue Pin
Zaf Khan19-Dec-12 21:36
memberZaf Khan19-Dec-12 21:36 
AnswerRe: HTML5 Javascript Issue Pin
Zaf Khan19-Dec-12 21:42
memberZaf Khan19-Dec-12 21:42 
QuestionCatching Exceptions in Javascript Pin
Ved Yo29-Nov-12 15:43
memberVed Yo29-Nov-12 15:43 
QuestionPartial Overlay to cover ajax request Pin
Sentenryu29-Nov-12 2:51
memberSentenryu29-Nov-12 2:51 
QuestionHow to get value from TD Pin
Chitttapa26-Nov-12 11:03
memberChitttapa26-Nov-12 11:03 
Questionhelp me please Pin
doa'a_9224-Nov-12 5:16
memberdoa'a_9224-Nov-12 5:16 
AnswerRe: help me please [modified] Pin
Leon Munir25-Nov-12 14:46
memberLeon Munir25-Nov-12 14:46 
GeneralRe: help me please Pin
J4amieC25-Nov-12 22:13
memberJ4amieC25-Nov-12 22:13 
GeneralRe: help me please Pin
Leon Munir26-Nov-12 3:06
memberLeon Munir26-Nov-12 3:06 
GeneralRe: help me please Pin
J4amieC26-Nov-12 6:30
memberJ4amieC26-Nov-12 6:30 
GeneralRe: help me please Pin
Marcus Kramer26-Nov-12 6:37
memberMarcus Kramer26-Nov-12 6:37 
GeneralRe: help me please Pin
doa'a_9226-Nov-12 10:28
memberdoa'a_9226-Nov-12 10:28 
Questiononmouseover and document.getElementById Pin
SRJ9223-Nov-12 5:18
memberSRJ9223-Nov-12 5:18 
AnswerRe: onmouseover and document.getElementById Pin
J4amieC23-Nov-12 5:48
memberJ4amieC23-Nov-12 5:48 
GeneralRe: onmouseover and document.getElementById Pin
SRJ9223-Nov-12 6:49
memberSRJ9223-Nov-12 6:49 
AnswerRe: onmouseover and document.getElementById Pin
jainsachin30-Nov-12 10:17
memberjainsachin30-Nov-12 10:17 
Questiondisplaying different contentunder single layout Pin
radha123 from Hyderabad23-Nov-12 4:32
memberradha123 from Hyderabad23-Nov-12 4:32 
AnswerRe: displaying different contentunder single layout Pin
manojwadnere28-Dec-12 1:07
membermanojwadnere28-Dec-12 1:07 
QuestionRegular expression Pin
Member 962181822-Nov-12 3:25
memberMember 962181822-Nov-12 3:25 
AnswerRe: Regular expression [modified] Pin
n.podbielski22-Nov-12 21:00
membern.podbielski22-Nov-12 21:00 
GeneralRe: Regular expression Pin
Manfred R. Bihy22-Nov-12 22:20
mvpManfred R. Bihy22-Nov-12 22:20 
GeneralRe: Regular expression Pin
n.podbielski23-Nov-12 22:15
membern.podbielski23-Nov-12 22:15 
Questionform validation Pin
therainking7821-Nov-12 23:07
membertherainking7821-Nov-12 23:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 28 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid