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