erich.wanker Posted August 23, 2016 Share Posted August 23, 2016 Hy .. i tested a html page with RSS including .. and it works !! now i want to include the same code it in my uniGui-app: UniHTMLFrame1.HTML.Clear; unihtmlframe1.HTML.Append(' <script src="files/rss/jquery-1.10.1.js"></script> '); unihtmlframe1.HTML.Append(' <script src="files/rss/jquery.rss.js"></script> '); unihtmlframe1.HTML.Append('<script type='+#39+'text/javascript'+#39+'>//<![CDATA['); unihtmlframe1.HTML.Append('$(window).load(function(){'); unihtmlframe1.HTML.Append('$("#rss-styled").rss("http://seilbahn.net/sn/rss.php", {'); unihtmlframe1.HTML.Append(' limit: 20,'); unihtmlframe1.HTML.Append(' entryTemplate: '+#39+'<h1><a href="{url}">{title}</a></h1><dd>{shortBodyPlain}[{author}@{date}]</dd>'+#39+''); unihtmlframe1.HTML.Append('}).show();'); unihtmlframe1.HTML.Append('});//]]>'); unihtmlframe1.HTML.Append('</script>'); unihtmlframe1.HTML.Append('<div>'); unihtmlframe1.HTML.Append(' <div id="rss-styled" class="well" style="display:none;"></div> '); unihtmlframe1.HTML.Append('</div>'); But didn´t work ... the jquery-1.10.1.js and jquery.rss.js are loaded .. no problem But nothing happens in the unihtmlframe1 ... ??? thanX for Help Erich Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 23, 2016 Share Posted August 23, 2016 Hi Erich, Seems it works, can you check again?: Best regards. Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted August 23, 2016 Author Share Posted August 23, 2016 hmmm ... it doesn´t work in my app i have the unihtmlframe1 in MAINFRAME_FNEWS .. and TMAINFRAME_FNEWS is a class of TUniFrame ... the TUniFrame is showm on TUniContainerPanel called "display" located in TMainForm procedure TMainForm.InsertFrame1(Name: string); // NAVIGATION begin if FFrameName1 <> '' then FreeAndNil(FCurrentFrame1); FFrameName1:=Name; FCurrentFrame1:=TUniFrameClass(FindClass(Name)).Create(self); FCurrentFrame1.Align:=alClient; FCurrentFrame1.Parent:=display; ... is this a reason why it doesnt work? Nice greetings Erich Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.