Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Content assist not working for document.getElementById(Content assist not working for document.getElementById)
Content assist not working for document.getElementById [message #903529] Fri, 24 August 2012 03:22 Go to next message
Cool Dude is currently offline Cool Dude
Messages: 1
Registered: August 2012
Junior Member
Hi,

I have Eclipse Juno release with WTP. I have created a new JavaScript file. When I am typing following line of code:

document.getElementById("myImage").

I am expecting "style" would appear in content assist. But it doesn't appear. Is this a bug or currently-not-supported-feature?

Similarly, once I manually type in "style." then "height" also doesn't appear.

My final line looks like this:
document.getElementById("myImage").style.height = "100px";

P.S.: I am new to JavaScript.

Thanks.
Re: Content assist not working for document.getElementById [message #910626 is a reply to message #903529] Mon, 10 September 2012 01:55 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2133
Registered: July 2009
Senior Member
It's a not-supported feature, as we can't tell which (if any) web page you're being called from.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Content assist not working for document.getElementById [message #1075629 is a reply to message #910626] Mon, 29 July 2013 15:30 Go to previous message
Miguelángel Fernández is currently offline Miguelángel Fernández
Messages: 1
Registered: July 2013
Junior Member
I believe the problem here lack of support for DOM elements in javascript editor's content assist.
I'm having a similar issue. Content Assist is limited to control sentences.
I've tried installing Aptana plugin, but for some reason I can't get content assist to work. Does anyone know if there is another plugin we can try?
Previous Topic:Problem with Tomcat in Eclipse
Next Topic:Eclipse JSF 2 download Mojarra problem
Goto Forum:
  


Current Time: Thu Apr 17 23:36:35 EDT 2014

Powered by FUDForum. Page generated in 0.01506 seconds