wired event triggered more than once

35 visualizzazioni
Passa al primo messaggio da leggere

Samir

da leggere,
3 mar 2015, 09:06:1203/03/15
a nitro...@googlegroups.com
Hi,

I have a view (see below) with a wired event to load_data at at startup. I eventually found that the callback is called 3 times instead of just once.
I guess i've made a mistake but i don't know what and why :)

Any clue, please ?

Sincerely

Samir


menu() -> 
#mobile_panel{id = sub_binding, position=left,
        display_mode=overlay,
        theme=a, body=[#label{text = "empty"}]}.

body() -> 
    Content = [
#panel{class="error", id=board_ctrl, style="display:none"},
#br{},
#mobile_collapsible_set{
header_theme=b,
content_theme=b,
body=[
#mobile_collapsible{
header_text="Applications",
id = app,
collapsed = true,
content_body=[
]}
]}
],

wf:wire(#event{postback=load_data}),
wf:clear_session(),
Content.


%%%
%%% Event Handlers
%%%

event(load_data) ->

io:format("call load_data\n"),
ok.


Jesse Gumm

da leggere,
3 mar 2015, 18:41:1403/03/15
a nitrogenweb

Hi Samir,

Sorry for the delay (trapped in meetings all day). I'm not sure, I'll have to see if I can reproduce this.

I'll get back to you,

-Jesse

--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

--
You received this message because you are subscribed to the Google Groups "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nitrogenweb...@googlegroups.com.
To post to this group, send email to nitro...@googlegroups.com.
Visit this group at http://groups.google.com/group/nitrogenweb.
For more options, visit https://groups.google.com/d/optout.

Samir

da leggere,
9 mar 2015, 12:09:3109/03/15
a nitro...@googlegroups.com
Hi Jesse,

I'm still excepting your help regarding this issue.

Thank you

Sincerely

Samir

Jesse Gumm

da leggere,
9 mar 2015, 12:11:5309/03/15
a nitrogenweb

Yep, I'm sorry, I was out of town for part last week. But Ill be looking into this this week.

Sorry for my non-responsiveness.

-Jesse

--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

Ramkrishna Kulkarni

da leggere,
11 mar 2015, 23:15:1411/03/15
a nitro...@googlegroups.com
Hello Samir,

I tried this but could not reproduce. Event is generated only once. I'm on Ubuntu, Erlang 17.4 with Cowboy.

What are your environment details? Nitrogen and Erlang version, HTTP server type, OS etc?

Jesse Gumm

da leggere,
12 mar 2015, 18:10:0512/03/15
a nitrogenweb
Hi Samir,

I'm so sorry this is taking so long. I've been completely swamped the
past two weeks. To simplify this, could you post a completed sample
project demonstrating this behavior which I could then simply clone
and run to see what it does? Otherwise, there are things like the
templates, additional JS, or any other factors that might be causing
unintended side effects.

If you're uncomfortable giving it out publicly, feel free to email
directly to me (gu...@sigma-star.com).

Thanks,

-Jesse
> --
> You received this message because you are subscribed to the Google Groups
> "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nitrogenweb...@googlegroups.com.
> To post to this group, send email to nitro...@googlegroups.com.
> Visit this group at http://groups.google.com/group/nitrogenweb.
> For more options, visit https://groups.google.com/d/optout.



--
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi