The following parts of the documentations list the usercode AIP Function Declaration changes.
The articles below list the usercode AIP Function Declaration changes.
Standard Code
Difference table
Note: Any methods and properties not listed here are the same for both scripts.
| JScript.NET function | JavaScript function |
GetCatiRespondentUrl(String questionId, params string[] @params) |
|
GetRespondentUrl(String questionId, params String[] params)
|
|
UserParameters[paramName] | UserParameters.item(paramName) |
SetPanelistCredit(Int32 credit, String comment, String sectionId) | SetPanelistCreditBySectionId(Int32 credit, String comment, String sectionId)
|
SetPanelistCredit(Int32 credit, String comment, Int32 panelistId)
| SetPanelistCreditByPanelistId(Int32 credit, String comment, Int32 panelistId)
|
SetPanelistCreditWithCustomVariables(Int32 credit, String comment, String sectionId,
String[] fieldNames, String[] fieldValues)
| SetPanelistCreditWithCustomVariablesBySectionId(Int32 credit, String comment, String sectionId,
String[] fieldNames, String[] fieldValues)
|
SetPanelistCreditWithCustomVariables(Int32 credit, String comment, Int32 panelistId,
String[] fieldNames, String[] fieldValues)
| SetPanelistCreditWithCustomVariablesByPanelistId(Int32 credit, String comment, Int32 panelistId,
String[] fieldNames, String[] fieldValues)
|
| N/A | Cookies
|
| N/A | CreateCookieObject(String name, String value) |
IsNet(object quadIP, object quadNet, object quadMask)
| N/A |
ExprObj
Difference table:
| JScript.NET example | JavaScript example |
exprObj["q1"] | exprObj.item("q1") |
Set
Difference table:
| JScript.NET example | JavaScript example |
setObj["2"] | setObj.item("2")
|
Request
Note: Request is only supported for online interviewing; it is not available in off-line interviewing.
| JScript.NET function | JavaScript function |
Int32 ContentLength
| Int32 ContentLength
|
String ContentType | String ContentType |
NameValueCollection Form | JavascriptNameValueCollection Form |
NameValueCollection Headers | JavascriptNameValueCollection Headers |
NameValueCollection Params | JavascriptNameValueCollection Params |
String Path | String Path |
String PhysicalPath | String PhysicalPath |
NameValueCollection QueryString | JavascriptNameValueCollection QueryString |
NameValueCollection ServerVariables | JavascriptNameValueCollection ServerVariables |
Uri Url | Uri Url |
String UserAgent | String UserAgent |
index[key] | item(key) |
Void ValidateInput() | Void ValidateInput() |
Void Abort() | N/A |
Note: For Request.Cookies use the new Cookies object instead.
Response
Note: Response is only supported for online interviewing; it is not available in off-line interviewing.
| JScript.NET function | JavaScript function |
Void Clear() Void Close() Void End() Int32 Expires NameValueCollection Headers String Status Void Redirect(String url) Void Redirect(String url, Boolean endResponse) Void Write(Object obj) Void Write(Char[] buffer, Int32 index, Int32 count) | Void Clear() Void Close() Void End() Int32 Expires JavascriptNameValueCollection Headers String Status Void Redirect(String url) Void Redirect(String url, Boolean endResponse) Void Write(Object obj) Void Write(Char[] buffer, Int32 index, Int32 count) |
Void AddCacheDependency(CacheDependency[] dependencies) | N/A |
Server
| JScript.NET function | JavaScript function |
| String HtmlDecode(String s) String HtmlEncode(String s) String UrlDecode(String s) String UrlEncode(String s) | String HtmlDecode(String s) String HtmlEncode(String s) String UrlDecode(String s) String UrlEncode(String s) |
Void ClearError() | N/A |
NameValueCollection
| JScript.NET function | JavaScript function |
| Void Add(NameValueCollection collection) Void Add(String name, String value) Void Clear() String Get(String name) String[] AllKeys String[] GetValues(String name) Boolean HasKeys() String index[name] Void Remove(String name) Void Set(String name, String value) | Void Add(NameValueCollection collection) Void Add(String name, String value) Void Clear() String Get(String name) String[] AllKeys String[] GetValues(String name) Boolean HasKeys() String index[name] Void Remove(String name) Void Set(String name, String value) |
| Void CopyTo(Array dest, Int32 index) String Get(Int32 index) Int32 Count String index[int key] KeysCollection Keys IEnumerator GetEnumerator() String GetKey(Int32 index) String[] GetValues(Int32 index) Void Set(String name, String value) String ToString() | N/A |
Note: NameValueCollection may be used in RequestForm, UserParameters, Request.Form, Reqest.QueryString, Request.ServerVariables.
Browser
Note: Browser is only supported for online interviewing; it is not available in off-line interviewing.
| JScript.NET function | JavaScript function |
| Boolean Beta String Browser String Id String InputType Boolean IsMobileDevice Boolean JavaScript Boolean Tables String Type Boolean VBScript String Version Boolean IsBrowser(String browserName) String index[String key] | Boolean Beta String Browser String Id String InputType Boolean IsMobileDevice Boolean JavaScript Boolean Tables String Type Boolean VBScript String Version Boolean IsBrowser(String browserName) String item(String key) |
| Void AddBrowser(String browserName) HtmlTextWriter CreateHtmlTextWriter(TextWriter w) Void DisableOptimizedCacheKey() Boolean ActiveXControls IDictionary Adapters Boolean AOL Boolean BackgroundSounds ArrayList Browsers Boolean CanCombineFormsInDeck Boolean CanInitiateVoiceCall Boolean CanRenderAfterInputOrSelectElement Boolean CanRenderEmptySelects Boolean CanRenderInputAndSelectElementsTogether Boolean CanRenderMixedSelects Boolean CanRenderOneventAndPrevElementsTogether Boolean CanRenderPostBackCards Boolean CanRenderSetvarZeroWithMultiSelectionList Boolean CanSendMail IDictionary Capabilities Boolean CDF Version ClrVersion Boolean Cookies Boolean Crawler Int32 DefaultSubmitButtonLimit Version EcmaScriptVersion Boolean Frames Int32 GatewayMajorVersion Double GatewayMinorVersion String GatewayVersion Boolean HasBackButton Boolean HidesRightAlignedMultiselectScrollbars String HtmlTextWriter Boolean IsColor Boolean JavaApplets Version JScriptVersion Int32 MajorVersion Int32 MaximumHrefLength Int32 MaximumRenderedPageSize Int32 MaximumSoftkeyLabelLength Double MinorVersion String MinorVersionString String MobileDeviceManufacturer String MobileDeviceModel Version MSDomVersion Int32 NumberOfSoftkeys String Platform String PreferredImageMime String PreferredRenderingMime String PreferredRenderingType String PreferredRequestEncoding String PreferredResponseEncoding Boolean RendersBreakBeforeWmlSelectAndInput Boolean RendersBreaksAfterHtmlLists Boolean RendersBreaksAfterWmlAnchor Boolean RendersBreaksAfterWmlInput Boolean RendersWmlDoAcceptsInline Boolean RendersWmlSelectsAsMenuCards String RequiredMetaTagNameValue Boolean RequiresAttributeColonSubstitution Boolean RequiresContentTypeMetaTag Boolean RequiresControlStateInSession Boolean RequiresDBCSCharacter Boolean RequiresHtmlAdaptiveErrorReporting Boolean RequiresLeadingPageBreak Boolean RequiresNoBreakInFormatting Boolean RequiresOutputOptimization Boolean RequiresPhoneNumbersAsPlainText Boolean RequiresSpecialViewStateEncoding Boolean RequiresUniqueFilePathSuffix Boolean RequiresUniqueHtmlCheckboxNames Boolean RequiresUniqueHtmlInputNames Boolean RequiresUrlEncodedPostfieldValues Int32 ScreenBitDepth Int32 ScreenCharactersHeight Int32 ScreenCharactersWidth Int32 ScreenPixelsHeight Int32 ScreenPixelsWidth Boolean SupportsAccesskeyAttribute Boolean SupportsBodyColor Boolean SupportsBold Boolean SupportsCacheControlMetaTag Boolean SupportsCallback Boolean SupportsCss Boolean SupportsDivAlign Boolean SupportsDivNoWrap Boolean SupportsEmptyStringInCookieValue Boolean SupportsFontColor Boolean SupportsFontName Boolean SupportsFontSize Boolean SupportsImageSubmit Boolean SupportsIModeSymbols Boolean SupportsInputIStyle Boolean SupportsInputMode Boolean SupportsItalic Boolean SupportsJPhoneMultiMediaAttributes Boolean SupportsJPhoneSymbols Boolean SupportsQueryStringInFormAction Boolean SupportsRedirectWithCookie Boolean SupportsSelectMultiple Boolean SupportsUncheck Boolean SupportsXmlHttp Type TagWriter Boolean UseOptimizedCacheKey Version W3CDomVersion Boolean Win16 Boolean Win32 Version[] GetClrVersions() String ToString() | N/A |
JavaScriptScriptingExtensionPoint
| JScript.NET function | JavaScript function |
IScriptCallResultCollection GetRequest(string method); IScriptCallResultCollection GetRequest(string method, int timeoutInMillisecond); IScriptCallResultCollection GetRequest(string method, IDictionary parameters); IScriptCallResultCollection GetRequest(string method, IDictionary parameters, int timeoutInMillisecond); IScriptCallResultCollection PostRequest(string method); IScriptCallResultCollection PostRequest(string method, int timeoutInMillisecond); IScriptCallResultCollection PostRequest(string method, IDictionary parameters); IScriptCallResultCollection PostRequest(string method, IDictionary parameters, int timeoutInMillisecond); | JavascriptCallResultCollection GetRequest(string method) JavascriptCallResultCollection GetRequest(string method, int timeoutInMillisecond) JavascriptCallResultCollection GetRequest(string method, JavascriptObject parameters) JavascriptCallResultCollection GetRequest(string method, JavascriptObject parameters, int timeoutInMillisecond) JavascriptCallResultCollection PostRequest(string method) JavascriptCallResultCollection PostRequest(string method, int timeoutInMillisecond) JavascriptCallResultCollection PostRequest(string method, JavascriptObject parameters) JavascriptCallResultCollection PostRequest(string method, JavascriptObject parameters, int timeoutInMillisecond) |
JavaScriptCallResultCollection
| JScript.NET function | JavaScript function |
string this[string key] { get; } Dictionary<string, string>.KeyCollection Keys { get; } Dictionary<string, string>.ValueCollection Values { get; } IDictionary<string, string> GetDictionary(string key); | string item(string key) string[] Keys string[] Values JavascriptObject GetDictionary(string key) |
Cookies
Note: This is a replacement for Request.Cookies. Note also that Cookies is only supported for online interviewing; it is not available in off-line interviewing.
| JScript.NET function | JavaScript function |
| Void Add(HttpCookie cookie) | Void Save*(ICookie cookie) |
| HttpCookie Get(String name) | ICookie Get(String key) |
| String[] AllKeys | String[] AllKeys |
| Int32 Count | Int32 Count |
| this[String name] | ICookie item(String key) |
| Void Remove(String name) | Void Remove(String name) |
| Void Set(HttpCookie cookie) | Void Save*(ICookie cookie) |
Void CopyTo(Array dest, Int32 index) | N/A |
* - You can get a cookie with the Cookies.Get method or create a new cookie with CreateCookieObject method. Note that in either case, on completion you must save the changes with the Cookies.Save method.
Cookie
Note: This is a replacement for Request.Cookies. Note also that Cookie is only supported for online interviewing; it is not available in off-line interviewing.
| JScript.NET function | JavaScript function |
| String Domain DateTime Expires Boolean HttpOnly String Name String Path Boolean Secure String Value | String Domain DateTime Expires Boolean HttpOnly String Name String Path Boolean Secure String Value |
Boolean HasKeys this[String name] Boolean Shareable NameValueCollection Values String ToString() | N/A |