action-url param, how to harvest extended attributes?

I have been battling this for a couples hours now and have not been able to reliably pull extended values from an action-url parameter.

I have tried this:

a simple action-url parameter (with a valid link and some extended attributes) and a polling routine to check its value

I should be able to pull the information via this property, since the fwValue for a url param IS a fwLink object:

fwParameters[‘paramName’].fwValue.fwExtended

However, no amount of coaxing has produced reliable results. I have tried to pull the bits by polling the object with a for(var i=0;i<obj.fwLength… loop and a for(var i in obj) loop. Both result in vary strange behavior.

Some times through, I appear to be getting mainly extended names, and other loops through result in mostly values. I say ‘mostly’ because loops provide are nopt predictable at all. Yet, there is this encoded entry at the end of the list that always throws off the routines. I even came across a notation in the JSRef pdf of a method for the fwLink object of .fwNameAt(index), which is supposed to accept a number and return the name at that position. That does not work reliably or at all.

Even Re-running the loops in succession creates even more confusion, as the values seem to change each time the object is polled. Any insight on this would be greatly appreciated. The behavior is the same in FW4. So, either I am doing something wrong, or this has not ever been noticed before.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

My apologies, this should havce posted to the Actions-dev thread.

((I think this was my own goof this time, and not an artifact of browsing other threads))

Sorry


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Weaver,

(I’ve moved this over to the ActionsDev list)

I have managed to reliably return the values but can’t get the names
of the extended attributes. To get the values I used:

for(i =0; i<fwParameters.url.fwValue.fwExtended.fwLength; i++)
	alert(fwParameters.url.fwValue.fwExtended[i]);

But… using fwNameAt (which should return the name of the attribute
at the index specified) I just get the values again.

fwParameters.url.fwValue.fwExtended.fwNameAt(i)

I’ve just logged a bug on it. No workaround as yet I’m afraid.

Cheers,

Joe

On 3 Feb 2009, at 20:48, Weaver wrote:

I have been battling this for a couples hours now and have not been
able to reliably pull extended values from an action-url parameter.

I have tried this:

a simple action-url parameter (with a valid link and some extended
attributes) and a polling routine to check its value

I should be able to pull the information via this property, since
the fwValue for a url param IS a fwLink object:

fwParameters[‘paramName’].fwValue.fwExtended

However, no amount of coaxing has produced reliable results. I have
tried to pull the bits by polling the object with a for(var
i=0;i<obj.fwLength… loop and a for(var i in obj) loop. Both
result in vary strange behavior.

Some times through, I appear to be getting mainly extended names,
and other loops through result in mostly values. I say ‘mostly’
because loops provide are nopt predictable at all. Yet, there is
this encoded entry at the end of the list that always throws off the
routines. I even came across a notation in the JSRef pdf of a
method for the fwLink object of .fwNameAt(index), which is supposed
to accept a number and return the name at that position. That does
not work reliably or at all.

Even Re-running the loops in succession creates even more confusion,
as the values seem to change each time the object is polled. Any
insight on this would be greatly appreciated. The behavior is the
same in FW4. So, either I am doing something wrong, or this has not
ever been noticed before.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 4 Feb 2009, 10:06 am, Joe Billings wrote:

Hi Weaver,

(I’ve moved this over to the ActionsDev list)

Actually, that didn’t work so well. I had to tweak the settings in the database to get it to move. Best to start a new thread and post a link than tweak the reply-to in this manner.

Walter


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options