Search:

Type: Posts; User: DimX; Keyword(s):

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: js event?

    by DimX
    Replies
    2
    Views
    1,541

    <form name="aform" action="#">
    <select onchange="this.form.elements['nofkids'].style.display = this.value">
    <option value="">Yes</option>
    <option value="none">No</option>
    </select>
    <input...
  2. Replies
    19
    Views
    4,066

    Seems that this will be sufficient for you: ...

    Seems that this will be sufficient for you:


    function reRoot(url, root)
    {
    return url.replace(/^([a-z]+:\/\/[^\/]+)(.*)/i, "$1" + root + "$2");
    }
    var newUrl =...
  3. Replies
    19
    Views
    4,066

    Just one minor problem Twey :p, your code will...

    Just one minor problem Twey :p, your code will fail in cases where several place-holders appear consecutively (eg. "%LANG%%SOMETHING%").
  4. Thread: Target DIV?

    by DimX
    Replies
    4
    Views
    28,141

    Nope, the only way to do that is through...

    Nope, the only way to do that is through XMLHttpRequest.
    DD has plenty of scripts for this purpose, eg. http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
  5. Replies
    1
    Views
    2,202

    It would be better to store arrays of handlers...

    It would be better to store arrays of handlers for each hook type and then simply iterate the array and call all handlers. To add a handler you would simply add it to the corresponding array.
    ...
  6. Basically you just have to remove everything...

    Basically you just have to remove everything highlighted in red in my previous post.


    ...
    document.getElementById(sRow).style.display = '';
    document.getElementById(sRow + "1").style.display =...
  7. The problem is that you specify two table rows to...

    The problem is that you specify two table rows to be displayed inline:


    ...
    <tr id="rent" style="display:inline;">
    ...
    <tr id="rent1" style="display:inline;">
    ...

    Remove those.
  8. Replies
    3
    Views
    1,849

    Using JavaScript? No. But you can right-click the...

    Using JavaScript? No. But you can right-click the image and choose the option that sets it as the desktop background.
  9. Replies
    3
    Views
    1,849

    No. You cannot manipulate a user's computer with...

    No. You cannot manipulate a user's computer with JavaScript.
  10. Replies
    6
    Views
    1,960

    The error message pretty much tells you what's...

    The error message pretty much tells you what's the problem.
    For some reason you have a space between the $ character and the actual name of the variable in some places (in both files!):




    ...
  11. Replies
    8
    Views
    3,049

    You need to have the following in the head...

    You need to have the following in the head section of your page:


    <link rel="shortcut icon" href="file.ico" />

    or you can just put a file named favicon.ico into the root directory of your...
  12. Replies
    4
    Views
    2,277

    Well, I did a bit of research on SGML comments...

    Well, I did a bit of research on SGML comments and it turns out that there are comment declarations and there are comments.

    A comment declaration begins with <! and ends with >. Inside the comment...
  13. Replies
    4
    Views
    2,277

    It seems that Firefox has problems with parsing...

    It seems that Firefox has problems with parsing comments :confused:
    If you remove all your HTML comments, it will work fine.

    Surprisingly, removing one dash from the comment closing tag, will...
  14. Replies
    3
    Views
    2,632

    It doesn't work because of the html code that you...

    It doesn't work because of the html code that you have before the <!DOCTYPE. It causes the browser to render in quirks mode, which is why your CSS fails.

    Also you have a syntax error in style.css...
  15. Replies
    7
    Views
    2,699

    You have quite a few errors in your code. ...

    You have quite a few errors in your code.

    First, your form doesn't have a name and your controls don't have ids so there is no elegant way to access them. Either give you select boxes some ids...
  16. Replies
    3
    Views
    3,037

    http://www.dynamicdrive.com/dynamicindex6/dhtmlcou...

    http://www.dynamicdrive.com/dynamicindex6/dhtmlcount.htm
  17. Replies
    7
    Views
    2,699

    Sorry, as it was just very quickly written, I had...

    Sorry, as it was just very quickly written, I had some typos there.
    The time.hminutes should be time.minutes.
    And in the usage sample time.AddHour should be time.AddHours

    A working example can...
  18. Replies
    7
    Views
    2,699

    Here, an example using a Time object. ...

    Here, an example using a Time object.


    function Time(h, m)
    {
    this.hours = typeof h == "number" ? h : 0;
    this.minutes = typeof m == "number" ? m : 0;
    }

    Time.prototype.AddTime =...
  19. Replies
    3
    Views
    7,372

    I thought it was the opposite way. :p Anyway,...

    I thought it was the opposite way. :p

    Anyway, I'm afraid that Wikipedia is far more better in explaining what a struct in C/C++ is. Maybe some tutorials could help you as well.
    As for me, the...
  20. Replies
    4
    Views
    2,576

    You could either use a border: a { ...

    You could either use a border:


    a {
    color: blue;
    text-decoration: none;
    }

    a:hover {
    border-bottom: 1px solid lime;
  21. Thread: c++ I/O problems

    by DimX
    Replies
    15
    Views
    7,680

    Jas, try this solution and see if it fits your...

    Jas, try this solution and see if it fits your needs:


    #include <iostream>
    #include <fstream>

    using namespace std;

    /* Prototype for the callback function.
    *
  22. Replies
    6
    Views
    4,252

    Well, the following works:

    Well, the following works:


    <?php
    $this_file = basename($_SERVER['PHP_SELF']);
    $error_list = array();

    if(empty($_POST)){
    $status = ' ';
    }
  23. Replies
    6
    Views
    4,252

    The script is pretty messed up and needs to be...

    The script is pretty messed up and needs to be rewritten. It's quite pointless to hold a name of a temporary file ($large), a boolean value ($thumb) and [the only meaningful] description in the...
  24. Replies
    1
    Views
    2,570

    Well, if no JavaScript, then your only choice is...

    Well, if no JavaScript, then your only choice is to turn the div into an iframe and to have target="name_of_the_iframe" on every sidebar link.


    <a href="something.html"...
  25. Replies
    5
    Views
    7,877

    Here, this might be what you are looking for:...

    Here, this might be what you are looking for:
    http://www.sitepoint.com/article/preserve-page-scroll-position
    It uses ColdFusion to transmit the coordinates, but can also be rewritten to be...
Results 1 to 25 of 187
Page 1 of 8 1 2 3 4