would like to sort an UL dom element having some LI elements.I'm stuck and some plugins I found are not correctly working, so I maybe need some custom code.The UL :
[Code]....
So the li elements contains the span element that has the real text that needs to be sorted, it is important that the li should be moved as the custom attribute id is required for another purpose.
I would like to select an element that is in the same TR as another element I found with a selector. The selector itself: $("input[name='sMessageValue']","#messageTable") Now I have this element and got its value I would like to find a checkbox located in the same TR, i tried this as starting point : $(this).(':parent').val(). But seems not the right thing to do.
I am using jQuery for custom sorting my <ul><li> list.But I have a problem. I can sort and move those <li>-s but problem is I don't know how to update database with new order integers.Example of html ul li:
[Code]....
This is an example of my li element.. I have id=43, thats Id of picture in database.I use this javascript for trying to somehow make array and read that id into array:
[Code]....
Problem is I don't know exactly what am I doing wrong, because my event doesn't fire, when I press "update button.. Update button fires "update" function on click:
[Code]....
I hope someone will try to explain.Do codebehind and html needs to be in the same document? Can I use ascx and use "update" button there, to fire aspx methode?
I have a photo album gallery within my website and would like to allow users to sort the order of their photos within an album. After looking at very different ways I came across this example
http://www.west-wind.com/rick/photoalbum/demoMaui2006/Default.aspx?Admin=true which is exactly what I need.
The photo are stored in the uploads directory and details in the database. The images are displayed using the ListView as shown below:
[Code]....
I would like to rearrange the order of the photos; change the captions and/or delete the photos just like as in the example.
So could someone please provide the steps that I need to follow in order to achieve the following:
Firstly to display the photos from the Photo table in the database (can use the above listView) Rearrange the order; change caption and/or delete the photo(s) Final to update the changes in the Photo table
I am new to programming, especially jQuery so could you kindly provide/explain the steps that I need to follow.
I want to catch click event on every link in one element for example my html looks like this : [Code]....
and my function is this:
$("#test").children("a").click(function (e) { e.preventDefault(); $("#okno2").append("Kliklo se z prvnĂho okna!"); });
but it catches only the click event on the first link but on the nested link in <p> it doesn't respond. Is there any way how to get all children not only the straight, but also the nested ones?
So what changes should i make to the jquery.openid.js to make it work?
I mean in the first case the $this refers to form.openid:eq(0) In the second case the $this refers to #text.openidd and the form is never submitted.
I guess something like this one $this.FindParentForm exists in JQUERY, but i have no clue!
I added the div tag as enclosure for the elements. The form contains other <li>'s etc that jquery messes with. And i would not like that! That's why in my post i believe that the work has to be done in the jquery.openid.js file... something like
I am trying to auto fill city and state value after user typing 5-digit zip code. The Ajax part works perfectly, the problem is I have two sets of zip/city/state fields in one web page. I searched this issue for quite a while, using next(),nextAll() even slice(), none of them work in my situation.
Web page related part:
[Code]....
After using Ajax function I get returned value for city and state. For each city textbox I give a "city" class, for each state dropdownlist I give a "state" class. I wonder how can I put those value into right position?
i am developing an ASP.NET website with a master page,i want to get an element in masterpage from another page inheriting the master page i know how to do this in c#, but i want to make this from jquery.
I want to replace a form element with a div and keep the inner html of the form inside the inserted div element. i tried jquery it gives me unkown html element as selection result,
I have and problem of validate my element from the out side the form tag.
Here I am describe what I have done and what i need :
[code]...
now this TxtSite element is out side that SiteDetail form and i want to validate this element when i have submit data this validation should be validate.
I have an containing a list of divs that jQuery turns into progress bars. On .ready, I build a list of all of these progress bars and for each one, call a webservice that gets a value indicating how full the progress bar should be. In order to do this, I need to pass the ID of the div to the web service.
Because the divs are inside a ListView, I manually set the id to be id="completionbar_<%# Eval("MilestoneID") %>"
However, when I pass this id into my web service, it comes up as "undefined" every time. When I view the source, it looks like it's set correctly.
After a little hard work I was finally able to bind jqgrid in asp.net, but now I am facing another problem that is I am not able to sort the data or use pagination in jqgrid. And it seems There is a post back every time I click on the grid headers or select the page drop down. My code is as follows:
"JQueryPage.aspx" is just a page that contain DIV called 'resultsDIV' that contain the data that i want to return the above code return data variable that contain "JQueryPage.aspx" html and i want to get DIV content from it .
i have 2 questions:
1- how can i extract DIV content from data object 2- is this way is th best to get that data ?
I have a nested table structure, a part of which is rendered by a ajax call that returns HTML from the server. The markup looks like this:
<tr> <td><table cellpadding="0" cellspacing="0" border="0"> <%-- Content will be displayed from ajax call 1 --%> <%-- Content will be displayed from ajax call 2 --%> </table> </td> </tr> </table> .. more html
In jquery, I need to insert this html for which i need an element to traverse to so that I can call the html() of that element. Unfortunately, if I use a div, for example:
<table cellpadding="0" cellspacing="0" border="0"> <div id="divAjax1"> <%-- Content will be displayed from ajax call 1 --%> </div> <div id="divAjax2"> <%-- Content will be displayed from ajax call 2 --%> </div> </table>
the classes are setup such that the div or a span causes other issues.
Can anyone think of a (preferably quick) way to move the data() attached to a DOM element to a new instance of itself?
The lightbox plugin I'm using deletes and re-appends and element to the page in order to display it in the lightbox (to aviod the multiple-ids issue that ASP.net has), and obviously the .data() that is attached to the element is lost when this happens.