When I started learning PHP, I was disappointed to find few sites that clearly explained it for the nonprogrammer. ComputerWorld has a basic introduction to PHP that is a good starting point for anyone interested in learning about it.
Meryl, do you think you could replace the <a href=# …> in your “comments” link and:
a) replace with the actual URL so that people with JS disabled can view it too? (yes, I have JS turned on)
b) use a “return false” in conjunction with your popup JS so that the anchor tag doesn’t get activated. I don’t know if you’ve noticed, but if I click on a “post a note” link a couple of pages down, it jumps right back to the top of the page because the bookmark link is activated. Very annoying. A “return false” will fix this by not returning control to the anchor tag.
4 comments
You rule! Thanks!
If I learn PHP, do I have to put up comments?
Meryl, do you think you could replace the <a href=# …> in your “comments” link and:
a) replace with the actual URL so that people with JS disabled can view it too? (yes, I have JS turned on)
b) use a “return false” in conjunction with your popup JS so that the anchor tag doesn’t get activated. I don’t know if you’ve noticed, but if I click on a “post a note” link a couple of pages down, it jumps right back to the top of the page because the bookmark link is activated. Very annoying. A “return false” will fix this by not returning control to the anchor tag.
This is what your code should look like:
<a href=”http://www.meryl.net/mt/mt-comments.cgi?entry_id=957“ target=”_blank”
onClick=”OpenComments(957); return false”>Post a note</a>
Tada! Works for everyone – JS or without. And it won’t make your site jump
either
Just an idea.
Yech, didn’t realise the “email” was mandatory. Perhaps a “all fields required” notice too?