Forum Array

JQuery :: Use OR Condition For Validation?

I am using jquery.validate.js for validating the forms. The issue now is I have a dropdown list with values. Say a dropdown has the values 'One', 'two', 'Three', 'Four','Five'. If the value is 'Three' OR 'Four' . The next 2 input fields are required. Else those are not required. The value will be seperated with optgroups. I tried with different options but I couldnt find the solution. How to validate this?[code]...

View Answers

Very Similar Questions

JQuery :: How To Download Attachment Using JQuery Ajax
forums.asp.net
I am using JQuery in my application. I am having a div in my page which will get fill with another page content on a button click. The following is the code. $("#dialog").load('Default.aspx?TicketID=15'); Now i am having a button in this Deafult.aspx page which will download an attahchment from the database. If i write a server side event to download  the page is getting postback and the content in the div has gone. So, i have used JQuery Ajax method to download the attachment. But i the attachment is not getting downloaded. $.ajax({ type: "POST", url: '../Forms/frmUpdateProblemTicketStatus.aspx', data: 'AttachmentID='+AttachmentID, dataType: 'JSON', success: goodSubmit, error: failedSubmit }); I am not able to download this.

Using JQuery AutoComplete Plugin - Submit On Autocomplete?
stackoverflow.com
I'm using jQuery AutoComplete Plugin in ASP.Net as outlined in the article below, so that as a user types in a .Net textbox they get a list of options to choose them. This works fine, but what I need to do now is call a server side function when the user has finished typing or has choosen a value, rather than the user having to submit the value by pressing a button.

AJAX :: Passing Arguments Between Two Forms Using Jquery?
forums.asp.net
I tried using Ajax & Jquery for the following need, but not able to do... I have Two Forms StringMain.aspx & Returner.aspx.... I have created 4 Divs at StringMain.aspx and a sample text "ToCheck" at First Div.. In the Returner.aspx form page load, i placed a label like this protected void Page_Load(object sender, EventArgs e) { Label1.Text = "hello"; } I have set StringMain.aspx as default running page. So When i run StringMain.Aspx page, the text i placed in the First Div "To Check" should concat with the label Text "hello" of Returner.aspx and display it together in the First Div of StringMain.aspx like this "To Check hello".. The Technique i used is $("div#First-Div").load(" Returner.aspx");--But dint work...

Capturing Select Button On Gridview Using JQuery
stackoverflow.com
I have two GridViews that list out included and exclude data items respectively. By clicking "Change Status" (a custom button for each row) Users can change the row status from included to excluded or vice versa. However before changing the status - users would need to specify the reason and enter a date for when they want something included/excluded. So these are additional operations that need to take place after the "Change Status" button is clicked and before an update occurs. I want to use jQuery to capture the row id being "changed", save this value and pass back the update to the database. I will use an absolute div for the menu but I'm running into issues as to how to capture row id and how to pass this back to my C# in codebehind.

JQuery :: Cascading Dropdownlist Using Web Service Inside UserControl?
forums.asp.net
I am using jQuery to do a cascading dropdown list (State, City).  In order to pull the information from the database I have a web service that I reference.  The code all works like a champ when I use the JavaScript on the ASPX page for proof of concept, but when I place the JavaScript in the userControl and then put the userControl on the ASPX page, it breaks.  The next foreseeable thing that will potentially complicate things further is that  the userControl will be inside of an updatePanel

JQuery :: Looping Through Array Using Each
forum.jquery.com
If got problem with .each looping in jquery. im am trying to make a animation with jQuery. And i want to switch between three quotes of the array. and now it only works for the first quote of the array. [Code]...

Ajax :: Pass An Array Through Post Request Using Jquery
stackoverflow.com
i'm trying to pass an array trough an ajax post request using jquery but I cant seem to get it done. the request happens but there is no data in it. what i'm doing wrong? var settings = []; $('.settingp input').each(function(){ settings[$(this).attr('id')] = $(this).val(); }); $.post("editSettings.php", { 'settings': settings });

JQuery :: Implement Scrolling Tabs Ui Using Html5?
stackoverflow.com
I have to display 10 tabs, but i am able to show only 5 of them using jQuery in iPhone. can we scroll the tabs along with the tab content.

Jquery :: Set Width In Percentage Using It?
stackoverflow.com
How can i set width of div in percentage using jquery?

JQuery :: Using PrettyPhoto With Photo Gallery?
stackoverflow.com
Possible Duplicate: Implementing the prettyPhoto jQuery plugin I am working on a web site and would like each photo to be opened up with the jQuery lightbox plugin called prettyPhoto. I have included these files in the head but it seems that they are not being recognized. It says on this page that all I need to do is add the rel="prettyPhoto" to my link tag. I am pretty much a JavaScript and jQuery newbie

JQuery :: Using The Malsup Image Cycle Where The Images Suddenly Appear Shrunken
forum.jquery.com
Regarding a previous post of mine: jquery-cycle-plugin-24-12-2010 I seem to have a problem using the Malsup Image Cycle where the images suddenly appear shrunken. It appears to only affect me when using ASP.NET with site.master pages the problem doesn't occur every time just occassionally. I tried recreating the glitch outside of ASP.NET (simply using HTML, CSS etc......) but it worked fine. I will soon try and recreate the problem in a sample ASP.NET project and post the code on this thread as soon as it's ready. [Code]...

