[jQuery] Animate just works once?

2009-08-20 Thread webmas...@terradon.nl
Hi all I am testing a msn-look-a-like message box. So, when a message to a user is needed, the message-box shows up and disapears like a msn-message. The first time it works very well! But.starting it for a next time, there is no animation, the messagebox comes up right away, while after a fe

[jQuery] unsubscribe

2009-08-20 Thread Steve Tran

[jQuery] Re: sending form’s button’s value

2009-08-20 Thread Pierre Bellan
Hello, i don't use this method to send my datas, but in my opinion, the value of the element of type button is not get by the serialize method. If you want to send the value of the button click, you can add that after the serialize. As you have a method by button, this works ;) data: $(this).clos

[jQuery] jQuery refresh class of elements

2009-08-20 Thread bogdan
Hello, I've recently started using jQuery for a project that uses selective refreshing of elements on a web page. I found an article stating that the way to do it would be to just add a line such as the following: $("#id").load(location.href+" #id > *","") in an setInterval function call and the e

[jQuery] Unobtrusive select field replacement?

2009-08-20 Thread Martin Westin
Hi everyone, I am looking around for a good way to build an unobtrusive replacement for a select field. I haven't found anything that matches my requirements (or dreams?). Starting points, suggestions, links... any help would be greatly appreciated. I really don't want a groovy custom graphic wid

[jQuery] Menu - SlideDown SlideUp

