Jump to content

Eclipse and javascript

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
Hello,

I didn't knew where to post this question so I did in general.
I use Eclipse pdt for my work.
And sometime I have some javascript code that isn't inside a script tag (php will add it later).

So, eclipse think it's html code, and give me error, and he don't help me with my javascript.
Do anybody know a way to force some block of code to be interpreted as javascript without adding the <script> tag?

#2
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
None that I know of; why do you need to not use the SCRIPT tag?

#3
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
I send the script via a function,
and at the end of my script, I minify everything inside one script
without script tag, I can have only one big minified script

---------- Post added at 06:49 AM ---------- Previous post was at 06:48 AM ----------

or hey, while we are on the subject of eclipse, do you have any idea how to give colors to your directory or tabs based on your directory?

#4
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
As far as I'm understanding what you're doing, you're trying to insert more script after the page has been loaded? More script from another script/php file?

I'm wondering if JavaScript 'Function ("some script...");' syntax would work.

* * *

Is eclipse another language within JavaScript?

#5
wolfman

wolfman

    Newbie

  • Members
  • PipPip
  • 18 posts
Eclipse is the program that compiles and runs the programs. Mainly used for Java but supports other languages. I prefer NetBeans.
-=[ w | o | l | f | m | a | n ]=-




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users