Javascript Crapola
Home
Dec14
Pictures
Getting an error saying
"Depracated method document.getSelection() call. Please use window.getSelection() instead"
in a favelet that I've written... only thing is document.getSelection() works and window.getSelection() doesn't, what's that all about?
Paid off my very last council tax installment to Hackney Council it seems, by paying next months in advance... the lady on the phone was very odd saying "Ooh, well done!". Does this mean they don't expect people in Hackney to actually pay? This would explain why it's so bloody high, if I was the person who was subsidising everyone else... by the time payments start up again we'll be based permanently inFolkestone...
pauly :: 2004 :: Comment / reply
Pictures
Which browser are you using? window.getSelection() should work under FF...
itchypaws :: 15 Dec :: 2004 :: Comment / reply
Pictures
I set up a "favelet" under FF today and had no problem or reports of deprecated functions - what are you trying to do?
itchypaws :: 15 Dec :: 2004 :: Comment / reply
Pictures
Hope this will reproduce OK on here:
javascript:function%20s(h){r='';t=0;for(i=0;i
Those are arbitrary breaks in there, it should all be on one line... getSelection does work, but it's clashing with something else, the results of my function s() aren't being appended to the URL... that's the prob with writing these things on just one line, it's a bit hard to debug! I need to write it out in full and then write a sort of compiler that'll shrink the code as much as poss... I will do some more work on this today, it might be all good by the time you see it. Well, hopefully...
16 Dec :: 2004 :: Comment / reply
Pictures
Hmmm... I get problems with it interpreting the charAt() method on my FireFox... Might have some time to play this afternoon through.
itchypaws :: 22 Dec :: 2004 :: Comment / reply
Pictures
You're right though, as just javascript:function%20s(h){r='';t=0;for(i=0;i
works, but my function s() is trimming out the HTML and truncating... it was working OK, will have to backtrack a bit...
22 Dec :: 2004 :: Comment / reply
Pictures
Still got some debugging crap in here:
javascript:function%20s(q){r='';t=0;for(i=0;i
had to escape the contents of the select before passing it into the function, the function was getting nothing...
