waising


Hi,

In the User Input block, I choose getQueryParameter as the operation as I want to send a value to the mashup using the query string in URL.

However, it comes out an error when I do so.
I tried something like this:

http://www.popfly.ms/users/waising/My Mashup.small username=abc

Is it the correct way to send the value

Could anyone please advice

Thanks.

Regards,
WaiSing




Re: getQueryParameter of User Input block

AndyS


Thanks for the bug report, don't suppose you could share your mashup At first glance it does seem like an issue with the User Input block though.





Re: getQueryParameter of User Input block

waising

Hi AndyS,

Thanks for the reply

This is the sample mashup using getQueryParameter I am facing difficulty with:

http://www.popfly.ms/users/waising/GeoPhotos%20QueryString.small

By entering the location, it will show you 15 photos taken from this location (from Flickr using GeoTag).

I send the value location=singapore but it came out an error message.

http://www.popfly.ms/users/waising/GeoPhotos%20QueryString.small location=singapore

In this sample mashup, if the queryString is submitted correctly, beside showing the relevant photos, when you click to enlarge a photo, the value of queryString will be shown as the describtion of photo. (However, i can't manage to send the queryString input correctly)





Re: getQueryParameter of User Input block

AndyS

Thanks for the links there is a bug in the getQueryParameter code which would cause it to think there is no parameters even when there is. However that shouldn't cause the problem you are seeing, will get back to you after we've done some more investigation.




Re: getQueryParameter of User Input block

AndyS

Ok so there is definatley a bug in the user input getQueryStringParameter method, we've fixed that bug but won't be updating the block just yet. I've shared the fix in a new block named "UserInputV2" could you try your mashup using that block and see if it helps.




Re: getQueryParameter of User Input block

waising

Hi AndyS,

Thank you very much for fixing the bug.
However, unfortunately, the new block UserInputV2 still give me the same error.

This is my mashup:
http://www.popfly.ms/users/waising/GeoPhotos UserInputV2.small

When sending a parameter "location=Singapore", it returns to an error page:
http://www.popfly.ms/users/waising/GeoPhotos UserInputV2.small location=Singapore






Re: getQueryParameter of User Input block

AndyS

D'oh was afraid it might not fix it as you were seeing a serverside error, will investigate it somemore and get back to you.