stefanwalther / qvWebPageViewer2

Improved WebPageViewer Object Extension for QlikView (QV11)
Other
1 stars 3 forks source link

Web page loads fine in browsers, but not in WebPage extension #1

Closed mountaindude closed 9 years ago

mountaindude commented 10 years ago

I am looking into ways of embedding a Twitter timeline into a QV app. One option is to take the standard Twitter timeline code created by Twitter when creating a Twitter widget (https://dev.twitter.com/docs/embedded-timelines), placing that code into a very basic web page that is served off IIS on the QV access point.

Having done this, I can access the newly created page (hosted on the QV AP server) from both IE and Chrome (running on the QV publisher server). But when entering the same URL into the WebPageViewer2 extension, it does not display correctly.

Not sure if the problem is with the extension or how Iframes work...

The web page is essentially just

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Obama Tweets

Any ideas?

mountaindude commented 10 years ago

Duuhh... was not possible to paste HTML into the comments field here... Adding some markdown

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Obama Tweets</title>
</head>
<body>
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/search?q=%23obama" data-widget-id="<your-widget-id-goes-here>">Tweets about "#obama"</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>
</html>

Any ideas?

mountaindude commented 10 years ago

Clarification:

The small web page loads - the text within the anchor tag shows correctly, but no Twitter list is created. iFrame limitation or bug?

stefanwalther commented 10 years ago

Hi, the better approach would probably the "Minimalistic Html Textbox": http://www.qlikblog.at/1579/qliktip-39-displaying-html-content-minimalistic-htmltextbox-object-extension/

I'll give it a try and let you know ...

Regards Stefan

mountaindude commented 10 years ago

https://dev.twitter.com/docs/embedded-timelines is a good starting point, it then links to https://twitter.com/settings/widgets which when you are logged in allows you to create your won widets, which results in a few lines of code that is to be embedded in a web page of choice.

I will try the other extension, thanks for the suggestion!

/Göran

On 13 February 2014 23:55, Stefan Walther notifications@github.com wrote:

Hi, the better approach would probably the "Minimalistic Html Textbox":

http://www.qlikblog.at/1579/qliktip-39-displaying-html-content-minimalistic-htmltextbox-object-extension/ Can you point me to the documentation of this feature of Twitter ... I think there's just a small piece missing ...

Regards Stefan

Reply to this email directly or view it on GitHubhttps://github.com/stefanwalther/WebPageViewer2/issues/1#issuecomment-35036774 .

mountaindude commented 10 years ago

Hmm, no same problem with the second extension you suggested. Weird. Will have to push this to next week..

On 14 February 2014 14:05, Göran Sander goran.sander@gmail.com wrote:

https://dev.twitter.com/docs/embedded-timelines is a good starting point, it then links to https://twitter.com/settings/widgets which when you are logged in allows you to create your won widets, which results in a few lines of code that is to be embedded in a web page of choice.

I will try the other extension, thanks for the suggestion!

/Göran

On 13 February 2014 23:55, Stefan Walther notifications@github.comwrote:

Hi, the better approach would probably the "Minimalistic Html Textbox":

http://www.qlikblog.at/1579/qliktip-39-displaying-html-content-minimalistic-htmltextbox-object-extension/ Can you point me to the documentation of this feature of Twitter ... I think there's just a small piece missing ...

Regards Stefan

Reply to this email directly or view it on GitHubhttps://github.com/stefanwalther/WebPageViewer2/issues/1#issuecomment-35036774 .

stefanwalther commented 9 years ago

Cannot reproduce it, close it.