@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13



Comments:

<0> Rocksfrow, hairy.
<0> Rocksfrow, I would break that up to use a function.
<1> huh?
<0> Rocksfrow, what does escape() do again? (it doesn't actually _escape_ the text does it?)
<1> lol
<1> escape shows a tooltip
<1> ...everything inside escape() is the html shown in the tooltip
<0> Rocksfrow, first I would kick PHP in the nuts for being such a brain-dead language
<1> ...brain-dead language?
<1> ..i personally like PHP
<0> Rocksfrow, very. Does PHP support HERE-docs?
<0> Rocksfrow, because you don't know any better. But it's okay :)
<1> thats basically like calling c++ a brain-dead langugage
<0> C++ is a brain-dead language.
<1> pst, why are you in PHP then lol
<1> haha thats what a better language



<0> Rocksfrow, asking questions about it. Like about HERE-docs.
<2> lol pst
<0> Rocksfrow, a choice of language depends on what you need to do
<1> i'm curious as to why c++ is a brain-dead language..and what you would call a NOT brain-dead language lol
<0> Rocksfrow, as far as _language design_ goes, I _love_ Ruby
<1> ruby..
<0> Rocksfrow, a language that doesn't cause seg-faults and buffer-overruns?
<1> have to look into it..but anyways..any luck with that
<0> Rocksfrow, for a static-strong typed language I would recommend Eiffel. It's also a bore to program in.
<1> pst: HERE-docs are supported on PHP btw
<0> Rocksfrow, I saw, you should use them.
<1> i dont know what HERE-docs are
<1> pst: http://www.onlamp.com/pub/a/php/2003/04/10/php_heredocs.html
<0> Rocksfrow, use those and all your problems will be solved.
<1> i dont even get it
<1> ohhh..
<1> i remember this
<1> <<<EOD crap
<0> EOD can be whatever. It's just an identifier.
<1> yea but..
<1> $var = <<<EOD
<1> var data here
<1> EOD;
<1> thats how it works..
<1> not that complicated haha
<1> i cant see this helping me
<1> considering the fact that its not the PHP part im having trouble with lol
<1> onmouseover="return escape("blahblah")" cant work..
<1> because the HTML is invalid
<1> not because PHP doesnt like it
<0> Rocksfrow, shh. I'm thinking.
<3> change it to vbscript
<4> why not use 'blahblah' ?
<0> november2, if you like being stuck in a proprietary system debugging with crappy tools, sure :p
<0> Rocksfrow, how many toolboxes can be open?
<0> Rocksfrow, does escape ensure that only one is up?
<1> tool tip yea
<1> ..yes
<0> Rocksfrow, okay. But if multiple are up this will not work as expected.
<1> escape works fine
<1> when i use the EXACT same code..except p*** an integer in place of the string..it works fine
<1> pst: i just said multiple cant be up as once
<0> Rocksfrow, that's because he integer doesn't need quotes or contain quotes.
<1> pst: thats not an issue
<1> haha i know this pst
<1> i just dont know how to get the STRING through
<1> and its very frustrating
<3> rocks can't you just use single or double quotes, switch them of?
<1> i dont believe so, november2
<1> you can use something like
<3> onmouseover="return escape('blahblah')"
<1> return escape('<a onclick=callthis("blah")') can you?
<0> Rocksfrow, will the string ever contain a '?
<0> Rocksfrow, or "?
<1> yes pst, thats a problem
<3> well if you start putting html in there it gets more complicated
<1> i can addslashes with PHP easy enough
<1> november2: lol yes i know, thats the problem im having!
<3> onmouseover="return escape('&lt;a onclick=callthis(\'blah\')')"
<0> Rocksfrow, that's no such a bad problem. Does PHP have any function to URI-encode?
<1> pst: yes



