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 SkipVought 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

    huh!? I guess this was a hard one. Well, I figured it out :) Here's the code: function pageContents( contents_block_id ) { var content_block = document.getElementById( "content" ); var elements = content_block.getElementsByTagName( "*" ); var contents = document.getElementById(...
  3. Ghodmode

    converting innerHTML to DOM

    I have a chunk of JavaScript code that I use to dynamically create a table of contents for the page that it's on. It builds the table of contents as a string in a variable, then adds it to a specified block using the innerHTML property. I'd rather do this with the JavaScript DOM: createElement...
  4. Ghodmode

    insertBefore crashing Firefox

    I think I figured it out... When I inserted the new element before the current element, it changed the array as I was iterating through it, pushing down the H1 element. As a result, FF repeatedly found the same H1 element and repeatedly tried to insert a new element before it. The solution...
  5. Ghodmode

    insertBefore crashing Firefox

    I'm trying to create some code that will automatically generate a table of contents for the page it's on, and insert anchor links for the table of contents. When I try to use the insertBefore() function Firefox hangs and has to be closed forcefully. Am I using it wrong? I created a demo of my...
  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

    mtodorov, Checking :help syntax again shows that syntax enable and syntax on are not synonymous. However, either one should turn on the colors. You're right about the compile-time option. I didn't read the thread carefully enough the first time. lcs, You probably don't need to go...
  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