xtrim Posted March 7, 2008 Posted March 7, 2008 Hi, Is it possible to show a PART of the page in the web viewer? for example in this link I would like to show only the news box on the left.. possible?
comment Posted March 11, 2008 Posted March 11, 2008 Yes, no, maybe. It really depends on the web page. You could start be copying the HTML into a new document. Start deleting blocks of the code, while checking in the browser if the remaining parts still work. If you're lucky, you'll be left with just the part you need, and still working. Anyway it's a lot of work, and easily ruined if the provider makes changes.
Newbies Shai Posted March 12, 2008 Newbies Posted March 12, 2008 What about this solution ? doesn't answer your question ? (All the credit to GenX) 1186196974-youtube.zip
xtrim Posted March 12, 2008 Author Posted March 12, 2008 Tnx comment..that what i was thinking to... Maybe in the next ver of FMP they will allow some kind of auto scrolling..that could be nice. Shai: genx uses a youtube object..which THEY are providing...it not the same.
comment Posted March 12, 2008 Posted March 12, 2008 Maybe in the next ver of FMP they will allow some kind of auto scrolling... I don't think they (FileMaker) allow or disallow anything. The web viewer is just a browser. It's provided by the OS. If you can do this in your regular browser, you can probably do it in the web viewer too. Not really a Filemaker issue at all.
Genx Posted March 12, 2008 Posted March 12, 2008 (edited) Well, at the end of the day, its all just html, so isolate the parts you want, and pull them out. 1) You want the Doc Type Definition up the top 2) You want any JS / CSS files that are referenced 3) You want the relevant html code, in this case i believe its: [right] News[/right] 14/02/2008 AFI Europe, of the Africa Israel group, has signed an agreement for a funding transaction for the construction of the largest shopping mall in Romania - Cotroceni Park. [right][/right] 10/02/2008 AFI Europe will build a residence project in the prestigious neighborhood of Karlin, Prague [right][/right] 03/02/2008 Ramat Aviv Mall – Year 2007 Results break new records [right][/right] 13/01/2008 The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader [right][/right] 13/01/2008 Hot Winter at the Ramat Aviv Mall - January - February Activities [right][/right] 14/02/2008 AFI Europe, of the Africa Israel group, has signed an agreement for a funding transaction for the construction of the largest shopping mall in Romania - Cotroceni Park. [right][/right] 10/02/2008 AFI Europe will build a residence project in the prestigious neighborhood of Karlin, Prague [right][/right] 03/02/2008 Ramat Aviv Mall – Year 2007 Results break new records [right][/right] 13/01/2008 The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader [right][/right] 13/01/2008 Hot Winter at the Ramat Aviv Mall - January - February Activities [right][/right] 14/02/2008 AFI Europe, of the Africa Israel group, has signed an agreement for a funding transaction for the construction of the largest shopping mall in Romania - Cotroceni Park. [right][/right] 10/02/2008 AFI Europe will build a residence project in the prestigious neighborhood of Karlin, Prague [right][/right] 03/02/2008 Ramat Aviv Mall – Year 2007 Results break new records [right][/right] 13/01/2008 The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader [right][/right] 13/01/2008 Hot Winter at the Ramat Aviv Mall - January - February Activities [right][/right] 14/02/2008 AFI Europe, of the Africa Israel group, has signed an agreement for a funding transaction for the construction of the largest shopping mall in Romania - Cotroceni Park. [right][/right] 10/02/2008 AFI Europe will build a residence project in the prestigious neighborhood of Karlin, Prague [right][/right] 03/02/2008 Ramat Aviv Mall – Year 2007 Results break new records [right][/right] 13/01/2008 The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader [right][/right] 13/01/2008 Hot Winter at the Ramat Aviv Mall - January - February Activities [right][/right] 14/02/2008 AFI Europe, of the Africa Israel group, has signed an agreement for a funding transaction for the construction of the largest shopping mall in Romania - Cotroceni Park. [right][/right] 10/02/2008 AFI Europe will build a residence project in the prestigious neighborhood of Karlin, Prague [right][/right] 03/02/2008 Ramat Aviv Mall – Year 2007 Results break new records [right][/right] 13/01/2008 The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader [right][/right] 13/01/2008 Hot Winter at the Ramat Aviv Mall - January - February Activities [right][/right] 14/02/2008 AFI Europe, of the Africa Israel group, has signed an agreement for a funding transaction for the construction of the largest shopping mall in Romania - Cotroceni Park. [right][/right] 10/02/2008 AFI Europe will build a residence project in the prestigious neighborhood of Karlin, Prague [right][/right] 03/02/2008 Ramat Aviv Mall – Year 2007 Results break new records [right][/right] 13/01/2008 The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader [right][/right] 13/01/2008 Hot Winter at the Ramat Aviv Mall - January - February Activities [right][/right] 14/02/2008 AFI Europe, of the Africa Israel group, has signed an agreement for a funding transaction for the construction of the largest shopping mall in Romania - Cotroceni Park. [right][/right] 10/02/2008 AFI Europe will build a residence project in the prestigious neighborhood of Karlin, Prague [right][/right] 03/02/2008 Ramat Aviv Mall – Year 2007 Results break new records [right][/right] 13/01/2008 The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader [right][/right] 13/01/2008 Hot Winter at the Ramat Aviv Mall - January - February Activities [right][/right] 14/02/2008 AFI Europe, of the Africa Israel group, has signed an agreement for a funding transaction for the construction of the largest shopping mall in Romania - Cotroceni Park. [right][/right] 10/02/2008 AFI Europe will build a residence project in the prestigious neighborhood of Karlin, Prague [right][/right] 03/02/2008 Ramat Aviv Mall – Year 2007 Results break new records [right][/right] 13/01/2008 The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader [right][/right] 13/01/2008 Hot Winter at the Ramat Aviv Mall - January - February Activities [right][/right] 14/02/2008 AFI Europe, of the Africa Israel group, has signed an agreement for a funding transaction for the construction of the largest shopping mall in Romania - Cotroceni Park. [right][/right] 10/02/2008 AFI Europe will build a residence project in the prestigious neighborhood of Karlin, Prague [right][/right] 03/02/2008 Ramat Aviv Mall – Year 2007 Results break new records [right][/right] 13/01/2008 The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader [right][/right] 13/01/2008 Hot Winter at the Ramat Aviv Mall - January - February Activities [right][/right] 14/02/2008 AFI Europe, of the Africa Israel group, has signed an agreement for a funding transaction for the construction of the largest shopping mall in Romania - Cotroceni Park. [right][/right] 10/02/2008 AFI Europe will build a residence project in the prestigious neighborhood of Karlin, Prague [right][/right] 03/02/2008 Ramat Aviv Mall – Year 2007 Results break new records [right][/right] 13/01/2008 The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader [right][/right] 13/01/2008 Hot Winter at the Ramat Aviv Mall - January - February Activities [right][/right] 14/02/2008 AFI Europe, of the Africa Israel group, has signed an agreement for a funding transaction for the construction of the largest shopping mall in Romania - Cotroceni Park. [right][/right] 10/02/2008 AFI Europe will build a residence project in the prestigious neighborhood of Karlin, Prague [right][/right] 03/02/2008 Ramat Aviv Mall – Year 2007 Results break new records [right][/right] 13/01/2008 The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader [right][/right] 13/01/2008 Hot Winter at the Ramat Aviv Mall - January - February Activities [right][/right] Better yet though, just extract the actual news items into the db. Edited March 12, 2008 by Guest
comment Posted March 12, 2008 Posted March 12, 2008 Well, at the end of the day, its all just html Not really - there's also a small matter of what happens on the server side. I believe your page will keep requesting the same items all over again (note the ID numbers hard-coded into your table cells), until they become unavailable. I don't think that's a good idea for a news ticker.
Genx Posted March 12, 2008 Posted March 12, 2008 I'm not sure what you're suggesting... The content does seem to be dynamically reloaded every time the page is shown, but the fact of the matter is, its just as easy to extract the content in the same fashion every time... I was not suggesting that the ticker be "removed" permanently... but why this would be an issue i don't know - simply extract the relevant code via CF that digs down X embedded tags from the entire source of the html and add a base tag at the top of all the content so that all site relevant links work. Provided the page structure doesn't change there should be no issue.
comment Posted March 12, 2008 Posted March 12, 2008 (edited) That is what I meant. You cannot have static HTML code loaded into the web viewer for this. You need to do it in stages: first, get the HTML code of the current page, then parse out the ticker part, and finally load the result back into the viewer (or into a second viewer). Then pray they won't change their code on you. And there's also a question of refreshing. All in all, this is not something I would want to do. --- Oh, and one more thing: since the ticker part itself is a request, there's a possibility that the server will refuse it, since it's not coming from the server's domain. Edited March 12, 2008 by Guest
Genx Posted March 12, 2008 Posted March 12, 2008 The ticker part itself is js, all its doing is using the generated html: 13/01/ 2008&g t; & lt;div align="left" dir="ltr">The Ramat Aviv Mall is keeping on its tendency to assure its position as the Fashion Mall leader& gt; [right][/right] < /td> At the end of the day, all code is at somepoint exposed to the client unless the code itself is generated via ajax which in this case its not.
comment Posted March 12, 2008 Posted March 12, 2008 What do you figure this part does: href="inner.asp?id=1310&newsId=15 8&pageNum=1"
Genx Posted March 12, 2008 Posted March 12, 2008 brings up the main article... Now add that to the top of the code and see what happens.
comment Posted March 12, 2008 Posted March 12, 2008 OK forget it, it's not a good example. My point is that the technique may or may not work, depending on the site. If some of the page content is the result of another request, you can duplicate the request - but you can't be sure it will be honored.
Genx Posted March 12, 2008 Posted March 12, 2008 Hey i'm not saying its a good idea, really risky if the owner changes any key piece of content... just saying its possible to do.
comment Posted March 12, 2008 Posted March 12, 2008 really risky if the owner changes any key piece of content That's not quite what I meant, but since IMHO the entire operation is not cost effective even if it works, I won't dwell on it.
Recommended Posts
This topic is 6111 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now