No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
I'd like to use JavaScript to add rows to a table. It seems like an easy idea, but it occurs to me that the parent node of the rows might technically be a TBODY element. So, I'm wondering if I use appendChild to add a table row to a table … | |
Re: In Windows, the operating system handles file-locking. I haven't looked too closely at your code, but this is a problem that has affected me on several occasions. If the file you're trying to copy is open (or running), Windows may have it locked and prevent Perl from copying it. Also, … | |
Re: Old-school way: use an iframe... [code=html]<iframe name="dbinfo" id="dbinfo" width="500" height="300" frameborder="0" src="dbinfo.php" > <h1>Yo Dude! Turn Frames Back On!</h1><p>(or go <a href="dbinfo.php">here</a>)</p> </iframe>[/code] New-fangled way: use a JavaScript XMLHttpRequest... [code=html] <div id="dbinfo"> <h1>Dude! Turn JavaScript Back On!</h1> <p>(or go <a href="dbinfo.php">here</a>)</p> </div> <script type="text/javascript"> var request; if ( window.XMLHttpRequest ) … | |
Re: You can use back-quotes (`) or [icode]qx//[/icode]. You should also redirect the standard error to the standard output in order to capture all of the output. You might be running into a problem where one of the commands you execute from your shell script acts differently when it's executed from … | |
Re: You can detect the browser in use and display the message. You can even have it hide the page content unless the browser used is Internet Explorer. However, there's no way to use JavaScript (or any other web dev. code) to open a completely separate program. If you are really … | |
Is it possible to iterate through an anonymous array of strings with a for loop? Here's what I'm trying to do:[code]for ( i in ['country', 'city', 'state'] ) { doSomethingWithString(i); }[/code] What I want is the string, but what I'm getting is the index number of the array, which I … | |
Re: I don't think you can do what you want with only JavaScript, but it should be relatively easy if you can put a script on the web server and execute an external command. Then you can call that script's page with a JavaScript XMLHttpRequest (AJAX) request to get the IP … | |
Is there a way to act directly on an array value returned from a function without assigning it to another variable first? For example, if I just want the third value in a CSV record, I might like to do it like this: [code]$value = preg_split('/,/', "one,two,three,four")[2];[/code] But that doesn't … | |
Does anyone know where I can find a complete list of DOM/DHTML event types documented? I'm trying to learn more about advanced event handling in JavaScript and I'd like to find lists of event types that I can attach/add event listeners to. I've been searching around and I've found a … |
The End.