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...
...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...
...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...
...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...
...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 =...
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...
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...
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...
... 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...
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...
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.
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...
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...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.