jlabbe


I want to call a Popfly mashup and pass in the input parameters as a query string. For example, I want to execute a Popfly mashup that returns a stock quote. However, rather than gethering the ticker symbol from within the mashup, I want to pass it to the mashup. Do I need to use a particular block or call the mashup a certain way.

Thanks,

Joe




Re: Calling a mashup with query string parameters

jlabbe


I think I answered my own question. The User Input block has a getQueryParameter operation which does what I need to do. Is this the only way to do it






Re: Calling a mashup with query string parameters

AndyS

It is at the moment. Though you could use the code in any block or custom (advanced mode) javascript:
Code Snippet


if(!window.location || !window.location.search || window.location.search.length < 1 )
{
console.write("No query string parameters found.");
return "";
}
variable = variable.toLowerCase();
var query = window.location.search.substring(1);
var vars = query.split("&");