form submit to popup
Hello folks. Time for me to use the knowledge of the community again. Some background to enlighten my problem: In a form I have a textarea and a few buttons (cancel, reload, update and preview). Upon creation I load into the textarea some html that is stored in the database. The html is used as a template for creating emails. Eg: html body Dear 'customername'. bla bla /body /html To the preview button is actually a BookmarkablePageLink created as suggested in the Linkomatic example (except that I have PageParameters as well) and it opens a popup. PageParameters pp = new PageParameters(); pp.add(content, txtArea.getModelObjectAsString()); PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class, pp).setPopupSettings(popupSettings)); Now, the problem is that the PageParameter is added at creation time, hence no matter what changes are made in the text area, I can not pass it to the Popup so that I can view the changes. How can I make this happen? Sorry if this is a stupid question, but bare with me, I'm just a newbie. Also, let me know if you need clarification. TIA, Jörgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: form submit to popup
if you want this to work with a bookmarkable link then the only way to do it is to use javascript to add textarea's content to the url. but it isnt really safe to pass this on the url because those have a character limit... -igor On Mon, Mar 10, 2008 at 2:36 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello folks. Time for me to use the knowledge of the community again. Some background to enlighten my problem: In a form I have a textarea and a few buttons (cancel, reload, update and preview). Upon creation I load into the textarea some html that is stored in the database. The html is used as a template for creating emails. Eg: html body Dear 'customername'. bla bla /body /html To the preview button is actually a BookmarkablePageLink created as suggested in the Linkomatic example (except that I have PageParameters as well) and it opens a popup. PageParameters pp = new PageParameters(); pp.add(content, txtArea.getModelObjectAsString()); PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class, pp).setPopupSettings(popupSettings)); Now, the problem is that the PageParameter is added at creation time, hence no matter what changes are made in the text area, I can not pass it to the Popup so that I can view the changes. How can I make this happen? Sorry if this is a stupid question, but bare with me, I'm just a newbie. Also, let me know if you need clarification. TIA, Jörgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: form submit to popup
Igor, thanks for your reply. To me it doesn't matter how it's done, as long as I can do it :) Do you have any suggestion of a safer way? /Jörgen Igor Vaynberg skrev: if you want this to work with a bookmarkable link then the only way to do it is to use javascript to add textarea's content to the url. but it isnt really safe to pass this on the url because those have a character limit... -igor On Mon, Mar 10, 2008 at 2:36 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello folks. Time for me to use the knowledge of the community again. Some background to enlighten my problem: In a form I have a textarea and a few buttons (cancel, reload, update and preview). Upon creation I load into the textarea some html that is stored in the database. The html is used as a template for creating emails. Eg: html body Dear 'customername'. bla bla /body /html To the preview button is actually a BookmarkablePageLink created as suggested in the Linkomatic example (except that I have PageParameters as well) and it opens a popup. PageParameters pp = new PageParameters(); pp.add(content, txtArea.getModelObjectAsString()); PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class, pp).setPopupSettings(popupSettings)); Now, the problem is that the PageParameter is added at creation time, hence no matter what changes are made in the text area, I can not pass it to the Popup so that I can view the changes. How can I make this happen? Sorry if this is a stupid question, but bare with me, I'm just a newbie. Also, let me know if you need clarification. TIA, Jörgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: form submit to popup
safer way would be to replace the textarea with a label that displays the html. that way you are not passing anything on the url... -igor On Mon, Mar 10, 2008 at 3:14 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Igor, thanks for your reply. To me it doesn't matter how it's done, as long as I can do it :) Do you have any suggestion of a safer way? /Jörgen Igor Vaynberg skrev: if you want this to work with a bookmarkable link then the only way to do it is to use javascript to add textarea's content to the url. but it isnt really safe to pass this on the url because those have a character limit... -igor On Mon, Mar 10, 2008 at 2:36 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello folks. Time for me to use the knowledge of the community again. Some background to enlighten my problem: In a form I have a textarea and a few buttons (cancel, reload, update and preview). Upon creation I load into the textarea some html that is stored in the database. The html is used as a template for creating emails. Eg: html body Dear 'customername'. bla bla /body /html To the preview button is actually a BookmarkablePageLink created as suggested in the Linkomatic example (except that I have PageParameters as well) and it opens a popup. PageParameters pp = new PageParameters(); pp.add(content, txtArea.getModelObjectAsString()); PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class, pp).setPopupSettings(popupSettings)); Now, the problem is that the PageParameter is added at creation time, hence no matter what changes are made in the text area, I can not pass it to the Popup so that I can view the changes. How can I make this happen? Sorry if this is a stupid question, but bare with me, I'm just a newbie. Also, let me know if you need clarification. TIA, Jörgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]