tag:blogger.com,1999:blog-422673690916585356.comments2022-12-02T08:32:59.445+05:30C# | ASP.net | jQuery | Javascript | linqAvinashhttp://www.blogger.com/profile/11338220988745873438noreply@blogger.comBlogger27125tag:blogger.com,1999:blog-422673690916585356.post-72259363458364885862015-11-17T18:31:54.732+05:302015-11-17T18:31:54.732+05:30Please don't propagate badly verified solution...Please don't propagate badly verified solutions to handling the RFC2822 spec. It incorrectly identifies valid emails as bad. Compare your regex to this: http://www.ex-parrot.com/pdw/Mail-RFC822-Address.htmlCarl-Erikhttps://www.blogger.com/profile/07120809714327784013noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-43619293493243083522015-10-29T15:55:36.756+05:302015-10-29T15:55:36.756+05:30$("#referenceIncident").val('${form....$("#referenceIncident").val('${form.incident}'); inside the val we need to use $ suppose if we set it in spring mvc controller . the same value if you are using in jsp page then you need to use $ inside the val with single quotesAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-49417922236499443392015-10-29T15:52:59.088+05:302015-10-29T15:52:59.088+05:30it worked for me.it worked for me.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-53418043967025963862015-05-28T14:42:17.057+05:302015-05-28T14:42:17.057+05:30What is an issue?What is an issue?Avinashhttps://www.blogger.com/profile/11338220988745873438noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-42451823509600635692015-05-28T13:32:49.794+05:302015-05-28T13:32:49.794+05:30not working above codenot working above codeNiravVyashttps://www.blogger.com/profile/18279043064144309588noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-89743231792575316162013-09-05T15:23:13.502+05:302013-09-05T15:23:13.502+05:30If you use Chrome Browser or want users to be able...If you use Chrome Browser or want users to be able to use crome you probabli need to add: <br /><br />header("X-XSS-Protection: 0");<br /><br />Or the XSS protection in Chrome will not execute the script:<br />The XSS Auditor refused to execute a script in http://... because its source code was found within the request. The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header.<br />SdPhttps://www.blogger.com/profile/17216418534844408039noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-20195262553831056372013-06-21T06:19:31.030+05:302013-06-21T06:19:31.030+05:30I use the array push code commented above and then...I use the array push code commented above and then if I need a comma-separated string I just use:<br /><br />str = vals.join(',');Anonymoushttps://www.blogger.com/profile/06474480269243568010noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-77428956788292029522013-05-25T22:58:11.045+05:302013-05-25T22:58:11.045+05:30it wont parse the jquery response. jquery throwing...it wont parse the jquery response. jquery throwing error.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-18549087080365003342013-05-22T01:51:37.924+05:302013-05-22T01:51:37.924+05:30this does not work. It wont parse the response.this does not work. It wont parse the response.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-69771971678980800542013-05-10T17:58:55.339+05:302013-05-10T17:58:55.339+05:30Instead of
var textAreaValue = $("#txtMessag...Instead of <br />var textAreaValue = $("#txtMessage").text();<br />put<br />var textAreaValue = $("#txtMessage").val();<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-80152631897207581342013-04-25T17:33:46.535+05:302013-04-25T17:33:46.535+05:30Hello Alok,
You can use .keyup event of textbox i...Hello Alok,<br /><br />You can use .keyup event of textbox in your situation. In keyup take value from textbox and assign that value to the value of dropdown like:<br />$(document).ready(function () {<br /> $("#topics").keyup(function () {<br /> var value = $("#topics").val();<br /> if (value == "" || isNaN(value))<br /> value = 0;<br /> $("#topics1").val(value);<br /> });<br /> });<br /><br /><br />Check running code here: http://www.codegateway.com/2013/04/set-dropdown-text-selected-from-textbox.htmlAvinashhttps://www.blogger.com/profile/11338220988745873438noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-14866686390984304862013-04-25T16:30:17.285+05:302013-04-25T16:30:17.285+05:30Hi avinash,
I am using simple html and i want to d...Hi avinash,<br />I am using simple html and i want to do this:<br />1. My website visitor type his roll number in input text field.<br />2. Then select box automatically show the correct subject according to the roll number entered by visitor in text field. <br />For example:<br />Enter Roll no: [input type="text" name="rollno" ]<br />Choose subject: [select name="subject" id="subject" ]<br />[option value="1">Electronics[/option]<br />[option value="2">Maths[/option]<br />[/select]<br /><br />so when visitor enter roll no 1 in text box then select box automatically changes to Electronics and if he enter 2 in text box then select box automatically changes to Maths.<br /><br />Please help me how to do this?Alokhttps://www.blogger.com/profile/02043772437848120042noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-74653289489940499102013-01-24T01:13:28.582+05:302013-01-24T01:13:28.582+05:30This is not working :(This is not working :(Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-20971866152910258942012-10-19T12:50:18.585+05:302012-10-19T12:50:18.585+05:30I followed this tutorial by creating a table in th...I followed this tutorial by creating a table in the database where I stored the data of images in the stored table. After finishing with the code and running it I found the images being displayed successfully. Now thinking to modify this application to have more impressive output. Freddie Maddoxhttp://www.tatvasoft.com.au/technologies/asp-net-development.phpnoreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-8635749962788463342012-10-10T18:15:33.386+05:302012-10-10T18:15:33.386+05:30I am new to ASP.NET and there are many such terms ...I am new to ASP.NET and there are many such terms which are new to me, slowly getting to learn everything related to ASP.NET. Now it is<br />RequiredFieldValidator, next it will be something new to learn on. Jerome Fletcherhttp://www.tatvasoft.com.au/technologies/asp-net-development.phpnoreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-44957239972651577472012-10-05T14:33:24.998+05:302012-10-05T14:33:24.998+05:30Yes using array can be alternative option to store...Yes using array can be alternative option to store checked check box's. But it depends do you need comma separated string do you need array to store values. Avinashhttps://www.blogger.com/profile/11338220988745873438noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-10729441911498579322012-10-05T12:45:49.047+05:302012-10-05T12:45:49.047+05:30Better without last comma:
var vals = [];
$('...Better without last comma:<br /><br />var vals = [];<br />$('input:checkbox[name=numbers]:checked').each(function() {<br /> vals.push($(this).val());<br />});Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-87585334236073848922012-09-16T10:14:04.114+05:302012-09-16T10:14:04.114+05:30Thanks for pointing out to that idea; we had anoth...Thanks for pointing out to that idea; we had another solutions, now we just used yours - i came across that link on email-address parsing to you: http://www.regular-expressions.info/email.htmlLelalahttp://www.lelala.denoreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-42907940145534522072012-08-27T12:58:38.346+05:302012-08-27T12:58:38.346+05:30I get the same behaviour... i.e. only works on the...I get the same behaviour... i.e. only works on the first radio button group. Any idea how to get the second button group?Anonymoushttps://www.blogger.com/profile/10180025893623057024noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-12885341393860986412012-07-02T11:40:23.122+05:302012-07-02T11:40:23.122+05:30Great! My friend was looking for it and today I ha...Great! My friend was looking for it and today I have helped him out with your post. Thanks a lot.Dot NET Development Companyhttp://www.goodcoresoft.com/asp-dot-net-development-company/noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-18871752064924986012012-04-26T10:34:40.503+05:302012-04-26T10:34:40.503+05:30Hi Christain,
Thanks for the comments. The exampl...Hi Christain,<br /><br />Thanks for the comments. The example I had given was just to show how we can set ClientIDMode. But as you mentioned, in example it looks like hiddenfield is not dynamic. I have modified the contents. Hope will make some sense.<br /><br />Important part is to set ClientIDMode of hiddenfield so that it will not assign dynamic Id to hidden field so that we can access hiddenfield in jquery easily.Avinashhttps://www.blogger.com/profile/11338220988745873438noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-16818703910265309392012-04-26T00:54:58.079+05:302012-04-26T00:54:58.079+05:30How in Earth is this dynamic?How in Earth is this dynamic?Christianhttp://www.chrisrios.comnoreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-92009225597677571682012-04-25T23:27:24.365+05:302012-04-25T23:27:24.365+05:30hi,
thanks for coding tip. but I've noticed s...hi,<br /><br />thanks for coding tip. but I've noticed something.<br />If you add a new radio group the value stays the one of the first group or perhaps i do something wrong<br />var number = $("input[@name=numbers]:checked").val();<br />alert(number);<br />var number2 = $("input[@name=numbers2]:checked").val();<br />alert(number2);logiwebhttps://www.blogger.com/profile/04240609299793181522noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-84400694068066949472012-04-07T22:05:36.558+05:302012-04-07T22:05:36.558+05:30What problem you faced?What problem you faced?Avinashhttps://www.blogger.com/profile/11338220988745873438noreply@blogger.comtag:blogger.com,1999:blog-422673690916585356.post-70767279414229174902012-04-07T20:50:57.352+05:302012-04-07T20:50:57.352+05:30Yes you are right. :contains will return all match...Yes you are right. :contains will return all matched items that contains same text. But you can do it by iterating through dropdownlist and then compare searching text with each dropdownlist item and then set option selected for dropdown.<br /><br />like:<br />$("#numbers").each(function () {<br /> $('option', this).each(function () {<br /> if ($.trim($(this).text().toLowerCase()) == $.trim(inputText.toLowerCase())) {<br /> $(this).attr('selected', 'selected');<br /> };<br /> });<br /> });<br />Look at example :http://www.codegateway.com/2012/04/jquery-set-dropdownlist-exact-text.htmlAvinashhttps://www.blogger.com/profile/11338220988745873438noreply@blogger.com