Page 1 of 1

Product Tell a friend as popup

Posted: Thu Mar 05, 2009 10:26 am
by mazhar
You can use this conlib control to have product tell a friend functionality as a popup. There is one important thing which is if you have popup control on you page then you can't have standard product tell a friend control on same page. When you place this control in product details page it will just render a link "Send Product". When you click this link it will open a popup.
The control exposes two settings LinkCaption through which you can change the text of Send Product link and other is PopupCaption through which you can change the header of popup. In order to use control where you want popup functionality just put following code in scriptlet

Code: Select all

[[ConLib:SendProductPopup]]

Re: Product Tell a friend as popup

Posted: Fri Oct 09, 2009 5:21 am
by jmestep
The code I downloaded from here doesn't have the close button on it and I can't find it in other files for the Send to Friend. Can you post the code for that button? With what I have, there is no way to close when finished.
Thanks

Re: Product Tell a friend as popup

Posted: Fri Oct 09, 2009 5:34 am
by mazhar
Its there I just installed the files. you can see

Code: Select all

<asp:Button ID="CancelAddButton" runat="server" Text="Close" CausesValidation="false" />
in code file. Ajax it self handles click and close event on it. All you need to tell ModalPopupExtender that which one is to be used as close button.

Re: Product Tell a friend as popup

Posted: Fri Oct 09, 2009 6:59 am
by jmestep
OK, I'm really being dense. I've tried it a couple of places in the content scriptlet for the product page and tried a couple of different versions I have downloaded. I'll work on it- I found one control that had the Close button in the popup. I might have something wrong, but below is what I was getting.
pop.JPG
pop2.JPG

Re: Product Tell a friend as popup

Posted: Mon Oct 12, 2009 7:27 am
by jmestep
I got this to work OK. I had an extra email to friend control on the product page from when I had been experimenting.

Re: Product Tell a friend as popup

Posted: Wed Nov 18, 2009 10:40 am
by jmestep
A new question:
A client wants to move all the javascript out of the top of the page for SEO purposes and when I did that, the modal popup didn't work. Is there a way I can isolate that one section of javascript and not move it? What would I look for?
Thanks