ALMIGHTY TECH
Member level 3
hello all friends..
i want to pass the value from javascript to c.
--------------------------------------------------------------
printf("<script type=\"text/javascript\">\n");
printf("function displayResult\n");
printf("if (document.getElementById.value ==\"ON\")\n");
printf("{document.getElementById.value =\"OFF\";}\n");
printf("else {document.getElementById.value =\"ON\";}\n}");
printf("</script>\n");
-----------------------------------------------------------
i have used javascript in c. as you can see above..
now i want to pass the value from javascritp to c..
there is 'if' condition in javascript,
i want to assign value to c variable, if ('if' of javascript) condition become true ..
kidnly reply..
i want to pass the value from javascript to c.
--------------------------------------------------------------
printf("<script type=\"text/javascript\">\n");
printf("function displayResult\n");
printf("if (document.getElementById.value ==\"ON\")\n");
printf("{document.getElementById.value =\"OFF\";}\n");
printf("else {document.getElementById.value =\"ON\";}\n}");
printf("</script>\n");
-----------------------------------------------------------
i have used javascript in c. as you can see above..
now i want to pass the value from javascritp to c..
there is 'if' condition in javascript,
i want to assign value to c variable, if ('if' of javascript) condition become true ..
kidnly reply..