![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FMP 8.5 adv, Win xp What I would like to do, but can not figure out is a scripted way of the following manual actions. Layout has a Web Viewer object, named Webv. I would like to script as if I did a rightclick within the object, select all, copy, goto a textfield and paste. When I do a GetLayoutObjectAttribute ( "Webv"; "content") I get a raw html text with ALL the contents, including headers, scripts etc. On top of that it translates returns as small squares. I have seen html2txt custom functions (at Brian Dunnings great CF list) but these only remove the tags, leaving everything in between. I could go and extend these myself (Or rather re-write them). But perhaps an easier way exists, or someone else has a neater solution. Keep well, Ursus |
#3
| |||
| |||
|
|
Most part of the problem has been solved now. But the problem of the small squares remain. When I copy and paste just ONE character (the square itself) this results in showing a square AND the next character. I have even rebooted to show this was not some strange glitch. When I do a left ( text ; 1 ) the text beginning with a square, the calculation remains empty. When I paste the copied square and remove the second character by hand, the result gets translated as a return. the moment I commit the calculation with OK. It is not the Pilcrow, but just a text return. When I try to replace the squares, nothing happens whatever I have tried so far. (return, pilcrow, paste the square) So I have run out of ideas. "Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> schreef in bericht news:4635cdc5$0$4617$dbd49001 (AT) news (DOT) wanadoo.nl... FMP 8.5 adv, Win xp What I would like to do, but can not figure out is a scripted way of the following manual actions. Layout has a Web Viewer object, named Webv. I would like to script as if I did a rightclick within the object, select all, copy, goto a textfield and paste. When I do a GetLayoutObjectAttribute ( "Webv"; "content") I get a raw html text with ALL the contents, including headers, scripts etc. On top of that it translates returns as small squares. I have seen html2txt custom functions (at Brian Dunnings great CF list) but these only remove the tags, leaving everything in between. I could go and extend these myself (Or rather re-write them). But perhaps an easier way exists, or someone else has a neater solution. Keep well, Ursus |
![]() |
| Thread Tools | |
| Display Modes | |
| |