function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
IZavalunIZavalun 

PLEASE HELP in S-CONTROL SYNTAX

Please help...
Here is the way I am passing tha values to the function and it's working:
=========================
onclick=\"cm(this,'" + _feedSystem + "','" + _orientation + "','" + _feet + "','" + _inches + "','" + _bladeWidth + "','" + _bladeGauge + "');\" value='" + _name + "'>"
==========================
The problem is when the function is trying to set the values to the url...
  _f.value is undefined
  _o.value is undefined
  _f2.value  is undefined 
  _i.value  is undefined
  _b.value is undefined
  _b2.value  is undefined
================================
document.write("function cm(obj, _f,_o,_f2,_i,_b,_b2) {");
document.write("var locationString = '/a0L/e?nooverride=1&CF00N60000001MadM=' + obj.value + customer+ '&00N60000001LfXC=' + _f.value + '&00N60000001LfX7=' + _o.value + '&00N60000001LfXI=' + _f2.value + '&00N60000001LfXM=' + _i.value + '&00N60000001LfWu=' + _b.value + '&00N60000001LfWj=' + _b2.value;");
=====================================
Greg HGreg H
You don't need the ".value" portion of your syntax as the values are passed to the funtion when the call is made.
 
i.e.
Code:
function cm(obj, _f,_o,_f2,_i,_b,_b2) {
var locationString = "/a0L/e—nooverride=1&CF00N60000001MadM="+obj;
locationString += "&00N60000001LfXC="+_f;
locationString += "&00N60000001LfX7="+_o;
locationString += "&00N60000001LfXI="+_f2;
locationString += "&00N60000001LfXM="+_i;
locationString += "&00N60000001LfWu="+_b;
locationString += "&00N60000001LfWj="+_b2;
document.write(locationString);
}

Hope this helps,
 -greg
IZavalunIZavalun

Greg,

It works!!!!

Thank you very much.