Jump to content

jeffman

Members
  • Posts

    7,761
  • Joined

  • Last visited

Everything posted by jeffman

  1. They won't do it. This site is free for you because it shows you advertisements. The ads pay the bills. If you could have the whole site, you would not see the ads.
  2. TextEdit is an adequate editor for HTML, and it comes installed on every Mac, so that's OK. But it's awkward.An excellent option is TextWrangler from BareBones. It is free, includes auto-indent and syntax highlighting, and has built-in FTP support, which makes it VERY handy.So I am suggesting that the school recommend TextWrangler as a better alternative.
  3. jeffman

    Scrollbar

    There are jQuery plugins too.
  4. To trigger some Javascript, you'll need to bind some code to an event. I suggest using the form's submit event. When a form has a submit button, if the focus is on a text input, hitting the enter/return key triggers the submit. Users LIKE that. As to the code itself, you'll need to get a reference to your input so you can read its value. Note that if you use document.write you will obliterate your document and your user will have to reload it. Annoying. You are better to alert the response or write it into the innerHTML property of some element in the document.
  5. I don't think it can be done in the way you imagine. HTTP is a lousy protocol for streaming video. I did find this, however. It seems to require Adobe Media Server. The standard version costs $1000, and I didn't see if it requires only the standard version or needs the pro version. You might look into the kind of system used to send security video over the web. The interface is probably primitive, but it might be more cost effective.
  6. You could maybe integrate my suggestion in your foreach loop. I don't know. BTW, look at your $validate array. Some characters are wrong/missing.
  7. I'm at a loss. Maybe you can find a usergroup for this software. It's pretty old, but I imagine someone else still uses it.
  8. jeffman

    Slow host?

    Sounds like a browser problem. My personal workflow is to keep CSS and JavaScript embedded in my HTML document until I'm close to release. Then I move stuff into external files. This eliminates the problem you're describing.
  9. I've looked over the documentation for cgiemail, which is a little thin. Since the error refers to headers, I wonder if something is misformatted in your template. Please paste the contents of registration.txt into your next post. Oh. By any chance did your client computer change from Windows to Mac?
  10. What have you tried? Server-side scripting would handle this with ease. Most of the seniors on the board are skilled in PHP, so I'd suggest using that.
  11. I would suggest two things. 1. Write the HTML and text for each possible error message. Put in your document. Put each one in a unique container with the CSS display set to none. When PHP detects that an error message should be displayed, all you have to do is echo a new classname that changes the display property of the container. Do NOT use PHP to echo the error messages individually. 2. Don't return multiple variables. Return an array. Set each array element every time you run a test. Then you can run tests like this: <div class="message<?php if ($validationErrors['phone'] ) {echo ' visible';} ?>">Correct telephone number required</div>
  12. jeffman

    fread,write

    Those functions are very old. Use file_get_contents() and file_put_contents() instead. If you would like the convenience of having your data read directly into an array, use file() . You can find plenty of examples for each function on php.net
  13. One way to display contact information is as a graphic. Type it up in PhotoShop or whatever to match the color and font of the site. Save it as a JPEG. This way, it can't be read by most spambots, but humans can read it OK.
  14. Dude. If that's as much explanation as you are willing to offer, how can you possibly expect to get help?
  15. If that is what you want, you should look for an animated gif that already exists. Or you could find a movie clip of some live coral. Select a number of frames and use a tool like PhotoShop to create an animated gif. I don't know any of free or cheap software that will let you do that. FWIW, animated gifs are very old fashioned and make poor substitutes for movies. Maybe you could just embed a YouTube movie. Or you could buy a small movie at istockphoto.com. I found several small movies of coral reefs for $34 each.
  16. As for the image being in the right place, my display is 1920 px wide. The image looks like the wrong place to me.
  17. I still don't understand the question. You said this: And you said this: What exactly do you want?
  18. To center the image in CSS, set the left and right margins to auto.
  19. If you want the flags to be the background of something, you'll need to create elements for them to be the background of. Probably spans. Then you will have to set the background repeat, left and top position, and some padding on one side.
  20. I tried this: <img src="americanflag.gif>design <img src="spanishflag.gif>diseƱar If that is not what you mean, please explain. There are many other ways.
  21. If you are using the rel attribute to store arbitrary data (an old-fashioned work-around) you may want to explore the data attribute, which is new in HTML5. jQuery supports it specifically.
  22. jeffman

    PHP Copy function

    You might try trim() on the strings, in case they contain non-printing characters or newlines at the end. Before you do that, maybe try strlen() to see if the lengths match.
×
×
  • Create New...