Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Twitter timeline not loading in visual studio web browser

$
0
0
Hi,
I'm trying to load a webpage into a web browser widget in visual studio 2015, however the page doesn't load correctly.
I suspect it could be a problem loading the javascript that sets up the timeline.

From what I understand the web browser uses internet explorer, and since the .html file I'm trying to load is from a local file it would by default ask for a prompt. So I set up a web server in IIS linking to the page so that it loads the javascript without blocking it.

When I load it in IE11, using the url 127.0.0.1 it loads as it should:
Name:  Capture.jpg
Views: 32
Size:  30.8 KB

However when I try and load the same page in a visual basic application it doesn't load the widget at all:
Name:  Capture.jpg
Views: 19
Size:  7.0 KB

I use Me.TwitterFeed.Navigate("127.0.0.1") to load the page into the vb web browser.

This is the basic source for the webpage, copied straight from twitter:
<body>
<a class="twitter-timeline" href="https://twitter.com/RGS_SixthForm" data-widget-id="666247915099308032">Tweets by @RGS_SixthForm</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+" ://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</body>

Any help would be appreciated!
Attached Images
  

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>