2009-08-20 Thread RyanH
Hi all Im pretty new to the JQuery world, and am trying to modify the following code so that it slidesDown and slidesUp on hover (mouseover/ mouseout), however the mouseout isnt working properly as it dissapears completely rather than doing the slideUp effect JQuery Code: function menu(){

[jQuery] Re: overlay does not work in jquery ajax success

2009-08-20 Thread canucklehead
I struggled with this same problem for hours! I just figured it out this morning. If you download the uncompressed .js file for the overlay tool you can see what's happening. In the 'constructor' for the overlay, there is a w.load function that binds the click action and initializes the rest of th

[jQuery] Animation "Vapour Trails"

2009-08-20 Thread Leonard Martin
I've been trying to write an extension to the animate function to allow the animation of elements along a parameterised path (in the original motivation this was around the diameter of a circle) whilst keeping use of things like $.easing and $().stop(). I've managed to put something together that

[jQuery] Re: JQuery Cycle effects don't work in IE

2009-08-20 Thread TheoSoft
The validation errors was what was causing the problem. Because I'm pulling the photos from a db, I needed the id number. I added a p, and then stripped off the p using javascript replace. Pulled the empty ul out and added it via JQuery before my Cycle function. Fully valid and the fade effect

[jQuery] ajaxSubmit encoding problems

2009-08-20 Thread Fabricio Braga
Hi all, I have a little problem here with ajaxSubmit when submitting a form. The point is that any special characters like "á" or "ç" (they are from latin, portuguese) are going to the server replaced by strange characters, like "ç "... I`m sure it is just an encoding problem, so how can I set

[jQuery] Simple Plugin for jQuery

2009-08-20 Thread ElJayWilson
I am trying to get a handle on creating a jQuery plugin. I have a function that I wrote a couple of years ago that returns a formatted email address. I want to turn that function into a jQuery plugin. Here is my function: [code] function makemailto(email,subject,text) { // Makes a nice mail

[jQuery] Hey ive got a question about a realy basic thing im trying to implement on wordpress with Gr

2009-08-20 Thread bmo...@pushthefuture.org
Hey ive got a question about a realy basic thing im trying to implement on wordpress with Graphpaperpress's Modularity theme. Here it is: $(document).ready(function() { alert('slickBox & JQuery Loaded'); // hides the slickbox as soon as the DOM is ready // (a little sooner than p

[jQuery] Hey ive got a question about a realy basic thing im trying to implement

2009-08-20 Thread bmo...@pushthefuture.org
Hey ive got a question about a realy basic thing im trying to implement on wordpress with Graphpaperpress's Modularity theme. Here it is: $(document).ready(function() { alert('slickBox & JQuery Loaded'); // hides the slickbox as soon as the DOM is ready // (a little sooner than p

[jQuery] Accordion Flickers in Firefox Only

2009-08-20 Thread Web Dev
Hey guys I seem to be having an issue with the accordion flickering in Firefox but not in IE. It happens mostly with the Expand All and Collapse All features. I am thinking it must be my CSS which I have altered to create a custom box around the content. Can anyone help me figure this one out? Her

[jQuery] Novice problem, multiple distinct queries on one page.

2009-08-20 Thread TomB
I hope I'm in the right group this is a first. My office is new to using Jquery and on this problem we are all wandering around in the wilderness. We use IE, sharepoint and are doing web parts. On a single web part we need to do several queries on a list to fill several select/combo boxes. The da

[jQuery] Re: (Validate) - How to apply validations on dynamically generated forms.

2009-08-20 Thread Gustavo Bauermann
Hello !!! I have a problem like these but this solution wasnt enough to solve my problem... if you could help i will be so glad!! Take a look at my code: JS: $(function() { // valida o formulário $('#floculador').each(function(){ $(this

[jQuery] Getting form field values

2009-08-20 Thread blcArmadillo
I have a simple set of checkboxes: Sun Mon Tue Wed Thu Fri Sat When the state of one of them changes I want to check the state of all of them. So far I have: $(document).ready(function() { $("input[name^='day']").change(function () { }); }); My question is how do I get t

[jQuery] new site on the "sites using jquery list?

2009-08-20 Thread JGoodrich
Hi all- It's been a rough month (lots of changes to be made) but, we've converted a lot of the javascript functions on FunAdvice to use jquery now :) Can we get added to this page, please? http://docs.jquery.com/Sites_Using_jQuery Thanks.

[jQuery] Re: KFManager v1.0

2009-08-20 Thread Cyril Lopez
On your tinyMce page : http://trinhvietcuong.com/ken/tinymce.html you have "KFManager for FCKeditor" as page label... -- Cyril Lopez Développeur web www.nethik.fr 2009/8/20 Ken > without license GPL, MIT. I'm happy when you want to use and develop KFM > > 2009/8/20 Meroe > > >> Well yea. Let

[jQuery] [validate] NOT equal to rule??

2009-08-20 Thread ghuber
re: http://docs.jquery.com/Plugins/Validation/Methods/equalTo#other Is there a way to specify a rule that a field be NOT equal to? i.e. I have a watermark in the name field set as "Enter your name" - I want to validate that "Enter your name" is NOT the value of this field. Thanks for the help

[jQuery] any toolkit to validata the 'form' of Json text-string?

2009-08-20 Thread Mead Lai
I just use the Regular Expression, which my friend give me: function checkJsonFormat(text){ return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(text.replace(/"(\ \.|[^"\\])*"/g, ''))); } Well, I can't clear it very much! And it's only allowed double quotes " but I wanne use single quote '

[jQuery] using attr() on html element

2009-08-20 Thread Terry
I'm trying to "turn" the border for input fields on (or off). In my css I have border-style:none, and I want to turn the border back on if the first input is empty. $("input[type='text']").each(function() { $(this).attr("border-style", "inset"); }); The above code loops through the correct se

[jQuery] Get directions on Google map with jquery

2009-08-20 Thread ind1g3n
Hi guys, I am using a google maps implementation in an asp.net page. Essentially i have a business with its location shown on a google map on the page. On the asp.net side i just return instructions based on the locations properties. let me show you my script foreach(GoogleMapLocation g in profi

[jQuery] jQuery Career Opportunity

2009-08-20 Thread Capitol International
Hi I am currently recruiting for a Front-End Web Developer with solid jQuery knowledge for an established, highly successful Web 2.0 project to add additional dynamic elements to the user interface of a commercial web application. This is an ongoing permanent internal opening with excellent earnin

[jQuery] Orange Color is not Visible in Slider Range

2009-08-20 Thread Bluesapphire
Hi! Iam newbie to jQuery UI. Kindly visit following link : http://vibersol.com/ajaxsearch/ There is slider (with ranges) on top. I just used all default files and settings. What I am doing wrong that Orange color is not visible between range. Can some one guide me how can Orange Color (De

[jQuery] Re: Animation "Vapour Trails"

2009-08-20 Thread Leonard Martin
Apologies, I missed the link: http://in.tellig.net/jquery.animateparam/jquery.animateparam.js and http://in.tellig.net/jquery.animateparam/ for an example. On Aug 19, 2:08 pm, Leonard Martin wrote: > I've been trying to write an extension to the animate function to > allow the animation of

[jQuery] Re: using attr() on html element

2009-08-20 Thread sak
I may be wrong here but don't you want to use the css reference so it should be $(this).css("border-style", "inset"); there is no html attribute called "border-style", to style a html tag you use the "style" attribute like On Aug 20, 3:44 am, Terry wrote: > I'm trying to "turn" the border for

[jQuery] Extend() element then Add() to another element

2009-08-20 Thread robin
I would like to do the following: -- var many = $([]) for(){ var one = $('') .data('stuff',true) .extend({ 'test':function() }) many = many.add(one) one.data('stuff') //pass one.test() //pass } many.eq(0).data('stuff') //pass many.eq(0).test() //FAIL, test function does

[jQuery] Re: overlay does not work in jquery ajax success

2009-08-20 Thread canucklehead
I struggled with this same problem for hours! I just figured it out this morning. If you download the uncompressed .js file for the overlay tool you can see what's happening. In the 'constructor' for the overlay, there is a w.load function that binds the click action and initializes the rest of th

[jQuery] click-event-handler for dynamically created a-elements?

2009-08-20 Thread Audrey A Lee
Hello, I've been working with jQuery about 20 hours now. I like it. I am looking for a demo of putting an a-element inside a div-element. This seems to work: $("#div99")[0].innerHTML = "I am in div99"; I'd like to handle its click-event. I wrote this: $("a#aInDiv99").click(function(event

[jQuery] Problem with Ajax callback function in jQuery

2009-08-20 Thread dkomo872
I have Javascript code that looks like this: var data1; $.post('save_search.php', formData, function(data) { data1 = data; } ); jsonData = eval('(' + data1 + ')'); if (jsonData.return_status.search("successful") > -1) $('#msg_div').html("Search was saved

[jQuery] Re: KFManager v1.0

2009-08-20 Thread Sam Sherlock
great work Ken on the mce page the normal mce manager opens for me - and as Cyril said the page is title FCK on the fck page you open KFManager by clicking in the text box above the editor whereas the mce example does not have a way of opening kfmanager it would be better to replace normal functi

[jQuery] Re: .html() ignoring updated input value

2009-08-20 Thread resetstudio
Hi guys, thanks for the help! I have a lighbox that posts via ajax some params. If there is an error, the window has a "back" button and on press it shows the latest saved lighbox content. If it is a form, then should be already compiled or can be really annoiyng recompile it... I could then seri

[jQuery] Re: Detecting Selected Text

2009-08-20 Thread Giovanni Battista Lenoci
Chris Jordan ha scritto: Thanks for the response Richard. I'll check out these links. :o) Hi, I saw this plugin http://plugins.jquery.com/project/a-tools and I remembered this message... I think it's what you were looking for. Bye -- gianiaz.net - web solutions via piedo, 58 - 23020 tre

[jQuery] Re: Hey ive got a question about a realy basic thing im trying to implement on wordpress with Gr

2009-08-20 Thread Charlie
try converting "$" to "jQuery" in all of your functions, theme may be using noConflict bmo...@pushthefuture.org wrote: Hey ive got a question about a realy basic thing im trying to implement on wordpress with Graphpaperpress's Modularity theme. Here it is: $(document).ready(function()

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread Chrazy
>From the looks of it, why don't you use the $.ajax function and do your stuff on success? Seems like an easier way to structure things. Sometimes a variable used in a function that you want to use elsewhere has to be stored somewhere as it won't be recognized globally. Check http://docs.jquery.c

[jQuery] Re: Get directions on Google map with jquery

2009-08-20 Thread Charlie
Hi this requires using ajax ( either jQuery or google code) to send/retrieve the information which also needs to be tied into gmap code which is part of the Google map API. Google has to geocode both locations and return the directions. Once directions returned jQuery can be helpful for displ

[jQuery] Re: Orange Color is not Visible in Slider Range

2009-08-20 Thread Richard D. Worth
You don't have a range slider, you have a multi-handle/value slider, where the handles can cross each other and are unrelated. And range: true to your slider init: jQuery('#slider').slider({ range: true, ... }); See http://docs.jquery.com/UI/Slider#option-range Also, since you're specifying v

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread Leonard Martin
The trouble is that the $.post is run asynchronously so anything after the $.post will be executed before the callback function. If you want the returned data to be available outside the callback then it will have to be inside a function which is called from within your callback method. e.g. v

[jQuery] Re: any toolkit to validata the 'form' of Json text-string?

2009-08-20 Thread MorningZ
json2.js would help http://www.json.org/js.html in particular the ".parse" method On Aug 20, 1:42 am, Mead Lai wrote: > I just use the Regular Expression, which my friend give me: > > function checkJsonFormat(text){ >         return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(text.replace(/"(\

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread MorningZ
"Does anyone know what is wrong? I've never seen an ordinary function behave this way. " That's because $.post (and the resultant $.ajax) isn't "ordinary", it's an asynchronous call and when you hit the line jsonData = eval('(' + data + ')'); the script isn't back from the post call yet

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread dkomo872
On Aug 20, 7:01 am, Leonard Martin wrote: > The trouble is that the $.post is run asynchronously so anything after > the $.post will be executed before the callback function. > > If you want the returned data to be available outside the callback > then it will have to be inside a function which

[jQuery] Re: click-event-handler for dynamically created a-elements?

2009-08-20 Thread ak732
You might also want to check go to http://api.jquery.com and check out the "live" method under Events-->Live Events. On Aug 20, 9:43 am, ak732 wrote: > There are a lot of ways to do this, here are a couple: > > $("#div99").append("I am in div99").click > (function(){alert("hello world");}); > >

[jQuery] Re: using attr() on html element

2009-08-20 Thread ak732
Try "borderStyle" instead of "border-style" and you should be okay. On Aug 19, 10:44 pm, Terry wrote: > I'm trying to "turn" the border for input fields on (or off). > > In my css I have border-style:none, and I want to turn the border back > on if the first input is empty. > > $("input[type='te

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread ak732
Try doing this and see if it works: #msg_div {font-color:red;} $.post('save_search.php', formData, function(data) { jsonData = eval('(' + data + ')'); if (jsonData.return_status.search("successful") > -1) { $('#msg_div').html("Search was saved"); } else { $('#msg_div').html("Search

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread dkomo872
On Aug 20, 6:59 am, MorningZ wrote: > "Does anyone know what is wrong?  I've never seen an ordinary function > behave this way. " > > That's because $.post (and the resultant $.ajax) isn't "ordinary", > it's an asynchronous call and when you hit the line > >  jsonData = eval('(' + data + ')');

[jQuery] Re: 'Wrapping' some (not just 1 pair) HTML elements in a ?

2009-08-20 Thread DanWellman
Hey dude, I never create and add closing elements, jQuery will usually always do this automatically. I would just do something like: $(function() { var div = $("").addClass("scrollablePost"); $('.page-od-9 .postmetadata').appendTo(div); div.insertBefore('.page-id-9 h2'); }); That would b

[jQuery] Re: Dropdown menu Issue

2009-08-20 Thread Xenongasman
Okay, so this work but I got another question... When the menu is animating down or up, if you move off it jumps to the end and starts the animation the other way, is there a way to make it just start sliding up from where it is? On Aug 13, 5:45 pm, Xenongasman wrote: > Actually the answer is a

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread dkomo872
On Aug 20, 6:26 am, Chrazy wrote: > From the looks of it, why don't you use the $.ajax function and do > your stuff on success? Seems like an easier way to structure things. > > Sometimes a variable used in a function that you want to use elsewhere > has to be stored somewhere as it won't be re

[jQuery] Re: Animation "Vapour Trails"

2009-08-20 Thread Liam Potter
Might have something to do with cleartype? Leonard Martin wrote: Apologies, I missed the link: http://in.tellig.net/jquery.animateparam/jquery.animateparam.js and http://in.tellig.net/jquery.animateparam/ for an example. On Aug 19, 2:08 pm, Leonard Martin wrote: I've been trying to

[jQuery] Re: Dropdown menu Issue

2009-08-20 Thread Leonard Martin
I think if you reverse the parameters you're passing to stop() then that should achieve what you're after. You want to clear the queue (true for first parameter) but stop the animation where it is, not go to the end (false for second paramter). On Aug 20, 3:16 pm, Xenongasman wrote: > Okay, s

[jQuery] Re: click-event-handler for dynamically created a-elements?

2009-08-20 Thread ak732
There are a lot of ways to do this, here are a couple: $("#div99").append("I am in div99").click (function(){alert("hello world");}); $("").attr({id:"alnDiv99", href:"#"}).text("I am in div99").click (function(){alert("hello world");}).appendTo("#div99"); On Aug 20, 6:42 am, Audrey A Lee wrot

[jQuery] Re: 'Wrapping' some (not just 1 pair) HTML elements in a ?

2009-08-20 Thread ldexterldesign
Cheers Dan, but that doesn't close the properly: http://twitpic.com/el8q8 :[ L On Aug 20, 3:15 pm, DanWellman wrote: > Hey dude, > > I never create and add closing elements, jQuery will usually always do > this automatically. > > I would just do something like: > > $(function() { >   var div =

[jQuery] jquery license - what do my company have to do

2009-08-20 Thread Antoine Blanchard
Hi everyone, For the latest project I have lead (which is a java web project) I have included some jquery,jqueryui and 1 or 2 jquery plugins, knowing that the MIT license allow us to use it even for commercial use. Now that the v1 is almost done. We are wondering what exactly we have to do to be

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread MorningZ
and just to note success = SaveSearch_Success, should look just like that... it shouldn't be success = SaveSearch_Success(), or success = SaveSearch_Success(data), or *anything else*... it already "knows" to pass the resultant JSON to the function On Aug 20, 9:34 am, dkomo872

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread MorningZ
the code i posted should have no problem working as long as it is used properly... without seeing your actual HTML and where stuff is and what gets called, it's impossible to help completely. and the / thing won't matter that much as long as document.ready is used... but even that's a guess

[jQuery] Re: Animation "Vapour Trails"

2009-08-20 Thread Leonard Martin
I don't think so. I tried it with ClearType enabled and disbaled and the effect was the same either way. It also seems not to affect MSIE, only Gecko and Webkit. On Aug 20, 2:49 pm, Liam Potter wrote: > Might have something to do with cleartype? > > Leonard Martin wrote: > > Apologies, I misse

[jQuery] 'Wrapping' some (not just 1 pair) HTML elements in a ?

2009-08-20 Thread ldexterldesign
Yo guys, I need to wrap this chuck of HTML in a : http://is.gd/2qatX Any thoughts? $(document).ready(function(){ $('').insertBefore('.page-id-9 h2'); $('').insertAfter('.page-id-9 .postmetadata'); }); ...just pumps out at both ends, as you'll see from the above screens

[jQuery] Re: Getting form field values

2009-08-20 Thread ak732
You could do it in a loop using each(): $("input[name^='day']").each(function() { if ($(this).is(":checked")) { // do whatever } }); On Aug 19, 5:20 pm, blcArmadillo wrote: > I have a simple set of checkboxes: > > Sun name="day2" type="checkbox" value="mon" /> Mon type="checkbox" va

[jQuery] Re: Hey ive got a question about a realy basic thing im trying to implement

2009-08-20 Thread ak732
You're not seeing the alert? Did you remember to include the link to the jQuery library on the page first? On Aug 19, 4:17 pm, "bmo...@pushthefuture.org" wrote: > Hey ive got a question about a realy basic thing im trying to > implement on wordpress with Graphpaperpress's Modularity theme. > >

[jQuery] Re: Animation "Vapour Trails"

2009-08-20 Thread Jonathan Vanherpe (T & T NV)
I see the same thing on Ubuntu, so I guess it's some bug that's both in Gecko and Webkit (I see it in Firefox and in Chromium, not in Opera). There's slight differences between the way the artifacts are shown in both browsers. Your best bet might be to try and get in touch with somebody that

[jQuery] Re: Animation "Vapour Trails"

2009-08-20 Thread Leonard Martin
Can someone point me to where I might log a bug with Gecko or Webkit? I'm fairly new to this whole process. Thanks again. On Aug 20, 3:41 pm, "Jonathan Vanherpe (T & T NV)" wrote: > I see the same thing on Ubuntu, so I guess it's some bug that's both in > Gecko and Webkit (I see it in Firefox

[jQuery] Re: KFManager v1.0

2009-08-20 Thread Ken
sorry. because the time busy, can the next time I will put it to MCE. 2009/8/20 Sam Sherlock > great work Ken > > on the mce page the normal mce manager opens for me - and as Cyril said the > page is title FCK > on the fck page you open KFManager by clicking in the text box above the > editor wh

[jQuery] Re: Dropdown menu Issue

2009-08-20 Thread Xenongasman
Yeah technically that works, but the problem is the CSS does need to be reset after the animation finishes or else it cuts the menu off. I've uploaded a video to Youtube that will show what happens. Its still processing the upload but should be done soon: http://www.youtube.com/watch?v=Yll3q2O6MR

[jQuery] Re: Getting form field values

2009-08-20 Thread Nathan Bubna
You could use my Values plugin ( http://plugins.jquery.com/project/values ) and do: $(document).ready(function() { $("input[name^=day]").change(function () { var all = $('input[name^=day]').values(); for (var day in all) { if (all[day] !== null) {

[jQuery] Re: 'Wrapping' some (not just 1 pair) HTML elements in a ?

2009-08-20 Thread ldexterldesign
Don't you think I thought about using that straight away? How can I wrap a group of elements in the DOM when I don't know what elements will be there in first place. I'm aiming to wrap, essentially, a blog post, so: $(document).ready(function(){ $('h2').wrap(''); }); // would be

[jQuery] unsubscribe

2009-08-20 Thread Steve Tran

[jQuery] Re: 'Wrapping' some (not just 1 pair) HTML elements in a ?

2009-08-20 Thread Liam Potter
why would you be doing this with jquery anyway? ldexterldesign wrote: Don't you think I thought about using that straight away? How can I wrap a group of elements in the DOM when I don't know what elements will be there in first place. I'm aiming to wrap, essentially, a blog post, so: $(docum

[jQuery] ajaxSubmit encoding problems

2009-08-20 Thread Fabricio Braga
Hi all, I have a little problem here with ajaxSubmit when submitting a form. The point is that any special characters like "á" or "ç" (they are from latin, portuguese) are going to the server replaced by strange characters, like "ç "... I`m sure it is just an encoding problem, so how can I set

[jQuery] Code Not Working on IE

2009-08-20 Thread gratisaccount
I'm using to parse the response coming from '.aspx' page. Response comes in the form of 'text/xml', which is rendered very well in all browsers except the IE.:,( I did uploaded my code on the server but the problem exists. Can any body tell me what can be the problem & how I can resolve it? Fo

[jQuery] Re: jquery license - what do my company have to do

2009-08-20 Thread Jonathan Vanherpe (T & T NV)
Antoine Blanchard wrote: Hi everyone, For the latest project I have lead (which is a java web project) I have included some jquery,jqueryui and 1 or 2 jquery plugins, knowing that the MIT license allow us to use it even for commercial use. Now that the v1 is almost done. We are wondering what e

[jQuery] Re: 'Wrapping' some (not just 1 pair) HTML elements in a ?

2009-08-20 Thread ak732
go to: http://api.jquery.com/ and put "wrap" in the filter box On Aug 20, 10:06 am, ldexterldesign wrote: > Yo guys, > > I need to wrap this chuck of HTML in a :http://is.gd/2qatX > > Any thoughts? > > $(document).ready(function(){ >         $('').insertBefore('.page-id-9 h2'); >         $('').i

[jQuery] Re: Checkbox perpetually marked as checked

2009-08-20 Thread Jon Banner
double == in your if statements might do the job. 2009/8/19 Nick Moy > > When the if else statements are removed, they are not perpetually > checked. > > On Aug 19, 4:34 pm, labbit wrote: > > Hello, > > > > I'm trying to write an if else statement in javascript so that when a > > check box is

[jQuery] Re: 'Wrapping' some (not just 1 pair) HTML elements in a ?

2009-08-20 Thread ldexterldesign
I've asked myself this, but I'm in too deep now. It all goes back to a site structure stage believe it or not. I'm building a pretty unconventional layout from a client's design. I use progressive enhancement, so to go back into my PHP at this point would be a bad idea. Thanks, L On Aug 20, 5:2

[jQuery] $load- images in cache

2009-08-20 Thread Charlie
I'm working with some large images that are in markup but being processed into queued animations. If image is already loaded but I call $load will it pull image from browser cache? I  want to use the success to do some size processing

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread dkomo872
On Aug 20, 6:59 am, MorningZ wrote: > "Does anyone know what is wrong?  I've never seen an ordinary function > behave this way. " > > That's because $.post (and the resultant $.ajax) isn't "ordinary", > it's an asynchronous call and when you hit the line > >  jsonData = eval('(' + data + ')');

[jQuery] Re: jQuery internals and exception handling

2009-08-20 Thread ak732
Uh - what I meant was that what I posted *above* (not below) was stupid. The irony is killing me.

[jQuery] Re: Simple Plugin for jQuery

2009-08-20 Thread Cesar Sanz
instead, it must to be something like $.makemailto({opts}) read this http://snook.ca/archives/javascript/jquery_plugin/ - Original Message - From: "ElJayWilson" To: "jQuery (English)" Sent: Wednesday, August 19, 2009 1:54 PM Subject: [jQuery] Simple Plugin for jQuery I am trying

[jQuery] Re: 'Wrapping' some (not just 1 pair) HTML elements in a ?

2009-08-20 Thread Benjamin Sterling
lewis, First, use pastebin.com or something like next time, it'll help us help you. So, you need to wrap each group of h2 + div + p + p.postmetadata Check out http://snipplr.com/view/4746/jquery--nextuntil/ and you should be able to do something like: $('h2').nextUntil('.scrollablePost').wrap(

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread ak732
Just be aware that doing the ajax call synchronously will block (lock up) the browser until the request/response completes. This is typically okay when running locally, but can be very noticeable when running on slower connections (e.g. shared hosting). There's no reason why you cannot do this a

[jQuery] Re: 'Wrapping' some (not just 1 pair) HTML elements in a ?

2009-08-20 Thread ak732
I didn't understand from your original post that you wanted to wrap a series of elements where the series was of indeterminate length. From what you posted in reply, it looks like Benjamin's answer will work, although if I understand correctly, .postmetadata is the marker class marking the final

[jQuery] Re: $load- images in cache

2009-08-20 Thread Charlie
found better method using combination of image load plugin http://letmehaveblog.blogspot.com/2006/08/simple-jquery-plugin-to-load-images.html   and natve onload handlers to get first few images started Charlie wrote: I'm working with some large images that are in markup but being processe

[jQuery] Re: Getting form field values

2009-08-20 Thread mkmanning
I'm assuming you want the current value of the checked checboxes. Just use .serialize() var inputs = $("input[name^='day']").change(function () { console.log(inputs.serialize()); }); the output of serialize() is a query string, just split on '&' for an array of key=value that you can then proc

[jQuery] Re: 'Wrapping' some (not just 1 pair) HTML elements in a ?

2009-08-20 Thread ldexterldesign
Cheers for your help Ben. I'll crack on with this in the morning and update this post with how I get on. Thanks, L On Aug 20, 4:50 pm, Benjamin Sterling wrote: > lewis, > First, use pastebin.com or something like next time, it'll help us > help you. > > So, you need to wrap each group of h2 + d

[jQuery] Re: 'Wrapping' some (not just 1 pair) HTML elements in a ?

2009-08-20 Thread ldexterldesign
http://is.gd/2qubA < basically I need to do this client-side. I've taken your advice (I normally pseudo the JS I need in HTML/PHP beforehand anyway (I'll admit I'm not as good with jQuery as some of you on here)), but on this occasion I'm working with a post loop. It's not gonna be worth my time t

[jQuery] Re: jQuery internals and exception handling

2009-08-20 Thread ak732
I now see that jQuery has an error event handler. So a lot of what I posted below is, well, just stupid. However in some quick testing, there appear to be some problems with the error event. It's not working the same way for IE7 and FF3.5x. Some differences: The jQuery docs indicate that the e

[jQuery] Re: jQuery internals and exception handling

2009-08-20 Thread Stephan Beal
On Aug 19, 11:04 pm, ak732 wrote: >         ofn.apply(this, arguments); Be aware that the "arguments" object is-not-a Array (it's an object with a length property), and i don't think there's a guaranty that that apply() will handle that special case. Also be aware that apply takes a list of args

[jQuery] How to create XML

2009-08-20 Thread jeanluca
Hi All I need to create XML, for example, this is (simplified) what I have to do: var x = jQuery.makeXML('8.1) ; // this line is my problem!! console.log("Version = %s", $('version', x).text() ) ; Is this possible and what is the best way to do this ? cheers

[jQuery] Re: jQuery internals and exception handling

2009-08-20 Thread Stephan Beal
On Aug 20, 9:17 pm, Stephan Beal wrote: > that apply() will handle that special case. Also be aware that apply > takes a list of args, like foo.apply(this,arg1,arg2,arg3), whereas call > () takes the args as a single array: foo.call(this,[arg1,arg2,arg3]). Sorry, that's exactly backwards: apply

[jQuery] Re: setData and extraParams problem

2009-08-20 Thread Jörn Zaefferer
What exact version of the autocomplete plugin are you using? Have you tried autocomplete("option", "extraParams", ...) instead of setData? Jörn On Sat, Aug 8, 2009 at 6:19 PM, pankaj wrote: > > Actually this part was working previously.I found one difference here, > maybe that help us to find o

[jQuery] Re: jquery license - what do my company have to do

2009-08-20 Thread Stephan Beal
On Aug 20, 3:51 pm, Antoine Blanchard wrote: > Do we need to write a line in our docu saying: "use jquery,..., which > is under MIT license"? The MIT license is explained very briefly and clearly at: http://en.wikipedia.org/wiki/MIT_License You don't need to do anything special except accept t

[jQuery] jquery menu that works with ie6 (plugin?)

2009-08-20 Thread con-man-jake
Can anyone recommend a jquery menu plug that works with ie6? I have a menu done with s and s with pure css. It doesn't work with ie6 (because it's pure css.) I went through the list of jquery plugins, but most of them are fancy (as in iPod like menu and what have you...) I only need a simple s

[jQuery] Re: [autocomplete] how to clear hidden "key" field when user changes text value?

2009-08-20 Thread Jörn Zaefferer
You could try this, similar to what the plugin does for the mustMatch option: $(".autocomplete").blur(function() { $(this).search(function(result) { if (!result) { // no match found, do something, eg. clearing other fields } }); }); Jörn On Thu, Aug 13, 2009 at 5:25 PM, Billy wrote

[jQuery] Re: [autocomplete] trigger event if user rejects all autocomplete otions

2009-08-20 Thread Jörn Zaefferer
You could try this, similar to what the plugin does for the mustMatch option: $(".autocomplete").blur(function() { $(this).search(function(result) { if (!result) { // no match found, do something, eg. clearing other fields } }); }); Jörn On Tue, Aug 11, 2009 at 8:30 PM, Ash wr

[jQuery] event handlers that run after the browser's default action

2009-08-20 Thread Tom Worster
is there a way to set up a page so that a event handler function is bound to a DOM object and event but it runs _after_ the browser's default action is complete?

[jQuery] hide divs with float:left and show them again

2009-08-20 Thread simusch
Hi I have a site with a lot of small div-boxes (with images and movies within them) they are positioned with CSS and float:left. i created buttons, which show and hide either all images or all movies this works well. but when i switch between these options, the float-position of the divs goes c

[jQuery] slideToggle - form elements (checkbox) show before the animation IE6 and IE7

2009-08-20 Thread Magnificent
Hello all, Wondering if anyone has come across this issue I'm having with slideToggle and form elements on the show/hide content - all in IE6 and IE7. IE8 seems to be OK. I am using slideToggle to show/hide some form elements, checkboxes in my case. When the slideToggle is triggered, the check

[jQuery] jQuery ready() not firing when page anchor in URL changes

2009-08-20 Thread bill123
It looks like jQuery's ready() function doesn't fire when the Back button is used if only the page anchor location in the URL changes. Example: Say you go to here http://mywebsite.com/#test1 then here http://mywebsite.com/#test2 and then use the Back button to go back to here h

[jQuery] Re: Problem with Ajax callback function in jQuery

2009-08-20 Thread dkomo872
On Aug 20, 11:53 am, ak732 wrote: > Just be aware that doing the ajax call synchronously will block (lock > up) the browser until the request/response completes.  This is > typically okay when running locally, but can be very noticeable when > running on slower connections (e.g. shared hosting)

[jQuery] Re: hide divs with float:left and show them again

2009-08-20 Thread Mauricio (Maujor) Samy Silva
When you remove a floated element from the flow of a document its position is occupied by the next float and this causes the ruin! To preserve the space leaving by a removed div how about use: css('visibility', 'hidden'); istead of show() Maurício -Mensagem Original- De: simusch P

  1   2   >