Jquery :: Using Focus To Empty Text Fields?
stackoverflow.com
I am trying to add focus on the following code, which would loop through the 10 or more fields and remove the default value(s)when the user focuses on the field.how can i add the focus to the existing code? $(document).ready(function() { $('#tradition').click(function() { $('#form-container').attr("class","trade"); [code]....

JQuery :: Drag And Drop Using It?
stackoverflow.com
I want to do a simple drag-drop using jQuery. I have not done anything so far, but previous attempts were unsuccessful.

Jquery :: Drag And Drop Multiple Divs Using UI?
stackoverflow.com
How do I drag and drop multiple divs using jquery UI? Is there any option to accept an array of divs?

JQuery :: Async JQuery Treeview + Partial Rendering?
forums.asp.net
i have an Async JQuery Treeview working, but in addition to filling out the tree - id like for every node expanded to update part of the page with information as well - is this possible?My View looks like this: [Code].... And my Controller looks like this: [Code]....

Showing Another Form Using Using The Command Button
www.vbforums.com
I have trouble in including a form to my project. What i want to do is to create a command button that will call the Form to be displayed. ________________________________Private Sub ADIS_Click()frmForm1.ShowEnd Sub________________________________is this code correct? because every time i run the whole program it only shows the form that i called. Can somebody help me on this? THANKS

Linq To Jquery With Jquery Ver Jquery-1.7.2?
stackoverflow.com
this is my class: Public Class Employeeclass Public Property Fname As String Public Property Lname As String Public Property Bdate As Date End Class [Code]...

JQuery :: WebMethod Validations Are Not Performing Desired Action On Button Click?
forums.asp.net
i am using jquery and passing my data to webmethod,but asp.net validation are not performing their desired action on button click,if i enter wrong data,they still post the data,how i m going to stop that??? 

Jquery :: Discussion - Allowing / Blocking User Access To Pages / Client Side Validation?
stackoverflow.com
TLDR Using plain HTML / Javascript (Client Side) I want to prevent viewing of certain pages. The user will have to type a username and password and depending on that they get access to different pages. Answers can NOT include server side whatsoever It does not matter if they can break it easily. There is no sensitive information etc. Also the target audience will not have access to internet OR probably know what a cookie is... at some point the user will have to type username / password.(I can define the cookie here) Currently I thought of using cookies to set a cookie for each page to say "true" / "false" but that would get messy with so many cookies. Or setting an array within a cookie for each page? I have div field "#Content" which as it looks encompasses all of my content on the page so blocking out content will be as simple as replacing it with ("sorry you don't have access") etc. [Code]...

JQuery :: Validation - Not Requiered, But If (not Blank || Not Default Value ) {check Condition}?
forum.jquery.com
$('#enquiry').validate({ rules: { Email: { [code]....

JQuery :: Override The Default Messages For The Validation Plugin?
forum.jquery.com
I'm trying to change the default required field message in the validation plugin from "This field is required" to simply "Required". I tried to do so like this: [Code]... but this isn't working. I'd prefer not to edit the actual code to change the message, although that is an option (but one that would mean constantly updating the message when the validation code is downloaded once again).

Jquery - Use JSON With APS.NET?
stackoverflow.com
I have an assigment where I must send queries to the database and the returns data. I would like to convert that data to a json and then use it with jQuery My idea is make an array (¿arrayList?) and then convert it to json. How can i use json with asp.net vb? I'm not allowed to use a webservice yet

Web Forms :: Using An HTML Editor Without Turning Off Validation For Page?
forums.asp.net
I'm wondering if it's possible to be able to use an HTML editor (such as TinyMCE) in an ASP.NET form without turning off validation for the entire page.  There are other fields in the page that I want to use validation for.  Will those not get validated with validation controls if you set ValidateRequest="false" in the page directive?

How To Unit Test For Turning Off Request Validation
stackoverflow.com
I created a little web service to minify JavaScript, and everything was nice, with all my tests passing. Then I noticed a bug: if I tried to minify alert('<script>');, it would throw a HttpRequestValidationException. So that's easy enough to fix. I'll just add [AllowHtml] to my controller. But what would be a good way to unit test that this doesn't happen in the future? The following was my first thought: [TestMethod] public void Minify_DoesntChokeOnHtml() { try { using (var controller = ServiceLocator.Current.GetInstance<MinifyController>()) { return controller.Minify("alert('<script></script>');"); } } catch (HttpRequestValidationException) { Assert.Fail("Request validation prevented HTML from existing inside the JavaScript."); } } However, this doesn't work since I am just getting a controller instance and running methods on it, instead of firing up the whole ASP.NET pipeline. What would be a good unit test for this? Maybe reflector on the controller method to see if the [AllowHtml] attribute is present? That seems very structural, and unlikely to survive a refactoring; something functional might make more sense.

Edit Multiple Validations
www.mrexcel.com
I need to edit multiple validations in a worksheet. There are over 990 validation for each month. I want to change the word in the sentence. Example: April to May. Right now I have to edit each one seperatly. I have tried a macro but it changes to whole sentence. Find and replace do not allow editing in a validation.

JQuery :: Prevent Window Scrolling After Link Clicked
stackoverflow.com
I have 2 links that hide present different information to the users on the main page. If one link is clicked, the new info appears on screen. Problem is, when I click on any of the links, the window is taken back to the top of the page. I would like to prevent this behavior as it is annoying. Here is the code for the links <div align="right" id="ajaxIncomingMail"> <a href="#" class="incomingMail">Incoming Mail</a></div> <div id="ajaxOutgoingMail"><h5> <a href="#" class="outgoingMail">Outgoing Mail</a></h5></div> And here is the code for the jquery: $(function(){ $("a.incomingMail").click(function(e){ e.preventDefault(); $("#ajaxMailShowContentOutbox").hide(); $("#ajaxMailShowContentInbox").fadeIn("slow"); }); $("a.outgoingMail").click(function(e){ e.preventDefault(); $("#ajaxMailShowContentInbox").hide(); $("#ajaxMailShowContentOutbox").fadeIn("slow"); }); return false; }); Here I am using preventDefault() and it's still not working!? I also tried return false, but that didn't work also. I don't know if it matters, but the info that is presented is pulled with php from the db. How can I make the scrolling stop when I click on the link??

JQuery :: How To Prevent Click On Link From Jumping To Top Of Page
stackoverflow.com
I'm currently using <A> tags with jquery to initiate things like click events, etc. Example is <a href="#" class="someclass">Text</a> But I hate how the '#' makes the page jump to the top of the page...what can I do instead?

Jquery :: WCF Not Deserializing JSON Input?
stackoverflow.com
I have a WCF service defined as follows: Imports System.ServiceModel Imports System.ServiceModel.Web <ServiceContract()> [code].....

Jquery - Getting An XML Error Messages For JSON?
stackoverflow.com
UPDATE 2: I did not mention that I do not get the error below in Chromium, but I do get it in IE8. UPDATE 1: Response Headers: HTTP/1.1 200 OK Date: Fri, 20 May 2011 15:40:23 GMT[code]..... Why does that happen and how can I stop the error message from appearing?

Jquery - JSON Key/value Pair Plus Count
stackoverflow.com
I need to return json data from the server, which can be used on the client side and I am not sure the best way to format the json data. So basically, What is the best way to format the json data to include: key/value pairs so they can be looped through at clientside (loop via jquery), a count of the number of id/value pairs which can be used at clientside for other purposes (used via jquery).

JQuery - Ajax - Json - Javascriptserialize - Writes Out The Contents Of A Datatable
stackoverflow.com
I am having a heck of a time with some very simple json. I have a very basic VB.NET webform which which writes out the contents of a datatable serizlized with JavaScriptSerializer. CODE: On the jquery side I am doing this. CODE: This is returning "invalid json" Here is the output CODE:

Jquery :: Pass Json Via A Form Element?
stackoverflow.com
I have this swf (flash) file that provides the json that needs to be sent to the server.[code]... Of course I can pass the json as a string to the view function. Doesn't seem good to me. Any other way of passing the json object to the django view?

JQuery :: How To Convert Simple Html To .net Control
forums.asp.net
how to convert simple html to .net control [Code]....

MVC :: How To Redirect To New Page After Jquery Ajax Call
forums.asp.net
1- I have an Ajax link that call an action and that action returns a view , that view open in a specific Div (consider it as a menu that update the div with the corresponding view) 2- if session timeout the returned my logon view so if i click on the link and session is timeout , the log on view open in the div not in the whole page what i should do so if the session timeout it return logon view in new page in on my div?

Get The HTML Out Of A DataListRepeater Using Ajax (Jquery)?
stackoverflow.com
I have a asp.net page with a repeaterdatalist control on it. I bind this grid during page load and show the first 20 thumbnails of a photo album. There can be multiple pages for which I have a pager 1 2 3. When user clicks the second page(2), I go and get the second set of album thumbnails and show. Currently this is a postback and when I show 2nd page whole page gets refreshed. Now is it even possible to use Ajaxjquery to get the second page of htmls with all thumbnails on it and render? This way the page never has a post back and I can avoid page refresh?

Php - Jquery Method Is Not Allowed
stackoverflow.com
How can allow this page to run on IIS server...It does not work on localhost..... it works when I open it directly... It gives the error "it is not allowed...! The working Example..! I want this.. "" the Erorr: <html> <head> <script src="jquery.js" type="text/javascript" language="javascript"></script> <script src="jquery.xml2json.js" type="text/javascript" language="javascript"></script> <script> function sayHello(msg) { alert(msg); } function dcSetRate(obj,value){ document.getElementById(obj).value = value.toFixed(4); } function dcSet(obj,value){ document.getElementById(obj).value = value; }......

Validating Data Sent To A Web Method From JQuery
forums.asp.net
I have been thinking what is the right way to validate the data I am sending to a web method from jQuery ajax call. I have formerly used updatepanels to do my ajax, but am trying to shift to jQuery now and validation seems to get more complicated. So obviously there are both client- and server-side validation options. At first I tried implementing jQuery validation plugin and got it working. But surely client-side validation is not good enough alone. Then I considered implementing  regular asp.net validation to validate on the server. But what if a user tampers the input parameters after the validation happened. He could break the execution of the script in Firebug and change the input to whatever he wanted. So  how can I either prevent that or implement validation in the web method?Here is my ajax call which sends a message to the server. [Code].... You see I am sending three parameters (id of the person who this message is ment for, message type and message text). Even if I implement asp.net validation against input controls, a user might change those input values in Firebug, right? So I need to validate the input again in the web method? Or what would be the best way from the beginning?

JQuery :: Retrieving Xml From Page Method
forums.asp.net
I use jquery to bind data from  web method to jquery grid it does not retieve the data jQuery("#list2").jqGrid({ url:"NewAprch.aspx/SampleEngagement", datatype: "xml", but it works fine when i am trying to use a static variable  var mystr ="<row><cell>abc</cell></row>"

JQuery Method Not Working Second Time?
stackoverflow.com
I have a JQuery Method. When I click on button "btnSelectDisclosure", a popup appears but only once. Not for next time. [code]...

Web Method Syntax For Jquery Ajax In Asp
stackoverflow.com
$.ajax({ type: "POST", url: "jquerychat.aspx/SendMessage", data: "{msg:'Hello',userId:1}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { // Replace the div's content with the page method's return. // $("#txtMessages").val(msg.d);msg:'Hello', }, error: function(){ alert('failure'); } }); }); [WebMethod] public static string SendMessage(string msg,int userId ) { NameValueCollection nvc = HttpContext.Current.Request.Form;...................

Sending JQuery Ajax Request To Web Method?
stackoverflow.com
I am trying to send data to my code behind method. It works except when I add to the data param. [code].... UPDATE: After seeing what client side errors were being thrown it seems that the ID is undefined. Is my method of getting the elements ID incorrect? Keep in mind I am using jsTree and ca I possibly use (obj)?

AJAX :: What Is The Best Method To Use ICallback Or PageMethods With JQuery
forums.asp.net
I am creating a website in asp.net its a very big site about 250 pages and with a big sql database. I am confused as which ajax method i should follow. There are three options. 1. ASP.NET UpdatePanels -: Simple to use but causes a lots of uneccessary request and viewstate. I want my pages to open as quick as possible. 2.ICallback-: Causes less request and renders the page quickly. But security concerns and viewstate are there. 3.Page Methods with jQuery-: No Security anyone can quickly hack the parameters passed using "POST" mehtod.

Jquery - MVC Controller Not Getting Hit?
stackoverflow.com
I can't get my Controler action method to get hit when I click 'Detail View' tab, or any tab for that matter However, I can get the action method to hit if I comment out 'return false;' in the javascript section but then my 'Selected' tab is not maintained. <script type="text/javascript"> $(document).ready(function () { $('.test').click(function () { $('.test').removeClass('selected'); [Code]....

JQuery Application Running From CD - Convert In A WinForm App
stackoverflow.com
I've developed a very simple ASP.NET (jQuery) application. The RDBMS is MS Sql Server but I could easily convert it in MS Access. My client would like to have it available on a CD, ready to run. I was thinking to convert it in a WinForm app but, still, I have to install the framework on the client. Is there any other "possible" solution?

How To Handle Single Quote In $.ajax POST (JQuery)
stackoverflow.com
.ajax({ type: 'POST', url: '..serverices/ajaxserver.asmx', data: 'lname='+ $('#lastname').val() }); return false; if #lastname has a single quote, it throws an error. How to handle it?

Web Forms :: Validation Activated Only In Single Area?
forums.asp.net
i am using panels and each panel contain seperate set of controls with validation.the problem I want to put multiple panels in the same page put I want each panel to activate  it's validation fields not the other panels.

Web Forms :: Date Validation Causing Multiple Error Messages?
forums.asp.net
When i click on the Search Button OR the Count Button, i get BOTH error messages - why ? I should only get one error message. [Code]....

Web Forms :: Prevent Enter From Causing Validation?
forums.asp.net
I have an HTML text box and button: <input type='text' onkeypress='onEnter(this, event);' /> <input type='button' /> This works fine (when you push enter, another function is called) unless the page has a FormView control on it.  In this case, pushing Enter in the textbox above attempts to validate the form on the page.  It will still correctly call the onEnter function, but I need the Enter keypress to not cause Validation of any other forms on this page. All input fields in the FormView are part of a ValidationGroup, but this doesn't seem to affect anything. What is the best way to keep the .Net validation from happening when I push Enter in my HTML textbox?

Web Forms :: Button Causing Validation Inside A RadWindow?
forums.asp.net
I have a form that when you click a button, an ajax RadWindow opens with a text box and a button so it can scrape information from another web page.  I have set the button that causes the postback to CausesValidation="False", but after it does the postback after loading the scraped information into other controls, it still causes validation to fire. how to make it not fire the validation? 

Select Input Date As Default In JQuery Datepicker?
stackoverflow.com
I have an ASP.NET application which uses JQuery datepicker for picking dates in some text boxes. For some date textboxes, I populate the date textbox from my database. When this textbox is clicked my JQuery datepicker appears, and it shows the current month with Today highlighted. This is fine for empty textboxes, however sometimes the text box is populated from the database. When the textbox is not empty I want the datepicker to show the textbox month and have the selected date to be the textbox date. Here's my current javascript code in my asp.net script header: <script type="text/javascript"> $(function () { $('#myTextBox').datepicker({ dateFormat: 'dd-M-yy', numberOfMonths: 2, autoSize: true, changeMonth: true, changeYear: true, showButtonPanel: true, maxDate: 0 }); }); </script>

Forms Data Controls :: Rebind Datalist After Upload An Image Using Jquery?
forums.asp.net
I'm using a jquery plugin called uploadify to upload images to my database. I'd like my datalist to be auto-rebind after the images' been uploaded so people could see the changes immediately. Also because this is a feature for admin there is a delete button in the datalist. I used updatePanel for this.   I put __doPostBack('" + upnlUploaded.ClientID + "','') to the javascript so when Images have been uploaded the update panel will postback.  I also have the following two lines to make it working...  <asp:UpdatePanel ID="upnlUploaded" runat="server" UpdateMode="Conditional" OnLoad="upnlUploaded_Load"> <%--upnlUploaded_Load   --%>

AJAX :: How To Configure WCF To Accept & Reply To JQuery Post
forums.asp.net
I have a WCF web service and jQuery AJAX implementation that appears to be working perfectly, save for a single line of code: the AJAX calls to the WCF service only have the correct HTTP header & content information if I use GET in my AJAX calls.  Once I choose to use POST, the WCF service response with "Method Not Allowed".  The calls are coming from domains such as sub1.domain.com, and calling svc.domain.com.  How can I configure WCF to allow the cross domain AJAX POSTs? [Code].... Here's the relevant section of the web.config: [Code].... Here's the AJAX code: [Code].... I have indeed tried these changes to my interface: [Code]....

MVC :: Handling Validation Differently For Each Action Method?
forums.asp.net
I am new to this MVC and have a basic question related to validation. I have a create view  for customer and based on the customer entity partial class metadata, I am validating the user input and its working fine as expected when the user clicks the create button.I also have a search button in the same create view, which is used for auto generation of some of the field values. When the user clicks the search button the action method create (post) is called with the corresponding button value as argument.the issue here is when the user clicks the search button most of the user input fields will be blank and the validation fails because of that.  

Silverlight Or Jquery Ajax For Complex Data Form?
stackoverflow.com
So part of my web app centers around this very important form which is used to create a form. Its like google docs form. The user keys in a type (checkbox, textfield, numericfield) and a label and slaps it into the system, and it generates a form somewhere. Its a little more complex than google forms, the field types are complex and theres a lot more to that form (It happens to be a form generator for a finance plan) The app is asp.net, I was thinking of using jquery and jquery's own ajax methods to post the data, but I think it would just turn into a very hairy situation, I then thought silverlight, but Ive never done silverlight before but I am an experienced .net guy. So what do you guys think, will silverlight be too tough for a first timer for this kinda thing? Or should I stick to jquery. Plus points for silverlight is its an inhouse lan app and this particular page will be used by people with very high bandwidth. Also I'm on .net 4 btw.

JQuery :: Calling PageMethod With Complex Type Parameter?
forums.asp.net
I have a page method which take in a complex parameter how can i call this page method using jquery. This is my page method  [Code].... and these are my types  [Code]....

Passing List Of Records With JQuery?
stackoverflow.com
I've a situation where I want to pass list of records via Ajax/JQuery. public JsonResult GetListOfRecords() { return Json(_repository.GetAllRecords()); } when I call this action method with jQuery, it doesn't work: $.getJSON('GetAllRecords', function(data){ // data is IQueryable<T> or IEnumerabel<T> $.each(data, function(d) { $('#somewhere').html(d.Title); //d is SomeModelType and Title is property of that type }); [Code].... it just displays title... My Question is that "I want to pass IQueryable or IEnumerable through ajax."

Passing Arguments From One Page To Another Using JQuery?
stackoverflow.com
I need to pass 4 arguments (3 strings and one comma separated list) from an ASP.NET page to another ASP.NET page using jQuery. The destination page ought to be launched as a separate window, which works fine with the following jQuery snippet: $('#sourcePageBtn').click(function(){ window.open("destinationPage.aspx"); return false; }); How can I pass the arguments to the destination page? I am trying to avoid the query string to pass the arguments because: I don't want to show the url arguments (which can also be very long) in the destination window. There are some special characters like ',/,, & etc. in the string arguments. Edit: I'm trying to access the arguments in the script section of the aspx file i.e. <script language="C#" runat="server"> protected void Page_Load ( object src, EventArgs e) { //Creating dynamic asp controls here } </script> My specific need for the arguments in the Page_Load of the script section stems from the fact that I am creating a few dynamic Chart controls in the Page_Load which depend on these arguments.

MVC :: How To Use Ajax Or Jquery For Partial Post
forums.asp.net
I have a form with three filed name  city and relation.relation filed is a dropdown and on the selection of relation i have to display list of users in grid.I want  here to use  Ajax or Jquery so that when i select relation not whole page will post to server but only relation and could display list of users in grid. inside  Html Table  i have all these fileds( Name,City and Relation).

MVC :: Jquery Ajax Post Data Not Visible?
forums.asp.net
I haven't used Jquery to post Json data to mvc before, so this maybe a Noob issue.  I've got a really simple form, and am trying to post this data async to an mvc action. Within firefox I can see the data being posted, but I can't see it within the MVC action.  This code all runs through correctly, but  putting a debug point in the action method will always show the form collection as empty. Form.. <script type="text/javascript">

Jquery - Mvc File Upload Ajax Post?
stackoverflow.com
I was just wondering if its possible to do an ajax post a file in asp.net mvc,basically i have a form with two buttons, one of the buttons extracts images for the selected document and displays them for the user to choose thumbnails for the document he is about to upload. The usee then fills out the rest of the form and then saves the document.With the image extraction, I was owndering if it was possible to do that as an ajax post. The other submit button can work as a normal http post

How To Process Results From A JQuery Ajax Post
stackoverflow.com
I am making a jQuery ajax post in a javascript function used by a asp:CustomValidator control. The web method returns a boolean. How do I convert the result make the validation script function correctly. Client side code [code].... Web service code [code]....

Passing Object To Server With JQuery.Ajax()?
stackoverflow.com
I am trying to implement the same code that was mentioned in this questionCurrently I have the following code: var pagePath = window.location.pathname; var paramList = ''; if (paramArray.length > 0) { [code]...

Obtain Data From Dynamically Incremented IDs In JQuery?
stackoverflow.com
I have dynamically generated paragraphs with id's that are incremented. I would like to take information from that page and bring it to my main page. Unfortunately I am unable to read the dynamically generated paragraph IDs to get the values. I am trying this: var Name = ((data).find("#Name" + id).text()); The ASP.NET code goes like this: Dim intI As Integer = 0 For Each Item As cItem in alProducts1 Dim pName As New System.Web.UI.HtmlControls.HtmlGenericControl("p") pName.id = "Name" & intI.toString() pName.InnerText = Item.Name controls.Add(pName) intI += 1 Next Those name values are the values I want...Name1, name2, name3 and I want to get them individually to put in their own textbox... I'm taking the values from the ASP.NET webpage and putting them into an AJAX page.

Security :: Validation Does Not Fire On Createuserwizard?
forums.asp.net
I have a createuserwizard which has been working recently. Even though the form has the necessary validation elements like requiredfieldvalidator, comparevalidator and so on, the validation on client side does not fire and form is submitted and saved.I checked twice the code, nothing seemed wrong and have no what might it caused.

Pass ViewModel With JQuery Post?
stackoverflow.com
I'm trying to do a post with jQuery in an MVC application, according to this SO answer here:Can jQuery do a POST of a ViewModel to a Controller in ASP.NET MVC?The difference is I am using it to delete an item in a dynamic view (never mind the fact that I'm posting a delete directly, this is a closed site by authorization, and I will use jQuery to confirm, I just don't want the user to have to go to a new page). And I therefore need to be able to send both the id and the ViewModel (the ViewModel to save any added items before deleting any). I'm not particularly happy with the solution by and large, but at this point I just need to get it to work!So I tried to figure out how to send both the id and the ViewModel according to the SO post above, but I can't figure out how to get the ViewModel in with the named parameters. This doesn't work: $(".delete").click(function () { $.ajax({ type: "POST", [code]...

C# - Best Way To Store Data On The Client Side - JQuery
stackoverflow.com
Clicking 'Edit' for a row expands it (using JQuery) to reveal the full horror of all the associated editable objects. One of these is a list of documents associated with each row and needs to be JQuery-editable so the user could click 'edit' to open up the full row gui, then un/select checkboxes to de/associate documents and then hit 'Save' to persist everything. Currently I'm using nested repeaters to store the initially-hidden fields - the repeater generates a hidden formfield containing a comma-separated list of IDs for the assoc documents. When it comes to populating the Edit gui I do a split operation on the delimited string and set/unset the checkboxes as required. This is proving a nightmare from a maintainability perspective and in my frustrated wanderings of the web in search of a solution i noticed JQuery has some functionality to act as a client-side database. Does any one have any experience of this, and if so, would you recommend it? My custom JS to parse csv-strings and dynamically build the gui is starting to grind me down a bit.

MVC :: Retreive Data From JQuery Select Drop Down?
forums.asp.net
I created a set of cascading drop downs based on the code provided at http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/ and it is working fine. The problem I am facing is that since the HTML for the select area is <select id="Cities"></select> I am not able to get the value of the selected item in my ActionResult method in the controller. 

JQuery :: Combining Template With HtmlHelper?
forums.asp.net
I'm trying to create a jquery template using the HtmlHelper.ActionLink. By default it url encodes the parameters, which causes a problem for the syntax needed for the template. Is there a way to override the encoding. In this example <script id="itemTemplate" type="text/x-jquery-tmpl"> @Html.ActionLink("Details", "Details", new { id = "${ID}" }  ) | ${Last} | ${First} <br /> </script> the generated code for @Html.ActionLink ends up being  <a href="/User/Details/%24%7BID%7D">Details</a> What I'd like to end up with is <a href="/User/Details/${ID}">Details</a> <script id="itemTemplate" type="tex

Jquery - Insert Checkbox Checked Value To Textbox?
stackoverflow.com
I have a 45 checkboxes in webform with values 1 to 45 i want ...to insert checkbox checked value to textbox in comma seperated string as in ascending order as 1,2,3,4,5 ...if checkbox1, checkbox2, checkbox3, checkbox4 and checkbox5 is checked...if these checkboxes will be unchecked then the inserted value in textbox will be removed 1 by one respectively. .. hwo to do this using vb.net or jquery or javascript ..

JQuery :: Call JS On DataGrid Checkbox Checked?
forums.asp.net
I have a BING MAP in web app. which is of JavaScript or Jquery. And also I have a DataGrid in same page. Data Grid is populated with Address ROWS. A check box is also there as ItemTemplate for DataGrid. Now after dataGrid binded with data source, and when user clicks on check box, that particular address should show on BING MAP. My question is,  How to invoke a JavaScript function when user checks checkbox in data grid. Which data Grid events suits my scenario? Also can I do this on client side without going to server side and call JS function?

JQuery :: How To Catch Exceptions And Display In Div
forums.asp.net
I was wondering what will be the method to catch any exception at server end and to show the error message in a div with error icon on top of the page using jquery. All the examples I have browsed show how to display the div on click of some button or link but in my case the scenerio is different. I want to use it for displaying messages to user and make use of Jquery's animations as well.

JQuery :: ClientIDMode In Framework 2.0?
forums.asp.net
I've been building a project for a customer in framework 4.0.What I didn't know was that he wanted the project built in fw 2.0.Now, my gridview is using a setting called ClientIDMode="Static" to setup a jQuery "tablesorter" function, which makes sorting possible using jQuery.But that settings is not available in 2.0, any ideas how to fix this? If I remove the ClientIDMode setting, the header won't be clickable and sortable.

JQuery :: One Line, Two Separate Selection Sets?
forums.asp.net
Imagine you have this HTML layout: <div id="msg"></div><br /> <div id="submitButton"> <input type="submit" value="OK" style="width:50px" onclick="$('div.subtleMsg').hide(); return false;" /> </div> I know how to manipulate the contents of <div id="msg"> any way I wish but I'm wondering if it's possible, IN THE SAME LINE OF JQUERY CODE, to also manipulate <div id="submitButton">. Everything has to be combined into one long jQuery string because I'm passing it from the server-side code as a script.

Accessing Web Server Controls From Jquery?
stackoverflow.com
In my C# asp.net 3.5 web application I am having controls like div tag inside that one textbox and one check box and the page is having a submit button. So in this submit button click I want to make the controls inside the div tag visible.. I am calling a JQuery function to do this. All the statements are getting executed but the control is not visible.. Following is the code in my JQuery function $("input[name$='QuestionAndAnswerEditorDiv']").show(); $("input[name$='answerLabel1']").show() $("input[name$='wmd-AnswerTextBox']").show() My div tag and its controls in the user control page are like the following <div id="QuestionAndAnswerEditorDiv" runat="server"> <div id="wmd-button-bar" class="wmd-panel wmd-button-row"></div> <textarea name="QuestionandAnswerTextArea" runat="server" id="AnswerTextBox" onkeyup="prettyPrint();" class="wmd-input editor" cols="92" rows="15"/><div class="wmd-preview text-preview preview" style="-ms-word-wrap: break-word;"></div> As I noticed these controls are make visible=false in another page so they are not coming in the page source.. So Let me know how to work these controls now

.net - Accessing The Sibling Of A Checkbox Using Jquery?
stackoverflow.com
I am acessing the sibling of a checkbox using parentNode.nextElementSibling.value;It will returns value and works fine in Firefox.But in IE it is saying Object is null and saying Microsoft JScript runtime error: 'parentNode.nextElementSibling.value' is null or not an object My function is as follows function chkEnergy() { var inputs = $('.check input'); var count = 0;var ok = 1;[code].... I uses this way to have dataList where checkbox and textbox were there <asp:DataList ID="dlstEnergyItems" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" Width="100%"> <ItemTemplate> <asp:CheckBox ID="cbEnergyItems" runat="server" CssClass="check" />[code]....

Accessing Web Service From Jquery - 403 Forbidden Error?
stackoverflow.com
When I'm accessing web service from jquery, I'm getting the 403 forbidden error.. I published and created in the virtual directory too. Wat's the cause of this error and how to rectify it? I've added the webservice in the same solution.. This is my following code.. $(document).ready(function() { $("#sayHelloButton").click(function(event){ $.ajax({ [code].... I suppose using that url path for webservice is wrong.. I used the path 'DummyWebservice.asmx'. There I'm getting the 500 internal server error.

Jquery - Web Application Accessing SharePoint Object Model?
stackoverflow.com
I have an asp.net 2.0 web application that will run on the same web servers as SharePoint Server 2007. The application should run in its own App Pool (IIS 6.0). The Web Application needs to call the SharePoint Object model API. Is there a resource that explains the required configuration / security settings and other considerations? It is possible that I need to make some settings in SharePoint Admin Console itself; aswell as config files. Script files might need to be located in a specific location in order to be accessible. Assemblies may need to be signed. I can only get partial success running my Web application. But only if it is deployed to a Virtual Directory that resides under the SharePoint Website (in IIS & File system). Even with this setup, I JQuery / Javascript throw errors when accessed (object null); and also images not loading. I have made some changes to the Web applicaton web.config file which have allowed me to run the application albeit the above mentioned issues with scripts and images (Virtual directory properties also set to allow scripts and executables to run). Ajax functionality appears to work OK.

JQuery :: Get Value Of Dropdown List?
forums.asp.net
I am having  problem of getting value from Dropdown List that located in the listview. I want to use the Jquery to get the value of thos Dropdown list and insert that data into the database.

Jquery - Hiding A Div When Dropdown Selected Value Changes
stackoverflow.com
I have a dropdown list that when the selected value changes I want to hide a div. (There is another control that makes the div visible). I currently have the following but the div is not hiding when I change the selected value in the dropdown. <script type="text/javascript"> $(document).ready(function () { $('#MyDd').change(function () { $('#buttonDiv').hide(); }); }); </script> <asp:DropDownList ID="MyDd" runat="server" /> <div id="buttonDiv" class="buttonContainer"> <asp:Button ID="myButton" runat="server" /> </div>

Updating Dropdown Datasource From JQuery?
stackoverflow.com
I want to update my dropdown list datasource (get the values from the database again) but i want to do that from jQuery, there i insert/update/delete records from that same database table.This is my dropdown list <asp:DropDownList ID="ddl" runat="server" AppendDataBoundItems="True" DataSourceID="ShortCodeDataSource" [code]...

How To Use Jquery To Hide Div Tag
stackoverflow.com
I have asp.net check box control and asp.net dropdownlist control inside div tag. I want to hid the div when I check the box and unhide it when I unchecked the box. I tried few ways with jquery but I could not do it. Here is my code look at it and tell me what is wrong with it. [code].....

Way To Hide A JQuery UI Accordion Panel
forums.asp.net
have several Accordion panel and each one contains a datalist of hyperlinks, that when clicked will append a querystring to the current URL. What I'm trying to do is after the pages reloads or after clicking a hyperlink I want that datalist together wit its corresponding accordion panel gone. I'm using a single file for the markup and code btw.

Web Forms :: Validation For Calendar Control?
forums.asp.net
I have created a calendar control in asp.net mvc using linq to sql.I have used jquery to create calendar control . I have to validate my calendar control as a required field.

Jquery :: Method Is Defined And Which Method Is Called Using Firebug?
stackoverflow.com
How can we know which javascript method is called and where it is defined? (When methods are attached dynamically) Let us consider situation where JQuery Bind method is used to bind an event. If I see control in FireBug with FireQuery, I can see events=Object{click =} handle=function() But I don't know which method is attached with click event. Is there any way to detect this method is being called from this file? For 3-4 files,I could search. but for large number of files with heavy code, it is difficult to search.

Validation Built Into A Form On Site?
www.phpfreaks.com
I'm having some trouble getting some kind of validation built into a form on my site.  I'm using multiple scripts in a form including a lightwindow, as well as some other scripting I found to allow me to submit my form inside the lightwindow.  I'm dying to get some kind of validation code added to the script to stop all of the spam emails, but I'm not able to do it, as I don't truly know PHP.  I tried using a recaptcha, following the instructions carefully, but I think my problem there was that I don't have a simple Code: [Select]<input type="submit" /> instead, I have: [code].........

JQuery :: Text - Dynamically Build/add List Elements (ul,ol,li) Using DOM Manipulations?
stackoverflow.com
I am programming an ajax web page (using IE 8) and need to dynamically build a list in jquery from the data returned. Later, I will be converting list to jquery accordian. I am also trying to learn the proper way to use these jquery functions and chaining. I am just a jquery NOOB, but understand javascript. I found a good article on jquery dom functions: [URL] I want to add as much as possible using the jquery dom functions, and jquery chaining, without resorting to html source code using text. I want to mostly use .wrap(), .appendto(), .attr(), .text(), and .parent(). I don't think the ".attr("class", "CC_CLASS"). is the best way to add a class. Given the html code: <div id="outputdiv"></div> Use Jquery dom functions to change it to be the following: <div id="outputdiv"> <ul id="JJ_ID"> <li> AAA_text </li> <li id="BB_ID"> BBB_text </li> [Code]....

Phone Number Validation
www.phpfreaks.com
I wanted to know how to validate the phone number entered by the user. In my database phone number is defined as int(3) unsigned. Would it be best to use php and use regular expersssions or use javascript. $phone = trim($_POST['phone']);

Kohana 3: Example Of Model With Validation?
stackoverflow.com
I find examples and tutorials about models and about validation. And I places that say the validation (or most of it at least) should be in the model, which I agree with. But I can't any examples or tutorials that show how that should be done. Could anyone help me with a simple example on how that could be done? Where would you have the rules in the model? Where would the validation happen? How would the controller know if the validation passed or fail? How would the controller get error messages and things like that?

Jquery :: Allowing The User To Reorder This Structure Using The UI Sortable Plugin?
stackoverflow.com
Here's the basic HTML structure for my page: <div id="selectedItemsTop"> <ul> <li> [code].....

JQuery :: Asp.net - Using To Move Items Between .NET Listboxes?
stackoverflow.com
I have two listboxes, two html input tags and one .NET submit button on an webpage. // The two listboxes <asp:ListBox ID="lbViewOptions_Hidden" runat="server" Rows="7" Width="110px"></asp:ListBox> <asp:ListBox ID="lbViewOptions_Show" runat="server" Rows="7" Width="110px"></asp:ListBox> // The two html input tag <input id="ibtnRight" type="image" src="images/move_right.png" style="height:16px;width:16px;border-width:0px;" /> [Code]... The listboxes are loaded during the page_load event with various items that are dynamic, thus my reason for using ASP.NET listbox controls instead of just hardcoding an HTML select tag with the various items. My problem is this: due to the fact that the listboxes are .NET controls and I'm using jQuery to move items back and forth between the them, any changes made to them does not persist through a postback. For example, assume that listbox lbViewOptions_Hidden has two items in it: "Foo #1" and "Foo #2". If I select item "Foo #2" and click the input button to move it to listbox lbViewOptions_Show, then it moves over as it should, and I now have item "Foo #1" in the first listbox and item "Foo #2" in the second listbox. However, if I click on the .NET button btnApplyViewOptions to submit back to the server, the second listbox has no items and all of the items are still in the first listbox. How do I go about fixing this problem? I assume that it has something to do with the ViewState, but I'm not positive about it.

Jquery :: Using Custom Width And Height, Mobile Dialog Center To Screen?
stackoverflow.com
I have created app using jQuery Mobile and need to get a Dialog box when button is clicked.The Dialog box should be center aligned of the screen when i have specified the width and height of the Dialog. Please check current jsfiddle version. Code as follows. <div data-role="page" data-theme="a" id="page1"> <button data-theme="a" id="submit-button-1">Open Dialog</button> [code]....

Jquery :: Find Width Of Left Floated List And Apply To Wrapper Div To Center It Using Css
stackoverflow.com
I wish to center a ul in a div that is the left column of a liquid layout. To do so I need to set the width of a div that I've used to wrap the ul. Note: the list items (and content) are retrieved from a database using php.I'm interested in your suggestions on how to do this using jquery.

Jquery :: Control The Page Height And Width Using Js?
www.codingforums.com
control the page height and width using js/jquery? I have a page that is: width: 980px height: 2500px I would like the page height to be set to around 900px with the viewable scrollbar and all other content not viewable underneath.

JQuery :: Using .animate() To Animate A Div From Left To Right, Right To Left?
stackoverflow.com
I seem to be having difficulties using jQuery .animate() to animate an absolutely positioned div from right to left on a button click, and left to right on another button click. Below is my relevant CSS, HTML, and jQuery code. I can click the #moveLeft button and it wil indeed animate it to the left, but when I click the #moveRight button, nothing happens. CSS #scorecardTwo { position:absolute; padding:5px; [code]....

Jquery :: Speed Up Panning And Zooming Using SmoothZoom Plugin?
stackoverflow.com
I am currently using the smoothZoom plugin in a project [URL].I have to load in an image of roughly 2500 * 2500 pixels (the client is insistant on this size not being changed otherwise I would just resize the image). make the panning and zooming smoother?At the moment the operation of the smoothZoom is very sluggish.

Jquery :: Php - Show Or Display The Newly Changed Text Field Value Instead Of Default Value Using Me...
stackoverflow.com
Here is my code,This is my form part, this is basically divided into two main actions using jquery, 1) First action :, Based on Selection from :'Academic Year' selection, 'Course' selection & 'Class'selection , i used jquery ajax post method to load data from DB to All 5 set of IDs. .... Hey this part work Fine.. 2) [my probs comes here -->], Second Action :, when i select anyone of IDs, it shud show or display new value of text box instead of default value, based on data from DB by using similar ajax post method ======================================================================== <form name="aone" id="aone" action="mattendance.php" method="POST" enctype="multipart/form-data"> <div> <div style='padding-top:20px;'> Academic Year :&nbsp;&nbsp;[code]..... I tried alot by seeing examples but cant able to display new value in text field n got wierd ,

Jquery :: -ui Drag And Drop: Using A Draggable More Than Once?
stackoverflow.com
How can an element be dragged and drop more than once with jquery's ui, since normally the draggable element is moved when drop is triggered?

JQuery :: Drag And Drop Of Table Rows Using TableDnD Plugin?
stackoverflow.com
i am using the code i have already implemented the table drag and drop what i want to make is some rows immovable like the top title bar row and the bottom submit button row how can that be achieved ? and how to save the sorted list in database by click of a save button ? $(document).ready(function() { // Initialise the table $("#table-1").tableDnD(); // DRAG AND DROP ENABLED }); my jquery code is this for dragging ->

Csv Each Filed Value Validations
forums.devshed.com
I am getting a CSV file like this from our client: "15.04.09","511333","15.02.59","0.2" If not date (col1, col3)| if not number (col2,col4) | If not empty (any field) conditions for validation I need to validate **each filed value** I am getting a CSV file like this from our client: "C1","2","12344","Mr","John","Chan","05/07/1976"......... I need to validate **each filed value** against a set of rules ,for instance for "05/07/1976" ,I need to make sure that it's in the right format ,It's not later than today and lots of other rules