How do I change the search phrase for a twitter feed (TWTR.Widget) without rewriting the entire function call?


#1

Below is the code to retrieve a twitter feed for my website for a specific phrase “temp phrase”, but I want to change the value fo that phrase without reloading the page. Any ideas?

    <script>
        new TWTR.Widget({
            version: 2,
            type: 'search',
            search: 'temp phrase',
            interval: 3000,
            title: '',
            subject: 'Related Tweets',
            width: 200,
            height: 200,
            theme: {
                shell: {
                    background: 'rgb(103, 170, 68)',
                    color: '#ffffff'
                },
                tweets: {
                    background: '#ffffff',
                    color: '#444444',
                    links: '#1985b5'
                }
            },
            features: {
                scrollbar: true,
                loop: true,
                live: true,
                behavior: 'default'
            }
        }).render().start();
    </script>

#2