[jQuery] Using " " (or not!)
This does not work: $("#msgUnits").text( ); nor does this... $("#msgUnits").text(' '); I guess is html only? Clues, anyone?
[jQuery] Please need your help
<div dir="ltr">Hello every one, I need your help , how can i use validation plug in to validate two form in the same page thanks </div>
[jQuery] [validate] Hangs jquery after first init of classes (jquery 1.3.2)
Hello, Following sample code works with older jquery. After moving jquery 1.3.2 and new UI and latest validate code it stops working. If I remove the validate code works again... --- following classes are working (eg $("#hucre_ayarlari").click ) <tr class='drList_bloklar_tr'> <td style='vertical-align:top;width:400px;'> <table border='0' cellpadding='0' cellspacing='0' style='width:100%;'><tbody> <tr class='bdDark'><td class='fgFlash2 fwBold fsMid'>
How can I change the source of an image but preload it first
Hi. I have a gallery powered by jquery. When you're viewing an image, you have thumbnail links to click on below. When you click one, I change the main image's source to the full version of the thumbnail you clicked on. This works rather great. Problem is, I want to show some sort of loading gif before the new image arrives. As of right now, when you click a thumbnail, there's no visual indication that it worked until the new image appears. Is there any way to show a loading gif until the new image
[jQuery] jQuery UI... Being integrated into our entire website
Thursday I released a new version of a website I manage, Cablesforless.com, which takes full advantage of jQuery, a few of it's plugins, and UI. Anyway, what do you guys think? K-BL
[jQuery] [ScrollLeft ?]which func is scrollleft
var i=1; function sw(act,id){ if(act=='in'){ if(i>=1){ i=i-6; $(id).scrollLeft=i; var b=setTimeout(function(){sw('left',id);},"10");} else{ clearTimeout(b);} } else{ if(i<410){ i=i+6; $(id).scrollLeft=i; var b=setTimeout(function(){sw('right',id);},"10");} else{ clearTimeout(b);} } } just want this scroll in Jquery style. btw, $(id) is getElementById. Anyone? thanks a lot
[jQuery] [Howto] Validate a form in two part
e.g: <form> <fieldset id='1'> <input class='text' /> .......<button>CHECK 1</button> </fieldset> <fieldset id='2'> <input class='text' /> .......<button>CHECK 2</button> </fieldset> </form> if I use "ignore: '1' ", It seems not working. I just want to check a form in 2 part, at different click.
[jQuery] [autocomplete] Support for JSON data
Have you ever considered to add support for JSON data format to the autocomplete plugin? Many other autocomplete-like plugin does support this data format, but this one is (imho) still the best at doing its job. It's a pity that it doesn't support JSON. Cheers, Andrea
[jQuery] Working with variable in jquery
hi, I am working on something like this I have about 20 groups, each group contains two paragraphs, one visible and one hidden; and two divs, one visible and one hidden. Each group have a unique id from mysql. What I am trying to do: When you click on a paragraph, all divs and paragraphs with the unique id of the clicked paragraph, are being toggled. I have the code to get the id: var divs = document.getElementsByTagName("p"); var len = divs.length; var thisDiv; var thisDivID; for (var i = 0; i <
[jQuery] Working with variable in jquery
hi, I am working on something like this I have about 20 groups, each group contains two paragraphs, one visible and one hidden; and two divs, one visible and one hidden. Each group have a unique id from mysql. What I am trying to do: When you click on a paragraph, all divs and paragraphs with the unique id of the clicked paragraph, are being toggled. I have the code to get the id: var divs = document.getElementsByTagName("p"); var len = divs.length; var thisDiv; var thisDivID; for (var i = 0; i <
[jQuery] Cycle plugin Issue in Safari and Chrome browser
Hi, I hope someone can help me with this issue. When I look at the demo pages on the Cycle plugin website they all work in all browsers but when I do my own page and test it using the shuffle feature it works in IE6, IE7, Firefox but not Safari or Chrome. I am going crazy here so can some one point me as to why Cycle plugin is not doing anything and just stacking the div elements one on top of the other . I am using JQuery 1.3.2 and Cycle Plugin 2.56 . Regards peter
[jQuery] $.get callback not firing on success
The error is happening in my javascript here: http://dev.iancmyers.com/google/ Here is the function that is having the issue: Zappos.prototype.fetchData = function() { console.log('fetchData called'); var that = this; $.get('zappos.php', function(data) { console.log('data fetched'); if(data != that.data) { that.data = data; data = data.split(';'); var itemLatLng = new GLatLng(data[1], data[0]); var itemImage = $('<img src="' + data[2] + '" alt="" />'); that.createOverlay(itemImage, itemLatLng); that.marker[that.itor]
[jQuery] jQuery AJAX Forms Question
I'm using the jQuery Validation and jQuery Forms plugins on my Submit Form. I have the validation portion working correctly and the AJAX submit working correctly. However, I would like a few things to happen after the user has submitted information. I would possibly like to show a simple loading overlay (in a shadowbox) so that the user knows the form is working and I would like to redirect the user to another page after the process is complete So far this is what I have: $("#submitForm").validate({
[jQuery] Removing character from link text
I've experimented a fair amount over time, and nothing seems to really work. I am trying to replace the underline character _ from all links text that have "documents/" as part of the href, with a space; not from the href, just the link text. e.g. $("a[href*='documents/']").val().replace("_", " "); I know $("a[href*='documents/']").css("color","red"); works, so perhaps it's not that far off. Any idea what I'm missing? Thanks
[jQuery] is that possible to go back on window unload event
Hi, all In $(window).unload(function(){ ... }, is that possible to cancel unload event. I mean I would prompt for users if they want to close the window. If they don't want, how do I cancel the event? Jack
[jQuery] Superfish: submenus out of windows
Hello the list! I'm new on this list. I'm here for Superfish menu explanation. I have 5 menus on an horizontal header. The last one have 3 sublevels, and the last sublevel get out of the display(unclickable) when it shows up. Isn't there a way to have this last menu to show up in the left direction rather than the right ones? I'm nowhere in Javascript, so just can't figure out how this could be possible nor done. Thanks all in advance. Rui
[problem] Nested Sortable
Hi All am new in jQuery, and am stuck in nested sortable items what i want is when user holds title and move it to anther place all childes of this title most move also. also we need to sort on childes for the same parent for sorting childes for the same parent i used $('#tbl').sortable({ items: 'tr' }); $('#tbl2').sortable({ items: 'tr' }); $('#tbl3').sortable({ items: 'tr' }); and it's works just fine till i added this line $('.Parant1').sortable({ connectWith: ["#Container"]
[jQuery] modifying parts of cloned inserted content
I have a div containing a form label and field. I'm building a feature where the user can add as many of these fields as they need. <div style="padding: 1px; clear: both;"> <label class="left" for="f_calibration_url[1]"><span>[+]</span> Calibration URL:</label> <textarea rows="2" cols="40" id="f_calibration_url[1]" name="f_calibration_url[1]"/> </div> If the user clicks the [+] in the for label a clone of the field is inserted into the form. I've got the cloning and inserting logic down but what
[jQuery] [blockui] Use blockui to block until page loads
Hey there, I use jquery but have to admit to not understanding it really well - how many different things can one learn??? I have a page that uses jquery popup and also loads a CGI script. It takes a little while for the CGI to load so I want to block the page until it is done. How would I di that with blockUI? Thanks in advance
[jQuery] alert('jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...'); in production code
I just ran into a problem caused by my adblocker. it removed a portion of the website that apparently was needed for jcarousel to determine the dimensions of its object. This caused a series of the above mentioned alert messages. I cant even reconfigure my adblocker to not remove the element, because the carousel effect is trigger every second, leading into a new alert messages that blocks the whole window. I my opinion, this message is good in development mode, but has no benefit for the enduser
[jQuery] triggering events with selected <option>
What I want to do should be very simple... but somehow just doesn't work: I want to control the hiding/showing of paragraphs with a <select> element. Without further adue, the code: $("select.numberPages").change(function(){ if ( $("option.a").selected ) { $("#p1").show(); $("#p2, #p3, #p4, #p5").hide(); } if ( $("option.b").selected) { $("#p1, #p2").show(); $("#p3, #p4, #p5").hide(); } if ( $("option.c").selected) { $("#p1, #p2, #p3").show(); $("#p4, #p5").hide(); } if ( $("option.d").selected)
[jQuery] IE6 Crashed
Hi, I have any php code for contact form in my cms . this form upgrade to jquery and form plugin . jquery worked with FF / Opera / Safari / Chrome / IE7 . . But crash with IE6 . when submit and send data and waiting for request IE6 crashed and not worked !!!! how to fix ??
[jQuery] Why won't this work in ie ?
In my jquery code I do: $.each(json, function(i, item) { $('<a>').attr('href', 'http://example.com').html('test').appendTo ('#gallery'); } I have a div to hold the content in the html: <div id="gallery"> </div> In firefox I will get a series of links, in ie7 i get nothing... I can replace the code with this and it works fine in ie: $.each(json, function(i, item) { $('<img/>').attr('src', item).attr('class', 'thumb').appendTo ('#gallery'); } Something about the chaining perhaps?
[jQuery] JQuery Selector
This form of a selector is undocumented.. ('#<%=x.y%>').length What does it mean ? Thanks..
[jQuery] ajax.load(url) working in IE only
Hello, I have use ajax.load in the following function to load both a main image and an image navigation bar on a single page. The fucntion works in IE but not in FF or Chrome. I am not fluent enough (yet) with javascript or firebug to figure out what is happening. The demo page can be found at: http://hooker.dotnetnebraska.com/index.php/gallery /* * Updates Photo Gallery */ function updateGallery() { $(".galleryNavHA").click(function(event){ event.preventDefault();
[jQuery] Dynamically Autocomplete
Hi master developers! I have researched some JQuery autocomplete with some experiment tests. No autocomplete plug-in can handle what I wanted to do. In a nutshell, as an example, let's assume that a book could have multiple authors. I have one input text box with a single author name. I press 'Add Author' button to dynamically add new input text box which is done by JQuery clone. While keeping autocomplete for first input textbox, I wanted to duplicate autocomplete for second input as well. Does
[jQuery] form objects and the DOM
Hello. I am building a webform which will be used to enter the names of people, then hit a submit button to send the data to the server. I have a button which uses jquery to append input fields to the form on the fly. Hit the button, get another text input field. These input boxes are correctly attaching themselves as children of the #names div. My #names div is inside of my form in my HTML file: <form> <div id="names"></div> </form> But firebug is always putting my form in a table at the end of
[jQuery] JQuery form not working on ie6
On form submit loads a script "update/ajax" which recalcs cart values. Post script loads the contents of the page (passed to Codeigniter framework as the url: /cart?showcart/ajax)...Works gr8 in safari Firefox but in ie6 it fails.... not picking up submit it falls back to the degraded no javascript operation.... about time somebody kicked off a class action suit to sue microsoft for all the time waste with their tinpot Browser ;-) ... js code... --------------------------- $(document).submit(function()
[jQuery] layering two images on top of each other in when using jQuery Cycle Plugin
I have problem making my customize button on top of slide show images. The image that is placed on top of the slide image has absolute position. The images bellow are the sliding images which are also absolute position. I did set the button to have higher z-index however when I try to click the image the browser can't recognize which one is now hovered. I did the example so that anyone can understand my issue easily. http://demo.joyobject.org/twoimages/twoimages.htm The idea is that the button image
Trying to figure out how to do a simple slide & change t
I'm pretty new to Jquery (like big-time newbie) and I'm trying to figure out how to simply set up link so that when clicked (like "read more"), the content that is hidden slides down and then the word "read more" switches to "read less" which enables the individual to hide the text that was just revealed. Any insight would be appreciated. I'm going to have 3 "read more" links on the same page. I'm embarrassed that I know so little right now, but I've got a deadline in 2 days to get a project finished
[jQuery] Preload of images before site shown/jquery cycle preload images?
Ok... I've successfully managed to invoke jquery.cycle.lite.js and apply it to the designated div on my site. However on the page load it displays all of the banner images and looks very ugly. Is there anyway I can hide this? Possibly preload more of the site? The code used on http://www.linksphere.co.uk for my images: <div id="featured"> <img src="{$img_dir}featured-banner.png" width="600" /> <img src="{$img_dir}antecbanner.png" width="600" /
[jQuery] xml parsing
I have been reading through the group but I can't find exactly what I am looking for. I am using jquery get to process an xml file and am wonder about a few things. 1. How do I get the function to use the data I pass in, in this case name:"yyy" 2. the code below works in FF but IE7 returns a blank for the text. Is there a better way to do this. Here is my code: $(document).ready(function() { $.get("films.xml", { name: "yyy" }, function(xml) { var theXML = xml; var theName=$(theXML).find("name:contains('x')");
[jQuery] Simple JQuery selection question
I am a beginner, so please excuse my ignorance. I have a simple html page with the following structure. When the image is clicked, I want to be able to get the title of the person and add as title of the image. I am not sure how to get the selected element 'title' and not all the li.title class items. My JS looks like $(document).ready(function(){ $("img").click(function () { $("li.title").css("text-decoration", "underline"); $("img").attr("title",$("li.title").text()); }); }); <body> <ul id="infolist">
Dropdown menu not working in IE..
Any ideas as to why this is not working in IE? http://test.surreyfitnesscamps.com
JQuery Lightbox Problem
I'm modifying a javascript file that creates a series of divs and image links based on the jquery tags given. something like this <script type="text/javascript"> prodImages.imgs['thumb4'] = {large :'<?php bloginfo('template_directory'); ?>/images/f/p-4.jpg'} </script> then the script does something like $('#div').after('<div class="newDiv"><a href="some/image"><img src="some/other/image" /></a></div>'); My problem is, I need to do $('.newDiv').lightBox(); so that all those generated image links
[jQuery] slowly load image 1 line at a time
hi, I am in need of some way to slowly load a image 1 line at a time, or maybe load a div 1 line at a time any ideas? thanks, -tom
IE not working? what's new...
I'm building a pretty standard jQuery plugin, using the structure: (function($){ $.fn.myPlugin = function(options) { ... }; $.fn.myPlugin.options = { ... } })(jQuery); , where options are, well, options that can either be set through the function's parameters when the plugin is called or globally using the options object. Pretty normal, it's in all the tutorials. And it works perfectly in everything except... you guessed it... IE! I'm not even getting past the first line:
checking all check boxes
I want to check all check boxes when check box near text "Check All" checked. See the page at http://nancy.bizhat.com/jquery_check_box.html can some one tell why the check boxs are not getting selected ?
[jQuery] Extending global in plugin
I'd like to write a plugin that: 1) creates and populates some new elements on the page based on some data passed to an initialize function. 2) does regular plugin-y things like $("#element").myCustomMethod({foo: 1, bar:"hi"}); I understand how to do #2, and there's lots of good instructions for writing plugins that do that. But what's the right pattern for also doing #1? Ideally I'd like to write something like: $.myNewFeature(initializeOptions); In particular, what's the right pattern for providing
[jQuery] [treeView]Problem with span width for "title" items of treeview
Hi, I have a problem with the first item style in my jQuery treeview. The code for this item is : <span class="spanItemTV">Item 1</span> (see the code below) I put a background-color on the item. I would like to set its width to 100%, so that the first item bar covers the entire width screen. Unfortunately, it doesn't work, the width is limited to the span text size (here the text : "Item 1"). I did make it work, while deleting the first line of my html file containing the DOCTYPE instruction. Well,
Next Page