/Users/andrea/_magisterarbeit/korpus/clean/trainkorpus/32/file16.html NN ----------------------------------------- : DS NP Home NP . SENT Dev NP Shed NP ASP NN Free NP Dev NP Articles NNS Scripts NNS Dev NP Hardware NN Dev NP Archives NPS SEO NP Chat VV Dev NP Mechanic NP Web NP Hosting VVG JavaScript JJ Home NP JavaScript NN JavaScript NN Remote JJ Scripting VVG . SENT Fetching VVG Server NP Data NP with IN the DT DOM NN ADO NN . SENT NET JJ Apache NP ASP NN ASP NN . SENT NET JJ C NP C NP ColdFusion NP COM NN COM NN Delphi NP Kylix NN Design NP Usability NN Development NP Cycles NNS DHTML NN Embedded VVN Tools NP Flash NP Graphic JJ Design NP HTML NP IIS NP Interviews NNS Java NP JavaScript NP MySQL NP Oracle NP Photoshop NP PHP NP Reviews VVZ SQL NP SQL NP Server NP Style NP Sheets NP VB NP . SENT Net JJ Visual NP Basic NP Web NP Authoring VVG Web NP Services NPS Web NP Standards NPS XML NP Developer NN Forums NNS Forums NNS Archive NP Get VV Daily JJ Updates NNS Plug VVP In IN PDF NP Mag NP . SENT Developer NN Updates NNS Free NP Website NP Content JJ Weekly NP Newsletter NN Web NP Hosting VVG ASP NN Web NP Hosting VVG ASP NN . SENT NET JJ Web NP Hosting VVG Budget NN Hosting VVG Coldfusion NP Colocation NP Dedicated VVD Servers NNS E NP Commerce NP Hosting VVG Linux NP Web NP Hosting VVG Managed VVN Hosting VVG Reseller JJR Web NP Hosting VVG Shared VVN Hosting VVG Small JJ Business NN Hosting VVG Virtual JJ Private JJ Servers NNS Windows NNS Web NP Hosting VVG Articles NNS . SENT Blogs NNS . SENT Forums NNS . SENT Blog NP History NN Article NP Discussion NN Games NP Hardware NN How WRB Tos NNS Law NP Microsoft NP Open NP Source NN Security NP SEO NP Software NP Technology NP News NP Web NP Hosting VVG Wow NN Past NP Technology NP News NP Apress NP Books NPS Write VVP For IN Us PP Get VVP Paid VVN Request NN Media NP Kit NP Contact NP Us NP Site NN Map NN JavaScript NN JavaScript NN Remote JJ Scripting VVG . SENT Fetching VVG Server NP Data NP with IN the DT DOM NN Contributed VVD by IN Alejandro NP Gervasio NP Article NP Rating NN . SENT 1 LS 2005 CD 10 CD 12 CD Poor NP Best NP Send VV Me PP Similar JJ Content NN When WRB Posted VVD Add VV Developer NN Shed NP Headlines NNS To TO Your PP$ Site NN DISCUSS VV NEWS NP SEND VV PRINT NN PDF NP Article NP Index NP . SENT JavaScript JJ Remote JJ Scripting VVG . SENT Fetching VVG Server NP Data NP with IN the DT DOMOne NP step NN toward IN standardization NN . SENT making VVG http NN requests NNS with IN the DT DOMSetting NN up IN the DT server NN response NN . SENT parsing VVG XML NN in IN the DT serverDisplaying VVG XML NN data NNS . SENT defining VVG the DT createDataContainer NN and CC displayData NNS functionsPutting VVG the DT pieces NNS together RB . SENT showing VVG the DT complete JJ scriptSearch NN For IN More JJR Articles NNS . SENT Author NN Terms NNS JavaScript NN Remote JJ Scripting VVG . SENT Fetching VVG Server NP Data NP with IN the DT DOM NN Putting VVG the DT pieces NNS together RB . SENT showing VVG the DT complete JJ script NN Page NP 5 CD of IN 5 CD Considering VVG that IN the DT script NN is VBZ comprised VVN of IN two CD core JJ files NNS , , first JJ I NN ll NNS show VVP the DT file NN responsible JJ for IN fetching VVG XML JJ data NNS , , and CC second RB the DT file NN that WDT parses VVZ and CC displays VVZ the DT headlines NNS . SENT Having VHG said VVD that IN , , the DT requester NN . SENT htm NN file NN looks VVZ like IN this DT . SENT . SENT DOCTYPE NN html NN PUBLIC JJ W NP 3 CD C NP DTD NP XHTML NP 1 CD . SENT 0 CD Transitional JJ EN FW http NN . SENT www JJ . SENT w NN 3 CD . SENT org NP TR NP xhtml NN 1 CD DTD NP xhtml NN 1 CD transitional JJ . SENT dtd NP html NN head NN title NN FETCHING VVG XML NP DATA NNS WITH IN THE DT DOM NN title NN script NN type NN text NN javascript NN function VVP sendRequest JJS file NN create VVP script NN element NN var NN js NNS document NN . SENT createElement NN script NN . SENT assign VV script NN attributes NNS js NNS . SENT setAttribute JJ language NN , , javascript NN . SENT js NNS . SENT setAttribute NP src NP , , http NN . SENT www JJ . SENT mydomain NN . SENT com NN scripts NNS script NN file NN . SENT php NN . SENT file VV file VV . SENT append VV element NN to TO document VV tree NN send VV GET VV request NN document NN . SENT getElementsByTagName JJ head NN 0 CD . SENT appendChild NN js NNS . SENT execute VV program NN when WRB page NN is VBZ loaded VVN window NN . SENT onload NN function NN check NN if IN browser NN is VBZ DOM NN compatible JJ if IN document NN . SENT getElementById JJ document NN . SENT getElementsByTagName JJ document NN . SENT createElement NN load NN data NNS file VVP sendRequest JJS news NN . SENT xml NN . SENT script NN style NN type NN text NN css NN container NN background NN . SENT ffc NN . SENT padding NN . SENT 5 CD px NN . SENT border NN . SENT 1 CD px NN solid JJ 00 CD c SYM . SENT li NP margin NN top NN . SENT 3 CD px NN . SENT a DT . SENT link NN , , a DT . SENT visited VVN font NN . SENT bold JJ 11 JJ px NN Tahoma NP , , Arial NP , , Helvetica NP , , sans NN serif NN . SENT color NN . SENT 00 CD f SYM . SENT a DT . SENT hover NN color NN . SENT f SYM 00 CD . SENT style NN head NN body NN body NN html NN And CC , , with IN reference NN to TO the DT second JJ file NN script NN file NN . SENT php NN , , here RB s VVZ its PP$ definition NN . SENT . SENT php NN header NN Content NN Type NN . SENT text NN javascript NN . SENT echo NN var NN URL NP new JJ Array NN . SENT var NN TITLE NN new JJ Array NN . SENT . SENT read VV XML NP file VV content JJ file NN get VVP contents NNS GET VVP file VV . SENT store VV XML NP file VV contents NNS in IN array NN xml NN parser NN xml NN parser NN create VV . SENT xml NN parse VV into IN struct NN xml NN parser NN , , content NN , , vals NNS . SENT xml NN parser NN free JJ xml NN parser NN . SENT store NN titles NNS in IN TITLE NN array NN urls NNS in IN URL NP array NN foreach NN vals NNS as IN key JJ value NN if IN value NN tag NN URL NP value NN tag NN TITLE NN echo VVP value NN tag NN . SENT . SENT value NN tag NN . SENT . SENT length NN . SENT value NN value NN . SENT . SENT . SENT . SENT create VV data NNS container NN function VVP createDataContainer JJR var NN div NN document NN . SENT getElementById JJ container NN . SENT if IN div NN return NN . SENT var NN div NN document NN . SENT createElement NN div NN . SENT div NN . SENT setAttribute JJ id NN , , container NN . SENT document NN . SENT getElementsByTagName JJ body NN 0 CD . SENT appendChild NN div NN . SENT display NN data NNS function VVP displayData NNS reset VV data NNS container NN document NN . SENT getElementById JJ container NN . SENT innerHTML NN . SENT var NN ul NN document NN . SENT createElement NN ul NNS . SENT document NN . SENT getElementById JJ container NN . SENT appendChild NN ul NNS . SENT for IN var NN i NP 0 CD . SENT i NP URL NP . SENT length NN . SENT i NP create VVP links NN var NN li NP document NN . SENT createElement NP li NP . SENT var NN a DT document NN . SENT createElement NN a DT . SENT assign VV href NN attribute VVP a DT . SENT setAttribute JJ href NN , , URL NP i NP . SENT add VV link NN labels NNS a DT . SENT appendChild NN document NN . SENT createTextNode NN TITLE NN i NP . SENT li NP . SENT appendChild NN a DT . SENT ul NNS . SENT appendChild NP li NP . SENT remove VV script NN node NN var NN js NNS document NN . SENT getElementsByTagName JJ script NN 0 CD . SENT js NNS . SENT parentNode NN . SENT removeChild NN js NNS . SENT reset JJ array NN values VVZ URL NP null NN . SENT TITLE NN null NN . SENT update NN headlines NNS each DT 1 CD hour NN setTimeout NN sendRequest JJS news NN . SENT xml NN , , 3600 CD 1000 CD . SENT create VV data NN container NN createDataContainer NN . SENT display NN data NNS displayData NNS . SENT Discuss VV JavaScript JJ Remote JJ Scripting VVG . SENT Fetching VVG Server NP Data NP with IN the DT DOM NN Over IN this DT article NN , , find VV out RP how WRB to TO make VV silent JJ http NN requests NNS , , by IN using VVG only RB the DT DOM NN . SENT . SENT . SENT . SENT Post VV your PP$ comment NN now RB . SENT DISCUSS VV ARTICLE NN GET VV NEWSLETTER NN SEND VV ARTICLE NN PRINT NN VERSION NN PDF NN VERSION NN Scripts NNS . SENT com NN Get VVP This DT For IN Your PP$ Site NN . SENT Generated VVN in IN 0 CD . SENT 395519 CD sec NN . SENT