facebook

JS Editor is reportin warnings on alert function

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #258877 Reply

    The java script editor tells me that the following java script has warnings

    function expandList(li) {
    alert(‘hello’);
    }

    the warning is

    “Declaration of variable ‘alert’ was not found in function expand list or enclosing scope.”

    #258919 Reply

    Riyad Kalla
    Member

    This is a bug, the JavaScript validator needs a few tweaks and refinements to it’s logic and they are planned. In the mean time, you can either ignore the warning or disable the JavaScript validator for the project or your workspace.

    #275653 Reply

    Brett Zamora
    Member

    This message has not been recovered.

    #275691 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #278104 Reply

    Doug
    Member

    This message has not been recovered.

    #278276 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #281103 Reply

    Mickey Barton
    Participant

    I am trying to get rid of javascript warnings in a file. The warnings are because a function referred to in one file is defined in another js file.

    Any Ideas on how to do this.

    thanks

    #281199 Reply

    Riyad Kalla
    Member

    You can right-click on the file, and go down to MyEclipse > “Exclude from Validation” to exclude that one file from validation. If there are tons of errors on all your JS files you want to remove, you can edit your project properties and go to MyEclipse > Validation and turn off the JavaScript validator entirely if you prefer.

    #281203 Reply

    Mickey Barton
    Participant

    When I said I wanted to get rid of the javascript warning I did not mean I wanted to hid it. Is there anyway to let myelipse know to look in the other javascript file for the function definition?

    Thanks for your prompt reply.

    #281205 Reply

    Riyad Kalla
    Member

    Oh, sorry for the misunderstanding. No there currently isn’t support for what you are looking for, which is why I suggested the exclusion suggestion.

    #281206 Reply

    Mickey Barton
    Participant

    My consern is that there could be javascript other warnings or errors that would be hidden if I turn off validation for the specific file or worse yet for all javascript files.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: JS Editor is reportin warnings on alert function

You must be logged in to post in the forum log in