Lecture Notes in Computer Science:                             FII News                            Gheorghe Bursuc & Flori...
2.1 Screenshots  Scr. 1: The initial display.
Scr. 2: The display after user search for some keywords.
2.4 Program CodeParse RSS Function:    $.ajax({          type: "GET",          url: "getway.php",          dataType: "xml"...
Upcoming SlideShare
Loading in...5
×

FII News

235

Published on

FII Rss News

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
235
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

FII News

  1. 1. Lecture Notes in Computer Science: FII News Gheorghe Bursuc & Floria Adin Florin Abstract. We made a web mash-up offering access to interest informations for college students based on news feeds provided by the faculty website, fiistudent blog and @fiistudent from Twitter. The user can filter the news based on keywords entered. Keywords: cliw, infoiasi, web, project1 Introduction This is an instruction file for our project. The project is about filtering informationfrom feeds by the user’s keywords.1.1 Additional Information for using interface of projectYou have to enter in search box some keywords about what you want to read fromfeeds. There are only 3 feeds: infoiasi.ro website, fiistudent blog and twitter@fiistudent.2 Project Presentation The project is coded in HTML/CSS, PHP and Javascript. We used a parserfunction for parsing the XML files and extract by item tag. We used find function forfinding the item tag and some child tags: title, description and link. The project have 1 important file and 3 php files for rss links. First file contains thejavascript functions and html format. The rest of three files contains file_get_contentfunction from php ,one for each rss for taking the rss link. The javascript functions are for parsing the rss file. We made such of functionthree times for each rss file like the code bellow:Also in this file we made some functions for hide/show the rss content divs. This filecontains also the html format for page.The front page looks like the screenshot bellow:
  2. 2. 2.1 Screenshots Scr. 1: The initial display.
  3. 3. Scr. 2: The display after user search for some keywords.
  4. 4. 2.4 Program CodeParse RSS Function: $.ajax({ type: "GET", url: "getway.php", dataType: "xml", success: xmlParser });function xmlParser(xml) { //var sb = $("#searchbox").val(); //var sb = document.searchform.searchbox.value; // alert(sb); searchInput = "data,baze"; var keyWordsArray = searchInput.split(","); var keyArrayLength = keyWordsArray.length; for(var j = 0; j < keyArrayLength; j++) { $(xml).find("item").each(function () { var title = $(this).find("title").text(); var description = $(this).find("description").text(); var newsLink = $(this).find("link").text(); if(searchKeyWords(keyWordsArray[j],description) > -1) $("#siteres").append(<h2> + title + </h2><p> +description + </p><a href=" + newsLink + ">Permanent Link</a>); }); }}3 LNCS OnlineThe online version of this presentation is available online athttp://www.slideshare.net/florinfloria/fii-news-6729401 .

×