Su su ssudio (problem with revBrowser full HTML) (=^‥^=)

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

Su su ssudio (problem with revBrowser full HTML) (=^‥^=)

Post by Mariasole » Tue Mar 10, 2015 4:45 pm

Ciao!
After so much time... here I am again to study LC!
Hello to :D FourthWorld :D and all those who remember me!

I tried to use the "component" revBrowser and ...as always.... :cry: .... I can not use it as I would like! :oops:
I would like the full HTML code of this Youtube page including comments. Here is my code ...

Code: Select all

local tBrowserId

on mouseUp
   
   
   --a-> launch browser
   put revBrowserOpencef(the windowId of this stack) into tBrowserId
   
   --b-> "post it" the browser
   revbrowserSet tBrowserId, "rect" , the rect of grc "browserimage"
   
   --c-> load url
   revBrowserSet tBrowserID, "url", "https://www.youtube.com/watch?v=r0qBaBb1Y-U"
   
      --d-> wait.... wait.... maybe the page loads all!
   wait 60 sec with messages
   
         --d-> when document is complete...
   browserDocumentComplete tBrowserId, "https://www.youtube.com/watch?v=r0qBaBb1Y-U"
   
   
   
end mouseUp


on browserDocumentComplete
   --e-> show me the ENTIRE html text of the pagne!
   put revBrowserGet(tBrowserId, "htmltext") into field "fHTML"
end browserDocumentComplete




I think not being able to have "all" the html page source, but only a part ... and not the comments!
Thanks for the help that you give me 8) , and thanks to all livecoders for this wonderful and dynamic language! :mrgreen:

Mariasole
(=^‥^=)
Last edited by Mariasole on Fri Mar 13, 2015 5:31 pm, edited 2 times in total.
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Su su ssudio (=^‥^=)

Post by Klaus » Tue Mar 10, 2015 8:11 pm

Hola Maria,

how could we ever forget you!? 8)

OK, remove the line "browserDocumentComplete..." and the WAIT statement from your "mouseup" script
and put the "browserDocumentComplete " handler into the CARD script and see if that works.

The message "browserDocumentComplete"*** will be sent AUTOMATICALLY to the card, but not to your button!,
when the page has finished loading!

***Just like the name suggests :D

Code: Select all

local tBrowserId

on mouseUp
   put revBrowserOpencef(the windowId of this stack) into tBrowserId   
   revbrowserSet tBrowserId, "rect" , the rect of grc "browserimage"  
   revBrowserSet tBrowserID, "url", "https://www.youtube.com/watch?v=r0qBaBb1Y-U"   
end mouseUp
Best

Klaus

Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

Re: Su su ssudio (=^‥^=)

Post by Mariasole » Wed Mar 11, 2015 11:26 am

Hi Klaus! Che bello risentirti! :D :D :D
Thank you very much for your advice! 8)
Unfortunately, my mind is made of wood :| , probably, and I can not make this stack which should be really simple! :cry:
Now I can not even bring up the html code in the field... :shock:

Thanks for your help!

Mariasole
(^._.^)ノ
Attachments
sussudio2.zip
(862 Bytes) Downloaded 172 times
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: Su su ssudio (=^‥^=)

Post by Dixie » Wed Mar 11, 2015 12:14 pm

Mariasole...:-)

Attached Stack... the youTube plays in the browser, the html text appears in the message box, do with it whatever you want...
Attachments
browser.livecode.zip
(77.99 KiB) Downloaded 178 times

Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

Re: Su su ssudio, oh oh! (=^‥^=)

Post by Mariasole » Thu Mar 12, 2015 2:28 pm

Thank Dixie!
You have been very kind and your browser works :D perfectly :D ... except the comments of the page :cry: !
The browser it can not download the "frame" of the comments, or better, in the HTML code of the page does not exist the coede for comments.
RevBrowser "fails" to "extract" the full html that includes them (see pict)...
Is a solution possible?
Thank Dixie, thank Klaus!
Thanks for your patience! :oops:

Mariasole
(^._.^)ノ
Attachments
comments.jpg
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

Re: Su su ssudio (problem with revBrowser full HTML) (=^‥^=)

Post by Mariasole » Sat Mar 14, 2015 7:51 pm

There is some good soul who can help me? :|
Maybe I can not explain because of my bad English. :cry:
I would just like to have the full html of any page of youtube (Sussudio is an example).
Is the only one with revBrowser for now I can not download properly. I'm doing it for test then report any bugs to be a minimum useful in this great community! 8)

Sorry for my english and thanks to all the good souls!

Mariasole
(^._.^)ノ
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

Re: Su su ssudio (problem with revBrowser full HTML) (=^‥^=)

Post by Mariasole » Tue Mar 17, 2015 6:09 pm

Mariasole wrote:There is some good soul who can help me? :|
Maybe I can not explain because of my bad English. :cry:
I would just like to have the full html of any page of youtube (Sussudio is an example).
Is the only one with revBrowser for now I can not download properly. I'm doing it for test then report any bugs to be a minimum useful in this great community! 8)

Sorry for my english and thanks to all the good souls!

Mariasole
(^._.^)ノ
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Su su ssudio (problem with revBrowser full HTML) (=^‥^=)

Post by magice » Wed Mar 18, 2015 1:37 pm

I suspect that the comments section is not written in HTML. It is more than likely a java or flash app.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”