racksfull
05-07-2009, 07:42 PM
I need help trying to display twitter messages on my page.
I want to be able to change the twitter username with a dropdown list.
Here is what I have so far.
I Can only get one twitter username to work at this time.
I would like for the person vewing the page to change the twitter user name.
<form name="pro">
<select name="players">
<option value="phil_hellmuth"/>Phil Hellmuth
<option value="RealAnnieDuke"/>Anne Duke
<option value="TexDolly"/>Doyle Brunson
<option value="TheMouthMatusow"/>Mike Matusow
</select>
</form>
<ul id="twitter_update_list"></ul>
<script src="http://twitter.com/javascripts/blogger.js" type="text/javascript"></script>
<script src="http://twitter.com/statuses/user_timeline/phil_hellmuth.json?callback=twitterCallback2&count=3" type="text/javascript"></script>
I attempted to replace.
<script src="http://twitter.com/statuses/user_timeline/phil_hellmuth.json?callback=twitterCallback2&count=3"
with
<script src="http://twitter.com/statuses/user_timeline/+'pro.players.value'+.json?callback=twitterCallback2&count=3"
but still did not work. Please Help.
Here is the page http://www.racksfull.blogspot.com
The twitter messages are at the bottom under pro tweets.
Hopefully someone can show me how to pass the form value to the link inside the script tag.
Thanks,
I want to be able to change the twitter username with a dropdown list.
Here is what I have so far.
I Can only get one twitter username to work at this time.
I would like for the person vewing the page to change the twitter user name.
<form name="pro">
<select name="players">
<option value="phil_hellmuth"/>Phil Hellmuth
<option value="RealAnnieDuke"/>Anne Duke
<option value="TexDolly"/>Doyle Brunson
<option value="TheMouthMatusow"/>Mike Matusow
</select>
</form>
<ul id="twitter_update_list"></ul>
<script src="http://twitter.com/javascripts/blogger.js" type="text/javascript"></script>
<script src="http://twitter.com/statuses/user_timeline/phil_hellmuth.json?callback=twitterCallback2&count=3" type="text/javascript"></script>
I attempted to replace.
<script src="http://twitter.com/statuses/user_timeline/phil_hellmuth.json?callback=twitterCallback2&count=3"
with
<script src="http://twitter.com/statuses/user_timeline/+'pro.players.value'+.json?callback=twitterCallback2&count=3"
but still did not work. Please Help.
Here is the page http://www.racksfull.blogspot.com
The twitter messages are at the bottom under pro tweets.
Hopefully someone can show me how to pass the form value to the link inside the script tag.
Thanks,