Click here to Skip to main content
15,886,026 members

Comments by sharad_sharma82 (Top 19 by date)

sharad_sharma82 30-Nov-12 0:29am View    
Please login and then add any poll and click on the image upload icon you will find that functionality.
sharad_sharma82 2-Nov-12 4:14am View    
but i am working in MVC and using json for key response below is my code so please look at this:
Here is my Html code:

htmlUrls += '<textarea id="txt' + i + '' + response[i].UrlID + '" onkeyup="Trigger('+i+',' + response[i].UrlID + ','+userid+')" onfocus="if(this.value==' + delimiter + 'Write a comment....' + delimiter + ')this.value=' + delimiter + '' + delimiter + ';" onblur="if(this.value==' + delimiter + '' + delimiter + ')this.value=' + delimiter + 'Write a comment....' + delimiter + ';" class="textbox" rows="" cols="" >Write a comment....</textarea>';


Here is my JS function :
<pre lang="cs">function Trigger(counter, urlid, userid) {

var xTriggered = 0;
$('#txt' + counter + '').keyup(function (event) {
xTriggered++;
var msg = 'Handler for .keyup() called ' + xTriggered + ' time(s).';
}).keydown(function (event) {
if (event.which == 13) {
testcommnt(counter, urlid, userid); event.preventDefault();
}
});
// var firsttime = true;
}</pre>


but when i press enter its insert the detail multiple times i dont kw why
sharad_sharma82 2-Nov-12 4:14am View    
but i am working in MVC and using json for key response below is my code so please look at this:
Here is my Html code:

htmlUrls += '<textarea id="txt' + i + '' + response[i].UrlID + '" onkeyup="Trigger('+i+',' + response[i].UrlID + ','+userid+')" onfocus="if(this.value==' + delimiter + 'Write a comment....' + delimiter + ')this.value=' + delimiter + '' + delimiter + ';" onblur="if(this.value==' + delimiter + '' + delimiter + ')this.value=' + delimiter + 'Write a comment....' + delimiter + ';" class="textbox" rows="" cols="" >Write a comment....</textarea>';


Here is my JS function :
<pre lang="cs">function Trigger(counter, urlid, userid) {

var xTriggered = 0;
$('#txt' + counter + '').keyup(function (event) {
xTriggered++;
var msg = 'Handler for .keyup() called ' + xTriggered + ' time(s).';
}).keydown(function (event) {
if (event.which == 13) {
testcommnt(counter, urlid, userid); event.preventDefault();
}
});
// var firsttime = true;
}</pre>


but when i press enter its insert the detail multiple times i dont kw why
sharad_sharma82 11-May-12 2:41am View    
http://www.dreamstime.com/
http://us.fotolia.com/
http://www.istockphoto.com/search/text/rubber/source/basic#49fd7b2
please see these site i want to do language system like this ,where user can put any language keyword and system can find the details .
sharad_sharma82 6-Apr-12 10:28am View    
i have already tryed that but its not working for me :(