This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var iFrameBody = ''; | |
| $('#iframe').load(function(){ | |
| iFrameBody = $(this).contents().find('body'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Get the currently selected option's value | |
| $(this).val(); | |
| //Get the currently selected option's title | |
| $(this).text(); | |
| //Set the currently selected option to the supplied value | |
| $(this).val('value'); | |
| //Get an option with a specified value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Like so | |
| $this->getContext()->getRequest()->setAttribute('populate', new AgaviParameterHolder(array( | |
| 'question[0]' => 'Can you eat cheese?', | |
| 'answer[0]' => 'No' | |
| )), 'org.agavi.filter.FormPopulationFilter'); | |
| // Or like so... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // With ID | |
| $populate =& $this->getContext()->getRequest()->getAttribute('populate', 'org.agavi.filter.FormPopulationFilter'); | |
| $populate['form-id-1'] = new AgaviParameterHolder(array( | |
| 'question[0]' => 'Can you eat cheese?', | |
| 'answer[0]' => 'No' | |
| )); | |
| $populate['form-id-2'] = new AgaviParameterHolder(array( | |
| 'question[0]' => "How many frags do I have to get before I'm considered awesome?", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('#dialogue').dialog({ | |
| modal: true, | |
| open: function() { | |
| $("#ui-datepicker-div").css("z-index", $(this).parents(".ui-dialog").css("z-index")+1); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $article['full_text'] = preg_replace('/^([\<\sa-z\d\/\>]*)(([a-z\&\;]+)|([\"\'\w]))/', '$1<span class="drop-cap">$2</span>', $article['full_text']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if($.browser.mozilla) { | |
| $("form").attr("autocomplete", "off"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Treffynnon; | |
| /** | |
| * A PHP class to access a PHP array via dot notation | |
| * (Agavi http://www.agavi.org was the inspiration). | |
| * | |
| * This was hacked in to an existing codebase hence the | |
| * global config array variable. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file is /etc/apache2/httpd.conf | |
| # This file is automatically included by Ubuntu in /etc/apache2/apache2.conf | |
| Include /etc/apache2/dev-server.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine on | |
| RewriteBase / | |
| # force url to lowercase | |
| RewriteCond %{REQUEST_URI} [A-Z] | |
| # ensure it is not a file on the drive first | |
| RewriteCond %{REQUEST_FILENAME} !-s | |
| RewriteRule (.*) rewrite-strtolower.php?rewrite-strtolower-url=$1 [QSA,L] |