DHTML Forum  

Go Back   DHTML Forum > CoolMenus > CoolMenus 4
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02.01.2007, 17:24
cmotor cmotor is offline
Neuer Benutzer
 
Join Date: 23.10.2002
Location:
Posts: 10
Default

I am submitting a form with the onclick attribute. When my form is submitted it is supposed to call a javascript I am using for security. Cool menus submitts the form but does not set off the javascript: FixBusi(this);

Code Below:

oCMenu.makeMenu('top2','','','','','86','14','imag es/navbar/viewcartoff.gif','images/navbar/viewcarton.gif','','','','','','document.F_viewcar t.submit();')

<font color="blue">
<td><form name="F_viewcart" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="FixBusi(this);">
<input type="hidden" name="business" value="slsales783326@earthlink.net">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="display" value="1"></form></td></font id="blue">


<font color="brown"><SCRIPT language="javascript">
<!--
// global variables to form MY addresses
var at1 = "@";
var dot = ".";
var typ = "com";
var id1 = "sales1011"; // real id1
var id2 = ""; // real id2
var url = "screamingleather"; // real URL
var fid1 = "slsales783326"; // fake id1
var fid2 = ""; // fake id2
var furl = "earthlink.net"; // fake URL

function FixBusi(obj1) { // PayPal FORM business value
var tmp;
if (obj1.business) { // see what is in this form
tmp = obj1.business.value;
obj1.business.value = id1 + id2 + at1 + url + dot + typ;
}
return true; // make it work...
}

function FixLink(obj1) { // fix any PayPal link in calling FORM
var tmp,org,ary=new Array();
if (obj1.cancel_return) { // start checking those links
org = obj1.cancel_return.value;
tmp = org; // place holder
ary = tmp.split (furl); // do we have a fake
if (ary.length > 1) { // still a fake
tmp = ary.join ("members." + url);
obj1.cancel_return.value = tmp;
alert("Fix URL... \n\n" +
"cancel_return value was ... \n " + org + "\n\n\n" +
"cancel_return value IS ... \n " + tmp);
}
org = tmp; // any more stuff to fix?
ary = tmp.split (fid1 + fid2); // have a fake ID here?
if (ary.length > 1) { // still a fake
tmp = ary.join (id1 + id2);
obj1.cancel_return.value = tmp;
alert("Fix ID... \n\n" +
"cancel_return value was ... \n " + org + "\n\n\n" +
"cancel_return value IS ... \n " + tmp);
}
}
}

function FixMail(obj1) { // fix a hyperlink mail addr
var tmp;
tmp = obj1.href;
obj1.href = "mailto:" + id1 + id2 + at1 + url + dot + typ;
return true; // make it work...
}

function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</SCRIPT></font id="brown">
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT +2. The time now is 08:25.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.