Ok, im on it :) but need a little help, cause im not so familiar with JS:

in productsummary.ftl is i.ex:

/ <form method=&quot;post&quot;
action=&quot;&lt;@ofbizUrl>additem</@ofbizUrl>"  id="additem" 
name="the${requestAttributes.formNamePrefix?if_exists}${requestAttributes.listIndex?if_exists}form"
style="margin: 0;">
              <input type="hidden" name="add_product_id"
value="${product.productId}"/>
              <input type="text" size="5" name="quantity" value="1"/>
              <input type="hidden" name="clearSearch" value="N"/>
              <input type="hidden" name="mainSubmited" value="Y"/>
              
javascript:document.the${requestAttributes.formNamePrefix?if_exists}${requestAttributes.listIndex?if_exists}form.submit()
${uiLabelMap.OrderAddToCart} /

I added the following JS:
/jQuery(function ($) {  
        $('#additem').click(function (e) {
                $('#basic-modal-content').modal();
                return false;
        });
});/
the JS methods for it I added and linked to them. It works, that the
modal-window / layer opens, but the post data were not send. DO you know how
I can send the post data and then open the window afterwards?

Would be great - still on learning.

Greetings,

Robert


Adrian Crum-3 wrote
> 
> Go to the jQuery website for examples.
> 
> -Adrian
> 
> 


--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/view-last-vie-last-page-tp4550249p4555654.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to