Jump to content

vinpkl

Members
  • Posts

    448
  • Joined

  • Last visited

Everything posted by vinpkl

  1. Hi all I am using magnific popup script to open two popups. First popup is opening on click of a link. Second popup is opening automatically on page load after 5 second interval. Now i want is, if First magnific Popup is already opened, then second magnific popup should not open till first is open. How can i do it ?? here is a codepen http://codepen.io/vineet/pen/EjvxLN Thanks Vineet
  2. Hi Barand This worked perfect. Thanks Vineet
  3. Hi i have below format date and time stored in database 2015-06-06 02:13:54 How can i reformat it, so it displays as 06-06-2015 02:13:54 Thanks Vineet
  4. Hi Gizmola thanks for this solution. if worked for me thanks vineet
  5. Hi How can i create a client id which is 64 bit integer as described on this below link https://developers.google.com/analytics/devguides/collection/protocol/v1/email#client-id-cid thanks Vineet
  6. Hi fastsol What is the solution for the tracking text emails, in which images are not displayed or email type is not html thanks vineet
  7. Hi fastsol If instead of an fake transparent image, if i want to have an original image say my logo image <img src="logo.jpg?track.php?id=123" > Will it be fine to have two "?" signs in the url or img src. vineet
  8. Hi I have read on internet that the companies track email as "open" by inserting an transparent image. But i am not able to found what actually they insert into the source code of that image that marks or updates in the database as "open". Do they insert an update query into the source code of image ?? Can please tell me a example with img src ?? Thanks Vineet
  9. Hi Ch0cu3r Thanks for the explanation vineet
  10. Hi If i run the below script then both the dates are displayed after delay of 15 seconds. But i think 1st date should get displayed instantly and 2nd should get display after 15 seconds. But its not happening ?? <?php echo date('H:i:s'); sleep(15); echo "<br>"; echo date('H:i:s'); ?> Vineet
  11. Thanks Cyberrobot Got it working now Vineet
  12. Hi all I want to show subcategories on only the selected dealer But the below code is showing subcategories on all dealers. » Blackberry (3) » Battery (2) » Samsung (1) » Battery (1) If Blackberry dealer is selected then only its subcategories should be visible. Samsung subcategories should be hidden. <?php $qry_sub="select distinct s.subcid, s.subname from subcategories as s INNER JOIN producttable as p ON s.subcid = p.subcatg and p.dealerid = ".$dealer_id." and p.status='Y'"; //echo $qry_sub; echo "<ul>"; $result_sub=mysql_query($qry_sub); while($row_sub=mysql_fetch_array($result_sub)) { echo "<li></li>"; } echo "</ul>"; ?> Thanks Vineet
  13. Hi can anyone tell me why this code is not working in chrome emulator You can select devices like "Google nexus 4, Google nexus 5" or similar which has width less than 480 Border and padding is not getting applied. Floating is also not working ?? <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <style type="text/css" media="screen"> @media screen and (max-width:480px){ .firstcol{width:90%; border:1px solid #ff0000; padding:10px; font-size:2em} .secondcol{width:90%; border:1px solid #ff0000; padding:10px; font-size:2em} } @media screen and (min-width:600px) and (max-width:800px){ .firstcol{width:42%; float:left; border:1px solid #ff0000; padding:10px; font-size:2em} .secondcol{width:42%; float:left; border:1px solid #ff0000; padding:10px; font-size:2em} } </style> </head> <body> <div class="firstcol">This is the first column</div> <div class="secondcol">This is second column</div> </body> </html> Thanks Vineet
  14. Hi I have an old ecommerce website in which all queries are based on LOGIN ID. select * from user_table where user login id = '$loginid' Now i have a requirement of creating "CHECKOUT AS GUEST" feature. So should I create TWO separate database tables for Member and Guest. OR Single table for both. And Then on what basis shall i do the queries. So that my queries should work in both case, whether user is a MEMBER or a GUEST. Thanks Vineet
  15. Hi I want to import 4MB sql file into Phpmyadmin in xampp But on import page the limit is to 16384 Kib see screenshot http://s30.postimg.org/5tkeybnu9/16kib.gif How can i increase this limit In Xampp/php/php.ini i have already set post_max_size = 128M upload_max_filesize = 128M Does anyone has a solution to this problem ?? Thanks Vineet
  16. Hi jazz Images are already displaying fine from "/images" folder on the root. I want to access and display images from "/colorbox/images/" folder thanks vineet
  17. Hi Jazz there are 2 separate images folder on my server http://domain.com/images http://domain.com/colorbox/images thanks vineet
  18. hi all i am using this below code in htaccess RewriteCond %{HTTP_REFERER} !^http://(.+\.)?domain\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|bmp|png|swf)$ /images/nohotlink.gif [L] Also I am using colorbox script to show content in popup. I have some images in "images" folder inside "colorbox" folder on the root on local server (xampp) The above code in htaccess file is not showing "images" from this images folder that is inside colorbox folder on root on local server (xampp) If i comment those 3 lines in htaccess file then all images are shown fine on local server (xampp). How can i allow my htaccess file to show these images from inside colorbox folder on local server (xampp)?? Thanks Vineet
  19. Hi Pravin This code works perfect. Thanks a lot Vineet
  20. Hi Pravin I tried your code. It is showing the alert even if i have checked 2 checkboxes. I dont want to show alert if the checkboxes have been checked. Vineet <html> <head> <script language="javascript"> function checkForm(){ var obj = document.getElementsByName('dest[]'); var destCount = obj.length; var destSel = false; for(i = 0; i < destCount; i++){ if(obj.checked == false){ destSel = true; break; } } if(!destSel){ alert('Select one or more destinations'); } return destSel; } </script> </head> <body> Select at least one destination <form action="" method="post"> <input id="cx" type="checkbox" name="dest[]" value="CX" /> <label for="cx">Cox's Bazar</label><br /> <input id="su" type="checkbox" name="dest[]" value="SU" /> <label for="su">Sundarban</label><br /> <input id="sy" type="checkbox" name="dest[]" value="SY" /> <label for="sy">Sylhet</label><br /> <input id="ch" type="checkbox" name="dest[]" value="CH" /> <label for="ch">Chittagong</label><br /> <br /> <input type="submit" name="Go" value=" Go " onclick="return checkForm();"/> </form> </body> </html>
  21. Hi Pravin I just tested your code but it doesnt show alert. it doesnt works vineet <html> <head> <script language="javascript"> function checkForm(frm){ var destCount = frm.elements['dest[]'].length; var destSel = false; for(i = 0; i < destCount; i++){ if(frm.elements['dest[]'][i].checked){ destSel = true; break; } } if(!destSel){ alert('Select one or more destinations'); } return destSel; } </script> </head> <body> Select at least one destination <form action="" method="post"> <input id="cx" type="checkbox" name="dest[]" value="CX" /> <label for="cx">Cox's Bazar</label><br /> <input id="su" type="checkbox" name="dest[]" value="SU" /> <label for="su">Sundarban</label><br /> <input id="sy" type="checkbox" name="dest[]" value="SY" /> <label for="sy">Sylhet</label><br /> <input id="ch" type="checkbox" name="dest[]" value="CH" /> <label for="ch">Chittagong</label><br /> <br /> <input type="submit" name="Go" value=" Go " onclick="return checkForm(this);"/> </form> </body> </html>
  22. Hi all The below validation code works fine when the form gets submit. But i want to apply validation "onclick" of button instead of "onsubmit" How can i apply validation "onclick" of button instead of "onsubmit" <html> <head> <script language="javascript"> function checkForm(frm){ var destCount = frm.elements['dest[]'].length; var destSel = false; for(i = 0; i < destCount; i++){ if(frm.elements['dest[]'][i].checked){ destSel = true; break; } } if(!destSel){ alert('Select one or more destinations'); } return destSel; } </script> </head> <body> Select at least one destination <form action="" method="post" onSubmit="return checkForm(this);"> <input id="cx" type="checkbox" name="dest[]" value="CX" /> <label for="cx">Cox's Bazar</label><br /> <input id="su" type="checkbox" name="dest[]" value="SU" /> <label for="su">Sundarban</label><br /> <input id="sy" type="checkbox" name="dest[]" value="SY" /> <label for="sy">Sylhet</label><br /> <input id="ch" type="checkbox" name="dest[]" value="CH" /> <label for="ch">Chittagong</label><br /> <br /> <input type="submit" name="Go" value=" Go " /> </form> </body> </html> Thanks Vineet
  23. Hi no problem. May be someone who has worked with paypal script will able to help me thanks vineet
  24. Hi thanks for the reply. I would like to know Is IPN Compulsory for paypal script to work and complete transaction ? Can we complete paypal payment transaction without IPN Script ? Vineet
  25. Hi all This is the below error which is getting logged in the error log file PHP Warning: require_once() [<a href='function.require-once'>function.require-once</a>]: URL file-access is disabled in the server configuration in on line 10 PHP Warning: require_once(http://www.domain.com/paypal.inc.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: no suitable wrapper could be found in ipn.php on line 10 PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'http://domain.com/paypal.inc.php' (include_path='.:/php') on line 10 Below code is on line 10 in ipn.php require_once 'http://www.domain.com/paypal.inc.php'; what can be the problem ? thanks vineet
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.