Form’s array element in javascript

How to access form’s array element in javascript? Web Post Mobile Post Application Post Open Source Post Solution: <form action=”<?=$_SERVER[‘PHP_SELF’]?>” method=”post”> <input name=”post[]” type=”checkbox” value=”web” /> Web Post <input name=”post[]” type=”checkbox” value=”mobile” /> Mobile Post <input name=”post[]” type=”checkbox” value=”application” />Application Post <input name=”post[]” type=”checkbox” value=”open” /> Open Source Post </form> <script type=”text/javascript”> for(i=0;i { if(document.sv.elements[i].type==”checkbox” … Read more

HTML WYSIWYG Editor for Fedora

http://kdewebdev.org/ Quanta Plus is a web development tool for the K Desktop Environment. Quanta is designed for quick web development and is rapidly becoming a mature editor with a number of great features and lies at the heart of the KDE Web Dev suite of tools. http://bluefish.openoffice.nl/ Bluefish is a powerful editor targeted towards programmers … Read more

Run C program in Linux

This is the simple C file “svnlabs.c” to execute on linux terminal #include int main() { int i; for(i=0;i<=5;i++) { printf(”n%d %s”,i,”svnlabs.com”); } printf(”n”); return 0; } Output: [root@localhost ~]# gcc svnlabs.c [root@localhost ~]# make svnlabs cc svnlabs.c -o svnlabs [root@localhost ~]# ./svnlabs 0 svnlabs.com 1 svnlabs.com 2 svnlabs.com 3 svnlabs.com 4 svnlabs.com 5 svnlabs.com … Read more

Run Java program in Linux

This is the sample java file “Svnlabs.java” to be executed on linux command line….. import java.lang.*; import java.io.*; public class Svnlabs { public static void main(String args[]) { System.out.println(”svnlabs.com”); } } Output: [root@localhost ~]# javac Svnlabs.java [root@localhost ~]# java Svnlabs svnlabs.com [root@localhost ~]#

wine – run Windows programs on Linux

wine – run Windows programs on Linux/Unix wine program.exe [arguments …] wine –help wine –version wine loads and runs the given program, where the program is a DOS, Win-       dows 3.x, or Win32 executable (x86 binaries only). This will display all the output in a  separate  win-dows (this requires X11 to run). Install wine on … Read more

Xmanager

Xmanager is a powerful and easy-to-use PC X server that runs on Windows platforms. It allows you to bring remote Unix/Linux desktops to your Windows PC seamlessly. You can also run remote X applications securely through the SSH (Secure Shell) protocol even when your Windows PC is inside a private network and a firewall is … Read more

Lab Tips

Database: 1. Delete all information from databse related to, if deleting user or any content from CMS. 2. Use PDO, ADO, Pear, Zend etc. library to connect to database. 3. Take regular backup for database. 4. Use better naming convension. Folders: 1. Use better naming convension. 2. Take regular backup for folders. 3. Protect project’s … Read more