Page 1 of 3
Search Submit to another page parameters
Posted: Wed Jul 24, 2013 2:00 am
by Houssan Hijazi
Hi,
i have a search component with event search go to another page called Search, in page Search on load i invoke my service and populate a grid. If i make submit to another page the parameters is going in request?
thanks
Search Submit to another page parameters
Posted: Wed Jul 24, 2013 2:04 am
by maxkatz
Search Submit to another page parameters
Posted: Wed Jul 24, 2013 2:34 am
by Houssan Hijazi
Hi,
thanks for your answer, works fine with local storage first time, but when try submit again inside the page called Search, is not work. Work only on first submit. Can help me?
thanks
Search Submit to another page parameters
Posted: Wed Jul 24, 2013 2:42 am
by maxkatz
Check to make sure the button click is invoked again (put a debug statement).
Search Submit to another page parameters
Posted: Wed Jul 24, 2013 2:45 am
by Houssan Hijazi
YEs, is inviked again because it is inside a template. How i can put in debug statement?
Search Submit to another page parameters
Posted: Wed Jul 24, 2013 3:02 am
by maxkatz
Can you explain what you mean by template?
You can use
console.log(...);
Search Submit to another page parameters
Posted: Wed Jul 24, 2013 4:00 am
by Houssan Hijazi
Template with workarea.
i have a template called HomeTemplate with a search box and a work area, i created the pages called Home and Busca using this template HomeTemplate.
In HomeTemplate i have:
http://d.pr/i/1aPh
to Local Storage (and go to other page called Busca
in Search page i have:
http://d.pr/i/UpIo
When i submit from Home to Busca the to Local Storage works and busca_service works to. So when i try submit again inside the page Busca is not work.
any help?
Search Submit to another page parameters
Posted: Wed Jul 24, 2013 10:05 am
by maxkatz
Try switching to page show event. Load event is only invoked once -- when the page loads for the first time.
Search Submit to another page parameters
Posted: Wed Jul 24, 2013 7:49 pm
by Houssan Hijazi
Search Submit to another page parameters
Posted: Wed Jul 24, 2013 7:57 pm
by Maryna Brodina
Hello! I think Max meant you need to use Show event instead of Load.