#PB_Web_HtmlCode not working

Just starting out? Need help? Post your questions and find answers here.
tj1010
Posts: 218
Joined: Wed May 27, 2015 1:36 pm
Contact:

#PB_Web_HtmlCode not working

Post by tj1010 »

Code: Select all

Procedure buttonc()
  Debug 1
  Debug GetGadgetItemText(0,#PB_Web_HtmlCode)
EndProcedure

If OpenWindow(0,0,0,1000,400,"")
  WebGadget(0,0,0,1,1,"http://www.spiderbasic.com")
  ButtonGadget(1,0,50,100,25,"View Source")
  BindEvent(#PB_Event_Gadget,@buttonc())
  HideGadget(0,1)
EndIf
Returns nothing. Documentation doesn't mention domain restrictions for this.
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: #PB_Web_HtmlCode not working

Post by Fred »

There is a note about it:

Code: Select all

GetGadgetItemText(): The following constants can be used to get information (only works on the same page domain)
Post Reply