I am currently automating use of the wordpress editor using VBA in access 2003, but would like to extend the automation to include the selection of category, taxonomy items etc.
That is with Checkbox lists.
An example with the same structure is here: http://devblog.xing.com/frontend/the-checkbox-list/
My list is based on a hierarchy of geographic entities: On the local database I may have data associated with the locality: Algeria for instance.
I want to be able to use (ie As SHDocVw.InternetExplorer) ie.document.what?
I am a bit lost as to an elegant approach. I haven’t tried it yet but I guess I can get the innerhtml for each selectit class, check to see if it contains my keyword an if so extract the input id with a bit of string manipulation, and then use ie.document.getelementbyid(“whatever”).Click Check or Toggle
But is there a better approach?
(Ultimately I will have to look at how to connect to the remote database and drag the tag_id from the tables there – but I thought this would be quicker especially in that the automation functionality in a larger sense already exists)
Any pointers appreciated!
<ul id="localitieschecklist" class="categorychecklist form-no-clear"
data-wp-lists="list:localities">
<li id="localities-8" class="popular-category">
<label class="selectit">
<input id="in-localities-8" type="checkbox" name="tax_input[localities][]" value="8"> </input>
Africa
</label>
<ul class="children"><li id="localities-96">
<label class="selectit"><input id="in-localities-96" type="checkbox" name="tax_input[localities][]" value="96"></input>
Algeria
</label>
Thanks for your help @Tim Williams. I am not sure that worked on the elegance front but it has enabled me to move forward, I run into a bit of headache with the hierarchical nature of the list, and time as dictated a compromise of only supporting the first two levels of the hierarchy. It will do for now, but any further comments are certainly welcome!
Localities