Bug 109929 - [ca] JS content assist in html/jsp for JS action attribute value
Summary: [ca] JS content assist in html/jsp for JS action attribute value
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: wst.html CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2005-09-19 16:18 EDT by Phillip Avery CLA
Modified: 2017-02-15 17:50 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phillip Avery CLA 2005-09-19 16:18:50 EDT
Don't know if we have a feature request for this.
Javascript action attributes should contain JS proposals

eg.
<input type="button" onclick="|"/>

also href if the prefix "javascript:" is there.

<a href="javascript:|">

Maybe this can be incorperated easier w/ the compound content assist processor?

There could be an 'attribute value' CA participant (for HTML/JSP content type)
that checks if the context is one of these JS action regions (onclick,
href="javascript:", etc...).
Comment 1 Amy Wu CLA 2005-09-20 10:38:57 EDT
probably need to check if default scripting language in page is javascript 
first: http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.2
Comment 2 David Williams CLA 2005-09-24 16:49:38 EDT
Great suggestions, feel free to contribute :) but will assign to myself for 
now for bugzilla book keeping. 

Comment 3 Nitin Dahyabhai CLA 2007-09-13 04:50:20 EDT
Setting helpwanted keyword, in case anyone's looking for something to which to contribute.
Comment 4 Ian Tewksbury CLA 2010-04-05 10:17:29 EDT
there is now content assist in regions such as onclick and the other action attributes but there is still not any content assist for the "javascript:" syntax.   Using the new content assist framework this may not be as complicated an enhancement as it used to be.