[jQuery] quick question about loading in form elements using load()
Hi, hope everyone is well... my problem is simple, i am using load() to add an external file form contents to the dom. normally i have a listener for form elements such as inputs and textareas in my $(function() { }) that adds a class to inputs on focus and removes it on blur... but it doesnt work on the form that is load() 'ed in unless i have the script embedded in the html that is load()'ed i can live with this but i am curious if anyone knows the proper way where i can keep my javascript separate
[jQuery] Grabbing text inside an alt tag
Is there a way to grab the text from inside a alt tag? I have a site that will have tons of span tags and I need to go through all of them searching for the alt="" attribute then grab it. I'm using some non-jQuery javascript, so I'm sure there is an easier way to format this than what I currently have. Any thoughts on this would be great. ----- html example: <span>text here</span> <span alt="Joe">text here</span> <span alt="Jim">text here</span> <span>text here</span> ----- Javascript. // grab all
[jQuery] Changing the Cell Colors in DatePicker
I've tried to two different datepicker scripts and what I'm trying to do is hilite which dates satisfy a certain condition. For example, when the page loads I will make a JSON call to the server to return all dates that are holidays, then on the inline datepicker I want to hilite those cells in red. What I'm doing now is something like this in the JQuery-UI datepicker implementation but nothing works: 'onChangeMonthYear': function(date){ $(".ui-state-default").each(
[jQuery] Fade Background Help
Hi everyone. I am using the following method to fade backgrounds in and out with jQuery: http://www.supercow.nl/jquery/fading_background.html I am wondering if anyone knows of a way to make the pictures fade into the next picture instead of fading to a background and then the picture. Thanks for any help.
[jQuery] jCarousel remove method problems
I have added buttons to my jCarousel to trigger removing any image from the carousel. However, it seems the remove() method is not working for this. First off, it only allows you to remove images that are off-screen. Even if I hack around that problem the carousel does not update to remove the gap where the removed image was. If have tried resetting the size() value and then calling reset() or reload() but neither of those work either. Any ideas?
[jQuery] Change text items in URL
I have three radio boxes set up where each one is a different value. - red - blue - green I'd like when one of them is clicked to change the value of the url. So for example --Changethisvalue-- would be actively updated on each click. http://domain.com/ad/campaign/g/--Changethisvalue--/dck/35
[jQuery] Auto Tabbing using Jquery, Please help
Hi I am trying to do the auto tabbing text field --> text field and Text field--> check box. My code is not working. Any one please help. Here is my code. <html> <head> <title>Check Box</title> <script src="jquery.autotab.js" type="text/javascript"></script> <script type="text/javascript"> (document).ready(function() { $('#area_code').autotab({ target: 'number1', format: 'numeric' }); $('#number1').autotab({ target: 'number2', format: 'numeric', previous: 'area_code' }); $('#number2').autotab({
[jQuery] Jquery and IE
I'm new in here, english sucks. I've got a problem with this function: $(document).ready(function(){ $("#caixa_disciplinas ul li").each(function(){ $(this).click(function(){ hora = document.getElementById('hora_'+this.id).value; cod = document.getElementById('cod_'+this.id).value; dia = document.getElementById('dia_'+this.id).value; selecionaDisciplina($(this), 'I');
[jQuery] countdown Plugin
<span class="Apple-style-span" style="border-collapse: collapse; "><span style="font-family: '-webkit-monospace'; font-size: 16px; ">I'm developing a web for online auction items. Each item will have a countdown such as 00:10:00 and will go down if the user does not make a bid. If the countdown is done then the bid will be 30 seconds. The problem is: How do I create a script so that the Auction does not connect to the server every second? Connections should be made to the server if there is to
[jQuery] find() on DocumentFragment not returning consistent results
Hello all, I'm looking at a simple case of a DocumentFragment node which has a span as a child. If I do $(fragment).children().filter("span") then that finds the span as expected. But $(fragment).find("span") returns nothing. Shouldn't the second query return something if the first does? Sample code: var fragment = document.createDocumentFragment(); fragment.appendChild(document.createElement("span")); var filterChildrenSet = $(fragment).children().filter("span"); alert('Results found using $(fragment).children().filter("span")
[jQuery] [validate] $.format conflict
Hello there, I'm the author of the jQuery Timepickr (http://haineault.com/media/ jquery/ui-timepickr/page/) and I had a bug report which was resolved by a user. He found a conflict with my library and jquery.validation.js. http://code.google.com/p/jquery-utils/issues/detail?id=15 Both are used for forms, so it's quite likely that other people will run into this bug and either blame your plugin or mine. Normally I would just quickly resolve the conflict on my side, but this would be relatively problematic
[jQuery] Cascade plugin
After updating the selectlist using the plugin, I don't get the selectlist form variable on submission. All other form vars are there.
[jQuery] [treeview] what are the possible options for this plugin?
There doesn't seem to be any place that I can find which explains the options available for the treeview plugin. Does anyone have a link or reference as to what the options are and what their settings mean?
[jQuery] [treeview] top node (root) is open but has plus sign????
I have a treeview where there is only one node at the top of the tree with several child nodes -- some having child nodes -- some not. All open / close indicators are as expected EXCEPT the very top one which even though the node is open it show a '+' sign rather than a '-' sign which is the normal display for an open node. Also clicking this top node's '+' closes the whole list AND changes the indicator to a '-' sign. Again, not what you would expect. Any ideas?
[jQuery] flexigrid and coldfusion
If anyone has used flexigrid and coldfusion before I would really appreciate your insight! I have my flexigrid set up... $(document).ready(function(){ $("#flex1").flexigrid({ url: "../com/nyumba/test/Test.cfc? method=getTestData&returnFormat=json", dataType:"json", colModel:[ {display:"First Name", name:"user_fname", width:100, align:"center"}, {display:"Last Name", name:"user_lname", width:100, align:"center"},
[jQuery] fadein thumbnails when loaded
Hi, im a totally beginner so this may be obvious but im stuck!!! I have image galleries on my site and i want the images to fade in after loading, at the moment i have the following script: Code: $(function() { $("div#media-gallery ul li img").css("display","none"); $("div#media-gallery ul li img").fadeIn(2000); }); Which almost does what i want but.... A) the images very quickly load then disapper. I dont want to hide the images in css incase people have js diasbled. B) all the images load together
[jQuery] Trouble selecting a P inside a repeating DIV
Hello - My basic code is something like <div class="insidepost"> paragraph 1 paragraph 2 paragraph 3 </div> <div class="insidepost"> paragraph 1 paragraph 2 paragraph 3 </div> I was hoping to use $(".insidepost p:eq(1)").addClass("cambottomline"); $(".insidepost p:eq(2)").addClass("cambuy"); Only works on the first div though. Any suggestions for selecting the same certain P in each div? Thank you, Tobias
[jQuery] Whats going on with this?
http://mtschophouse.com/vero/menu/ Click on any of them, and they open up just fine, however, after this point they dont close, and you also can't open any other one, it just... stays stuck there. I had this working just fine, and in the process of working with wordpress and templating, obviously I changed something to mess it up. I have no idea what I did to get it to stop working. Halp! Thanks in advance guys Very Happy btw, its based on this: http://jquery.andreaseberhard.de/toggleElements/index.html
[jQuery] Whats going on with this?
http://mtschophouse.com/vero/menu/ Click on any of them, and they open up just fine, however, after this point they dont close, and you also can't open any other one, it just... stays stuck there. I had this working just fine, and in the process of working with wordpress and templating, obviously I changed something to mess it up. I have no idea what I did to get it to stop working. Halp! Thanks in advance guys Very Happy btw, its based on this: http://jquery.andreaseberhard.de/toggleElements/index.html
[jQuery] unsubscribe
<br clear="all"> -- “Every failure made me more confident. Because I wanted even more to achieve as revenge. To show that I could.”
[jQuery] jQuery Corners over a background image
I've noticed that when you use the corner plugin using a background image the corners that the plugin is working will show part of the background, is there a way to fix this?
[jQuery] Possible bug in selectors
Hi, maybe I'm missing something, but I think I found a possible bug in the jQuery 1.3.2 selectors. If it turns out that I'm wrong, please forgive me. If I'm right, I'll post this in the official bug tracker. The situation that seems buggy to me is the following. I have a table with multiple rows, where the first cell of every row has got an input inside it. Now, considering that I have a variable var_row that is a reference to a row other than the first one, if I try and select the input from the
[jQuery] Malsup Media Plugin (stop all players?)
First off this media plugin is awesome and has saved me a lot of time, thanks for all your work in developing this! Now to the issue. I am sure you have come across this before where you have 5-10 players on a page and you click the first player to listen and then about halfway through you click on another player to listen to a new song and boom your ears start exploding from the mashing of rhythms! Is there a way to only "enable" one player at a time, or some way to stop all the other players when
[jQuery] jQuery 1.3.2 *SLOW* using ".class tag" selector?
I have a situation where I have some HTML I am selecting elements from using the ".class tag" selector combination using jQuery v1.3.2. I have noticed that in both IE8 and Firefox 3.0.10 this particular scenario is painfully slow to execute. From profiling in both browsers it appears that the Sizzle engine is making an *enormous* amount of calls to both the isXML and filter functions. If I upgrade the version of Sizzle to v1.0 then these selectors work incredibly fast as I would have expected. Profiling
Toggle Elements Stops Working? Help!
http://mtschophouse.com/vero/menu/ Click on any of them, and they open up just fine, however, after this point they dont close, and you also can't open any other one, it just... stays stuck there. I had this working just fine, and in the process of working with wordpress and templating, obviously I changed something to mess it up. I have no idea what I did to get it to stop working. Halp! Thanks in advance guys
[jQuery] Serialize jQuery Objects ?
Hello, I wrote a library which records / plays back DOM events with a faux cursor, its working great looks just like the real thing, however the one problem is exporting this data so it can be pulled in for playback in the future. I obviously cannot serialize entire jQuery objects using as JSON, so what I was hoping for was using xpath or something so that it could be a very lightweight export. Any ideas? is there anything unique to the element which stays intact each refresh that would be worth
using xml data with tablesorter plugin?
Hi, Seems like kind of a stupid question. I'm just getting started trying to use jquery. I have some xml data that I've generated out of php and I want to turn it into a nice sortable table. I have tried out the basic tablesorter http://tablesorter.com/docs/ plugin and it's great. I've also tried a basic "convert xml into html" because it seemed like that would be the next step for me. Then I tried combining the two, but that doesn't seem to work. The javascript for turning the xml into html runs
[jQuery] Suckerfish
If I load the jquery UI script after the Suckerfish script, then Suckerfish breaks and vice versa. There seems to be a conflict between the two. I am using Jquery 1.3 and UI 1.7.1. Has anyone else had this issue?
[jQuery] GET PARAM FROM URL WITH JQUERY
<span class="Apple-style-span" style="border-collapse: collapse; "><div>Hello all</div><div> </div><div>I will aks sth </div><div> </div><div>example : <a href="http://www.matrix.com/index.php?p=gallery#page=1" target="_blank" style="color: rgb(42, 93, 176); ">http://www.matrix.com/index.php?p=gallery#page=1</a></div> <div> </div><div> </div><div>how can I get page=1 (parameter after sign #)</div><div> </div><div>thanks</div><div> </div></span>
spot the difference in the code :(
HI, i have two html files index and index1. on index javascript works but after a 1 sec or so redirects to something wired. index1 doesnt work at all. its a simple increase font size thing. i'm new can any expert help? Thanks codes on files index <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript" src="jquery-1.2.6.pack.js"> </script> <script type="text/javascript">
[jQuery] Please Help - While Loop PHP & JSON - Comment List
I want to display an unordered list of comments from my echoed JSON result using this jQuery code block: $("#goComment").click(function(){ bigComment = $("#bigComment").val(); $.post("i-upComments.php", { //this inserts the comment into the 'comments' table in the DB bigComment: bigComment, u: u, }, function(data){ //display the list of comments as a unordered list - LI }); }); ----------------- Here is my PHP: <?php include_once("db.php"); $u = 'Jl6XR'; $sql = "SELECT * FROM bigNest
Carousel enhancement
Hello I am using the jCarousel Lite script and it is almost perfect for me. It would be nice that if I click twice on the next button it skips the 3 items it was going to show and shows the next 3 items. Right now it finishes each animation loop before you can click to see the next results. The code is here http://www.gmarwaha.com/jquery/jcarousellite/#download If you want to see what I mean http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm carousel script is doing it right. But I really
[jQuery] Cluetip not working on multiple links calling local html data
Hi, I'm pretty new to jquery, but I really love the cluetip plugin. I'm having trouble, though, when I define tips for a series of <a> elements which each call different local html data. When I use the "rel" attribute to call distinct attribute values for the <div>s holding the data (whether id or class), I only get data in the first cluetip. For the rest I get the tip but it's empty. Here's the script in my <head>: $(document).ready(function() { $('a.load-local').cluetip({local:true, hideLocal:
[jQuery] Help Form validation breaks after the first search that is succesful "Conflict in the script" (jquery.forms.js)
Hi, I've a code that validates jquery form and gives a result, but when i try a second search it stops working. bare with my programming as i'm not an expert in javascript. There is no error message that tells me where to look (firefox console). Can someone help me figure out what is happening. The Script (form) <script type="text/javascript" charset="utf-8"> function searchOnClick() { $(function() { var options = { target: '#searchresult',
[jQuery] serialScroll option : start --> no effect
We're using the serialScroll method and using some of the options. Only the option start has no effect. We want to scroll at the start to element 2 and not to the default position 0 Suggestions? $('#technical').serialScroll({ target:'#technical-sections', items:'li', // Selector to the items ( relative to the matched elements, '#sections' in this case ) axis:'x',// The default is 'y' scroll on both ways navigation:'#technical-navigation li a', duration:900,//
[jQuery] Form Tips
Hello, I would like to show a tip or balloon with some info when a user clicks an input to enter a value. Does anyone knows a good plugin that does this? Thank You, Miguel
HELP! I need a decent transition effect for a AJAX operation
I looked everywhere, tutorial and forums and books and such, but I can't find help for my case. Everyone explains fadeIn and fadeout effects but not in conjunction with ajax. I also tried ajaxStart and ajaxStop but couldn't get it to work. So here's the deal: I call a js file from a php page. The javascript file does ajax things and changes the content of a div accordingly. The function works. Problem is with this transition: old content > loading message > new content the fadeIn/fadeOut effects
What is the value inside SPAN tags?
I have a SPAN and I want to dynamically change the value. I can't find the property that lets me reference the data within the SPAN. How do I do it? TIA
[jQuery] Cycle Plugin
I'm using the Cycle plugin (http://malsup.com/jquery/cycle/) to display a mini slide show but my pictures are of different sizes and some are portrait and some landscape. Is there any way of using the Cycle plugin such that pictures are centred (horizontally and vertically) in the container?
What does indexOf() do?
Hey, can sombody explain the indexOf() function to me? I'm not sure what it does but I can't find any documentation on it.
Next Page