Is there a way to get external data in javascript? -


i have minimal knowlege of javascript please kind. have created basic javascript show random quote politician, said it, when, , provides link source of quote. looks that:

/the quote var n_text = new array (); /the link var n_lnkk = new array (); /the party member said , when var n_part = new array ();  n_text [1]="blah"; n_text [2]="blah blah"; n_text [3]="blah blah blah"; etc  n_lnkk [1]="http://..."; n_lnkk [2]="http://..."; n_lnkk [3]="http://..."; etc  n_part [1]="whosaidit1"; n_part [2]="whosaidit2"; n_part [3]="whosaidit3"; etc 

then use math.random , document.write show random quote , show twitter button people can tweet it, , refresh button show random quote this:

blah blah http://... whosaidit , when

i know document.write not best way have tried other methods , didn't work twitter button have wait untill find solution not question have right now.

the problem script has become huge, (almost 1000 quotes) blogger doesn't allow me add more text it. there way put data in external file somewhere , have javascript read , display results , still keep relatively simple since have basic knowledge of jscript or html? please keep in mind using blogger have limited options, think external file data work

i think have found simple , practical solution. iframe did it. hosted script on free server , used iframe on blog. first answer got, seems have been deleted since.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -