Click here to Skip to main content
15,887,485 members
Home / Discussions / Web Development
   

Web Development

 
QuestionUsing external app on server Pin
TCHamilton13-Feb-09 6:30
TCHamilton13-Feb-09 6:30 
AnswerRe: Using external app on server Pin
jc.net15-Feb-09 8:55
jc.net15-Feb-09 8:55 
QuestionNeed help finding <script>debugger</script> and other commands Pin
2M2L13-Feb-09 6:12
2M2L13-Feb-09 6:12 
AnswerRe: Need help finding debugger and other commands Pin
Reelix25-Feb-09 19:49
Reelix25-Feb-09 19:49 
QuestionPlease Wait ... Pin
Fullmm13-Feb-09 1:18
Fullmm13-Feb-09 1:18 
QuestionRkLib.ExportData Exporting in Excel with heading in gujarati Pin
Dipal Raval13-Feb-09 0:59
Dipal Raval13-Feb-09 0:59 
Questionlet right table column fill-up window Pin
William Engberts13-Feb-09 0:36
William Engberts13-Feb-09 0:36 
Questionvery "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Alaric_12-Feb-09 6:16
professionalAlaric_12-Feb-09 6:16 
Hi,
I've got a little bit of a problem here...long story short, there is a status field on one of our ASP.NET pages(C#) that needs to display a warning to the user if it is set to 'Inactive' because that status has further implications. I inherited this code, and I've never seen javascript formed this way. Here's what it looks like:

<script type="text/javascript">
   $(document).ready(function() {
       var statusVal = $(this).val();
       if (statusVal == "Inactive") {
           var answer = confirm("Changing the status to Inactive will change the status of all associated users to inactive as well");
           if(!answer) {
               //Here's where I'm trying to implement a change.  If the user changes the status to
               //Inactive, but hits the cancel button in the confirm box, I need the status to return
               //to its previous state.  However, right now, it still gets changed to "Inactive"
               //regardless of whether the user confirms or cancels the action
               var status = document.getElementById('AgencyStatus');
               status.value = "Active";
               return false;
            }
        }
      });
   });
</script>


...The call to "status.value = "Active" is failing. I'm working in Visual Studio 2008, and Intellisense provides all available properties of the element, and "value" is not an available property. What gives? How else should I set the value?

/*This code was generated by a Tool...his name is Dave*/

GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Shog912-Feb-09 6:53
sitebuilderShog912-Feb-09 6:53 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Alaric_12-Feb-09 7:30
professionalAlaric_12-Feb-09 7:30 
AnswerRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Shog912-Feb-09 7:39
sitebuilderShog912-Feb-09 7:39 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Alaric_12-Feb-09 8:43
professionalAlaric_12-Feb-09 8:43 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Shog912-Feb-09 8:47
sitebuilderShog912-Feb-09 8:47 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
led mike12-Feb-09 7:38
led mike12-Feb-09 7:38 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Shog912-Feb-09 7:39
sitebuilderShog912-Feb-09 7:39 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript [modified] Pin
led mike12-Feb-09 7:42
led mike12-Feb-09 7:42 
GeneralRe: very "thin" DOM inside Visual Studio 2008 - Can't figure out how to set a control's value in javascript Pin
Shog912-Feb-09 8:02
sitebuilderShog912-Feb-09 8:02 
QuestionTable overflows asp panel Pin
anveshvm12-Feb-09 4:17
anveshvm12-Feb-09 4:17 
Questionadmission form: Pin
milapjp12-Feb-09 1:58
milapjp12-Feb-09 1:58 
AnswerRe: admission form: Pin
vaghelabhavesh12-Feb-09 8:53
vaghelabhavesh12-Feb-09 8:53 
QuestionHow to control size of the PDF shipment labels when they are printed. Pin
Rajiya12-Feb-09 0:42
Rajiya12-Feb-09 0:42 
QuestionVS 2008 sub project, single web.config Pin
omer erakman11-Feb-09 23:31
omer erakman11-Feb-09 23:31 
Questionhow to upload files in sharepoint using wss sdk 3.0 + VS 2008+ C# Pin
Yogesh Jamkhindikar11-Feb-09 10:08
Yogesh Jamkhindikar11-Feb-09 10:08 
AnswerRe: how to upload files in sharepoint using wss sdk 3.0 + VS 2008+ C# Pin
Calin Tatar12-Feb-09 4:21
Calin Tatar12-Feb-09 4:21 
QuestionJSP/JAVA running client side? Pin
gokninski11-Feb-09 10:05
gokninski11-Feb-09 10:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.