text –Something wrong here

I don't know what you are trying to do Blindside.

always!
oh im trying to documentWrite() a link
and inside the link is an onClick

oh, a link?

and that onClick contains more JS
but I dont want it executed now only onclick..

Javascript is run when an event occurs that can trigger the script.
So, what event do you want to have trigger your code, if not onclick?
Oh wait you mean you DO want it executed when there is an onclick?

yeah that is all fine
but is it gonna be affected by the fact that
this is written down by a documentWrite()
oh how do I put a ' inside a string
\' ?

Yes

Yeah.
That EternalTomorrow guy was awesome.
I miss him.

yes what a man, what a man
not nearly as awesome as jimmy12 though, that guy managed to rap ludicurous, rave about mmorpgs and still not get kicked from ##java O_o

Hawt! What a stud.

hey guys
it tells me that encodeURL is not defined
why the hell not!?
:P
hey someone here told me encodeURL works in JS..

Its encodeURI, not encodeURL, sorry that was a typo :P

oh ok
actuallyu probably said that
and I thought it was a typo
lol
err you*
hey guys im doing this
http://pastebin.com/m5df531a2
and its not executing the underlying JS

What the heck is that supposed to be?

jesus!

pretty crazy shiznit
infact

it's a string

Ditto, why do all that acrobatics.

yeah lol

are you evaluating the string?

im documentWriting it

Please step back, and explain what you're trying to do.

plase
please*
do not document.write anything

im documentWriting a string, and I want the onClick to be evaluated properly

let alone code

Sorry, try again. The key part of the sentence was "step back".

i know its a bit messy, but its just a test sort of

What are you trying to achieve?

BlindSide, you're going wrong by using document.Write
Aankhen“, he's trying to insert javascript using document.write, I guess on the page load.

why breakerfall its pretty useful
yeah
there you go

Why are you using document.write()?

because I need to change the link address
to addyString

if I say typeof [] I get "object"… is there any way to find out if something is an array?

What link address? When do you need to change it? Why do you need to change it?

linkElement.href = encodeURI(addString); ?

Where is this link? How is it created? How do you access it?
You could try foo.constructor == Array.prototype.constructor

Aankhen“: is scaring me
oh cool
u just asked the 5 Ws

What you said made no sense to me, since I don't have an indepth understanding of your problem. You need to tell us more about it.

let me evaluate all of this
and Im gonna come back with a better proposal

Aankhen“, hrm, cool, thanks Seems that I can also say [].constructor == Array

I'm not sure that's guaranteed to work, but okay. :-)

Aankhen“, he's just trying to insert some javascript hosting using d.write, but it's a nasty way

No, he said all he wants to do is change "the link address".

ah :/

What I don't understand is what he means by "the link address".

even worse then hehe
you wouldn't use document write to change the address of a link that already exists

Indeed.
You should never use document.write().

you would pull the element in javascript (elementById if you want) and change it

but I use document write everywhere
my friggin page is based on document write

Bzzt…wrong choice.

dig this shiznit:

It isn't too late to change your ways. ;-)
You keep using document.write(), you're going to encounter problems, if not now, then soon enough.

http://pastebin.com/m4969f8f8
see how code-ish it looks

Why do you persist in using external pastebins?

whats wrong with external pastebins
thats the method of choice for irc isnt it

See the topic.

ok ill use that one from now on
i guess

Merci. :-)
So, what is it about that code which you are so proud of?

oh cuz it doesnt look like HTML
lolz

Aankhen“, there's no problem with using external pastebins

Ah.

but it looks like Java :'(

I never said there was a problem. It's irritating.

the one in the topic is only there as a reference, if you don't know any other
it shouldn't be irritating

whys it irritating
lol

Because erxz.com is set up to automatically announce pastes here.
There's also something about the pastebin.{com,ca,etc.} interface that I don't like, but I can't figure out what it is, because AFAICT it's fairly useful. Just one of those weird things.

get over it

Nah. :-)

well don't
but stop complaining if someone uses a different pastebin

Nah.
I enjoy complaining.

So do it somewhere else

Bah, too much offtopic is injurious to health. Cut it out … ;-)

otherwise you just come across as a prick

I don't see anyone asking for JS help at the moment. Relax.
I don't need to complain to do that. :-)

Coming across as a prick isn't anything to be proud of

I don't believe I said it was.
Frankly, I couldn't care less what I come across as.

Well you should.

Nope.

