I have a chunk of JavaScript code that I use to dynamically create a table of contents for the page that it's on. It builds the table of contents as a string in a variable, then adds it to a specified block using the innerHTML property.
I'd rather do this with the JavaScript DOM: createElement...
I'm trying to create some code that will automatically generate a table of contents for the page it's on, and insert anchor links for the table of contents. When I try to use the insertBefore() function Firefox hangs and has to be closed forcefully.
Am I using it wrong?
I created a demo of my...
I want to handle errors in a file upload form. The problem I'm encountering occurs when I try to upload a file that is larger than the post_max_size php.ini directive.
I want to use $_FILES['fileinputname']['error'] == UPLOAD_ERR_INI_SIZE to determine whether or not I should show an error...
I'm trying to run a Wicket application and it's not working. I'm getting a NoClassDefFoundError:
Apache Tomcat 6.0.14
Java 1.6.0_02-b05
Wicket 1.3.0-beta3
I think I must be misunderstanding something basic about Tomcat web application deployment.
So, I create a basic "HelloWorld" type...
I'm using Apache Tomcat 6.0.14 with Java 1.6.0_02.
I've been having some trouble loading servlets, so I tried a basic HelloWorld type program just to make sure everything was okay and it can't find the servlet-api.jar.
Isn't it supposed to automatically load all of the jar files in...
I have two classes that are part of a basic "Hello World" type of example from the Wicket project. I'm getting an error that says "cannot find symbol". My first thought was that it was related to the CLASSPATH (even though I know that error is ClassNotFoundException), but the class that it's...
How do I test within a bash script for the presence of an interactive shell?
The most common answer for this question says either to test the value of $PS1 or test for "i" in the value of $-. However, this isn't working for me in bash even though I'm fairly certain that I've used the $PS1...
I have a small piece of code that I want to process a list of paths in a configuration file. In the script I'm appending the paths to a variable. Using echo statements, I can see that the variable has the right value inside of the loop, but it loses its value after the loop.
When I use a...
I have a Tomcat server set up and its SSL certificate has just expired. I've been instructed to update the certificate, but back up the existing files first.
I've been reading through the documentation and I understand that the default location of the file(s) should be $HOME/.keystore. That's...
I have a Windows Server 2003 Virtual Dedicated Server hosted by GoDaddy.
I'm running (or trying to run) a Java Web application on top of JBoss.
When I run it on the server locally everything works, but it just times out when I try to access the page from the Internet.
The only firewall that...
I have two Red Hat servers. On Server A, I have a server process listening on a specific port. On Server B, I have an application which needs to connect to Server A on this port. The server and the client are both Java processes running under Tomcat. The stack trace on Server B reports a...
I'd like to learn to create Browser Helper Objects. I call myself a Web developer and I like to do my programming for a LAMP stack in a text editor rather than an IDE. I know C and Java and I understand OO concepts quite well.
I have downloaded the "Express" editions of the Visual Studio...
I have a small home network connected through a gateway/router/firewall. With regard to the network, everything seems to be working. However, when I try to copy a file from a share on another computer to the local computer, I get the message
Some things I've already checked:
The disk is not...
I'm attempting to make a CSS-only 3-column layout based on "In Search of the Holy Grail" by Matthew Levine at A List Apart.
I haven't finished testing thoroughly, but I think I have it working well almost everywhere.
3columns
My third column is presenting some strange problems, but only in...
I'm trying to create an array, populating it with values from the $_POST variable. $_POST has all of the values I expect, but they're not becoming part of the array as I expect.
$review['prod_id'] = addSlashes( $_POST['prod_id'] );
$review['user_id'] = addSlashes( $_SESSION['current_user'] )...
This appears to be a scope problem, but I don't understand how this could happen.
The following is the first few lines of one of my functions. I put the JavaScript block in when I noticed that some variables I was expecting weren't set. The alert box, which should show "Product Review" is...
I'm new with AJAX and I'm having trouble getting the data out of the XML. I'm getting the string "undefined" instead of the values I expect. I'm using the FireBug extension in Firefox to see the XML response and I can verify that all of the data is there. I must just be accessing it...
I'm trying to write my first bit of AJAX code and I'm having some trouble making it work. Using console.log() (Firefox alternative to alert()), I see that my request object's readyState is always 0. So, the code in my conditional block is never executed. I must be doing something wrong. Can...
If I have a field with a data type of int with a size of 3, why would I get a 5-digit number when I query it? ...
mysql> desc prod_cat;
+-------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |...
I have two tables, product and prod_report. I want my query to return a list of product names, IDs, and URLs. If there is an "admin" report for a product, I want it to return the values from that report. Otherwise, I want null values for the report fields.
This seems to me like it should be...
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.