I was trying to show a quick and easy example of how to put a cover
element over a form once it has been submitted. The first tool that
came to mind was my Observer Action. It worked fine on a Submit button
as long as I had drawn that Submit button on the page as a layered
object. But when I tried to test it on an inline button, it failed
miserably, because the object it was attached to didn’t have an ID.
So I tried to sort this using the technique I use in other Actions to
identify the unidentifiable:
var thisItem = fwDocument.fwTags.fwFind(fwItem);
if (thisItem){
if(thisItem.id == undefined) {
thisItem['id'] = fwQuote(thisItem.toString());
...
The button just never showed up at all in this case. I used an alert
to determine that the if(thisItem) was never returning true, so the
element was simply not being plucked out of the tags.
When I made the finder stricter:
fwDocument.fwTags.fwFind('input',fwItem)
I was able to find it, but I was not able to find any attribute that I
could use to identify the element. It lists within the page hierarchy
as item2, but none of the usual attributes would return that value.
Is there a particular way to identify an inline form element? And is
there a way to find anything in the tag stream without relying on
the tag name?
Thanks in advance,
Walter
actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options