//reload 1 iframe $('#iframe').contentWindow.location.reload(true); //reload all iFrames $('iframe').each(function() { this.contentWindow.location.reload(true); }); //by changing source to the same source $('iframe').attr('src', $('iframe').attr('src'));
Month: August 2012
Here is a simple tutorial on how to develop a multilingual cakephp application through URLs, After having as desired number of language translation files in /app/Locale we want to direct the application to direct the application to use each language through URL prefix like http://www.application.com/eng/pages/about/ and http://www.application.com/ara/articles/view/123 1- First add this route to the default … Continue reading CakePHP: Multilingual application using URL routes
I had a problem in a page that gets it's content via an ajax request and place the result of the ajax request in a slider, I was testing it on other browsers, and It came to IE, passed IE9 and IE8, and when it came to IE7 I couldn't see the slider with it's … Continue reading Javascript parsing issue on IE7
I had a problem with my apache2 configuration that it seems not reading .htaccess files at all, I tried many solutions but nothing worked until I found this question on stackoverflow I'm not convinced with the solution but it worked fine for me ------------------------------------------------------------------------------------------------- To get this working, I added the following to /etc/apache2/httpd.conf (which is a … Continue reading Problem with Apache 2 on linux not reading .htaccess files
$ service apache2 restart
Task: Start Apache 2 Server # /etc/init.d/apache2 start or $ sudo /etc/init.d/apache2 start Task: Restart Apache 2 Server # /etc/init.d/apache2 restart or $ sudo /etc/init.d/apache2 restart Task: Stop Apache 2 Server # /etc/init.d/apache2 stop or $ sudo /etc/init.d/apache2 stop
just the command: sudo a2enmod rewrite
/****** Browser Detection ******/ function testCSS(prop) { return prop in document.documentElement.style; } var isOpera = !!(window.opera && window.opera.version); // Opera 8.0+ var isFirefox = testCSS('MozBoxSizing'); // FF 0.8+ var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; // At least Safari 3+: "[object HTMLElementConstructor]" var isChrome = !isSafari && testCSS('WebkitTransform'); // Chrome 1+ var isIE = /*@cc_on!@*/false || … Continue reading How to detect client browser?
To strip tags we can use the php function strip_tags($str) but it will return the content of the tags too, How to strip html tags and remove it's contents too ? /** * Remove HTML tags, including invisible text such as style and * script code, and embedded objects. Add line breaks around * block-level … Continue reading Strip HTML tags and it’s contents too
To get svn log from current path: svn log -v -r {2008-09-23}:{2008-09-24} To get svn log file and save it to a file: svn log -v -r {2008-09-23}:{2008-09-24} > report.txt To get svn log for another path: svn log <url> -r {2008-09-19}:{2008-09-26}