www.webdeveloper.com

Search:

Type: Posts; User: CuppyTea

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. myNode.style[somePropertyName] = newStyleValue

    myNode.style[somePropertyName] = newStyleValue
  2. Replies
    2
    Views
    1,667

    You might find it easier to store all the...

    You might find it easier to store all the questions in an array, rather than individual variables..

    E.g

    questions[0]
    questions[1]

    rather than...

    question_1
  3. Replies
    2
    Views
    621

    It will be fine. You might get a bit of delay...

    It will be fine.

    You might get a bit of delay if you, say, added a large number of rows upon clicking a button, but adding/ displaying a single row, won't be a problem
  4. Replies
    11
    Views
    2,086

    This page should help you...

    This page should help you.

    Check out the page example.
  5. Thread: Script Clash?

    by CuppyTea
    Replies
    1
    Views
    3,572

    jQuery jQuery and whatever is in compressed.js are...

    jQuery and whatever is in compressed.js are battling for ownership of the $ variable.

    jQuery has a noConflict function, which releases control of the $ variable.

    Just do jQuery.noConflict()...
  6. You need to be careful about getting the height...

    You need to be careful about getting the height and width from images. They will only have height and width attributes when the image has completed loading. (e.g. capture "onload" events on image...
  7. What are you trying to do? As you've done it,...

    What are you trying to do?

    As you've done it, the background image will only change during the split second it takes for the next page to load. If you're meaning the menu change to be a "we're...
  8. Replies
    2
    Views
    553

    This really isn't a job for Javascript. ...

    This really isn't a job for Javascript.

    However, it's possible.

    Get an array of the URL's of the frames.


    var frames = ["http://adurl1.com", "http://adurl2.com", "http://adurl3.com",...
  9. This will work for a single-dimension Array: ...

    This will work for a single-dimension Array:



    <script type="text/javascript">
    var theJsArray = ['<?php echo implode("','", $thePhpArray); ?>'];
    </script>
  10. If I understand you correctly.... ...

    If I understand you correctly....



    id='remove_cat' onClick='remove_cat($del_id,$id); this.onclick=function() { remove_cat(another_variable,the_other_varialbe)} '
  11. Yes, it would be a sub dir off the directory...

    Yes, it would be a sub dir off the directory where the above page was created...

    /randomnfolder/showImages.php
    /randomfolder/uploads/image1.jpeg
    /randomfolder/uploads/image2.jpeg...
  12. Replies
    4
    Views
    1,163

    Humm.. you might have found out yourself by now,...

    Humm.. you might have found out yourself by now, but if not....

    I don't know any specific "amazing" resource- prehaps google will help.

    Say you have....


    <script>
    window.onload = init;
  13. Javascript isn't your answer :) You could use...

    Javascript isn't your answer :)

    You could use a Server Side language to achieve 2 methods....

    a) Rename HHMMSS.jpg to "1.jpg" - you can then use Javascript to cycle through the Images.

    b)...
  14. Replies
    1
    Views
    546

    A database will solve your problems. ...

    A database will solve your problems.

    http://w3schools.com offer tutorials on setting up and configuring MySQL databases.

    Hope it helps...
  15. Replies
    4
    Views
    1,163

    Yes. ...

    Yes.

    document.getElementById("theUl").childNodes is your new best friend. He is an array which contains the <li> elements in the order they are displayed,
  16. Replies
    2
    Views
    708

    *woners what this has to do with javascript* ...

    *woners what this has to do with javascript*

    Just utilize



    mail($to, $subject, $message, $headers);
  17. Replies
    8
    Views
    6,790

    Its quite useful when you fill the textbox with...

    Its quite useful when you fill the textbox with an example, then when the user clicks on the textbox, you want it to be cleared.

    For example, the input....


    <input type="text"...
  18. Humm, the only way to do it, that I can think of...

    Humm, the only way to do it, that I can think of is to do something like this....

    Define an array...

    <script>
    var changedFormElements = Array();
    </script>

    Setup the form fields such...
  19. Meh, it was so tied into the select box, I wrote...

    Meh, it was so tied into the select box, I wrote something else....


    <script>
    var imageSlideshow = new function() {
    this.array = [
    "http://mattlunn.me.uk/images/smile.png",...
  20. Thread: Beginner help

    by CuppyTea
    Replies
    9
    Views
    1,113

    If you set style.width with javascript, then it...

    If you set style.width with javascript, then it will be available, otherwise use


    WrapperDiv.offsetWidth
  21. Replies
    9
    Views
    990

    mainly, yes, and also "onChange" is different to...

    mainly, yes, and also "onChange" is different to "onchange"


    the syntax is correct- but make sure the path to the file is correct. I tested my implementation on Opera, Chrome, and IE and it...
  22. Replies
    9
    Views
    5,119

    Nearly, nearly there :) if...

    Nearly, nearly there :)


    if (el.type=="button") { // If it is a button
    switch(el.value) {
    case "Save Draft": el.onmouseup=removeRO
    break;
    case "Dec Letter":...
  23. Thread: Beginner help

    by CuppyTea
    Replies
    9
    Views
    1,113

    won't make a difference, yes, yes :)

    won't make a difference, yes, yes

    :)
  24. Thread: Beginner help

    by CuppyTea
    Replies
    9
    Views
    1,113

    If you javascript is _just_ that, then it is most...

    If you javascript is _just_ that, then it is most likely the Javascript is getting ran before the body has been read, stopping the code from having any effect...

    Try checking the source, and...
  25. Thread: Beginner help

    by CuppyTea
    Replies
    9
    Views
    1,113

    window.onload = function() {...

    <script>
    window.onload = function() {
    something.style.width = "800px";
    }
    </script>
    <style>
    #something {

    background: white;
    position:absolute;
Results 1 to 25 of 76
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles