dbTalk Databases Forums  

Web View

comp.databases.filemaker comp.databases.filemaker


Discuss Web View in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ursus
 
Posts: n/a

Default Web View - 04-30-2007 , 06:06 AM






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



Reply With Quote
  #2  
Old   
Ursus
 
Posts: n/a

Default Re: Web View - 04-30-2007 , 06:53 AM






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...
Quote:
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




Reply With Quote
  #3  
Old   
FastWolf
 
Posts: n/a

Default Re: Re: Web View - 05-18-2007 , 10:43 PM



On Mon, 30 Apr 2007 13:53:32 +0200, "Ursus" <ursus.kirk (AT) wanadoo (DOT) nl>
wrote:

Quote:
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
Any reason you can't use the Filter function to allow only the
characters you want to keep?

Hope this helps.

--
FW



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.