I looked at it in IE9 and it looks good until a certain size, at which point the content drops. I do know it looks terrible in IE7 - the images seem pixelated, the bottom doesn't line up, there are...
Type: Posts; User: alexjewell; Keyword(s):
I looked at it in IE9 and it looks good until a certain size, at which point the content drops. I do know it looks terrible in IE7 - the images seem pixelated, the bottom doesn't line up, there are...
Getting the first day of every month is easy:
$day = date('j');
if($day == 1){
// run script here
}
You'll need to do 3 things:
1. Create new_table from the unique values of old_table
2. Delete old_table
3. Rename new_table old_table
The SQL would look something like:
CREATE TABLE...
You're going to want to use AJAX:
http://www.webresourcesdepot.com/16-free-ajax-contact-forms-for-a-better-user-experience/
One of those will allow you to submit the form through javascript to...
I have a website I'm designing for a client. There's some funky stuff going on with spacing in IE if the browser window reaches 1024px wide or less (thereabouts) - the content drops down and I can't...
I've resolved the issue! It's always something small. In this case, it was a MySQL error. I forgot to close the parentheses for the VALUES(). Now the script is working like a charm. Thanks so much...
addImages is called in the for statement immediately after the function:
for($i=1;$i<=6;$i++){
addImages('img'.$i);
}
There are 6 fields, so it calls the function 6 times for each...
Any suggestions, Dan?
Not all of the 6 fields may be filled in. In the example, only one of the 6 actually contained a file. If one of the fields doesn't have a file, does that somehow inhibit the images that do exist...
Hi,
I have 6 upload fields to add images to a "project."
The HTML for the form is as follows:
<form method="post" action="cms_artwork.php?artwork_page=add_proj"...
Turns out that a few lines of CSS were throwing off the script:
#ifRoom, #ifComputer{
display: none !important;}
After commenting these out, it worked. Thanks very much for your help!
Still isn't working. Here's my code:
function panicRoom(me){
var ifRoom = document.getElementById('ifRoom');
if(me.checked){
ifRoom.style.display = 'block';
}
I would suggest the slicing route. Imagemaps are long gone.
The problem is that you're defining $query_string again inside of display_db_table(); and telling it to SELECT * (all). Because the first declaration of $query_string is mentioned outside of the...
I have a form for a school's helpdesk submissions. Depending on changes (specifically, 3) in the form's data, events occur. The 3 main changes are:
If a checkbox to specify a room is checked,...
Still isn't working:
function validEmail(fieldName){
var validate = fieldName.value;
if(validate == null || validate == ''){
var apos = validate.indexOf("@");
var dotpos =...
I've written a validation script to validate forms before submission. One form is a subscription form (requiring only name and email), while the other is a full-fledged contact form. The script works...
Figured it out:
$dir_handle = @opendir($path) or die("Unable to open folder");
$num_imgs = 0;
while (false !== ($file = readdir($dir_handle))) {
if($file == ".")
continue;
if($file...
I'm running through images in a directory and outputting them into a table for display. I've attempted, rather wrongly, to echo '</tr><tr>' every 5 images, but the '</tr><tr>' shows up at the END of...
I ended up using some simple browser detection. I found out that IE supports offsetHeight, so here is what I came up with:
function rockBody(){
var buddyH =...
For some reason, the following script is not working in IE8. You can view the context at http://www.alexjewell.com/clients/num12/index.php. Click on the Blog page and you'll notice how, since there's...
At the bottom of my website, I have small icons linked to my social networking sites. For some reason, there's a black border-like styling being applied to them only in IE (I'm viewing it in 8 and...
Works beautifully. Thank you!
That script didn't work. Here's the page: http://alexjewell.com/beta/index.php?dance2the=contact. The script is http://alexjewell.com/beta/validation.js
Also, in my original post, is a link to...
I'm using the Prototype framework to send a form via Ajax, and I'm using a form validation script (http://tetlaw.id.au/view/javascript/really-easy-field-validation) to validate the form. Both work...