I’m looking to update the scripts over at [URL=http://javascript.internet.com/]JavaScript Source
Here’s the plan: Search through the code and see what you can bring up-to-date (i.e., DOM methods, unobtrusive, etc.). (There are some real old ones on there.) Submit them to me using the form on the Web site, located at: [URL=http://www.javascriptsource.com/contribute]http://www.javascriptsource.com/contribute
Be sure to make note that you are updating one of the scripts. List which one, the URL of the original script on the JSS site, and where I can find the updated script. If you feel the script is no longer valid, [[email protected]]send us an e-mail
In return, I will post your name and Web site for the update, giving you a link back to your site from JSS.
You are free to do as many as you like. If you have any questions, you can contact us at: [[email protected]][email protected]
First at all, you should replace all over the deprecated
<SCRIPT LANGUAGE="JavaScript">...<SCRIPT>
with
<script type="text/javascript">...</script>[/QUOTE]
It is not absolutely required, but I guess that all the HTML uppercased (or camelcased) tags, attributes, events should be re-written in lowercase (to be compatible with XHTML as well)[/QUOTE]
As for the rest... a lot of codes are old enough. It would be a long term task to bring them all to the up-to-date form.[/QUOTE]
This thread is reason-enough all future script submissions shouldn't be excepted from just anyone prior to being thoroughly tested, re-written to standards, and comfirmed to be cross-browser compatible or to at least noted in the browsers it has been tested-on.[/QUOTE]
I think another important factor is user feedback. e.g. php.net provides an "add note" user feedback section.http://us3.php.net/manual/en/function.chmod.php
Just being able to distinguish, from user feedback, scripts that are said to work from the ones that are said not to work is already enough information to allow good coders to easily know which scripts can be improved upon. That way the good coders won't be losing as much time trying to find scripts that can be improved-upon and would ultimately encourage them. Also a user-rating system would also help identify scripts that can be improved upon. Provide a field in the rating "Room for improvement" along with an "over all rating" field if you wish.[/QUOTE]
<i>
</i><script type="text/javascript">
var a=new AdjustmentH("100px","10000px");
a.onchange=function(p){document.getElementById("countPercent").firstChild.data=Math.round(p*100)+"%"}
document.getElementById("someDIV").appendChild(a.element);
</script>
<p><div align="center">
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</div><p>
align is deprecated, paragraph elements can't contain block level elements, font element is deprecated, paragraph is closed incorrectly, instead another paragraph is opened.<p style="text-align:center; font:xx-small 'arial', 'helvetica', sans-serif;">
Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a>
</p>
I'll have a look around see what other scripts could use updating.[CODE]
"javascript:void(null);"[/CODE]
Now, if someone has a replacement for:
[CODE]
"javascript:void(null);"[/CODE]
I have no problem in changing it, if it works. [/QUOTE]
yikes, I'd say that site is out of date.. I remember using some of those scripts back i nthe days of JS1.3 (3 years ago)! I will work on sometime next week maybe.[/QUOTE]
Hi All
I am looking for javascript to attached image file from any server to each record. Any idea??
Thanks
Youth[/QUOTE]
http://javascript.internet.com/forms/checkbox-text.html
This whole bit of JavaScrript seems rather pointless to me when you could just use <label for=""> and an id=""
[/QUOTE]
Its really very simple technique and you can do lot with less code and lot of plugins are available.[/QUOTE]
[B]what s the code for change background current day in calendar program in java script ???[/B][/QUOTE]
why you people not like the JQuery. [/QUOTE]
When I do projects for people, they have asked me to use Jquery instead of another UI package or[COLOR="Blue"]JavaScript from the ground up[/COLOR]
[/quote]
That's the problem with frameworks and libraries. You have to know the project ahead of time and know the capabilities of the system. If you need to deviate from it in any way, it gets messy.
I remember trying Ruby on Rails. It's quite terrible, in my opinion. It makes easy stuff easier and slightly complicated to hard stuff near impossible. Of course, if you're a developer trying to learn RonR, you already know how to do the easy stuff by hand.[/QUOTE]
0.1.9 — BETA 4.26