Page 1 of 1

#PB_Web_HtmlCode not working

Posted: Fri Jan 15, 2016 11:22 pm
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.

Re: #PB_Web_HtmlCode not working

Posted: Mon Jan 25, 2016 10:11 am
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)