?

Log in

No account? Create an account

Previous Entry | Next Entry

javascript help

Web development forums are just more and more painful to read sometimes. People ask the most awful questions... "How can I fix the size of my text so no one can make it bigger or copy it or change the font or use their 'back' button or read anything or enjoy the internet anymore?" The internet is one big "just because you can doesn't mean you should" fest these days. jurassic park morality, as I call it.

It really does me good to rant about usability in my journal once a month, that's the reason for this post.

What sparked this, you ask? I've been trying to hunt down some javascript help. See, I've got this thing on my page that I'm going to have people copy, it looks like this:

<script language="JavaScript" SRC="http://spacefem.com/oftheday/code1.js?ted=5"><SCRIPT>

And then I have file called code1.js (url change to protect work in progress, don't go looking for it), and I want it to print out the value of that "ted" variable. I tried just writing it, that did nothing. Then I tried a var ted = location.search.substr(3).split("&") , that also did nothing. The file prints out other stuff, so I know I'm including it right.

Cursed javascript. I think geocities and all those pages should enable server side includes so everyone can just link to my php source, but they won't, so this is where I'm at. And yes, I could have asked this question to a nice livejournal javascript help community, but I like my friends list better. I think it's bigger than half those communities and the people on it are smarter anyway.

Comments

( 5 comments — Leave a comment )
parcimony
Nov. 9th, 2003 09:03 am (UTC)
I would help you out, but I lack even the slightest idea of what you are doing. :)
homunculus
Nov. 9th, 2003 11:04 pm (UTC)
javascript is the devil.
dizietsma
Dec. 1st, 2003 08:04 am (UTC)
This oughta help you out. I'm just printing each page option, you'd want to do more processing in that for loop, probably starting with a var blah = opts[opt].split('=')...
<script type="text/javascript">
<!--
var thing = location.href.split('?')[1];
var opts  = thing.split('&');
for (opt in opts)
{
    document.write( opts[opt] + "<br>\n" );
}
// -->
</script>

Mind if I add you as a friend, btw? I discovered you via the colour test thingy :)
(Anonymous)
Dec. 28th, 2003 07:37 pm (UTC)
function log (hash) {
document.write('</scr' + 'ipt>') } Hi I'm trying to download the orginal javscript from http://javascript.com/java.js, but when I enter this as the URL, i get nothing...Any Comments Thanks
(Anonymous)
Dec. 28th, 2003 07:40 pm (UTC)
HEY
I'm trying to download the orginal javascript so I can learn from it.

function log (hash) {
document.write('</scr' + 'ipt>') } I found this code (above) and I looked at it (I'm a beginner), it reads java src="http://www.downloadjavas.com/thejavascript.js", so I entered this in a browser, got nothing... Any Comments thanks - MRJATINCHOPRA@YAHOO.COM please email me -
( 5 comments — Leave a comment )

Latest Month

July 2017
S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
3031     
Powered by LiveJournal.com
Designed by Tiffany Chow