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

    Why would Apache refuse to serve any pages?

    Yes, I tried going to 192.168.1.1:8000, and it looks like a connection is made, but the page never loads.
  2. 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...
  3. 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...
  4. deadpool42

    Collapsing multiple rows into one.

    Awesome, that works perfectly!
  5. deadpool42

    Collapsing multiple rows into one.

    Actually, that wouldn't be problem because I'd want the ones that are ONLY in 1, 3, and 5 (and in that order, too). I can't quite wrap my head around the problem (or maybe this design won't work), but here's a better illustration: In the table links, I have this data: id _____ 1 2 In the...
  6. deadpool42

    Collapsing multiple rows into one.

    I meant that I'd like to get all the links that are in categories 1, 2, and 3 with the categories stored in multiple rows as I mentioned earlier. They need to be in all of those categories, so IN doesn't help.
  7. deadpool42

    Collapsing multiple rows into one.

    Now I have a followup question, how would I look up a link by the categories it's in? I want to do this: SELECT * FROM links LEFT JOIN catlist ON catlist.linkid = links.id WHERE GROUP_CONCAT(catlist.categoryid) = "1,2,3" but MySQL doesn't approve of that.
  8. deadpool42

    Collapsing multiple rows into one.

    Thanks! That's a very helpful function although I had to use CAST() to get it to return something useful.
  9. 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...
  10. deadpool42

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

    Yes, but I want to get every element that's part of a certain group. getElementById() will only return one.
  11. 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...
  12. deadpool42

    How can I get responseXML to work in my AJAX?

    After much testing, I finally figured out the problem: documentElement is the root element, so in this case, as far as Javascript was concerned, there was no element named test. Surrounding it with another element makes it work.
  13. 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...
  14. deadpool42

    How can I get responseXML to work in my AJAX?

    There's a whole separate forum for a specific part of Javascript? Seems a little odd to me, but thanks for the link.
  15. 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...
  16. deadpool42

    CSS alignment within a container.

    Well you learn something new every day. It is only the <p> elements that cause problems. Headers and divs work fine. Weird.
  17. deadpool42

    CSS alignment within a container.

    After some more expermentation, it seems that the float has to be declared on an inline element or else using a <div> within it will cause the whole thing to be left aligned. Could someone explain why that is to me?
  18. deadpool42

    CSS alignment within a container.

    Whoops, my problem was putting each line in a <div>. Now I'm kind of curious, is it possible without the <br />? Thanks.
  19. 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">...
  20. deadpool42

    Problems picking out bits of text with regular expressions.

    Thanks for the tips, guys. I'll probably end up using one of those, but I'm still confused about why therer isn't a better way. Shouldn't the global flag match every word?

Part and Inventory Search

Back
Top