Page 1 of 1

How to work with javascript emebedded within an HTML ?

Posted: Fri Mar 06, 2009 1:23 pm
by prathik
Can u suggest ,how i can work with javascript embedded in an html .

Posted: Fri Mar 06, 2009 5:57 pm
by eric_suen
Spket IDE does not have a HTML Editor, you can open html use other eclipse plugins, then try Alt + Shift + /

Re: How to work with javascript emebedded within an HTML ?

Posted: Sat Jun 22, 2013 11:28 pm
by Nashev
I'd try pressing Alt + Shift + /, but have not any reaction. What this must to do?

I need to edit script in <script> </script> tag inside my html file, in context of previously written other <script> tag which are executed (loaded) script from other file.
I need to use in my script items from DOM of my HTML document. With code complition.

Is it possible now?

Re: How to work with javascript emebedded within an HTML ?

Posted: Sun Jun 23, 2013 12:39 am
by Nashev
Nashev wrote: I need to edit script in <script> </script> tag inside my html file, in context of previously written other <script> tag which are executed (loaded) script from other file.
I see, I can use /** @include filename */ JSDoc comment instead (added there manually or by drag'n'drop files from project tree into edit area), using external .js files for each script and not editing scripts inside HTML files...
Nashev wrote: I need to use in my script items from DOM of my HTML document. With code complition.
it can be partially solved by describing variables with /* Element */ comment

And some other tasks can be solved by using custom JavaScript profiles with some wellknown JS libraries attached.

But what if I still want to edit scripts inside HTML?..

Re: How to work with javascript emebedded within an HTML ?

Posted: Mon Jun 24, 2013 7:56 am
by eric_suen
which editor were you using? if you were using "Spket Text Editor", then Alt+Shift+/ won't work, it use a native control, does not support code assist, try open html with other editor.