Jump to content

RSS Feed in uniHTMLFrame1


erich.wanker

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...