From: SourceForge.net <no...@so...> - 2010-06-09 03:44:54
|
Bugs item #1926545, was opened at 2008-03-26 21:18 Message generated for change (Settings changed) made by afm_44 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=782464&aid=1926545&group_id=151897 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open >Resolution: Rejected Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: One parameter only in invoking page method Initial Comment: I tried to follow the code in anthem.js and it checks if it is an array. I am converting this code over from asp .net ajax, I can print both values correctly on an alert. I tried doing it the way in the example also: [selectedID.value,f.elements["color"].value] I get the first parameter but not the second. The array is of length 1. var A = new Array ( 2 ); A[0] = selectedID.value; A[1] = f.elements["color"].value; if ( A instanceof Array ) { alert("ARRAY"); } Anthem_InvokePageMethod( 'SetColor', A, function (result) {} ); ( in my page ) [Anthem.Method] public void SetColor(string [] par) { const int CONTROL_ID = 0; const int COLOR = 1; // GETS HERE if (par.Length > 1) { // never gets here } } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=782464&aid=1926545&group_id=151897 |