jquery using confirm box

$(‘.drop-cross-img’).live(“click”, function(){ var cross_img = $(this); var item_id = cross_img.attr(‘alt’); var item_tbl = cross_img.attr(‘rel’); //alert(item_tbl); var confirmation = confirm(‘Are you sure, you want to delete it?’); if(confirmation){ jQuery.ajax({ type:’POST’, url: “common/function_outfits.php”, data: “ajax=true&activity=delete_item&itemID=”+item_id+”&action=”+item_tbl, success: function(data){ if(data==’Item Deleted.’){ cross_img.parent().remove(); } } }); } });

jquery validationEngine form submit with ajax [Solved]

/* * Inline Form Validation Engine 1.7, jQuery plugin * * Copyright(c) 2010, Cedric Dugas * http://www.position-relative.net * * Form validation engine allowing custom regex rules to be added. * Thanks to Francois Duquette and Teddy Limousin * and everyone helping me find bugs on the forum * Licenced under the MIT Licence */ $(document).ready(function() … Read more

Simple viewer flickr

This site automatically publishes the images of this set in my Flickr album, without any manual intervention on my part. Ready to create your own? Here we go: 1 ° / Find a host To host your site, you need a server. If you want to use a free hosting, you can opt for Free, … Read more

Add Lumis Gallery to your site

The advantage of Lumis Gallery, is to propose a solution: – All your Flickr sets are taken into account – Comments are displayed directly on your site – You also get a “blog” automatic, which displays the descriptions of your Flickr account you choose – You have a page with a map of the world … Read more

Get Lat Long on google map

You can get the latitude and longitude of any location on google map by just clicking on that location. Check this out: But please make sure you have your own google api.. <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”content-type” content=”text/html; charset=utf-8″/> <title> Google Visualization API Sample </title> <!–<script type=”text/javascript” … Read more

[solved] Mailer Error: Could not instantiate mail function

Error is: Test emails work fine and so do small batches, but full lists (50+ users) report the following error in the eventlog shortly after queueing a batch: Quote: Mailer Error: Could not instantiate mail function The Reason: Bluehost limits email to 50 messages per hour by default. Once this limit has been exceeded, the … Read more

Login admin problem Magento on localhost

Sometime magento generate a problem with admin login. Not so worry follow me: go to here: \magento\app\code\core\Mage\Core\Model\Session\Abstract and open Varien.php file. Now comment the three lines from like this: // session cookie params $cookieParams = array( ‘lifetime’ => $cookie->getLifetime(), ‘path’ => $cookie->getPath(), /* ‘domain’ => $cookie->getConfigDomain(), ‘secure’ => $cookie->isSecure(), ‘httponly’ => $cookie->getHttponly() */ ); and … Read more

Categories PHP

Adding virtual host wamp server windows xp

here is the solution: open: c:\wamp\apache\apache2.2.8\bin\conf\httpd.conf add this at the end of this file NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot “e:/testsite/” ServerName testsite </VirtualHost> NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot “e:/” ServerName localhost </VirtualHost> and now open: C:\WINDOWS\system32\drivers\etc\hosts add this at the end 127.0.0.1 localhost 127.0.0.1 testsite and you can use your testsite using http://testsite and other projects … Read more

Categories PHP

INTERVIEW QUESTIONS PART 2

Q:1 What are the differences between Get and post methods in form submitting. give the case where we can use get and we can use post methods? A:1 When to use GET or POST The HTML 2.0 specification says, in section Form Submission (and the HTML 4.0 specification repeats this with minor stylistic changes): –>If … Read more

Categories PHP

INTERVIEW QUESTIONS PART 3

PHP interview questions, Part 2 Web dev interview questions 1. How can we repair a MySQL table? 2. What are the advantages of stored procedures, triggers, indexes? 3. What is the maximum length of a table name, database name, and fieldname in MySQL? 4. How many values can the SET function of MySQL take? 5. … Read more

Categories PHP