How is it possible to
update a usercontrol implemented as a macro in Umbraco from another usercontrol
witch also is implemented as a macro?
My scenario is that I have
a shopping list and a cart, which is 2 separate usercontrols, now I want to
update the cart when a item is put into to the shopping cart, and i want to do
it without a postback. But hov can I do that?
I did a blog last year on how you can have multiple controls on a page interact with each other via JavaScript, and you could make those interactions perform AJAX requests if so desired.
It's not an Umbraco-related post, and this problem you're trying to solve isn't really Umbraco specific.
How to update a usercontrol (Macro) from another usercontrol (Macro) with AJAX
<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520092929 1073786111 9 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} p {mso-style-noshow:yes; mso-style-priority:99; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman";} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:595.3pt 841.9pt; margin:3.0cm 2.0cm 3.0cm 2.0cm; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->
How is it possible to update a usercontrol implemented as a macro in Umbraco from another usercontrol witch also is implemented as a macro?
My scenario is that I have a shopping list and a cart, which is 2 separate usercontrols, now I want to update the cart when a item is put into to the shopping cart, and i want to do it without a postback. But hov can I do that?
Thanks in advance!
You might want to look into umbraco /base. That might be your cleanest solution.
cheers,
doug.
Hello Douglas, thanks for your reply!
Could you explain a little deeper, how to use Umbraco /base to make the 2 usercontrols interact with each other?
Thanks in advance!
I did a blog last year on how you can have multiple controls on a page interact with each other via JavaScript, and you could make those interactions perform AJAX requests if so desired.
It's not an Umbraco-related post, and this problem you're trying to solve isn't really Umbraco specific.
See the post here - http://www.aaron-powell.com/blog/january-2009/fun-with-a-client-event-pool-and-modal-popups.aspx
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.