Jump to content


Check out our Community Blogs

cdg10620

Member Since 17 Jun 2009
Offline Last Active Nov 20 2014 04:59 AM
-----

#639111 What is the best program to write/run Javascript in?

Posted by cdg10620 on 18 September 2012 - 06:23 AM

I write all of my Javascript using Visual Studio (Mainly because i'm a .NET developer) or Notepad++ and I do almost all of my testing in Firefox or Chrome. I have started using Chrome primarily because it loads up faster than Firefox and now i'm used to it. If you do prefer Firefox you need to install the "Firebug" add in as well as stuff like Tamper Data, and Web Developer. If you're doing web stuff Colorzilla is a handy tool as well. Be aware that with Chrome sometimes you'll have browser cache issues (or at least that has been my experience) and I need to clear my cache every once in a while when making changes. This also depends on if you're using a Javascript library like ExtJS or something else.

Hope this helps.

Another note I just thought of... Each browser tends to render Javascript differently. Mainly IE. If you are building something and want cross browser compatibility you will need to test in multiple browsers and check multiple versions of those browsers.
  • 1


#624856 Problem with "use of unassigned local variable ... " easy application

Posted by cdg10620 on 26 March 2012 - 05:24 PM

You're never assigning a value to letter. Letter needs to be initialized to a value before it can be used. You should do something like
char letter = 'A';

Once you assign a value to letter, you will be fine.

let us know if you have any other questions.

Cheers.
  • 1


#590147 Making code into Model View Controller format

Posted by cdg10620 on 02 February 2011 - 08:48 PM

First of all you will need to set up an MVC project. Next, If you are doing strict MVC you will need to set up your controllers, models, views and then make sure your routes are set up for the controller correctly in the global.asax file. For great information on MVC you should check out Scott Guthrie's blog here: MVC - ScottGu's Blog. Also, you can do some searching for example MVC projects.
  • 1


#573627 Simple JavaScript Validator

Posted by cdg10620 on 16 September 2010 - 10:06 AM

Load this up in Firefox and debug it using an AddOn called Firebug. You're getting an error on line 20 in your .js file that says an object is expected. Also, you can use JSLint to validate your javascript code and quickly identify any errors. One thing I saw is that you're using "=" to evaluate equality instead of "===" which is a no no. If you use the equals operator like this "=" your attempting to assign a value and not evaluate if two values are equal.

If you need any more help let me know.

BTW. this is my 300th post. FTW!
  • -1


#548723 URGENT assistance in C Programming

Posted by cdg10620 on 25 March 2010 - 10:44 AM

I understand what you're saying. Maybe we'll have to add that in. :)


While( !User.hasAnswer )
{
   User.askQuestion();
     
   if( User.question.type ==  Question::Homework )
   {
      if( User.postCode && User.putForthEffort )
      {
         CodeCallMembers.Help();
         User.hasAnswer = true;
      }
      else
      {
         CodeCallMembers.Laugh();
      }
   }
   else if( User.question.type == Question::ExpandKnowledge )
      CodeCallMembers.Help();
   else
      CodeCallModerator.delete(User.question);    
}


  • 1


#548660 some difficult one's

Posted by cdg10620 on 25 March 2010 - 05:05 AM

Forum != PrivateTutor

While( !User.hasAnswer )
{
     User.askQuestion();

     if( User.postCode && User.putForthEffort )
     {
          CodeCallMembers.Help();
          User.hasAnswer = true;
     }
     else
     {
          CodeCallMembers.Laugh();
     }
}

  • -2


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download