Search Results

Search found 2 results on 1 pages for 'stepppo'.

Page 1/1 | 1 

  • jQuery slideToggle flicker in Firefox

    - by Stepppo
    I have a specific situation with slideToggle that creates a flicker in Firefox. The situation was when the expanding element goes longer than the page and a vertical scrollbar appears in Firefox. If you scroll down to read all of the text in the expanding element and then click on the trigger to close the element, Firefox would flash for a second and then the page readjusts and returns to its position before the expanded element was expanded. I have tried adding ‘return false;’ to no avail. Here's a test page where you can see the effect in FF when you click to close the last item (Herbal Teas): http://pollak-labs.com/clients/birthyourself/?page_id=21

    Read the article

  • Possible to add javascript to Zend_Form_Element_Radio?

    - by Stepppo
    Ultimately, I'd like my Zend Form to render this HTML: <p>Do you have any documents to upload?</p> <p>Yes <input type="radio" value="Yes" name="uploadChoice" onClick="showTable()">&nbsp;&nbsp;No <input type="radio" value="No" name="uploadChoice" onClick="hideTable()" checked></p> Here's what I have in my Zend_Form: //create radio buttons $uploadQuestion = new Zend_Form_Element_Radio('upLoadQuestion'); $uploadQuestion->setLabel('Do you have any documents to upload?') ->addMultiOptions(array( 'yes' => 'Yes', 'no' => 'No' )) ->setSeparator(' '); The problem I'm running into is how to add the onClick="showTable()" and onClick="hideTable()" elements to their respective radio buttons. In the alternative, I could rework the javascript and add something like onClick="toggleTable()" to the radio buttons if I can't add something different to each of the radio buttons. But, will Zend let me do that?

    Read the article

1