Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 10 of 10
Search took 0.02 seconds.
Search: Posts Made By: Luke7268
Forum: JavaScript programming 11-18-2012, 07:22 PM
Replies: 15
Views: 906
Posted By Luke7268
How do I mark this thread solved? Seems I can't...

How do I mark this thread solved? Seems I can't edit my original title anymore.
Forum: JavaScript programming 11-18-2012, 07:12 PM
Replies: 15
Views: 906
Posted By Luke7268
Solution found. This guy nails it down...

This guy nails it down... http://www.impressivewebs.com/callback-functions-javascript/

The first proper explanation about callback I see on the web that can actually be understood by stupid...
Forum: JavaScript programming 11-18-2012, 10:15 AM
Replies: 15
Views: 906
Posted By Luke7268
As I'm scrolling pixel by pixel anyway I just...

As I'm scrolling pixel by pixel anyway I just gave up on the whole thing and decided to just start scrolling whether the source canvas' contents have been copied or not. In a worst-case-scenario, I...
Forum: JavaScript programming 11-18-2012, 01:42 AM
Replies: 15
Views: 906
Posted By Luke7268
I really appreciate all the hints. However: ...

I really appreciate all the hints.

However:


var loadPictureOnCanvas = function (index, url, sourcepointer, widthpic, heightcanvas) {
img[index] = new Image();
img[index].onload =...
Forum: JavaScript programming 11-18-2012, 01:26 AM
Replies: 15
Views: 906
Posted By Luke7268
This script works a lot better, as it uses...

This script works a lot better, as it uses callback (I think) in a way I think I understand. I've tried some more convoluting syntaxes (I believe this is called callback hell), but I can't get my...
Forum: JavaScript programming 11-18-2012, 12:06 AM
Replies: 15
Views: 906
Posted By Luke7268
I read a bit about asynchronous script execution...

I read a bit about asynchronous script execution and functions in functions. Then I read about callback hell. I read and read, but the whole concept of functions inside functions was making me dizzy....
Forum: JavaScript programming 11-17-2012, 11:45 PM
Replies: 15
Views: 906
Posted By Luke7268
No luck I'm afraid... I also tried: ...

No luck I'm afraid...

I also tried:


for (i=0; i<numberofpics; i++) {
img[i] = new Image();
img[i].onload = function() {
var keepi = i, keepsp = sourcepointer;
...
Forum: JavaScript programming 11-17-2012, 10:05 PM
Replies: 15
Views: 906
Posted By Luke7268
No luck yet, but: for (i=0;...

No luck yet, but:


for (i=0; i<numberofpics; i++) {
img[i] = new Image();
img[i].src = imgsrc[i];
img[i].onload = function() {
var keepi = i;
ctxsrc.drawImage(img[keepi],...
Forum: JavaScript programming 11-17-2012, 07:57 PM
Replies: 15
Views: 906
Posted By Luke7268
Thank you for your reply so far! There's no...

Thank you for your reply so far!

There's no array for height as the height of all pictures is the same (they are automatically resized to the canvas height, while preserving the aspect ratio).
...
Forum: JavaScript programming 11-17-2012, 12:12 PM
Replies: 15
Views: 906
Posted By Luke7268
Images not displayed when iterated

Hi all,

I'm not a professional programmer and fairly new to JavaScript, so please don't laugh. Here goes nothing.

I'm trying to display 10 images pulled from a database using PHP/MySQL next to...
Showing results 1 to 10 of 10

 
Forum Jump

All times are GMT +1. The time now is 05:15 AM.