Ok, I have a little bit of an unusual problem: I'm trying to run Apache 2.2 on my router. The router is running DD-WRT and Apache is installed via Optware.
I've gotten it to start, and according to netstat it's listening on port 8000, but when I try to connect with a web browser it just loads...
I'd like to use content negotiation for images, and at the same time rewrite every request for /links/ to links.pl. The problem is that mod_negotiate always butts in and trys and fails to return a file named links. It doesn't matter what order the .htaccess directives are in, the content...
I'm setting up a database of links, where each one can be in multiple categories. I could make each category id a column in the links table, but I'd rather store it in a separate table so I don't have a bunch of NULLs cluttering up the main table and also to allow unlimited categories. That...
I'd like to grab several HTML elements as quickly and easily as possible. document.getElementsByName() would be perfect, but can't be relied upon across browsers. My only idea so far is to use document.getElementsByTagName() and then loop through every tag comparing its id to a regular...
I've been using the responseText property in my AJAX, but I decided to switch over to sending XML and now it doesn't work.
This Javascript:
alert(agent.handler.responseXML.documentElement.getElementsByTagName('test')[0]);
says undefined, but if I remove the [0], it says object HTMLcollection...
I've been using the responseText property in my AJAX, but I decided to switch over to sending XML and now it doesn't work.
This Javascript:
alert(agent.handler.responseXML.documentElement.getElementsByTagName('test')[0]);
says undefined, but if I remove the [0], it says object HTMLcollection...
What I want is to have a search box on the right side of the page. It should consist of a text box and a submit button on the same line, with a link on the next line lined up with the left of the text box. Here's what it would look like with tables:
<table border="0" align="right">...
I want to end up with an array containing each bit of text that's surrounded by <row> tags, but I can only get it to match the first one.
var results = /<row>(.+?)<\/row>/g;
var tableRows = results.exec('<row>word1</row><row>word2</row><row>word3</row>');
alert(tableRows.length);
All I want to do is send a few instant messages. After reading several tutorials and a discussion on another site, I've come up with this code:
use Net::AIM;
my $aim = new Net::AIM;
$aim->newconn(Screenname => 'TeamMonkeyCrap', Password => '*******');
my $conn = $aim->getconn()...
The code I have right now (copied from Microsoft's website) is this:
Dim hInternetSession As Long
Dim hInternetConnect As Long
Dim hHttpOpenRequest As Long
Dim sBuffer As String * 1024
Dim lBufferLength As Long
lBufferLength =...
This is the code I have right now to check the value of a list:
var selected = document.getElementById('id').selectedIndex;
var option = document.getElementById('id').options[selected].value;
The problem is that this doesn't work until someone actually clicks the element. I want to check its...
Here's the query I'm trying to figure out:
UPDATE vb_quotes AS quotes
SET quotes.rating = quotes.rating +
( SELECT COUNT( * ) FROM vb_quoteratings AS ratings
WHERE ratings.quoteid = quotes.quoteid AND ratings.rating > 2 )
I'm guessing the problem is referring to the main table from withing the...
Ok, here's the situation: I'm using mysql to house a database of quotes, complete with ratings by users. So in one query, I need to get everything with a certain rating from the "quotes" table, get the submitter's username from the "users" table and finally check the "ratings" table to see if...
I want to insert some code into the onClick event of various form elements. The problem is that the form is being generated by something else, so I can't just put an onClick attribute into the appropriate tags. I seem to remember being able to do this, but when I use this code...
I need some art for my site, but I've never been very good at the artistic side of things. I've found a couple places that will let you order art for a price, but nothing really good so far. Any suggestions?
I've decided to write a simple perl module as an interface to forum software written in php. Basically, I just want to be give the script access to a few functions through an object-oriented interface. Here's what I've gathered so far from the perl documentation:
BEGIN {
use Exporter ()...
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.