Any one explain

Any problem with javascript can be discussed here.
Locked
karthikeyan
Posts: 5
Joined: Sat Nov 25, 2006 2:56 pm
Contact:

Any one explain

Post by karthikeyan »

What does the following script do !


<script language="javascript">

****.sf1.p.focus();

****.sf1.action = "r/sx/*-http://search.yahoo.com/search";

YAHOO.Fp.sFrPrefix = ****.sf1.fr.value;

if(****.sf1.fr.value.indexOf('-t-')<0)

{****.sf1.fr.value = YAHOO.Fp.sFrPrefix+(typeof(ver);}

</script>


Jayke
Posts: 16
Joined: Wed Dec 27, 2006 11:57 pm

Post by Jayke »

Nothing as the sf1 and the fr is not declared. What is the t? None of the varabiles you used are declared, so the script does nothing.
raina
Posts: 213
Joined: Sat Jan 20, 2007 11:18 am
Contact:

Post by raina »

script doesnt work....
Image
Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

karthikeyan wrote:What does the following script do !

<script language="javascript">
****.sf1.p.focus();
****.sf1.action = "r/sx/*-http://search.yahoo.com/search";
YAHOO.Fp.sFrPrefix = ****.sf1.fr.value;
if(****.sf1.fr.value.indexOf('-t-')<0)
{****.sf1.fr.value = YAHOO.Fp.sFrPrefix+(typeof(ver);}
</script>
sf1- is probably name of the some kind of form
p- may be some kind of input line or button
fr- maybe another input line of the same form

and this script do following:
place cursor on form "sf1" on element "p"
set form action to another page
if on "fr" element there is text that has part "-t-" and it is in the beginning then "fr" element gets some kind of value (witch i can not understand)
Image
Gyanu
Posts: 338
Joined: Mon Jul 30, 2007 2:03 pm
Contact:

Post by Gyanu »

there is an error so it does nothng.
Image
Flipper3
Posts: 353
Joined: Tue Feb 28, 2006 12:34 am

Post by Flipper3 »

Thanks to Lixas for opening this thread back up so that I could reply. ;)

Well, after doing some searching on the good ol Google...I found this website:

http://translate.google.com/translate?h ... _qdr%3Dall

If you go there and then search for (with Ctrl + F) typeof then you will find this script. Now, I still cannot decipher what this script is for, but I hope that I am giving somebody else a lead to finding out what this script does. ;)
Gebbo
Posts: 554
Joined: Tue May 16, 2006 3:22 pm

script

Post by Gebbo »

looks like that script doesnt work..!
.............................:: Spirit of Fire ::..................................

Image
Gebbo
Posts: 554
Joined: Tue May 16, 2006 3:22 pm

Anyone

Post by Gebbo »

hmm.. i dont understand anything that script says O_O
.............................:: Spirit of Fire ::..................................

Image
Locked