[thelist] a challenge: nabbing this xmlhttprequest code

Kasimir K evolt at kasimir-k.fi
Thu Mar 3 12:20:27 CST 2005


Mark Aldrich / 2005-03-03 15:39
> http://www.sonyericsson.com/spg.jsp?cc=gb&lc=en&template=ps1&zone=ps&lm=ps1
> 
> i was wantin to nab the javascript from this page, speciacally the
> xmlhttprequest functions. But unfortunately it seems to be embedded in a
> jsp, which i thought was quite interesting cause none of us can figure out
> how to get to them. A good way to lock up your scripts maybe?
> 
> anywaqys, anybody got any ideas around this because obviously the client
> side scripts have to end up on your machine at some stage?


The easiest way is to use the source, where we have things like
<script type='text/javascript' 
src='spg.jsp?cc=global&amp;lc=en&amp;ver=4001&amp;template=JS_PG1&amp;ctype=javascript'></script>

Then you just take the src, put it together with the domain name:
http://www.sonyericsson.com/spg.jsp?cc=global&lc=en&ver=4001&template=JS_PG1&ctype=javascript

stick that to your browsers address bar, and that's it. You may want to 
change "&amp;" to just "&" though.

.k


More information about the thelist mailing list