html - How to pull text from a Div on an external page with javascript? -



html - How to pull text from a Div on an external page with javascript? -

on page have ticker load text div on external page. trying have titles articles have on separate page loaded ticker, understand how load them ticker need know how pull text external div (and load within div).

my external page

<div id="boundry2"> <h5> <div class="title"> title: </div> <div class="date"> date </div> </h5> article text <br/> </div>

my ticker

<a href="#"> <div id="myhtmlticker" class="tickerstyle"> <div class="messagediv"> text title </div> <div class="messagediv">text title </div> </div> </a>

my ticker references external javascript code id makes each div class messagediv appear. want text <div class="title">title:</div> on external page loaded onto <div class="messagediv">text title</div>. maintain in mind there multiple articles , want each title show. help appreciated, give thanks you.

try solution. utilize ajax request in ticker external page response text , parse response find title , can load in ticker.

hope helps you.

javascript html external

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -