Archive

Archive for February, 2011

mailto using javascript

February 21, 2011 Leave a comment

some time it is required to set mailto using javascript.

let us write a JavaScript function this.

<script type=”text/javascript”>

function sendmail() { var user=”apps”; var domain=”mydomainame.com”;      document.location=”mailto:”+user+”@”+domain;     }

</script>

now you can call this function using any event or method lets suppose we use onclick event of an div.

<div id=”click-me” name=”click-me” onclick=”sendmail()”>click me </div>

Voila, it opened my outlook.

Advertisements

configure phpmyadmin for remote access suing wamp

February 15, 2011 Leave a comment

browse the installed wamp directory as

khalid:\\ wamp\alias\phpmyadmin.conf

and allow the remote address as follows

Allow from all

this will allow all host to be able to access  phpmyadmin

if you wana limit to some ip address then put the IP instead of “all” e.g.

Allow from 10.0.0.10

this will allow all host to be able to access  phpmyadmin.

now it will look like as follows

 

 

  1. Alias /phpmyadmin “c:/wamp/apps/phpmyadmin2.10.1/”
  2. <Directory “c:/wamp/apps/phpmyadmin2.10.1/”>
  3. Options Indexes FollowSymLinks MultiViews
  4. AllowOverride all
  5. Order Deny,Allow
  6. Deny from all
  7. Allow from all
  8. </Directory>

 

 


 

Categories: Uncategorized