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 bkrike 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: *

  • Users: deadpool42
  • Content: Threads
  • Order by date
  1. deadpool42

    Why would Apache refuse to serve any pages?

    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...
  2. deadpool42

    Using mod_rewrite alongside mod_negotiate.

    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...
  3. deadpool42

    Collapsing multiple rows into one.

    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...
  4. deadpool42

    What's the best way to get a group of elements?

    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...
  5. deadpool42

    How can I get responseXML to work in my AJAX?

    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...
  6. deadpool42

    How can I get responseXML to work in my AJAX?

    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...
  7. deadpool42

    CSS alignment within a container.

    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">...
  8. deadpool42

    Problems picking out bits of text with regular expressions.

    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);
  9. deadpool42

    I can't seem to get Net::AIM to work.

    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()...
  10. deadpool42

    How do I send a simple HTTP request?

    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 =...
  11. deadpool42

    Checking the value of a &lt;select&gt; on page load.

    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...
  12. deadpool42

    Adding COUNT(*) to a value using a subquery

    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...
  13. deadpool42

    I'm having trouble with joins.

    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...
  14. deadpool42

    Using the onClick event without having an onClick attribute in HTML?

    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...
  15. deadpool42

    Where would I go to commission custom art?

    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?
  16. deadpool42

    First steps to writing a module?

    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 ()...
  17. deadpool42

    Can anyone suggest some chat software?

    I'm looking for a cheap (or free) way to add chat to my site. Everything I've seen so far is either poorly done or really expensive. Any suggestions?

Part and Inventory Search

Back
Top