giocala88 (Normal User)
Expert
Messaggi: 248
Iscritto: 23/04/2008
|
Salve ragazzi, ho un piccolo problema riguardante l'utilizzo delle API di twitter. In pratica in questo modo č possibile condividere uno stato su twitter direttamente dal proprio sito web (posto il codice)
Codice sorgente - presumibilmente Plain Text |
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="it" data-text="ciao tweet #beviunacocacola">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
Il mio problema č il seguente. Avendo un form del tipo (gestito con ajax)
Codice sorgente - presumibilmente Plain Text |
<form>
<input name="status" type="text" />
<input type="checkbox" name="tweet" />
<input type="submit" />
</fom>
|
Vorrei che al submit del form si aprisse in automatico il link
Codice sorgente - presumibilmente Plain Text |
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="it" data-text="ciao tweet #beviunacocacola">Tweet</a>
|
Come posso fare? Ho provato con
Codice sorgente - presumibilmente Plain Text |
onClick="javascript:parent.TARGET.location='https://twitter.com/share'"
|
ma nada.
PS. L'iframe twitter non li accetta
Grazie Ultima modifica effettuata da giocala88 il 22/07/2013 alle 11:23 |