Just because the Internet affords one anonymity, doesn't mean there's a licence to be a prick and lose any sense of etiquette.
there may not be the same level of consequence for the way one speaks, but that doesn't mean you should let all loose

I think I've had my fill of your illogical conclusions.

illogical conclusions heh

Either pay more attention to what I say, and stop using your own arbitrary logic system, or else I suppose this conversation is over.

Frankly put, nobody cares if a _different_ pastebin site annoys you.

hi, can anyone help me??

bjorninge, shoot

Not without knowing the question. :-)

we can only try

Frankly put, that's too bad.

you came at a good time they were about to explode

So , you can help me?

Hehe

Still not hearing a JavaScript question. :-S

`ask

Those asking to ask risk axing. Don't ask permission to ask a question. Don't test the water, don't try our patience. Just ask. www.catb.org/~esr/faqs/smart-questions.html

I hav enone
have none

lmao

Then what is it you need help with?

we're done for

just wanted to stop those guys :p

oh hahahha

ass hehe

Ah, you mean *us* guys. :-)

Bah, cheap trick.
Bah, cheap host trick.

Effective, at least.
karma bjorninge sneaky

`ops
Hmm..

Lagged, probably.

'karma bjorninge sneaky
'ops

I have a question!

`ops

really

Ask away.

this is hard to answer

Slow down. The bot is lagged.

take yout time
whats 2+2?

Come ask with me come ask lets ask away

You want #math.

omfg such a channel exists

Aankhen“, but is 2+2 the same in javascript, as in math????

Indeed.

does freenode contain channels outside of programming?
NO!
it is not

Not universally. :-)

because all numbers at 54 bit floating point
64

Bleh, a rip off :P

But 2 + 2 is still the same.

so then 2 + 2 is probably 3.99999998888

No.
On the other hand, you could stick 2+2 in quotes, giving you "2+2", which would evaluate to a string rather than the number 4. Hence why it's not universally the same as in mathematics.

hey, how can one do an alert in javascript??

look go test it out, evaluate e^pi-pi
and it will come out as 19.999099979

like, how do you do window.alert()?

keep it up bjorninge , theyve almost forgotten

Integers in floating-point representation are always exact.

What he said. :-)

oh
didn't know that

It's the fractional part, not consumerable with the radix, that gives… problems.

The problem is with floating-point numbers, not integers.

Aankhen“: infact JS uses FP for everything doesnt it

NO!

No.

and we all know 1 = 0.33333~ * 3 which is 0.999999~

JS uses FTP_callbacks for everything it does!

F** The Police?

Turning the conversation to another topic is one thing, blatantly trolling is another. :-)

so when you write alert(), an ftp call to my server is made!

wait wait whos trolling
im terrible at this net-jargon

the ability to be able to look at the big picture, and integrate different pieces of software is more important than being proficient at a single language

Heh.

why 25?
and im not starting that kind of discussion, it doesnt even have an answer

anyway…

tobins25
I think that the ability to learn C++, and then find every other language piss-easy is key

yeah but you'll reach the point where you want to do a big project
and you don't want to write it all yourself

I do
I am writing it all by myself

see, i don't agree with that
that's where we differ

well Ive worked on team projects too, its not that bad
and you can just use SVN
and it works great

but even if you are working by yourself
you can use frameworks and libraries
and engines
made by others

ive made frameworks and libraries
so ive had to keep in mind all these facts

for in house use or for distributing?

distro kinda

cool

anyway its fun thinking about interfaces

what kind of interfaces?

and making them easy to use and efficient

ahh

programming interfaces
like the functions and things lol

yeah, it's pretty fun
i'm not good at art and graphics

and i documented all of it

but i like layout

http://irrnet.svn.sourceforge.net/viewvc/irrnet/base/NetManager.h?view=markup
thats the header with most functions and stuff
but please dont look at the implementation
its embarressing lol

hi

Can I do var .= 'potatoes' to append 'potatoes' to var?

Jckf, no
use +=

I found out
I know

ah, du var han norske duden

Jepp
Ser du hva jeg har gjort rart her som gjør at det ikke virker i IE? http://www.fllabs.org/test/AjaxTest/

ingenting skjer i opera heller

absriken

Heh

abspriken

?

ejakulieren

Why isn't this working in IE?
document.getElementById('text').innerHTML = data;

document.getElementById('Clock').appendChild(document.createElement('input').setAttribute('type', 'text')); //Something wrong here?

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.


Blog Tags:

Similar posts: