Whenever I minify the AdSense script I got from Google, it stops working. Any ideas why?  Original Code:  <script type="text/javascript"><!-- google_ad_client = "xxx"; /* Ad 1 */ google_ad_slot = "2668798369"; google_...
It gives me blank page...  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> {if $tpl...
I have a problem with my code. It should display red inputbox if I don't match regex else it should appear as green inputbox.    function IsValid(pole, regex) {   if (regex.test(pole.value)) {     pole.className = "ok";     return true;...
My php generates some type from the DB and it is passed to a Smarty Variable $X.  With the help of Jquery, I want to be able to click a button, and the content of one of my div will be be replace with $X.  $(document).ready(function(){   $("butto...
I have developed php-smarty based web application, a page is very heavy due to google-map and lot of HTML codes. Its all about greater than 1mb at load time. I am trying to compress it because it is updating frequently.  I used:  .htaccess configurat...
I've following smarty template code:  <style type="text/css"> {literal} li{    display:block; } li.tooltip {   position:relative;   display:inline-block;   cursor:pointer;   width:300px;   text-align:right; } li.tooltip > ul li.i...
I'm using PHP and smarty. I'm bit new to jQuery. I've written a function in jQuery and calling this function on form submit. Currently I'm showing the error message in alert. But the requirement is it should be displayed above the for...
I need to inline some javascript code into the Smarty template files and these {ldelim} {rdelim} things are killing me. Is there a way to tell smarty to ignore the markup for a block and just output it as is? Something similar to CDATA blocks in the...
I am implementing google map api for my website, but smarty is throwing some kind of syntax error in the javascript module. This is really surprising because I just copied the code from examples given on google's website.  Smarty Says:     on lin...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.