From the Docs:
Cannot Call Procedure as Function
Your code likely looks something like this;
packet = clip(packet) & p_web.script(something)
Alter it to make it a simple procedure call. For example;
p_web.script(something)
OK, but that doesn't give the same result, does it? I looked through the source code and it didn't jump out at me. Do we use DO SendPacket ; p_web.script(something)?
If the SendPacket routine is not available, such as in an added NetWebServerWorker method do we use self.ParseHTML ? My particular situation is NetWebServerWorker method that uses p_web.jQuery to create a timepicker entry:
NetWebServerWorker.CreateTimeInput PROCEDURE (string p_Id,string p_Value,<string p_class>,long p_Readonly=0,long p_disabled=0,<string p_picture>,<string p_Javascript>,<string p_Options>,<string p_extra>,<String p_tip>,Long p_size=0,Long p_MinDate=0,Long p_MaxDate=0,<String p_placeholder>)
.
.
.
If p_Readonly <> 0
.
.
Else
returnValue = |
'<input type="text" name="'&clip(loc:id)&'" id="'&clip(loc:id)&loc:randomid&'" '&clip(loc:value)& clip(loc:class) & clip(loc:javascript) & clip(loc:tip) & clip(loc:readonly) & clip(loc:disabled) & clip(loc:extra) & clip(loc:placeholder) & '/>' |
& self.jQuery(clip(loc:id)&loc:randomid,'clockpick',loc:options)
End
Return clip(Returnvalue)
Any advice would be greatly appreciated. Thanks.