I see you have
P3Func = Module.cwrap('p3stuff', 'number', ['string', 'string']);
which looks good. You can then call it with something like
result = P3Func('first', 'second');
which I see you are doing. What part of that are you trying to improve?
On Thu, Oct 15, 2015 at 12:59 PM, Pau Ballart <[email protected]> wrote:
> Okay so the php is just calling a function I declared. Because I need to
> pass the image url as an argument and a key, I don't know how to do it
> using the main function so I changed the main function for this one with
> the two arguments and then called this function from my php code.
> Is there a better way to call emscripten passing parameters?
>
> Thanks.
>
> 2015-10-15 12:55 GMT-07:00 Alon Zakai <[email protected]>:
>
>> It would be good to focus the question more, it's hard to tell what the
>> core issue is. Try to reduce the problem to just one concrete thing, like
>> just loading a file, and doing it without that custom PHP script, for
>> example.
>>
>>
>> On Thu, Oct 15, 2015 at 12:27 PM, Pau Ballart <[email protected]> wrote:
>>
>>> Hello developers,
>>>
>>> I'm starting a project and I'm new at Javascript and emscripten. I'm
>>> trying to download some image data from a server and then process it using
>>> some c functions I already have working. I asked this question in
>>> Stackoverflow so I share you the link and maybe one of you can help me.
>>>
>>>
>>> http://stackoverflow.com/questions/33087205/emscripten-code-for-image-data-download-using-emscripten-wget-or-emscripten-asyn
>>>
>>> Thank you,
>>>
>>> Pau B
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "emscripten-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "emscripten-discuss" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/emscripten-discuss/BEb-1mjDvZI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Pau Ballart
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.