Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Ghodmode

    converting innerHTML to DOM

    Hi Jeff, Thanks for your comment. I kinda wondered if anyone read this one :) I haven't done any benchmark testing and I don't have a page with enough data for it to make a significant difference. Based on what I've read (ref: W3C DOM vs. innerHTML [—] quirksmode.org), I'm sure...
  2. Ghodmode

    converting innerHTML to DOM

    ...contents_block_id ) { var content_block = document.getElementById( "content" ); var elements = content_block.getElementsByTagName( "*" ); var contents = document.getElementById( contents_block_id ); var table_of_contents = new Array(); var previous_level = 0; var listnum...
  3. Ghodmode

    converting innerHTML to DOM

    ...contents_block_id ) { var content_block = document.getElementById( "content" ); var elements = content_block.getElementsByTagName( "*" ); var contents = document.getElementById( contents_block_id ); var contents_list = new Array; var previous_level = 1; var depth = 1; var...
  4. Ghodmode

    insertBefore crashing Firefox

    ...code ... function ib( option ) { content_block = document.getElementById( "content" ); var elements = content_block.getElementsByTagName( "*" ); var items = new Array(); var linknames = new Array(); var p = document.createElement( "P" ); var t = document.createTextNode( "This is...
  5. Ghodmode

    insertBefore crashing Firefox

    ...function ib( option ) { content_block = document.getElementById( "content" ); var elements = content_block.getElementsByTagName( "*" ); for ( i = 0; i < elements.length; i++ ) { if ( elements.tagName == "H1" ) { var name = elements[i].innerHTML; text =...
  6. Ghodmode

    $_FILES ... ['error'] == UPLOAD_ERR_INI_SIZE doesn't work?

    Thanks jpadie. Unfortunately, that didn't work for me. Errors were already not showing in the page. Although the documentation says that the default value for the php.ini directive "display_errors" is "1", when I use ini_get('display_errors'), it returns null. I was reading the errors in the...
  7. Ghodmode

    $_FILES ... ['error'] == UPLOAD_ERR_INI_SIZE doesn't work?

    I want to handle errors in a file upload form. The problem I'm encountering occurs when I try to upload a file that is larger than the post_max_size php.ini directive. I want to use $_FILES['fileinputname']['error'] == UPLOAD_ERR_INI_SIZE to determine whether or not I should show an error...
  8. Ghodmode

    How to turn on color syntax highlighting in vi or vim

    In spite of what the kind of people who chant RTFM!! all day long say, there are no dumb questions. Please never hesitate to ask :-) Always start with the man page :-) man dpkg-query will tell you a lot. Sometimes man pages will even tell you where to get more information. dpkg-query is...
  9. Ghodmode

    How to turn on color syntax highlighting in vi or vim

    ...ii vim 7.0-164+1ubuntu7.2 Vi IMproved - enhanced vi editor vince@home:~$ dpkg-query -l *vim* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems...
  10. Ghodmode

    How Come I Can't Use Lucinda Console?

    ... Lucinda's Pa heard about you 'n her... You better stay away from the farm fer awhile... :) ... but if you wanted to use "Lucida Console", you probably just need to spell it correctly. Keep in mind, though, that the page may not look the same on your customers' browsers as it does on yours...
  11. Ghodmode

    Quick question

    Hi Picou, I haven't had to think about hardware support under Linux for years. For the most part everything just works. In fact, some things work on Linux that don't work on Windows without a vendor-supplied driver. If you did want to investigate this more thoroughly, you would need...
  12. Ghodmode

    How to turn on color syntax highlighting in vi or vim

    Try syntax enable From :help syntax This command switches on syntax highlighting: :syntax enable -- -- Ghodmode Give a man a fish and he'll come back to buy more... Teach a man to fish and you're out of business.
  13. Ghodmode

    Variable scope after exporting

    When you execute a script, it is actually executed within it's own copy of the shell. In printName, you are sourcing config1.sh which makes the variables set in config1.sh available outside of that script within the context of printName. When you source the config file, you make its variables...
  14. Ghodmode

    Variable scope after exporting

    Nope, it still won't get mixed up because each script is still executed within its own shell. So, in your example, the first execution will show Leo, the second one will show Pat, and the third one will show Matt. -- -- Ghodmode Give a man a fish and he'll come back to buy more... Teach a man...
  15. Ghodmode

    Variable scope after exporting

    Hi jones, You have it exactly right now. If you export a variable within a script, then call other scripts from within that script, the variable should be available to the other scripts. A more conventional approach, though, is to source in a file that contains just variables...
  16. Ghodmode

    Variable scope after exporting

    When you run something in a script, it runs inside of its own copy of the shell. So, there's no danger of the variables getting mixed up. In fact, you'll find that after running the script, the variable isn't even set when you type echo $VAR_NAME at the command line. It's not even used in...
  17. Ghodmode

    How should we install Apache and PHP from practical point of view

    I've always installed PHP as a DSO. I suspect that the difference in performance in negligible, but I've never tested it, or read about anyone who has. When you develop your Web applications, if there are performance issues, there are many other points of improvement that can be made in coding...
  18. Ghodmode

    Linux?

    Hi boutbusiness, The first thing that you should probably understand is that there are many distributions of Linux. You can more or less think of a distribution as being a version or a brand-name. However, every distribution is basically the same under the hood. It's just the configuration and...
  19. Ghodmode

    user wget to authenticate

    Okay. Apache protected is (usually) the HTTP BASIC authentication. That's the one where you get the gray login and password box that's not actually part of the Web page. So, you'll need to use --user and --password -- -- Ghodmode Give a man a fish and he'll come back to buy more... Teach a...
  20. Ghodmode

    clip and vertical center

    Instead of putting the image in there directly as an IMG element, try putting in a DIV and setting the background-image property via CSS. That way, your image will be clipped to whatever size the DIV is. How are you doing vertical alignment without using absolute positioning? -- -- Ghodmode...

Part and Inventory Search

Back
Top