www.webdeveloper.com

Search:

Type: Posts; User: Ddurand

Search: Search took 0.01 seconds.

  1. Okay. Then i've done some research, and added...

    Okay. Then i've done some research, and added "(i,fighter,damage2,damage3)" to the internal function, like that :




    The funny thing is : Now, that work, BUT apparently it's the bad thing to...
  2. Values "randomly" lost in a function passing

    Hello.

    I have these lines :



    The two "text.innerHTML" bloc are the same.

    But the results are not the same :
  3. Okay, it was hard, but i finally found : I just...

    Okay, it was hard, but i finally found : I just have to use concat :



    weight = "j_weight"+(parseInt(tired)+1);
    tx.executeSql('SELECT s_name,s_screen_name,'+weight+' as weight2,fighter.r_id as...
  4. [RESOLVED] [WebSQL] How to use a variable value as ? in a SELECT ?

    Hi,

    Let's explain myself.

    In my SQLite table, i have fields. Some of these are called j_weight1, j_weight2, j_weight3, j_weight4 and j_weight5
    I never need more than one of these "j_weightX"...
  5. Okay. Found. That's because you can't call a...

    Okay. Found.

    That's because you can't call a function (by the jb1 on the last line) that is on the "transaction". You have to encapsulate it in another function and call this one. Like that :

    ...
  6. [RESOLVED] Why this function "is not a function" ?

    Hello :

    This function generate an error in Opera (unhandled error : "X" is not a function) and in Chromium (Uncaught TypeError: undefined is not a function) :


    db.transaction(function (tx)
    {...
  7. Okay, don't sweat, it's again the asynchronous JS...

    Okay, don't sweat, it's again the asynchronous JS implementation of SQL... Gr
  8. Array returned from a function : Can't make it work.

    Hello,

    I have an array created in a function. But i can't use the array out of the function. In the code here, the two "alert boxes" give an undefined error for the array "fighters".

    I tried to...
  9. Replies
    4
    Views
    795

    Well, what i need is for the script to wait for...

    Well, what i need is for the script to wait for each transaction to be done before continue. And javascript don't wait for sql request to send a callback.

    Or at least, it's what i'm told.
  10. Replies
    4
    Views
    795

    Honestly, i'm confused. I just realized i forgot...

    Honestly, i'm confused. I just realized i forgot the fact all the transaction HAS to be in another function, like that :




    Again, sorry.
  11. Replies
    4
    Views
    795

    Function is not a function !?

    Hi,

    I have a problem with some function :


    for (var i=1; i<carte.length; i++)
    {
    for (var j=0; j<carte[i].length; j++)
    {
  12. Replies
    3
    Views
    1,083

    Ooh ! that works ! I was stupid. Tank you to...

    Ooh ! that works ! I was stupid.

    Tank you to you two :-)
  13. Replies
    3
    Views
    1,083

    [RESOLVED] z_index not working

    Hi.

    I have a little problem (again) :

    I have a lot of elements on the page (isometric map), nearly each with it's own z-index.
    It's okay, they all respect their z-index priority (high z-index...
  14. Thanks Gray1989, but i found another solution : ...

    Thanks Gray1989, but i found another solution :

    The main (onload) JS just put the map and games elements. He create, by example, the "next turn" button and "setattribute" with elements like "last...
  15. After hard brainstorming, i finally discovered...

    After hard brainstorming, i finally discovered how to do... to be kicked in the balls by the fact that when a javascript run too long (and too long mean very short), the browser complain and ask for...
  16. Replies
    5
    Views
    2,087

    for (var i = 1; i < fulldays + 1; i++){ if...

    for (var i = 1; i < fulldays + 1; i++){
    if (i==1) {var a = "";} else {var a = "-";}
    var newtext = document.createTextNode(a+i);
    document.getElementById("ID_of_your_element").appendChild(newtext);...
  17. File : The game. Beware, the script is NOT...

    File : The game. Beware, the script is NOT optimized (no cache for the pictures). On my Linux computer, it's too much for Opera, but good for Firefox.


    Basically, it's a kingdom game (like...
  18. I understand, but what i want is a way to make...

    I understand, but what i want is a way to make the same script intercept the "onclick" (onlick ? You wish !). With your example, a click call another script.


    I want, basically, that :

    JS...
  19. Intercept event on an image JS has put itself

    Hi,

    Then, my kingdom game with rats in JS is on the road. I even started to make it have "turns". Work well (thanks again for the innerHTML solution, guys).

    Actually, to wait between turns, i'm...
  20. Oh, thank you, that work ! I just read a page...

    Oh, thank you, that work !

    I just read a page on innerHTML, and i see it's full of possibilities.


    Again, thank you :-)
  21. Well, okay.

    Well, okay.


    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="fr">
    <head>
    <meta http-equiv="Content-Type" content="text/html;...
  22. Thank you for your answer. The alert box say...

    Thank you for your answer.


    The alert box say "object text". That's not good ?

    Firefox error terminal say "case5[i3+"*"+j3].style" is "undefined

    If i put a "var" before (var case5[...), it...
  23. [RESOLVED] Using style.position on a text ?

    Hi,

    As a noob, I'm trying to make a little game in JS (only client side). For that, i put images in different positions on the screen without problem with style.position/bottom/left/zindex.

    But...
Results 1 to 23 of 24
HTML5 Development Center



Recent Articles