dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: nitro2k01

Page 1 of 7 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    991

    It's your lucky day, pal! I made complete...

    It's your lucky day, pal! I made complete makeover, Javascript edition. My code is modular. (The data is separated from the code. You can edit the data without touching the algorithm)
    I happened to...
  2. Replies
    7
    Views
    1,640

    Combined with another test it cam do what he...

    Combined with another test it cam do what he wants. Besides, OP, like many before him, doesn't tell him his actual issue, so your guess is as good as mine as to what he wants to achieve.
  3. Replies
    11
    Views
    4,765

    Hello, APL_Designs. Did you try the suggestion in...

    Hello, APL_Designs. Did you try the suggestion in my last post before this one? If that doesn't work you could perhaps save location in a variable and fetch that later.

    Javascript:
    ...
  4. // Call stack code function...

    <script>
    // Call stack code
    function showCallStack(){
    var f=showCallStack,result="Call stack:\n\n";

    while((f=f.caller)!==null){
    result += "F:" + f.toString().match(/^function (\w+)\(/)[1]...
  5. Replies
    21
    Views
    23,838

    Here's how I would solve it: var datestring =...

    Here's how I would solve it:

    var datestring = prompt("Please enter your birthdate in this format: 15 Aug 1987", "15 Aug 1987")

    var diff = new Date() - new Date(datestring);
    diff =...
  6. Replies
    36
    Views
    4,756

    Oh yeah, one more thing. The hash alogrithm is...

    Oh yeah, one more thing. The hash alogrithm is really no use when trying to solve this problem, unless you know all but one character of the string. If you have x unknown characters, a reverse search...
  7. Replies
    36
    Views
    4,756

    Done! The pass phrase is: Novus Ordo Seclorum...

    Done!
    The pass phrase is: Novus Ordo Seclorum
    And the HTML code that the obfuscated string contains is:
    <a href="illuminatusprimus.php"><font color=black><b>Way into our inner...
  8. Replies
    36
    Views
    4,756

    A bit mroe experimenting: The passphrase is 19...

    A bit mroe experimenting: The passphrase is 19 characters long.
  9. Replies
    36
    Views
    4,756

    After 10 minutes of trying, I know for a fact...

    After 10 minutes of trying, I know for a fact that the passphrase starts with Novus Or, probably continuing as Novus Ord or possibly Novus Ora.
    I'll try to decipher the rest, if I can be bothered.
  10. Replies
    11
    Views
    4,765

    This is probably because of something that...

    This is probably because of something that happens internally in IE. location and location.href are special, because something special is supposed to happen when you write to them. For that reason...
  11. Replies
    11
    Views
    4,765

    How about this one... varsObject.theurl =...

    How about this one...

    varsObject.theurl = ExternalInterface.call( 'function ( ) { return "" + location.href; }' );
  12. Replies
    11
    Views
    4,765

    Try this to test if it works. ...

    Try this to test if it works.

    varsObject.theurl = flash.external.ExternalInterface.call( 'function() { return "test"; }' );
  13. Replies
    1
    Views
    557

    function validate(){ if...

    function validate(){
    if (!document.survey.visitor.value){
    alert("You must enter your name before submitting this form.");
    document.survey.visitor.focus();
    return false;
    }

    var...
  14. Replies
    2
    Views
    914

    One question here, why use a regexp for this?...

    One question here, why use a regexp for this? You're probably better off with a comparison, eg

    if (x<5 && x>0)
  15. Replies
    2
    Views
    764

    I prefer lower-case, but that's just a matter of...

    I prefer lower-case, but that's just a matter of taste of course. I took the liberty of modifying your script a bit, to do what I think you want it to do. I see mroe things that I'd like to modify,...
  16. Replies
    8
    Views
    11,770

    You could use a callback function, but that's a...

    You could use a callback function, but that's a little different from how alert usually works.


    // constants to define the title of the alert and button text.
    var ALERT_TITLE = "Alert message!";...
  17. JMRKER: I'm sorry. My pun was not directed to...

    JMRKER: I'm sorry. My pun was not directed to you, but was rather intended as a general comment on sin0cide's question. (What's wrong with innerHTML and what's right with DOM methods) You just...
  18. Replies
    8
    Views
    11,770

    The problem with this script is that it's nothing...

    The problem with this script is that it's nothing like an actual alert box. It will not block the script while waiting for the user to say ok.
    For example, if you write

    alert('I will now redirect...
  19. Ah, that's a regexp. (Regular expression) A...

    Ah, that's a regexp. (Regular expression) A regexp is something you use to test or mainpulate strings.
    The i is part of the regexp. In other words /(^$|_self)/i is the expression. test is a method...
  20. I'm off to sleep. I'll have a look tomorrow.

    I'm off to sleep. I'll have a look tomorrow.
  21. Replies
    1
    Views
    777

    I would've done a couple of things differently,...

    I would've done a couple of things differently, but overall, I don't think that code is excessively bloated.
  22. DOM stands for Document Object Model, which is...

    DOM stands for Document Object Model, which is basically the idea that every element on the page has a respective object, and that you access an element through its object.
    Although one part of...
  23. ... and you can save the file your hard drive, or...

    ... and you can save the file your hard drive, or you can view the source code with Opera, which doesn't let pages block right clicks by default. Simply put, doing things like password checks in js...
  24. Oh, one thing I forgot to address. The IE...

    Oh, one thing I forgot to address. The IE problem... Was that for my or for JMRKER's script?
    I tested mine, and it seems to work as it should in IE. Of course you have to click IE's "information...
  25. Ok, here's a better explanation: The general...

    Ok, here's a better explanation: The general argument against using innerHTML is that it allows you do mistakes that you might not have done otherwise.
    It doesn't matter for you, but I think it's...
Results 1 to 25 of 152
Page 1 of 7 1 2 3 4
HTML5 Development Center



Recent Articles