Skip to main content

jdic on macosx, setcontent not working

2 replies [Last post]
taylans
Offline
Joined: 2008-08-18

i use jdic on mac os x.

i use webkitwebbrowser. it works fine,

when i use seturl(..) it works.

but when i use setcontent(..), or sethtmlsource(..) it does not work.

i investigated the source of webkit. it sends messages to the underlying cocoa instance. the message id 2 is for setting urls, which works, for example.
there are other messageids which make texts smaller/larger or other message ids which attempt a full page refresh. they work.

but i did not see anything for setting a content. there is a message type which is seturlfromstring. but it does not work.

the implementation in the webkit for setting html content is left blank. Is that because of cocoa does not support such a thing?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
taylans
Offline
Joined: 2008-08-18

solved by sending two parameters instead of one to the cocoa component. (object array)

jcd
Offline
Joined: 2005-06-06

Hi,
I have the same pb with setContent on Mac.

I would appreciate if you could describe yr solution more in details.

Thank you in advance,

Best,

jcd