2009年7月15日星期三

Re: [fw-mvc] Popup Window

-- Guillermo Caserotto <guillermo.caserotto@gmail.com> wrote
(on Wednesday, 15 July 2009, 03:04 PM -0300):
> Hi all, I am having some problems when i tried to use popup windows with zend.
>
> Here is my problem:
>
> I have a form with two fileds, for ex. <input name="text1" ...> <input
> name="text2" ...>
> And use Javascript to put a popup window and select de value on the
> text with <A HREF="" onClick="popup()" >
>
> But when I clic on the link and appears the popup window the main
> window refresh and all the values that I had desappear!


This isn't really a framework issue -- it's an HTML issue.

Either remove the href from your <a> tag, or change the value to "#".


> And another example, I select a value in the text1 it works fine, but
> when I clic in the other field to fill the value with the popup window
> the vlaue in text1 is no more.
>
> Hope that you can help me and sorry for my poor english!

--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: