javascript - Getting User Input for Yahoo Pipes Script -


I'm a little bit of a Noah on some of these, so I was thinking that if someone hopes that What can I do is the simple question?

I have developed a Yahoo pipe, which takes the name of the input (label) as input. After this, the Yahoo pipe should be run to produce the output.

The snippet of code below is given when I run Yahoo pipe from the Yahoo Pipes page.

Now my question is, I want to run this pipe from my site and instead of leaving the site and going to the Yahoo Pipes page, I want to get the desired label input.

  & lt; Script src = "http://l.yimg.com/a/i/us/pps/listbadge_1.4.js" & gt; {"Pipe_id": "6c3a35f3d8e3cdb8ef270a3565d64ca3", "_btype": "list", "pipe_params": {"tag": "cooking beef chicken"}, "width": "600", "height": "500"} & Lt; / Script & gt;   

I want to get a simple form that fills the user and wants to generate the code above their input and executing the code.

I hope I have explained this because it is a bit confusing.

In short, how can I get input from a user on a web page, about which labels they want to run the pipe, and the right code and execution to generate it.

If you use server side scripts, then this is a three-part move < P> information is sent to a regular back page and it is removed from the URL such as

  enter & lt; Php $ userInput = $ _GET ["userInput"]); ? & Gt; Here   

User input can now be written in the JavaScript SRRR URL, which creates a cross domain call pipe.

  enter & lt; Script Src = "http://pipes.yahoo.com/pipes/pipe.run?_id=050fc8ccfefd18420680a86ebf4bf80e&_render=json&_callback=cbfunc&town=<?php Icho $ User Input ?? & gt;" & Gt; & Lt; / Script & gt;   

When pipe data gives a 'callback' tag around it, in this case cbfunc and it is The page is used to trigger a JavaScript routine in the head which removes the JSON string data for you that you want to do with it. cbfunc (data) {var data = (data.value .it [0]. Content)} here

you search the map While clicking on, you can see an example of action on it. This link is also useful for testing JSON output

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -