How to work with javascript emebedded within an HTML ?

Get help with Spket IDE.
Post Reply
prathik
Posts: 3
Joined: Fri Mar 06, 2009 1:15 pm
Contact:

How to work with javascript emebedded within an HTML ?

Post by prathik » Fri Mar 06, 2009 1:23 pm

Can u suggest ,how i can work with javascript embedded in an html .

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Post by eric_suen » Fri Mar 06, 2009 5:57 pm

Spket IDE does not have a HTML Editor, you can open html use other eclipse plugins, then try Alt + Shift + /

Nashev
Posts: 2
Joined: Sat Jun 22, 2013 11:13 pm

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

Post by Nashev » Sat Jun 22, 2013 11:28 pm

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?

Nashev
Posts: 2
Joined: Sat Jun 22, 2013 11:13 pm

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

Post by Nashev » Sun Jun 23, 2013 12:39 am

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?..

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

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

Post by eric_suen » Mon Jun 24, 2013 7:56 am

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.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests