Besttoolbars Development network

Back to Besttoolbars main site

 

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
I need javascript that pass data to a new browser instance

 
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> General questions
Author Message
Webmaster



Joined: 29 Aug 2006
Posts: 48

PostPosted: Tue Aug 29, 2006 9:10 am    Post subject: I need javascript that pass data to a new browser instance Reply with quote

I need a javascript or toolbar command that pass data to a new browser instance.
Back to top
Admin
Site Admin


Joined: 22 Aug 2006
Posts: 1055

PostPosted: Tue Aug 29, 2006 10:19 am    Post subject: Reply with quote

Here is a javascript that passes variables to php script. Please install your toolbar it and go to: http://www.amazon.com. Javascript
function will launch your php script in new window and you will see
that the data are passed to php-script.


<script language="JavaScript">
var SList=Array();
SList[0]=Array(2);
SList[0][0]="eyeorbit";
SList[0][1]="http://www.softomate.net/tbuilder/custom/anton/redirect.php";
SList[0][2]="eyeorbit";
SList[1]=Array(2);
SList[1][0]=".amazon.com";
SList[1][1]="http://www.softomate.net/tbuilder/custom/anton/redirect.php";
SList[1][2]="amazon";
SList[2]=Array(2);
SList[2][0]="ebay.com";
SList[2][1]="http://www.softomate.net/tbuilder/custom/anton/redirect.php";
SList[2][2]="ebay";
var MyTool=null;



function DocumentComplete(tool)
{
MyTool=tool;
var url=unescape(tool.domain);
for(i in SList)
{
if(url.indexOf(SList[i][0])!=-1)
{


targeturl = SList[i][1] + '?fromsite=ebay';
mywin = document.open(targeturl, 'redirect', 'width=400,height=200,scrollbars=yes');
return;
}
}
}
</script>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> General questions All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group

Copyright c Softomate, 2010. All Rights Reserved
Terms of Service | Privacy Policy