IRC Log Viewer » #firebreath » 2012-02-10

IRC Nick Time (GMT-7) Message
kun 00:02 Someone available for a question?
taxilian 00:02 .ask
though it's worth mentioning that I'm usually not up this late
dougma 00:02 i am. :)
taxilian 00:02 true =] which is actually quite nice; it means that more often people can get help when they come in my off hours
now we just need a third person to cover the 5-6 hours between when you get off and I get on...
dougma 00:02 although i've been away for months. :)
taxilian 00:02 I've noticed you haven't been as active
dougma 00:02 yes... kun you have 15 minutes. :)
kun 00:02 k^^
dougma 00:02 new addition to the family.
taxilian 00:02 cool! =]
kun 00:02 in JavaScript I want to pass a JSAPI object to the function....
taxilian 00:02 congrats
kun 00:02 but I get an error:
unsupported: no toString() function in type function
my function look like this: function getPictures(metaData)
and metaData is the JSAPI object
taxilian 00:02 ...
kun 00:02 but the error metaData=unsupported: no toString() function in type function
taxilian 00:02 maybe you could pastebin some code samples?
why would it care that there is no toString() function?
(and JSAPI objects *do* have a toString function, so...
FireBreathBot 00:02 If you need help, just ask your question and wait for people to come back.
kun 00:02 yes I know, but in JavaScript there is an exception when the custom toString() function has a "bug"
taxilian 00:02 why would there be a bug in such a ridiculously simple toString method? or did you override it?
dougma 00:02 time for me to go, night all.
taxilian 00:02 kun: I need to go as well; I'm really just not following what you're doing and what is happening. if you can put together some code samples and such I can possibly help you when I get up in about 9 hours or so =]
(up and back to work)
sorry
kun 00:02 yes I dont know^^ no I dont override it...the weird thing is that sometimes the call of the function works and sometimes not^^
ok no problem
kun 03:02 No one available or?
kun 05:02 Hello?
reichi 05:02 .ask
FireBreathBot 05:02 If you need help, just ask your question and wait for people to come back.
kun 05:02 juhu :)
I get an strange javaScript error when I call a method of my API class
mom I paste some code
http://fpaste.org/HPk9/
reichi?
reichi 05:02 I'm sorry but i don't have time now
kun 05:02 oh ok
reichi 05:02 and I'm only a User, like you are
taxillian should be back in about 3h
i think
(that's his usual time at least)
kun 05:02 ok thanks
linearray 06:02 and what is the error?
unless it's still about the toString() stuff. That will probably have to wait until taxilian is back
kun 06:02 yes its the tostring() stuff^^
FireBreathBot 07:02 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-160 issue created by mastropinguino
FireBreathBot 07:02 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-160 issue commented by richard "rather than putting this in each of those files, it should be possible to put it in the CMakeList..."
FireBreathBot 08:02 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-160 issue commented by mastropinguino "You're right..
kun 09:02 taxilian?
taxilian 09:02 kun: yes, I'm back.
kun 09:02 hey
I got an strange error
wanna see?^^
taxilian 09:02 pastebin it all to me; what you pasted earlier plus the error and where it occurs
also, what platform and browser?
kun 09:02 look here
http://stackoverflow.com/questions/9228191/firebreath-javascript-error-unsupported-no-tostring-function-in-type-functio
firefox,linux
taxilian 09:02 what version of firefox?
one might also wonder why you need to call the same function 100 times… =]
kun 09:02 7.0.1
hehe its only a test...in real I use recursion and there the function is called more than one time and sometimes I get an error then
do you know whats wrong?
taxilian 09:02 I just posted a response
with some suggestions to try
kun 10:02 ok thank you
Binbo 10:02 i'm facing difficulty to understand how to implement FB class
specifically i would like to implement getElementbyID
taxilian 10:02 Binbo: you want to *use* getElementByID from the dom, or you somehow want to create your own version?
Binbo 10:02 i would like to have control on <video> tag
taxilian 10:02 m_host->getDOMDocument->getElementById("....")
!wiki getDOMDocument
FireBreathBot 10:02 5 results found. Note: Results limited to 8
"class FB BrowserHost getDOMDocument": http://goo.gl/RNAbn
"class FB ActiveX ActiveXBrowserHost getDOMDocument": http://goo.gl/VnOUr
"class FB Npapi NpapiBrowserHost getDOMDocument": http://goo.gl/7DIAy
"Plugin Lifecycle": http://goo.gl/nVhKS
"Version History": http://goo.gl/lgWpo
taxilian 10:02 !find getElementById
FireBreathBot 10:02 Found 2 possible matches. Displaying 2
/^FB::DOM::ElementPtr Document::getElementById(const std::string& elem_id) const$/ (f) found in src/ActiveXCore/AXDOM/Document.cpp: http://goo.gl/SG3I5
/^ElementPtr Element::getElementById(const std::string& id) const$/ (f) found in src/ScriptingCore/DOM/Element.cpp: http://goo.gl/nqUff
Binbo 10:02 i stuck after that
means
if i want to implement video.play() ?
taxilian 10:02 !wiki JSObject
FireBreathBot 10:02 8 results found. Note: Results limited to 8
"class FB JSObject ~JSObject": http://goo.gl/OXp8i
"class FB JSObject JSObject": http://goo.gl/sQQIm
"class FB JSObject": http://goo.gl/Xe2kF
"class FB JSObject SetPropertyAsync": http://goo.gl/TjTYQ
"class FB JSObject GetObjectValues": http://goo.gl/dLBVa
"class FB JSObject GetArrayValues": http://goo.gl/0pggo
"class FB JSObject getJSAPI": http://goo.gl/pVlHo
"class FB JSObject InvokeAsync": http://goo.gl/ydDz6
taxilian 10:02 I would probably use ->InvokeAsync("play", FB::variant_list_of())
!wiki methods on the dom
FireBreathBot 10:02 8 results found. Note: Results limited to 8
"Invoking methods on the DOM": http://goo.gl/J0pW7
"Performance Considerations": http://goo.gl/nz4YJ
"Features": http://goo.gl/xXK1q
"Version History": http://goo.gl/lgWpo
"Interacting with Javascript": http://goo.gl/kN03n
"FireBreath 1.4 Release Candidate 2!": http://goo.gl/IcJtX
"Boost survey results": http://goo.gl/rC2il
"Web Browser Plugins in the Age of Web Applications.pdf": http://goo.gl/vS7zB
taxilian 10:02 looks like there are examples for that too =]
Binbo 10:02 thanks ^^ !
i'll have a look now
taxilian 10:02 look around on the wiki when you get stuck, particularly if nobody is here; most things you'll need are there
also feel free to clarify things if it's hard to find something
the wiki can be edited by anyone
Binbo 10:02 i found its hard to find examples of the usage of the class
or i'm too noob in finding it
=p
taxilian 10:02 try just browsing the docs; this was in Using Firebreath -> Interacting with Javascript -> invoking methods on the dom
Binbo 10:02 thx for keep responding to all my questions =)
its hard to roll back to my little c++ knowledge after a long time using OOD language
taxilian 10:02 I know how that goes
Binbo 12:02 problem to create reference JSObjectPtr for me to invoke the play method
taxilian 12:02 that's not very helpful information as far as helping you find a solution
taxilian 12:02 Binbo: when asking for help, please provide enough information that we might presumably be able ot hlep you find a solution. "I have a problem" doesn't tell me much
Binbo 12:02 wait let me put more effort in trying =p
how to let JSObjectPtr to refer to video tag?
1st i created FB::DOM::ElementPtr elm = m_host ->getDOMElement();
is it correct?
taxilian 12:02 that will get you a reference to your object tag
I thought you were going to use getElementById?
wasn't that the whole point of our earlier conversation?
Binbo 12:02 yes
and i a little bit confused
in order to use invoke i have to create reference for JSObjectPtr rite?
i'm suffering from misconception I think =.=
taxilian 13:02 that returns a DOM::Element, right?
!wiki DOM Element
FireBreathBot 13:02 8 results found. Note: Results limited to 8
"class FB DOM Element element": http://goo.gl/f3FR0
"class FB DOM Element": http://goo.gl/Me7kG
"class FB DOM Element create": http://goo.gl/PpbbH
"class FB DOM Element getWidth": http://goo.gl/Fpp1A
"class FB DOM Element getElementById": http://goo.gl/9QFVX
"class FB DOM Element getParentNode": http://goo.gl/7pQVp
"class FB DOM Element getHeight": http://goo.gl/9wVPU
"class FB DOM Element getElement": http://goo.gl/j77Uw
taxilian 13:02 a DOM::Element extends DOM::Node
which has a callMethod function on it
so you could either just use that or you could get the underlying JSObjectPtr by calling getJSObject
(all of this information is from the wiki pages for FB DOM Element and FB DOM Node)
Binbo 13:02 JSObjectPtr obj = elm -> callMethod(..)?
taxilian 13:02 where you expect obj to be what?
Binbo 13:02 meaning?
taxilian 13:02 what are you expecting to get back from elm->callMethod() that you're storing in obj/
?
I'm trying to understand what you aren't understanding that this doesn't make sense to you
if you want a JSObjectPtr of the video tag you'd do elm->getJSObject()
if you just want to call play on the video tag which is in elm as a Element, then you could just do elm->callMethod("play", FB::variant_list_of(arg1)(arg2)(arg3))
and with that I need to go get some lunch. I'll be back in a bit
Binbo 14:02 finally I understand your explanation on JSObject
taxilian 14:02 oh, good =]
Binbo 14:02 and successfully implement it
thanks!
taxilian 14:02 yw