Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #10K
Ranked #2K
~11.6K People Reached

19 Posted Topics

Member Avatar for amby

json data is not correct. it should be data: "{'ntid': "+$('#Eid').val()+"}", or data : {'ntid' : $('#Eid').val()}, dependent on your server side functionality

Member Avatar for anand9796
0
9K
Member Avatar for i_luv_c++

[CODE] use strict; [/CODE] helps to fix all typo in the src and keep your time. in development mode and debug mode it is good to use it always. live app can have it disabled for performance

Member Avatar for djacob
0
321
Member Avatar for Virangya

In your case I would like to investigate created frameworks like onphp or phoebius. There are enough doc to get it clear. [url]http://www.onphp.org/doxy/trunk/[/url] [url]http://phoebius.org/[/url]

Member Avatar for vitana
0
55
Member Avatar for softx
Member Avatar for vitana
0
322
Member Avatar for rukshilag

You need dynamic create iframe and put required data to this created iframe, then print this iframe. it is flexible way and allows you modify printable page as you need

Member Avatar for vitana
0
160
Member Avatar for tsachin1

If you have modified browser security to open local host pdf file then you can load it to iframe and call window.print(). if browser has installed pdf plug-in then everything will work good. If your browser does not have modified security then you can load pdf file from server only …

Member Avatar for vitana
0
167
Member Avatar for shep32

I am confused why you make client side validation. It can be skipped too simple and incorrect data will be submitted to server. May be read my article about validation issue. it is PHP based but I use the same in .Net applications as well. Described way can be implemented …

Member Avatar for shep32
0
104
Member Avatar for Izzy123

[QUOTE=Izzy123;1190343]Anyone know how do I use javascript to limit the numeric amount enetered in a text box less than 1000?[/QUOTE] check is it number or not with isNaN and then convert to int with parseInt. now you can compare it with any number

Member Avatar for vitana
0
56
Member Avatar for boomop

May be better to use some free javascript toolkit to study how it works and faster get result like : Prototype or jQuery or Mootols or Dojo

Member Avatar for boomop
0
132
Member Avatar for Santho786

hm.... I do not see any problem to get max number from array. Usually I use following function [CODE] Array.prototype.max=function() { if (this.length == 0) return {'index':-1}; var maxIndex = 0; for (var i = 1; i<this.length; i++) if (this[i]>this[maxIndex]) maxIndex = i; return {'index':maxIndex, 'value':this[maxIndex]}; } [/CODE] It returns …

Member Avatar for Santho786
0
232
Member Avatar for phpDave

[QUOTE=phpDave;1178510]Hi everyone, I am trying to validate a user registration form. User must enter letters and/or letters only. [CODE]//check username $_POST['user_name'] = trim($_POST['user_name']); $checkChar ='/^[a-zA-Z0-9]+$/'; if (!preg_match($checkChar, ($_POST['user_name']))); { $error['char'] = 'Username must contain letters or numbers only'; }[/CODE] When I submit the error message keeps coming up when it …

Member Avatar for vitana
0
206
Member Avatar for suri mariabell

[QUOTE=suri mariabell;1178771]How can I assign a user can only login to a web application via a particular valid client PC? If I have 20 clients, I want to restrict the PC no.1 for a user A to login, PC no.2 for a user B login and they cannot login to …

Member Avatar for vitana
0
76
Member Avatar for Vigasdeep

It is not good to use $_POST value directly in the sql query. at least need prevent some sql injections... But if you really need it as is then you lost one ' between brackets ]) or use like this $ql="INSERT INTO stud (name) VALUES ('".$_POST['sname1']".')"; Best Vitana [url]http://vitana-group.com/[/url]

Member Avatar for BzzBee
-1
128
Member Avatar for phpDave

Everything looks correct. What does not work in IE:? 1. IE does not get "abc" and db is not updated 2. "abc" has incorrect value 3. redirect to $updateGoTo does not work first and second you can check with debug echo, third you can check with some http sniffer

Member Avatar for phpDave
0
114
Member Avatar for rahul8590

I have checked latest code, it works but unfortunately "What is your NAme ?" I get even after entering the name. May be better to use following code [CODE] <?php $flag = false; $your_name = @$_POST['your_name']; if (empty($your_name)) $your_name = "(Not entered)"; else $flag = true; $uncle_name = @$_POST['uncle_name']; ?> …

Member Avatar for rahul8590
0
138
Member Avatar for bulgin

[QUOTE=bulgin;1173125]Is there a method in Linux to monitor a port for activity, then when found, execute a script? For example, when tftp port 69 is accessed, run a script that runs commands. thank you.[/QUOTE] You can use nmap (linux tool) to find opened ports and run required your script, or …

Member Avatar for vitana
0
83
Member Avatar for ninja_girl

this module provides simple xml functionality only. in your case I prefer to create recursive function to discover hashes in the $data because it takes few lines

Member Avatar for vitana
0
90
Member Avatar for lastlight

[QUOTE=lastlight;1174923]Ok nice to know. So how can I open a program on the client machine when a user opts to do so in the browser (In this case, by using check boxes and a submit button) ? This is running on a local network, so each client will be setup …

Member Avatar for vitana
0
124
Member Avatar for saiprem

I assume you need make it with apache (because make it in php is too easy): - need enable apache modules mod_rewrite and mod_proxy - need create required rules to modify url - need send modified url-s to apache proxy - need disable supporting external request by apache proxy if …

Member Avatar for vitana
0
125

The End.