Validating JavaScript getSelection

Hey guys,

Is there any way at all to validate a JavaScript getSelection() using PHP? In my case the getSelections will be pretty large blocks of text on my site, and I don’t want to have PHP search the whole page for the exact getSelection() string to verify it is indeed on the page every single time, that would be verify bad for performance.

Is that the only solution though?


Have no idea what it is you are asking…

What part are you not understanding? Thanks

that part – start off simple wtf is getSelection()?

getSelection method (window) JavaScript

What exactly is it you are trying to do with JavaScript that need something along the lines of “Validation” with PHP?

Just experimenting. Any ideas?