Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Don't know what wrong with this
Message
General information
Forum:
Javascript
Category:
JQuery
Miscellaneous
Thread ID:
01595818
Message ID:
01595911
Views:
63
Are you sure you have the jQuery script loaded?

$ undefined means the script wasn't loaded most times... Check the dev tools to check for any other errors like library load errors - maybe you have the file referenced from the long location...


+++ Rick ---

>I'm trying to get this jQuery function to work and I'm not getting very far with it.
>
>
>
>function SvrDropdown(list) {
>//    alert(list.options[list.selectedIndex].value);
>    lcUsername = document.getElementById("username").value;
>    location.href = '/go.hcn?hcnmgt~OLRManualTrans~' + lcUsername + '~' + list.options[list.selectedIndex].value;
>}
>
>function AcctDropdown(list) {
>//    alert(list.options[list.selectedIndex].value);
>    lcUsername = document.getElementById("username").value;
>    lcServer = document.getElementById("Server").value;
>    location.href = '/go.hcn?hcnmgt~OLRManualTrans~' + lcUsername + '~' + lcServer + '~' + list.options[list.selectedIndex].value;
>}
>
>function ChkChange(control) {
>//    alert("in Javascript");
>    lcUsername = document.getElementById("username").value;
>    lcacctid = document.getElementById("AccountID").value;
>    lcServer = document.getElementById("Server").value;
>    if (control.checked) {
>      location.href = '/go.hcn?hcnmgt~OLRManualTrans~' + lcUsername + '~' + lcServer +'~' + lcacctid + '~' + control.name;
>//    alert(location.href);
>    }
>}
>
> $("#CustomCode").hide();
> $("#CustCode").hide();
>                         
> $(function  RewardOnChange(control) {                       
>     if ($('#RwrdCode').val()) = 'custom'                     *-----------here
>        {$("#CustomCode").fadeIn();
>         $("#CustCode").fadeIn();
>        }
> })
>
>
>When I initially go into the page I get a script1002: Syntax error on the line marked with the '*-------here". How cosmically off is that syntax?
>
>Thanks
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform