[Gambas-user] Getting innerHTML of a WebControl

Safiur Rahman isafiur at gmail.com
Sat Sep 25 13:26:15 CEST 2021


Also executing gw.update()  has no effect

Me.Exec("gw.update(" & JS(WebHtml1.Name) & ",'innerHTML','abcdef');")

On 9/25/21, Safiur Rahman <isafiur at gmail.com> wrote:
> How can I modify the HTML in server as well? Any solution?
>
> On 9/25/21, Safiur Rahman <isafiur at gmail.com> wrote:
>> Hi Benoît
>>
>> WebControl.ToHTML() is supposed to return string content of the
>> WebControl. But it doesnot return any value if WebControl gets content
>> through js eg. gw.setInnerHtml() method
>>
>> For example:
>>
>>  Public Sub WebButton2_Click()
>>
>>   Me.Exec("gw.setInnerHtml(" & JS(WebHtml1.Name) & ",'abcdef')")
>>
>> End
>>
>>>> WebHtml1 displays "abcdef"
>>
>> Public Sub WebButton1_Click()
>>
>>   Message.Info(WebHtml1.ToHTML())
>>
>> End
>>
>>>> The message has nothing
>>
>> Attached a project
>>
>> --
>> Regards
>> Safiur Rahman
>>
>
>
> --
> Regards
> Safiur Rahman
>


-- 
Regards
Safiur Rahman


More information about the User mailing list