JQuery :: Applying Sortable To Images?
Nov 10, 2011
I've take the standard Demo code from 'm trying to make the images within the Trash container sortable.Despite attempts for the last couple if hours and a number of different combination, I'm still unable to get it working
View 2 Replies
ADVERTISEMENT
Nov 23, 2010
I have a jquery function for loading links from my navigation on the left to the content div on the right. I also have a function for applying a class called active to that anchor link's list item parent. I later found that going through other included files in the template that there was already a function for adding that class in one of the included files (js/titanium.js) however when I take off my add class function it doesn't apply it. I thought the function from the titanium.js file would apply it but it doesn't. I have all the included javascript files included in the head of my page but for some reason it's still not using what's inside them I guess.
Another issue is that in the template file there is a jquery sortable function for any table, also included in another javascript file, and I'm not sure why its not working with my tables to make them sortable? [URL]
View 1 Replies
View Related
Jul 9, 2007
My script is the same as this http://www.w3schools.com/php/php_ajax_database.asp
When the data comes back to me its using
document.getElementById("txtHint").innerHTML=xmlHttp.responseText
I get the data back fine. However inside getuser.php my data is in a sortable list. If i use this code above. My data comes back but I can no longer sort my list and move things around (I'm guessing because its returned as HTML only). Can anybody give me a solution of what i need to change so my list is also sortable again?
View 3 Replies
View Related
Apr 3, 2011
I'm trying to import some xml code and append it to some dom element, using this...
[code]
$.ajax({
type: "GET",
url: "resources/xml/sites.xml",
dataType: "xml",
[Code].....
the correct code ( <a id....></a> ) is appended in body (checked with firefox and chrome js console), but the css style associated to it is not applied at all... it's not even shown as a link...
moreover, the alert method returns 0, so I cannot even search by its id or class...
I used the .clone() method because chrome shows an error without it.
View 2 Replies
View Related
Apr 22, 2011
$(".change_page").click(function(e){
e.preventDefault();
do_stuff();
});
I noticed when I click one of these links, there is an ever so slight lag on all browsers. Maybe less than half a second, but it'snoticeable.
Now, when I remove e.preventDefault() and use return false instead, everything runs a lot smoother.
View 1 Replies
View Related
Oct 17, 2009
Im trying to get a sliding down div, that pushes another div furtherdown as it slides. I created the following code. However, the 2nd div doesnt appear at all. What is the proper way to say only the div with class "x" should be affected? The basic tutorial doesnt really cover this.[code]
View 1 Replies
View Related
Jan 13, 2011
i am new to Html and i am helping run a website for virtual golf. we were thinking of adding a Statistics page but would need the table used to be sortable so by hitting the header the column sorts the figures in order, the tablw would only be 50 rows and 8 columns. i have looked at the website [URL]../docs/but cant seem to sort out where to place things. a step by step guide would very much be appriciated.
View 6 Replies
View Related
Oct 21, 2011
Anyone had any luck getting sortable working correctly in IE9?
[URL]
I don't see anything in the bug tracker regarding this, anyone else experience this? Anyone have 5 seconds to fire up IE9 and try the above demo?
View 5 Replies
View Related
Mar 21, 2011
I'm trying to run a function that reads the css property of an element and copies it over to another element on click.
I'm sure a huge part of my problem is that I'm stillstrugglingto learn the correct syntax for things, but I'm sure it's framed like this:
I didn't want to post my ACTUAL attempt to code this, mostly out of shame. But I'm pretty certain that it's ridiculously incorrect.
View 2 Replies
View Related
Sep 19, 2010
I have searched the forum and internet and experimented a lot with .each but couldn't get this to work:I have several divs with id="flash", and I want them all to flash when the site loads. Using this code only the first div flashes:
$(document).ready(function() {
$(window).load(function () {
$("#flash").effect("pulsate", { times:3 }, 1000);
[code]....
View 1 Replies
View Related
Jan 29, 2011
im new to jquery and still learning, i want to ask how can i apply animate effects in a div class, i have a class made for my content and im trying to apply opacity to my div using jquery, but i guess im not able to apply it to a div class, ive done the same thing with a div ID its working fine for my header. here is my code
<div class="mydiv" style="border-color:#FFF; border-style: solid;">
<p>some text</p>
</div>
View 1 Replies
View Related
Jan 25, 2011
How do I apply JQuery themes to non-JQuery UI elements? For example, if I wanted to make my own <h2> tag look like a <h2> tag within an accordion that has a particular theme, how would I do that?
View 2 Replies
View Related
Jun 17, 2010
Need to apply a var to a statement if its conditions are met, this syntax isn't throwing errors but its not working.
<script type="text/javascript">
$(document).ready(function(){
var action_is_post = false;
//stuff here
[Code].....
should I use something other than .ready? I need it to apply the var when #stepDesc0 has the class current.
View 9 Replies
View Related
Jan 11, 2011
Have been using a lot of jquery lately on some new project. Running into an issue where I stream back HTML from a servlet that is to be rendered on a page that is already rendered (using jquery async callbacks). When the HTML prints to the page into the div's specified, the css styles used in the streamed html are not showing. For example, I have the header shaded blue with white bold text via a classname in CSS.
Example Call
function function_orderExceptions(){
$.ajax({
url: '/Home/customHomepageWidgets.do?method=loadOrderExceptions&
[Code]....
View 6 Replies
View Related
Dec 10, 2010
I am very new to jQueryUI and had a question about 1 small thing that has been bugging and throwing me off. Let's say for example, we are creating a dialogue box, triggered to open on the click of a <button>. Once applied, the <button> takes classes such as ui-button, etc, which may end up altering what you want that particular button to look like.
Is there any way to stop jQueryUI from applying this set of classes to the button itself? I have tried using removeClass to strip these, but it doesn't seem to have any effect at all. The styles in my default themeroller theme have been good for everything else, except these small things I don't want altered by the jquery classes. I the model form example, I removed button() from the js and it didn't apply any new styles to the button.
View 1 Replies
View Related
Mar 3, 2011
How to add a draggable to sortable programatically ?
<script>
$(function() {
$( "#sortable" ).sortable({
revert: true
});
});
[Code]....
In the above code i have a list of sortables, i want to add the draggable($obj) to a sortable, even though i add to the sortable in the add method, that gets added but does not play as a draggable,Do i need to call any method of sortable after adding the draggable ?
View 3 Replies
View Related
Aug 3, 2009
have such a structure in HTML which finally looks like shown on this
[Code]...
View 5 Replies
View Related
May 14, 2009
its an accordion like tool. It functions just how Ineed it, except id love to make it sortable.with the codeupdate?jQuery :
$(function() {
$("#accordion1").addClass("ui-accordion ui-widget ui-helper-reset")
.find("h3")
[code]....
View 1 Replies
View Related
Oct 19, 2009
I'm implementing a drag and drop newsletter, where my users can drag content to different areas of a template. Depending on where they drop the content, I need to add different HTML attributes to some of the code (essentially need to make the images float:left if they're dropped into a certain box). I've achieved a basic version of this using this code:
$('.review_list').sortable({
receive: function(event, ui) {
// somehow need to make this only apply to competition/
mainfeature
[Code].....
This adds align="left" vspace="4" hspace="4" onto any image dropped into an element with the 'review_list' class (I know I said it was float:left but this code will be emailed so I have to do it old school style...). Anyway: is there a way that I can get the element that has received the sortable item? It could be one of three in my case, and I only want this code to be added for two of them. I guess I could run a cleanup function when submitting that removed this addition for images in the other element, but this seems messier - I had assumed that the 'receive' event would return the receiving element.
View 1 Replies
View Related
Sep 15, 2009
I'm trying to place a sortable list inside an accordion and it isn'tworkig. The list appears outside, below the accordion.
View 2 Replies
View Related
Apr 29, 2010
I'm working on a project and got stuck on this tiny script
I load some data from a file and I put in one div:
function getloadedfile (fileurl){
$.ajax({
url : fileurl,
dataType: "html",
[Code].....
The sortable only works then I don't load it as aseparatefile
View 4 Replies
View Related
May 11, 2010
<ul
id
=
[code]...
View 4 Replies
View Related
Aug 9, 2010
In my design for admin panel, i wanna drag and drop modules. i have a php array with module names, and i need to save them sql like this[code]...
i can list right and left, but when i drag and drop something from one to another, it's not working.
is there any way to do that in jquery? can i get the information about where is the < li > ? how or where can i get the "where" columun?
View 2 Replies
View Related
Jul 23, 2009
I have 2 sortable lists, #pieces and #grid. I want to drag items from #pieces and add them to #grid without removing them from #pieces. That way I could add any number of any item in #pieces to #grid. The current code i have is:
<script type="text/javascript">
$(function() {
$("#peices, #grid).sortable({
connectWith: '.column'
[Code]....
View 1 Replies
View Related
Oct 31, 2009
I'm attempting to print a column of links received via AJAX request with an accompanying simple hover effect, however I can not get the hover effect to apply to the dynamic content. I've tried a few different ways of accomplishing this, none of which have worked so far. The most recent is posted below.
The call to imgUpdate.php in the following code snip returns content like:
<a class='storyImage' href='http://link.com/dev/?p=50'><img src='http://link.com/img1.JPG'/></a><br />
<a class='storyImage' href='http://link.com/dev/?p=47'><img src='http://link.com/img2.JPG'/></a><br />
[Code].....
View 1 Replies
View Related
Oct 19, 2010
I have a template and I am popularing it with .tmpl(). Everything is working fine but now I want to apply some styles, animation effects (fade in/fade out) etc. to elements inside every template row. My problem is that the template rows are getting generated on the fly and I do not know their IDs to access them. What should I do? How can I apply styles and effects to them? Here is my template code:
<script id="container" type="text/x-jquery-tmpl">
<tr>
<td>${Name}</td>
<td>${BirthDate}</td>
[Code].....
View 1 Replies
View Related