www.webdeveloper.com

Search:

Type: Posts; User: pactor21

Page 1 of 7 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    521

    You will need to reset your 'currenttotal'...

    You will need to reset your 'currenttotal' variable when the number put into the #numberAnswerTxt input box gets changed.

    Using your own example, you start with 2. You are able to select 2 of the...
  2. Replies
    1
    Views
    425

    You basically defined a array with 10 members on...

    You basically defined a array with 10 members on the above line.

    Arrays in jsp always start with an index of 0. (0 based indexing.)

    Problem happened inside your while loop inside the enterTitle...
  3. Replies
    12
    Views
    1,744

    Above line is smelling pretty bad for me. ...

    Above line is smelling pretty bad for me.

    First of all, you're NOT comparing, you're substituting. (Difference between = and == should matter at this point.)

    Second of all, left side of the...
  4. Glad to help out, and GL on learning jsp.

    Glad to help out, and GL on learning jsp.
  5. Looks like Bionoid did it for you. The only thing...

    Looks like Bionoid did it for you. The only thing I would add is, not quite related to the issue, use a for loop or something to display links on your HTML page with different exam numbers.


    if...
  6. Well I'm not very good at native javascript, note...

    Well I'm not very good at native javascript, note that 's' in getElementsByTagName() method. Since there could be multiple number of elements specified by a tag, it has 's' in the name of the method,...
  7. Replies
    17
    Views
    2,298

    I'm guessing you're confusing between = and ==? ...

    I'm guessing you're confusing between = and ==?

    == is a comparison operator, whereas = is a substitution operator. Try to use comparison in the if conditional.

    Besides you could have said
    ...
  8. All right. I think i'm still missing something...

    All right. I think i'm still missing something here. Your setpage function takes 3 arguments, which are below.
    1. id of an element
    2. url
    3. src of an element

    With those information provided,...
  9. Replies
    3
    Views
    2,015

    jQuery It is generally a good idea to show relevant good...

    It is generally a good idea to show relevant good idea along with js code. Then we might get somewhere further from it.
  10. I am deeply lost in your code. You are calling a...

    I am deeply lost in your code. You are calling a function called 'setpage' with 2 arguments on onMouseover event, which can be found nowhere in your js code.

    Besides, your HTML mark-up has no text...
  11. Replies
    3
    Views
    4,200

    If you want to do something DB related stuff, you...

    If you want to do something DB related stuff, you will definitely need a server-side language. Be it a php or asp, or whatever.
  12. Replies
    6
    Views
    1,713

    All right. I may have got this right this time. ...

    All right. I may have got this right this time.

    <html>
    <head>
    <style>
    ul
    {
    width:500px;
    background: #eeeeee;
    }
  13. jQuery You do NOT have same id all over your document....

    You do NOT have same id all over your document. If you want an action applied on elements, you give them class, not same id.
  14. Replies
    6
    Views
    1,713

    OK.. rotation part done.

    Try this jQuery code with the same HTML.

    $(document).ready(function() {
    var num = $('.slide').length;
    var index = 1;
    setInterval(function(){
    $('.slide').hide();...
  15. Since you have some custom functions defined for...

    Since you have some custom functions defined for you, you don't want them in the $(document).ready(function(){});

    You want everything else in the .ready directive But the custom functions. They...
  16. Replies
    6
    Views
    1,713

    So you want the page to show Text1 initially and...

    So you want the page to show Text1 initially and show the next texts after every 10 sec? Is that what you want?
  17. Replies
    6
    Views
    1,713

    I hope this is what you're looking for

    I made little minor modifications on your HTML code for the sake of simplicity.

    <html>
    <head>
    <style>
    ul
    {
    width:500px;
    background: #eeeeee;
    }
  18. Replies
    3
    Views
    834

    This might be the answer.

    Check THIS jsFiddle out.
  19. Before I present you my answer with little minor...

    Before I present you my answer with little minor problem, you NEED to have
    1. a semicolon at the end of a javascript statement.
    2. matching brakets (same number of opening braces and closing...
  20. Replies
    2
    Views
    787

    function defaultDisplay() { ...

    function defaultDisplay() {
    document.getElementById('111').style.visibility = 'visible';
    document.getElementById('222').style.visibility = 'hidden';
    ...
  21. Since you didn't show me your HTML mark-up, I...

    Since you didn't show me your HTML mark-up, I wrote something very similar to what you would have thought, I hope.

    Check out THIS jsFiddle.
  22. Replies
    4
    Views
    1,128

    jQuery Check jsFiddle (http://jsfiddle.net/B4gX3/9/) out.

    Check jsFiddle out.
  23. Did you try to give a class to whatever element...

    Did you try to give a class to whatever element dynamically generated, and have jQuery select those element with that class to use .remove() API?

    Show us some jQuery and HTML mark-up for further...
  24. Replies
    4
    Views
    1,128

    jQuery If you only want to change the action to...

    If you only want to change the action to something else, I might have something close to your answer.

    Check this jsFiddle out.
  25. Replies
    2
    Views
    459

    There are a couple of mistakes I saw. First below...

    There are a couple of mistakes I saw. First below is the working js code.

    var average1, average2, average3, total;
    average1 = prompt("Write number","");
    average2 = prompt("Write number","");...
Results 1 to 25 of 160
Page 1 of 7 1 2 3 4
HTML5 Development Center



Recent Articles