Click here to Skip to main content
       

JavaScript

 
GeneralRe: Delete selected rows by table id using javascript PinmemberMember 88023076-Dec-12 6:20 
AnswerRe: Delete selected rows by table id using javascript PinmemberGraham Breach6-Dec-12 21:41 
QuestionHTML5 Javascript Issue [modified] PinmvpJohn Simmons / outlaw programmer3-Dec-12 1:09 
AnswerRe: HTML5 Javascript Issue PinmemberGraham Breach3-Dec-12 5:00 
Running it in the IE9 debugger I found that the "complete" member of the current image was false when the script fails. So the browser hasn't loaded the relevant image before trying to draw it.
 
I managed to get the page to work in Opera by changing both occurrences of
context.drawImage(collection[i].OnImage.ItemImage, collection[i].ImageX, collection[i].ImageY);
to
context.setTransform(1, 0, 0, 1, collection[i].ImageX, collection[i].ImageY);    
context.drawImage(collection[i].OnImage.ItemImage, 0, 0);
I don't know why that should make any difference though.
GeneralRe: HTML5 Javascript Issue PinmvpJohn Simmons / outlaw programmer3-Dec-12 5:22 
GeneralRe: HTML5 Javascript Issue PinmemberGraham Breach3-Dec-12 6:29 
GeneralRe: HTML5 Javascript Issue PinmvpJohn Simmons / outlaw programmer3-Dec-12 6:40 
GeneralRe: HTML5 Javascript Issue PinmemberGraham Breach3-Dec-12 6:48 
GeneralRe: HTML5 Javascript Issue PinmvpJohn Simmons / outlaw programmer3-Dec-12 9:09 
GeneralRe: HTML5 Javascript Issue PinmemberGraham Breach3-Dec-12 11:02 

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
Web01 | 2.8.140721.1 | Last Updated 30 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid