Click here to Skip to main content
       

JavaScript

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: jquery tabslideout plugin and wired behaviormemberTridip Bhattacharjee18 Dec '12 - 0:55 
QuestionNeed help understanding bindingmemberSteve Bondy7 Dec '12 - 14:00 
QuestionText replacememberrakeshs3126 Dec '12 - 23:06 
AnswerRe: Text replacemvpRichard MacCutchan7 Dec '12 - 0:43 
GeneralRe: Text replacememberrakeshs3129 Dec '12 - 5:40 
QuestionJQuery datePicker SelectMultiple format dd/mm/yymemberxnaLearner6 Dec '12 - 0:37 
AnswerRe: JQuery datePicker SelectMultiple format dd/mm/yymembersrinivas nv6 Dec '12 - 21:50 
GeneralRe: JQuery datePicker SelectMultiple format dd/mm/yymemberxnaLearner10 Dec '12 - 0:04 
QuestionDelete selected rows by table id using javascriptmemberMember 88023075 Dec '12 - 8:05 
AnswerRe: Delete selected rows by table id using javascriptmemberDeepak Kr15 Dec '12 - 18:45 
GeneralRe: Delete selected rows by table id using javascriptmemberMember 88023076 Dec '12 - 6:20 
AnswerRe: Delete selected rows by table id using javascriptmemberGraham Breach6 Dec '12 - 21:41 
QuestionHTML5 Javascript Issue [modified]mvpJohn Simmons / outlaw programmer3 Dec '12 - 1: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:35.

AnswerRe: HTML5 Javascript IssuememberGraham Breach3 Dec '12 - 5:00 
GeneralRe: HTML5 Javascript IssuemvpJohn Simmons / outlaw programmer3 Dec '12 - 5:22 
GeneralRe: HTML5 Javascript IssuememberGraham Breach3 Dec '12 - 6:29 
GeneralRe: HTML5 Javascript IssuemvpJohn Simmons / outlaw programmer3 Dec '12 - 6:40 
GeneralRe: HTML5 Javascript IssuememberGraham Breach3 Dec '12 - 6:48 
GeneralRe: HTML5 Javascript IssuemvpJohn Simmons / outlaw programmer3 Dec '12 - 9:09 
GeneralRe: HTML5 Javascript IssuememberGraham Breach3 Dec '12 - 11:02 
GeneralRe: HTML5 Javascript IssuemvpJohn Simmons / outlaw programmer3 Dec '12 - 15:20 
GeneralRe: HTML5 Javascript IssuememberMedia2r18 Dec '12 - 0:51 
GeneralRe: HTML5 Javascript IssuememberBrainiacV18 Dec '12 - 3:46 
GeneralRe: HTML5 Javascript IssuemvpJohn Simmons / outlaw programmer3 Dec '12 - 5:29 
GeneralRe: HTML5 Javascript IssuemvpJohn Simmons / outlaw programmer4 Dec '12 - 1:06 
GeneralRe: HTML5 Javascript IssuemvpJohn Simmons / outlaw programmer4 Dec '12 - 7:31 
GeneralRe: HTML5 Javascript IssuememberZaf Khan19 Dec '12 - 20:36 
AnswerRe: HTML5 Javascript IssuememberZaf Khan19 Dec '12 - 20:42 
QuestionCatching Exceptions in JavascriptmemberVed Yo29 Nov '12 - 14:43 
QuestionPartial Overlay to cover ajax requestmemberSentenryu29 Nov '12 - 1:51 
QuestionHow to get value from TDmemberChitttapa26 Nov '12 - 10:03 
Questionhelp me pleasememberdoa'a_9224 Nov '12 - 4:16 
AnswerRe: help me please [modified]memberLeon Munir25 Nov '12 - 13:46 
GeneralRe: help me pleasememberJ4amieC25 Nov '12 - 21:13 
GeneralRe: help me pleasememberLeon Munir26 Nov '12 - 2:06 
GeneralRe: help me pleasememberJ4amieC26 Nov '12 - 5:30 
GeneralRe: help me pleasememberMarcus Kramer26 Nov '12 - 5:37 
GeneralRe: help me pleasememberdoa'a_9226 Nov '12 - 9:28 
Questiononmouseover and document.getElementByIdmemberSRJ9223 Nov '12 - 4:18 
AnswerRe: onmouseover and document.getElementByIdmemberJ4amieC23 Nov '12 - 4:48 
GeneralRe: onmouseover and document.getElementByIdmemberSRJ9223 Nov '12 - 5:49 
AnswerRe: onmouseover and document.getElementByIdmemberjainsachin30 Nov '12 - 9:17 
Questiondisplaying different contentunder single layoutmemberradha123 from Hyderabad23 Nov '12 - 3:32 
AnswerRe: displaying different contentunder single layoutmembermanojwadnere28 Dec '12 - 0:07 
QuestionRegular expressionmemberMember 962181822 Nov '12 - 2:25 
AnswerRe: Regular expression [modified]membern.podbielski22 Nov '12 - 20:00 
GeneralRe: Regular expressionmvpManfred R. Bihy22 Nov '12 - 21:20 
GeneralRe: Regular expressionmembern.podbielski23 Nov '12 - 21:15 
Questionform validationmembertherainking7821 Nov '12 - 22:07 
AnswerRe: form validationmvpRichard MacCutchan21 Nov '12 - 22:17 

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


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 25 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid