Posted: Mon Jun 25, 2007 2:17 pm
@Pantcho!! and rsts:
You need to install the beta 2 of PB 4.10, than it should work.
Greetz, Morty
You need to install the beta 2 of PB 4.10, than it should work.
Greetz, Morty
http://www.purebasic.com
https://www.purebasic.fr/english/
sorry, the domain ts-soft.eu exist no more. If i find the old source, i will posttroy wrote:The links is broken - getting a 404 error
Code: Select all
; based on the code from Rescator:
EnableExplicit
Procedure.l AboutHtml_NavigationCallback(gadget,url$)
If Left(url$,8)="cmd:data"
MessageRequester("GET","Length: " + Str(Len(Right(url$,Len(url$)-8))))
ProcedureReturn #False
EndIf
ProcedureReturn #True
EndProcedure
Define LargeData.s = Space(1000) ; this works
; Define LargeData.s = Space(10000) ; this not
Define HTML.s = "<html><body><form action='cmd:data' method='get'><textarea name='message' rows='17' cols='77' title='Message'>" + LargeData + "</textarea><input class='button' type='submit' name='submit' Value='submit'></form></body></html>"
OpenWindow(0,#PB_Ignore,#PB_Ignore,800,400,"")
CreateGadgetList(WindowID(0))
WebGadget(0,0,0,WindowWidth(0),WindowHeight(0),"")
SetGadgetItemText(0,#PB_Web_HtmlCode,HTML)
SetGadgetAttribute(0,#PB_Web_NavigationCallback,@AboutHtml_NavigationCallback())
SetActiveGadget(0)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow