I have an RSS-feed that loads articles from some sites. I want the text in the articles to be shown in a TextView. It's not ads in the articles, so I am allowed to just get the text. Anyone knows how I can do it?
Sorry for my bad english.
You don't need to use a UIWebView to read from a URL.
Why not just open a connection to the URL and download the text? You can parse/filter/etc the raw data before putting it in your TextView.
See these other SO questions for examples of how to do this:
Simple method to read XML from a URL - iPhone
How to read a file from a website using objective-c & xcode
Related
Using K12SP and its MVC model, I would like adding embedded YouTube videos in my views. I saw that in the CKEditor, there is a widget for doing so and it adds corresponding customized HTMl tags such as :
{^widget|(name)YouTubeVideo|(VideoURL)https%3a%2f%2fwww.youtube.com%2fwatch%3fv%3diwqgcxc0r5gfTzgw%26list%3dPLKeH-azh54PWS4kozV421JGVhCd5yw9Ia|(Width)425|(Height)355|(AutoPlay)False|(widget_displayname)YouTube+video^}
However, in my view, I now need to process theis syntax to actually embed the video as for the time being, it is just showing the raw code. How can I do this? I searched for some tutorial but didn't find any.
Is there a place where front-end code for these default widgets of the rich editor is made available?
Thank you for your help
Sylvain
Why don't you use regular embed markup? E.g.
<iframe width="560" height="315" src="https://www.youtube.com/embed/GkagBXZQvOI" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
HTML is the same for all the videos, you'll need to inject video URL into it.
The inline widgets are not supported in the MVC approach. You still have the toolbar buttons in the CKEditor on the Content tab - but this is because you can also have a portal engine site in the same instance. So, this means, if you want to use the inline widgets, you will need to parse the text value when getting it from Kentico, extract the Youtube URL and basically replace the widget code with the HTML markup mentioned by Roman. It may be just easier to hide the toolbar buttons for widgets for your editors and let them just to insert the URL directly.
How do you get rid of or replace the Microsoft Azure Media Services logo overlay (water mark) that is put onto dynamic packaged video? The following link shows the topic area:
https://azure.microsoft.com/en-us/documentation/articles/media-services-dynamic-packaging-overview/
My html contains embedded code taken from http://amsplayer.azurewebsites.net/azuremediaplayer.html
It seems that you are attempting to use the iframe embed code on the "get embed code" section of the player. Please note that this is currently under development, as it is listed on the site: "this embed code is for demo purposes only. Do not use in production."
For your player needs in production, especially if you want to use the large amounts of API's available, you should create your own player page following the instructions in the documentation and by using the samples provided.
Specifically for the question regarding the logo, there is an API available to remove to logo and can be found in the logo option section of the documentation. This is the correct way to remove to logo using the APIs provided.
It might be helpful to post some of the HTML that you are using when you say "My html contains embedded code taken from..."
It looks like the code on that page has the following div:
<div class="amp-logo" style="opacity: 0.5;"></div>
This appears to be what is placing the logo on the page you reference. Not know what HTML is actually in your page, I don't know if this is the HTML they are generating for you as embedded or whether you cut and paste the HTML from the given page.
You may be able to remove it from your HTML. If not, try creating a style that overrides the amp-logo class.
How do I get the media title to display in the cast extension menu? The extension is showing my application name instead of the cast.receiver.MediaManager.getMediaInformation().metadata.title value.
You need to use CastReceiverManager.setApplicationState() in your receiver and pass the title or whatever you see appropriate. Please read through the comments in this G+ post to get a bit more insight into that.
I have researched this question in numerous places, but I cannot find a definitive answer.
The question in detail is:
I want to import other pages from the SAME domain into EITHER an IFRAME or OBJECT TAG.
It's an html5 website, but I want the OBJECT or IFRAME tag to be searchable and not mess with SEO.
Which one do I use and why?
Which one will work better for IE 6?
basically, (and it pains me to admit) I want to find a way to have one navigation bar that import into one of these tags so i do not need to change them on every page.
There is this stackoverflow question here: Use of Iframe or Object tag to embed web pages in another
BUT it's much older and seems to dismiss html5
I'm trying to avoid:
Server side includes and
JavaScript dependency
Help is GREATLY appreciated!
I'm testing the WebView as a RichTextEditor.
I've noticed there are 3 methods to load data into it, so I googled to find out which are the differences between them, but find no clear answer.
Could someone please give me some insight about that?
Am I right supposing it's best to use loadHtmlString for local content and loadRequest for web content?
Thanks for your support!
There are three recipes in the MonoTouch docs (see bottom of page) that pretty clearly illustrate the three methods.
LoadData() - load non-HTML data, can specify MIME type
LoadRequest() - load content using async HTTP request
LoadHTMLData() - load an HTML string