[jQuery] Ajax/Safari 3/SSL
Hey all, Does anyone know anything about problems with Safari 3 when using AJAX over SSL? It doesn't seem to work. My AJAX stuff that works in every other browser, and also works in Safari when not going over SSL, utterly fails. I'm just hoping someone might have run across this and have some information. I Googled it but didn't turn up much of anything that was helpful. Are there any options for trying to debug in Safari? -- Josh
[jQuery] Custom element attributes generated by a plugin
I'm *considering* adding a custom attribute for elements created in a plugin and wanted to know what the general feeling is on this. I'm guessing any opposition to the idea would be based on the fact that it wouldn't validation (if someone were to extract the DOM and run that through a validator), but does that really matter? Since plugins are used by the community, I don't want to do anything that would grossly offend anyone, so I thought I'd just see what the reaction would be. =)
[jQuery] Is their a way to wait for .animate to finish, before executing something?
code: $("#body").animate({height: 'hide'}, 'fast'); //hide the body, untill get returns... $.get(thehtml, {sid: Math.random()}, function(thepage){ $("#body") .html(thepage) //apply new content... .animate({height: 'show'}, 'slow'); //show the body... }); -- With this code I wanted to hide the div with .animate, then wait untill, the get message returns, then when it does load the return value into the div, and then show it with .animate.
[jQuery] Problem validate under IE
http://www.contaflux.ro/gestiune/module/intrari.php I have two problems: 1. This script works good in FF, but it doesn't work in IE6. I have been trying to solve it for 2 day, but i didn't succeed. Please help me. 2. The method resetForm from plugin validate it doesn't work neither in IE6 nor FF. Please help me.
[jQuery] accordion doesn't work with more than one paragraph per heading
$(document).ready(function(){ $(".accordion h2:first").addClass("active"); $(".accordion p:not(:first)").hide(); $(".accordion h2").click(function(){ $(this).next("p").slideToggle("slow") .siblings("p:visible").slideUp("slow"); $(this).toggleClass("active"); $(this).siblings("h2").removeClass("active"); }); }); accordion doesn't work with more than one paragraph per heading if any heading has more then one paragraph it will only display one of them, i tried giving
[jQuery] Working with treeView
Has anyone seen or worked with treeView where with using a right click menu you could add branches to expand the tree? I have been working on getting a custom tree app built but keep running in roadblocks up down the branches. I know that the treeView demo has an add feature, but I need something more precise to the point where I can add/delete parent/siblings/ children from the tree and the tree will recognize the changes in it's structure. Maybe somehow or someway the tree rebuilds from the source
[jQuery] [validate] java porting?
Hello! First, thanks for the wonderful validation plugin :-) Then, what about a java porting of the plugin? I'm thinking of a java validation library which understands the same (json) rules written for the jquery validation plugin...or am I talking nonsense?
[jQuery] [VALIDATE] Problem, 2 clicks to submit.
Jörn Hello! I think I found a problem with the plugin. When you use more than 3 fields with remote, you must click 2 times the button to submit it. We tried everything and it does not work with only 1 click. Here's an example: http://www.animeschool.com.br/validate/ All fields in a way that does not cause any errors, then click submit. He did not submit, then click again and it will. I await a solution. Congratulations for the work again! Marcos Aurélio
[jQuery] Plugin Validate - Bug onsubmit
I think I found a problem with the plugin. When you use more than 3 fields with remote, you must click 2 times the button to submit it. We tried everything and it does not work with only 1 click. Here's an example: http://www.animeschool.com.br/validate/ All fields in a way that does not cause any errors, then click submit. He did not submit, then click again and it will. I await a solutions. Congratulations for the work again! Marcos Aurélio
[jQuery] detect when css property changed
hi guys! i would like to know if it is possible to detect or "create an event" for when an element 's display property is set to visible? That's for a small plugin i'm writing, that reveals elements in a list one by one at a given interval. Of course, the list is hidden at first. what i would like is that, by using show('), it triggers the effect. so $('ul').reveal(2000); // behaviour is set $('ul').show(); // animation should start. Is it possible or am i mixing up things? Here is my plugin so far:
[jQuery] How to append parameter to a href ?
Hi guys, I am using greybox. However, I need to append some parameter to the link before opening the frame by greybox. For instance, I got a link like this : sendPage.html Send Email <script type="text/javascript"> /* <![CDATA[ */ var GB_ROOT_DIR = "http://localhost:8080/todo/scripts/greybox/"; $(document).ready(function() { $("a[@rel='gb_page[600,600]']").click(function() { // how to append the parameter the link here? }); }); /* ]]> */ </script> Thanks & Regards, Mark -- View this message
[jQuery] bouncing effect w/ jquery?
Hi I came across this smoothgallery site. The gallery is nice and everything but what i really liked about the main page was the 'dropping and bouncing' of the top menu bar (what, whats new, download....etc). here is a link http://smoothgallery.jondesign.net/showcase/gallery/ if you miss it the first time then just refresh and you will notice that the top menu bar comes from top and bounces. I am wondering if there is any jQuery plugin for this...or how it would be doable? i tried to view source
[jQuery] is this possible with jquery?
Hi, I have a <div> tag on my page that I am using as a dynamic content holder. I have a javascript that loads HTML files into the <div> via ".innerHTML". This part works fine, it loads the pages and displays nicely. However I cannot get javascripts to work in the dynamically loaded pages. I have tried "tricking" it into inserting the javascripts via DOM manipulation but it is getting very complicated and still not really working. If I started working with jquery, would I be able to solve this issue?
[jQuery] click() not binding to appended elment
I have this code: $('a#addPlayer').click(function() { $(' <img class="remove" src="img/ui/forbidden.jpg" alt="Remove" \/
[jQuery] Problem with parent('td').parent('tr').$('td').length
Hello, I have HTML code like this: <table> <tr> <td> </td> <td> <input id="inp"> </td> <td> </td> </tr> </table> I want to know have many table cells are in the row and have to start querying from the input element. When I query $("#inp").parent("td").parent("tr").$("td").length it fails with the message: $("#inp").parent("td").parent("tr").$ is not a function The following queries do work: $("#inp").parent("td").parent("tr").length $("td").length Any ideas or other ways to get this working? Regards,
[jQuery] File uploading with the jQuery form plugin
<html> <body> Hello folks, I'm having difficulty getting a successful file upload working with the form plugin for which I'd appreciate assistance. My backend is ASP - I can "catch" the posted elements using request.form(..), but not via the objUpload object created by my upload program (Persits.Upload) as I would expect. I know the latter is "working" as I have tested to see if the object is created (it is) and the server side code works fine in other applications where I'm submitting the form back
[jQuery] Superfish menu
Hi, I'm playing with the superfish menu. Looks fine! I want to have my sub-submenu's shifted a little bit to the left, so that it is a bit over its parent menu. I altered this part: .nav li li:hover ul, ul.nav li li.sfHover ul { left:9.45em; top:-1px; } to .nav li li:hover ul, ul.nav li li.sfHover ul { left:8.45em; top:-1px; } The sub-submenu is shifted to the left, only the middle items seem to fall under it parent! Tried some z-indexing, but i can not get it right..... Anyone? (just used the default
[jQuery] JSON $Get.Json Silently Failing
hello, i have rather frustrating problem with $get.Json silently failing; i have a data set that return; but many that fail. after i try and serialize the data and send it back to the client; it never return and the function $get.Json fails to return if i place the JSON serialized objects in an data file and call $get.Json..everything works. but not from the response.write on the fly. is there a way to format the json serialzed return? is there any subtle characters in the json string that could
[jQuery] Custom function
Hi all, This is a simple quistion (easy to answer ;)) but I have not managed to find the answer. Abstracted code: <script> $(document).ready(function() { for (i = 1;maxPixels >= i; i++) { $("#pixel-" + i).pixelIntro(); } }); // What should this function look like? function $().pixelIntro() { this.fadeIn(Math.random()*60000); } </script> Thanks, Johan Forngren
[jQuery] $.queue and $.dequeue?
What dose $.queue and $.dequeue for?I have no idea?
[jQuery] How do I unsubscribe from googlegroups?
I don't want to leave the group but I want to read it online instead. I went to the Google Groups for jquery and changed my preference to No email but I'm still getting them. Any idea anyone? -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com
[jQuery] height-based html injection
I know this is a really dumb question, but I don't know much about javascripting. I usually just copy/paste/modify pre-existing scripts. How can I inject an 's' only when my div that holds search results is past a certain height? This is what I had: var divHeight = $('.resultswrap').height(); if(divHeight > 100){ function onAfter() {$('a.plural').html( + this.a).append('s');} } I need to put an 's' after 'result' only when the div height is stretched by more than 1 result each result being around
[jQuery] How can I test my javascript?
jQuery selectors are fantastic, but any time I change the layout of my site, I need to manually go through each page and make sure everything works. Are they any automated testing tools that I can use? Manual regression tests are killing my productivity.
[jQuery] Select by ID from memory structure slower than rendered html?
I have code that looks something like this: var myTable = $("<table></table>"); //... code to populate the table ... for (var x=0; x < someArray; x++) { var curItem = someArray[x]; //PROBLEM LINE var targetRow = $("#prefix" + curItem.id, myTable); //. . . further code . . . } Now my array is an array of some 300+ objects. (fair size table). What I'm noticing is that the problem line (where I'm getting the row reference) is taking approx 1000 ms to find my targetRow. (dropped in some console.log's
[jQuery] get input value not working.....
Typically (so I've thought), to get the current value of a textbox (input), I would simply use $("#inputid").val(); However, I'm experiencing the initial value being returned instead of a new, typed- in value. Have I just been staring at this too long? I was using jquery 1.2.3 and backed off to 1.2 and still the same thing.
An (unwilling) introduction to Ajax? [Solved]
I'm writing a Drupal module for work, and I thought I'd spice it up with some jQuery (in fact, I was here before with an issue with some jQuery code), namely showing and hiding some DIVs based on the value of a select element. It's working great by the way, real slick. Looks nice. My issue comes during form validation. If someone doesn't fill in one of the fields they got to using that spiffy slide animation, the php processor spits the form back at them, listing the errors at the top. Which is great!
[jQuery] Updating select content
I'm trying to improve the speed of my script which is currently using html() to replace content of a <select> element. The updateSelectOptions() method take an array and create a string of options to replace the <select> element. function updateSelectOptions(aOptions, fieldID) { if($("select#"+fieldID).length){ sOptions = ''; for (var i = 0; i < aOptions.length; i++) { sOptions += '<option value="' + aOptions[i].oV + '">' + aOptions[i].oT + '</option>'; } $("select#"+fieldID).html(sOptions); } }
[jQuery] Changing the click trigger inside itself is causing undesired results.
I have a button, when clicked this button invokes a function that changes the buttons html, and it's click. The problem is it somehow maintains the old trigger code. Before I put the click functions in their own functions (rather than just adding function(){} to the parameter) it would gain code every click, so if you clicked the button 4 times the code would execute both trigger functions 4 times, then if you clicked it a fifth time it would do both functions 5 times. I can't think of any way to
[jQuery] Chm version of the jQuery api browser
Hi, This is a chm version of the jquery api browser http://jqueryjs.googlecode.com/svn/trunk/tools/api-browser/ Download here http://peacech.googlepages.com/jquery-20080331.chm [150KB] Python script to create the chm files http://peacech.googlepages.com/tochm.py [8KB] Comments can be posted here http://charupload.wordpress.com/2008/03/31/chm-version-of-jquery-api-browser/ --- Charles
[jQuery] Modals - What's everyone using?
I want to build a modal window with a form in it but don't want to use the blacked out effect similar to many lightbox implementations. What's everyone using for this type of functionality? Rey...
[jQuery] Thickbox acting up in IE7 and FireFox Mac
Hi, I'm trying to get Thickbox set up on my site for my "login" and "forgot password" forms. Once clicked, these two links will open a Thickbox allowing the user to login or reset their password. I'm using AJAX Content on the Thickbox example page for this: http://jquery.com/demo/thickbox/ The site I'm working on is here: http://www.kentuckygolfing.com/home Problem 1: The problem comes into effect on IE7 and seemingly no other browser that I've tested. If you browse to my test site above and then
[jQuery] Changing the click trigger inside itself is causing undesired results.
I have a button, when clicked this button invokes a function that changes the buttons html, and it's click. The problem is it somehow maintains the old trigger code. Before I put the click functions in their own functions (rather than just adding function(){} to the parameter) it would gain code every click, so if you clicked the button 4 times the code would execute both trigger functions 4 times, then if you clicked it a fifth time it would do both functions 5 times. I can't think of any way to
[jQuery] JSeclipse?
Has there been any progress in creating a JQuery library xml file, or whatever is needed for the JSEclipse plugin? Does anyone know of where I could find it? Google only reports old news posts, and I was wondering if anyone has done anything with it since.
[jQuery] Jquery Selector even and first child (nested tables striping)
Hi, I've ran into a little problem. I'm using the code below to do alternate row striping on a table. $('table.basic tr:even').addClass('even'); The problem is, one of the cells of this table contains another (nested) table. So the tr:even selector is getting messet up, and is applying the row color to the nested table and then skips the actual next row in the table. Is there any way to do :even only on first level tr elements? I tried doing $('table.basic tr:first-child tr:even').addClass('even');
[jQuery] clueTip width question
I was under the impression that cluetip would dynamially resize based on the content it contained. I am putting an html page with all of the content set into a table in clueTip. The height is great, but the width is much less than the width of the table. Am I wrong thinking that it should size to the table? I haven't set anything for width in my js file. Thanks!!
[jQuery] Fading image memory leak (what am I doing wrong?)
Hi, So I have this script that copies a node, then uses an ajax call to load a new image into the new node. Then once the image is done loading, fades the old image out. After that, it removed the old node. Works great on my mac, but IE has a horrible memory leak. I verified the leak with DRIP. It's definitely is happening when this function is being called. Any assistance would be spiffy. function doImageSetup() { var imgDiv = $("#image_div span.img_hold"); // get target var newish = imgDiv.clone();
[jQuery] assigning data from $.getJSON() to a global variable?
Hi, Is there a way to take the JSON from a $.getJSON() call and assign it to a var in the global scope? i tried the following but it didn't work: var globalX; function foo() { $.getJSON("jsondata.js",function(data){ globalX = data; }); } thanks
[jQuery] Putting data from load() to a variable?
Hey.. I'm having some problems to put the data from the load() function to a variable. I'm currently using the code below but I need some modifications to it. function updateTimer(object_id) { $("#timer"+object_id).load("checkchanges.php?object_id="+object_id); setTimeout("updateTimer("+object_id+")", 1000); } As you see it puts the checkchanges.php's data to the span called timerX but I want to put the same data to a variable, how can I do this? Someone already suggested me to do it like
[jQuery] jQuery in IE7
Hello! I was trying to start learning jQuery, but faced a problem: ready event doesn't work in IE7, but works fine in Firefox and Safari. ... <script type="text/javascript" src="./jquery-1.2.2.js"></script> <script type="text/javascript"> $(document).ready( function() { alert ( "test" ); }); ... I tried different versions: 1.2.2,1.2.3, regular, packed, minified. I guess this is a bug.
[jQuery] Deep Extend edits all objects?
This is kind of long, so thank you so much if you read it all. I am building a plugin and running into a problem. Here goes: In my options, I am passing a nested object: $.aPlugin.defaults = { image: { url: "myImage.gif", width: "20px", height: "15px" }, color: "red" } A user can override defaults via metadata: <div class="plugin {image:{url:'newImage.gif'}}"></div> //no spaces in the metadata! <div class="plugin {color:'blue'}></div> "this.opts" has already been extended with the defaults. Now I
Next Page