|
You can set sizes a couple of ways, other than what Dominik suggests. Set the Table width to 100%, then set each column to a % of that, totalling 100% to make the display fill the available space on the user's screen. Or you can set the width of the table to xxx px, and the columns to smaller sizes if fixed pixels (px). A static sizing method like this, though, may look rather strange on various screens, depending on the users' settings. I prefer the % method myself, and moving all such details to a style sheet is even cleaner, as it lets you change settings throughout the site with a few keystrokes.
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
Ok, this will be an easy question for you peal guys (or gals for that matter)
I have a peal file, for a Form Mail in my website (FormMail.pl)
I have been following instructions to use this file for my wesbite, making changes to the parameters, but what does this mean:
**************
"Once uploaded you will need to change the file so that it can be executed, this can normally be done in any ftp programme"
**************
Do I have to compile this file, or rename it? Either way, if i run the script as it is i get a Error 500.
Hope this make some sence
Hope someone can let me know tonight, if you can spare a mo..cheers in advance
---
Peter M
|
|
|
|
|
Make sure the file execute permissions are set properly. On *nix the file permissions should probably be 755.
Most FTP programs allow this by right-clicking on the file name on the server side, and selecting something regarding 'permissions/chmod .
Also, make sure you uploaded it to a CGI directory.
HTH
"Things are not what they seem. Nor are they any different." BW
CP Member Homepages
|
|
|
|
|
thanks, i found out i needed to make the file executable, and now it runs fine. Thanks for your reply also
Been advice to use ASP now, by a fellow CPian...humm...things to do...things to do...
---
Peter M
|
|
|
|
|
Peter Mayhew wrote:
now it runs fine
Peter Mayhew wrote:
Been advice to use ASP now
I've been avoiding it. I haven't run into any problems working with perl on a linux web server, yet, so I haven't found a pressing need.
"Things are not what they seem. Nor are they any different." BW
CP Member Homepages
|
|
|
|
|
If you want the best of both worlds go with PHP
Embedded like ASP, but C syntax like Perl and open source
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
LOL
---
Peter M
|
|
|
|
|
You're not this Peter Mayhew[^] are you?
--
You're entertaining at least.
|
|
|
|
|
Nope. I get asked that so often though, I had to put the question in a FAQ on my own website!.
Just dont make me angry on a full moon. Some say things get a little hairy.
---
Peter M
|
|
|
|
|
Hi,
I have an entry form and it scrolls vertically. The input fields are at the bottom. Is there a way, when they click edit it would go to the bottom of the page? Thanks,
|
|
|
|
|
I cannot understand what you are asking...
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
|
If all you want to do is move to the bottom of the page, you can make a link with a #LABEL as the HREF element at the top, then at the bottom add an anchor with the NAME attribute set to "LABEL". Or,
<A href="#enter">Edit Here</A> at the top of the page, then
<A name="enter">
<INPUT blah, blah, blah>
.
.
.
<INPUT more blah>
</A>
down near the bottom where you want to redirect the user.
If, instead, you want to put the cursor in the first input field at the same time, you need to do a little scripting. Example[^]
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
OK, so I have this website that I started back in July or so and I want to update it's look. My web programming skills are limited and I don't much like web programming either but I may as well learn some more. I was wondering if anybody would bother looking at my site GP32US.com[^] and make some suggestion for its look and some tips on what to research to make it look better.
I really want to make it a good looking site and to try and attract more attention to it I'm not looking for real advanced programming or anything huge where I may as well be a web developer for a career (I don't), just some nice things to rearch to spice up my site a bit. I do the coding by hand mostly and I don't mind that because I wouldn't pay for an overly expensive development/office suite (Front Page or InterDev), so I may as well do it all by hand.
I remember someone suggestion a book once on web design and code, but I can't think of it anymore. I wish I had bought that book way bakc when I asking for suggestion on webhosting and such back in like July or August.
Anyways, thanks for any help you may be able to give me.
Who am I?
Currently: A Programming Student trying to survive school with plan to go on to Univeristy of Advancing Technology to study game design.
Main career interest include: Multimedia and game programming.
Working on an outside project: A game for the GamePark32 (GP32) portable gaming console.
My website: www.GP32US.com
|
|
|
|
|
Ohhhh, man... it's horrible
Take a look at this: http://smarty.php.net[^]
"semper aliquid haeret", Bacon.
-- Sebastián.
|
|
|
|
|
Firstly, yuck! Not a bad first effort, and I'm certainly no expert, but the current site needs some loving care badly. At the very least, white text on a black background is one of the worst choices you can make for a website. The little textbox is also a bad idea. Both look harsh, and though they work well enough for disseminating facts, they're hard on the eyes. Try for some softer tones, pastel backgrounds with san serif fonts work well. One of the more visually pleasing sites I've visited is www.8028finder.com[^]. The combination of soft visual effects and simple graphics make for a very comfortable site to visit and spend some time exploring.
On the bright side, it can be fixed. The banner is good - keep it. Then get a copy of Creative HTML Design.2[^], one of the best books I've seen on website design. It's a bit light on the details of HTML coding (though there's a fairly complete reference section in the appendices), but it does a great job of illustrating styles and techniques that are attractive. Even though you're not a web developer by profession, I think you'll really enjoy the book. The one thing definitely lacking in the book is any reference to CSS - Cascading Style Sheets. I have yet to find a decent book on the subject, but there's plenty of info on the web. Check out www.w3schools.com[^] for a tutorial. CSS allows you to separate visual effects from content, and gives you the ability to impose a consistent style on an entire site without complicating the individual pages.
Have fun! Website design is a nice, relaxing break from hardcore programming, and a great way to let your artistic side out to play.
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
Thanks for taking the time to look at it, though you people could've been a little less harsh with your comments on it. This website was pretty much just an attempt at using some HTML programming I learned in school. It was my first attempt and I like to code by hand instead of using WYSIWYG type design apps.
It wasn't meant to be the prettiest thing at first, just needed to get it up at first. Then I got stuck with school/work/everything else so I couldn't devote any time to researching better design and working on it at all.
Again, thanks for the advice, and I'll look into this HTML Design book. And after this week all should be good for a few weeks so I can devote time to it.
Who am I?
Currently: A Programming Student trying to survive school with plan to go on to Univeristy of Advancing Technology to study game design.
Main career interest include: Multimedia and game programming.
Working on an outside project: A game for the GamePark32 (GP32) portable gaming console.
My website: www.GP32US.com
|
|
|
|
|
nssone wrote:
though you people could've been a little less harsh with your comments on it.
Sorry - it's early and I haven't had my first pot of coffee yet. If it's any consolation, my first was far worse, and I'm not too sure I've gotten much better. Like you, it's a sideline for me - not something I intend to pursue as a career. And it's damned hard to force myself to get better at it when there are so many other distractions demanding my time.
Do take a look at the book; it's quite good, though at the time I was looking for an HTML primer and it isn't a great tool for that. The W3 Schools link is one you'll want to bookmark, though. It's free and very thorough. Most of all, have fun with it.
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
Oh, well, I'm not being a crybaby and you didn't really hurt my feelings, it just felt like that comment was a little mean. It's good to know that you too had a hard time at web design at first. And I will keep in mind those websites and that book.
Who am I?
Currently: A Programming Student trying to survive school with plan to go on to Univeristy of Advancing Technology to study game design.
Main career interest include: Multimedia and game programming.
Working on an outside project: A game for the GamePark32 (GP32) portable gaming console.
My website: www.GP32US.com
|
|
|
|
|
When you ask people to comment on aesthetics, don't be surprised when they are honest. I don't think it was anyone's intetion to hurt your feelings, but if people (what we call back home) "blow sunshine" ( - which means giving compliments in order to not make the person feel bad), it doesn't benefit anyone. It makes the complimentor a liar and gives the person who asked a false sense of their skill level.
Truthfully, the site looks like it was created circa 1995 when the web was still fresh and the "blink" tag was a standard on all pages . My suggestion is that if you want to get into graphic design, go for it--pursue that with tenacity!! However, if you are wanting to be a programmer (as your sig mentions), you will have to choose. You would not have time to get really great at both--especially once you're out of school.
Keep in mind--most game manufacturers have programmers *AND* artists--rarely will you find someone who is great at both because they both require skill, dedication, and (eventual) mastery (you know what they say about the jack of all trades--he's a master of none). A word to the wise--decide what you like to do more and pursue that with a vengence.
As a guy who has done a lot of web programming (and design for that matter), I can honestly say that I am a skilled programmer and a terrible graphic artist. I have come to that conclusion over time and I'm ok with that. I now use templates or custom designs created by professional designers when I get a new web development gig. I use Template Monster for the most part, but sometimes I just outsource the design work to an artist and do all the programming myself. It works very well that way.
Best regards and keep working on your site. Don't give up because a couple of guys think it needs work. Adversity is your friend.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Is there a reason I can't get JPEGS to load on an HTML page with a bit depth of 8? Is there a workaround for this?
|
|
|
|
|
does anyone know how to use the "setAttribute" method in javascript to add an event to an element?
for some reason it seems that it's actually adding the event, however the event never get's fired.
here is a copy of the code I'm using:
<br />
<script><br />
var newField = document.createElement("INPUT");<br />
newField.type = 'file';<br />
newField.id = 1;<br />
newField.setAttribute("onChange","alert('hi')");<br />
<br />
document.getElementById(fields-1).insertAdjacentElement("afterEnd",newField)<br />
</script><br />
when I use the "view partial source" add-in for "ie" it shows that the element was added with the attribute, however, when I change the content of the field the event does not get fired. - as opposed to when I set that same attribute in plain HTML... - like so <input type="file" onchange="alert('hi');" id="1">
all help is appreciated.
thanks in advance,
- webProgrammer
|
|
|
|
|
"attribute" != "event"
If you want to add an event handler, you have to use either the inline HTML attribute that matches up to the name (this is not a normal attribute), or use either one of the scripting ways below:
myElem.oneventname = eventhandler;
myElem.attachEvent("oneventname", eventhandler); Notice the use of quotes above. Where I use eventhandler you just use the function name without quotes. This results in a function pointer. You should take a look at the "Web Development"->"HTML and Dynamic HTML" section of the MSDN Library[^] for further details.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I tried this before it did not work, - myElem.oneventname had the same results as myElem.setAttribute (obviously replaced by the element name and event type)
however, in regard to "attachEvent " - this did not even make it to where the other 2 did. - meaning, if I looked at the code (in view partial source) with the other 2 I would actually see that the event handler was in place, however not when I used the "attachEvent " function.
- I will try again though
although I still believe this is an issue thanks alot for your help, I really appreciate it.
webProgrammer
|
|
|
|
|
You can't add "alert('hi')" - it MUST be a function name (without quotes). Underneath it all, this all comes down to COM implementations. attachEvent takes a string that identifies the event name and a VARIANT that is a function pointer - NOT a string. There is no magic involved here and you must follow symantecs. Instead, try somthing like this:
<script language="javascript">
function sayHi()
{
alert("Hi!");
}
myElem.onclick = sayHi;
myElem.attachEvent("onclick", sayHi);
</script> When you use setAttribute , you might thing that this would work from an HTML standpoint, but this isn't manipulating the HTML - it's creating an HTML element in the HTML Document Object Model (DOM) that would've otherwise been read by MSHTML from the HTML document. Instead, you must attach the event handler correctly. Again, the event is not an attribute though it can be represented by an attribute. MSHTML will know better and will hookup a function (or create on in memory that wraps the code you put in the HTML attribute) when it reads the HTML attributes on the element.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|