intellisense

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
Freon22
Posts: 5
Joined: Thu Jul 25, 2013 5:42 pm

intellisense

Post by Freon22 »

I am not sure if I did not set something or maybe it just doesn't do it. But I was writing a little javascript with the free trail, to see if HTMLPad is what I am looking for. Anyway I missed spelled lenght in letters.length

I would think that once I created an array named letters that as soon as I typed letters. intellisense would pop up and give me options and .length would be one of the options. What I am looking for is a good javascript editor since there is not a lot of debugging support for javascript and a simple miss spell can kill and app.

Code: Select all

var ctx = theCanvas.getContext('2d'),
           guesses = 0,
           message = 'Guess the letter from a (lower) to z (higher)',
           letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'],
           today = new Date(),
           letterToGuess = '',
           higherOrLower = '',
           lettersGuessed = [],
           gameOver = false;

function initGame() {
        var letterIndex = Math.floor(Math.random() * letters.length);
        letterToGuess = letters[letterIndex];
        window.addEventListener('keydown',eventKeyPressed,true);
        drawScreen();
      }
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: intellisense

Post by Aivars »

It actually does pop up - check if you have disabled auto-complete in settings (Options -> Preferences -> Text Editor -> Auto Complete).

There's always a chance that autocomplete will miss something in JavaScript as it's a dynamic language with all the consequences but simple cases like this one should cause no problems for WeBuilder.

Image
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: intellisense

Post by Aivars »

Btw, for JavaScript debugging I strongly recommend FireBug. There's a nice console displaying errors, you can check your DOM elements, you can debug and profile your JavaScript code. Chrome has similar features built in with their Developer Tools.
Blumentals Software Programmer
Freon22
Posts: 5
Joined: Thu Jul 25, 2013 5:42 pm

Re: intellisense

Post by Freon22 »

Thanks for the reply.

Yes I looked and auto-complete is enabled. I noticed you said Web Builder 2014? I am running HTMLPad 2014? Is there any different between these two programs? Maybe I should delete HTMLPad and try Web Builder.

btw When I am typing

var letterIndex = Math.floor(Math.random() * letters.length); // auto-complete gives one option and that is indexOf()

Edit: I have been playing with this HTMLPad and it seem that auto-complete works great with all the options if I am not typing within a function. If I am typing within a function it only gives me one or sometime two options for the auto-complete.
Freon22
Posts: 5
Joined: Thu Jul 25, 2013 5:42 pm

Re: intellisense

Post by Freon22 »

Ok so they say a picture is worth a 1000 words. The first picture is auto-complete giving me my options while typing within a function. The next picture is auto-complete giving me my options while typing outside of a function. I should also say that all these functions are wrapped within a main function that checks to see if the page has loaded.

Edit: From the picture you can see that my functions are wrapped within the canvasApp() function. What this function does is test to see if the browser supports Canvas or not. If it does then everything loads if not then it exits and the user does not have to wait until everything loads. I am thinking that HTMLPad auto-complete can only see through one layer of a function. What I can do is while I am writing and testing my code I will leave out the browser test. This way HTMLPad auto-complete can help me. :-) After I am done and before I upload I can always just add the browser test.

Image

Image
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: intellisense

Post by Aivars »

It's possible that there are some problems with nested functions. I'll add it to the issues.
Blumentals Software Programmer
Freon22
Posts: 5
Joined: Thu Jul 25, 2013 5:42 pm

Re: intellisense

Post by Freon22 »

Thanks and now I need to decide which one I want to buy. HTMLPad or WeBuilder

Your one of the Developers which one do you like the best? It would save me the time from having to check out both of them.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: intellisense

Post by Aivars »

I use WeBuilder, it's the most complete one. If you ever decide to play with PHP then HTMLPad won't be enough. You can see the differences here: http://www.webuilderapp.com/editions.php
Blumentals Software Programmer
Freon22
Posts: 5
Joined: Thu Jul 25, 2013 5:42 pm

Re: intellisense

Post by Freon22 »

Thanks, I can't see myself doing much with PHP but I do love C#. I see that WeBuilder has support for ASP.Net so that is the way I will go. Thanks a lot for the help which is the other reason I will be buying from blumentals.
Post Reply