<3> yeah or use an HtmlEncode function
<3> not URI-encode
<0> november2, JS does not have a HTML Decode.
<3> oh you're thinking of..no that's not what I mean
<1> november2: htmlencode is not a php function lol
<3> the browser will decode it for you
<3> if it's an attribute value
<1> htmlentities()
<1> is the function your speaking of
<3> I don't care about the crappy php name :P
<1> and yea..the browser will automatically decode that
<1> wait..so your saying the < > is messing it up?
<3> it can
<1> i wasnt aware of that..
<1> tell me this,
<1> <a href=\'#\' onClick=\'denyChange($i,\'$text\')'>
<3> ahh my eyes
<1> would that be okay if inside return escape(' ')
<1> AH WAIT
<1> one min
<1> damn this all lol
<1> is it that uncommon to do this?
<1> to p*** html through a function??
<3> yes.. wtf are you doing lol
<3> use the dom
<1> ITS A TOOLTIP
<0> Rocksfrow, maybe something like:
<1> how is that uncommon
<0> http://pastie.caboo.se/3975
<1> to put html in a tooltip
<0> Although that's kind of scary
<3> the dom was invented to deal with the double quotes problem
<0> Rocksfrow, the requirement is that text must be URI encoded first -- but just at the componenet level. (maybe some CGI escape function in PHP would work)
<0> Rocksfrow, also, the denyWrapper function is _not_ needed if you substitute it back
<1> the dney does something totally seperate
<0> Rocksfrow, actually, I take it back, keeping the wrapper in there is cleaner.
<0> also there is a big typo :p
<0> http://pastie.caboo.se/3976 #fixes
<0> The core function list has got to be the #1 reason why I dislike PHP :x
<1> pst: i thought u said jscript didnt have a URI decode :-p
<0> Rocksfrow, no.
<0> Rocksfrow, I said it didn't have HTMLDecode
<0> Which wouldn't matter anyway because the trouble-makers are ' and "
<1> okay..let me give this a try
<1> give me a min ill get back to ya
<1> thanks
<0> Rocksfrow, using JSON is another way. I just don't like/know/use PHP.
<1> pst: yea i got ya..i just have done so much crap with PHP ..its hard not to like it a bit
<0> Rocksfrow, that would make me hate it a bit more. It's like driving any "sporty" car after you've driven a real sports car :x
<0> "sporty coupe" -- that's the name
<1> pst: guess i never have driven a real sports car :-p
<1> pst: i actually get a php error with that lol
<0> Rocksfrow, the method I used does not exist in PHP. Also, I do not know if you need ; after a statement in PHP.
<0> Rocksfrow, my bets are that PHP just has a rotten core.
<1> pst: the method you used doesnt exist in PHP
<1> what are you talking about lol
<1> and yes, trailing ;'s are necessary
<0> Rocksfrow, ranting. I don't know an appropriate method in PHP. The function lookup is returning 1000 funcntions but none seem to perform URI escaping.
<1> oh i missed line 9 ha
<1> ..yea so thats not the problem anyway
<0> of course I get erpgi, pg_escape( x 10), rpgc_ (x 20)
<5> url escaping? what's wrong with urlencode() ? http://us2.php.net/manual/en/function.urlencode.php
<0> bewest, ahh, that's what's needed
<0> bewest, thanks
<6> Is it possible to parse a page and "find" certain text?
<6> Like, this site is going to be pulling new info via a perl feed... and if it comes across a certain word, I want it to execute a function, is that possible?
<7> Plio, yes
<6> What should I google for?
<7> I'm afraid I'd say something rude, so I won't say anything at all (except this).
<6> Well, what function should I use?
<8> Plio: js has regexps
<8> Plio: make your own function
<5> Plio: what language again?
<5> Plio: you writing this in perl?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

ohgood
#physics
php susbstring function
#debian
#mysql
#php
#gcc
ubuntu how-to rename folder
Apache2.so: undefined symbol: apreq_handle_apache2
FC5 OpenSSL undefined symbol



Home  |  disclaimer  |  contact  |  submit quotes