Advanced Search

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Forum Rules -- Read First

  1. #11
    Join Date
    Nov 2007
    Location
    USA
    Posts
    170
    Thanks
    8
    Thanked 22 Times in 22 Posts

    Default

    The ICODE tags are used to highlight something. They are generally used when helping someone out and you are showing them what they need to change. If you use the ICODE tag to highlight it then it will make it easier for the person receiving help to understand where in the code you are talking about.

    Here is an example:

    Example Post:

    Hello I am having trouble with this javascript code. It is giving me an error and not working correctly. Here is my code:

    Code:
    function whatever()
    {
    // Do some stuff then call function blah()
    blah();
    }
    
    function blah();
    {
    document.getElementById("ICODE").style.backgroundColor = "yellow";
    }
    Now a reply might look something like this:

    Oh well looking at your code I see you have inserted a semi-colon where there needs not be one. To fix your problem just remove the semi-colon at the end of the highlighted line:

    Code:
    function whatever()
    {
    // Do some stuff then call function blah()
    blah();
    }
    
    function blah();
    {
    document.getElementById("ICODE").style.backgroundColor = "yellow";
    }

    As you can see it just makes locating errors, variables, functions, etc in the code easier to find when discussing with another person.

    Hope this helped.
    What is obvious to you might not be to another.


    My Site

  2. #12
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,683
    Thanks
    43
    Thanked 3,128 Times in 3,094 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Snookerman View Post
    How about the ICODE tags? What are they for?
    They are intended for short one line bits of code. ICODE means in-line code. But they do have other uses, such as highlighting a section of code inside of a [CODE][/CODE] block:

    Code:
      vfs.boolAdd(true , i, 'error', function(){ //If an error has occurred while loading the image to show
       i.style.visibility = '';
       if(tran && vfs.iefiltercapable) l.filters[0].Stop();
       else if(tran && trancapable) vfs.iefadecapable? i.style.filter = vfs.iefadestring + 100 + ')' : i.style[vfs.ft] = 1;
      }, false, true);
    See also:

    http://www.dynamicdrive.com/forums/s...ad.php?t=22925
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #13
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    How do I delete my registration?

    I cannot find anything anywhere to do that.

  4. #14
    Join Date
    Aug 2004
    Posts
    9,863
    Thanks
    3
    Thanked 960 Times in 949 Posts
    Blog Entries
    15

    Default

    Quote Originally Posted by Benedizione View Post
    How do I delete my registration?

    I cannot find anything anywhere to do that.
    If by deleting your account, you mean your membership plus all posts you've made, we rarely will do that, as it affects other people who have posted in the same thread as well. If there is certain sensitive info inside a thread you'd like to edit out, please pm me with that request.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •