[jQuery] Re: $.css() onload

2009-02-03 Thread kim3er
Not sure what you mean MorningZ, looks okay to me. I tend put my code before the closing body tag though. On Feb 3, 10:03 pm, MorningZ wrote: > "where does this belong then? " > > >     >         >         >         $(document).ready(function() { >               //Fires when the DOM is ready

[jQuery] Re: Using jQuery with Wordpress

2009-02-03 Thread MH1988
Oh, thank you for responding back. I didn't think I would get a reply at all. The problem I am having seems to be that jQuery + the jQuery Cycle plugin with simple fade and prev/next transitions does not work at all. My main reason for using it is I would like to include it in each Wordpress post

[jQuery] Re: How to Call ASP.Net 3.5 WebService which returns JSON Data From ASP.Net 2.0 WebPage having AutoComplete

2009-02-03 Thread kim3er
Have you looked in the 'd' parameter of the response object? .NET3.5 handles JSON differently to 2.0. On Feb 4, 4:44 am, ketan wrote: > Hi Friends, >                 I am facing a problem while calling a webservice > written in ASP.Net 3.5 which returns a JSON Data and then passing this > data t

[jQuery] Re: autocomplete-comma delimeter string from servlet

2009-02-03 Thread thomas.confuse
erm. the ouput still isnt what is expected. The servlet that i call will output as "a,b,c,d" (exclude double quotes) here is the sample code: $("#businessCity").autocomplete("OrganizationCityList?limit=10", { formatResult: function(row,position,total,searchTerm) { // serv

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
I got it, thanks. On 2月4日, 上午9時07分, Mike Alsup wrote: > > but is that mean I have to write lots code to do what I want? > > actually I know the trick, just want to know can it complete through > > jQuery effect by only set the options. > > No, I only wanted you to see that to achieve that effect

[jQuery] Re: Select empty textbox fields‏

2009-02-03 Thread Aaron Gundel
Hey Brian, Try this for a... $("#<%= this.pnlInputFields.ClientID %> input[class='inputFields']:not([value])").toggleClass('inputFields_empty'); A. Gundel

[jQuery] Re: Click Links in the Nnavigation Bar

2009-02-03 Thread Pedram
Thanks Karl , It helped me alot On Feb 1, 9:47 am, Karl Swedberg wrote: > On Feb 1, 2009, at 3:06 AM, Pedram wrote: > > > > > I have another  tiny question > >  $("Ul li a"), $("ul a"), $("a",$("ul")) > > which one has the great performance !!? > > I would go with either $('ul a') or $('a', 'ul

[jQuery] Re: Live Event Firing Multiple Times Instead of Just Once?

2009-02-03 Thread Vik
I found the answer. It was a bug in my code. I was calling my routine that set up the live() functions, more than once. On Feb 3, 3:59 pm, Vik wrote: > Looking into it, it looks like live() is using event binding, rather > than event delegation. Is that correct? I think some unusual things > I'm

[jQuery] How to Call ASP.Net 3.5 WebService which returns JSON Data From ASP.Net 2.0 WebPage having AutoComplete

2009-02-03 Thread ketan
Hi Friends, I am facing a problem while calling a webservice written in ASP.Net 3.5 which returns a JSON Data and then passing this data to a page that has jQuery's AutoComplete Plugin. I am able to call this webservice but It doesn't return the data. Regards, Ketan

[jQuery] Re: jQuery UI Tabs Flash

2009-02-03 Thread Chris
> The reason I need to use 'position: absolute;left: -1px;' is that > I need to use Sifr on the hidden tab and If I use 'display:none', Sifr > stops working. This is exactly my situation also. Please share if you've found a fix.

[jQuery] Re: toggle checkbox when clicking

2009-02-03 Thread Karl Swedberg
On Feb 3, 2009, at 9:32 PM, Dave Methvin wrote: Thanks a lot for pointing out the problem in the tutorial. I have fixed it to work for 1.3.1: Hey Karl, it looks like something got messed up on that page. Maybe the css is missing? Wow, that was a colossal failure! Yeah, my minifier didn't

[jQuery] jquery accordion customization

2009-02-03 Thread Eric
So I'm looking to use the jquery accordion code to expand and collapse content on a page. I was wondering how I would set it up so that when I click on a link in the page like more details, it would expand the div below it. Sorry I am really new to jquery and javascript so any help would be appre

[jQuery] Re: Detecting wether an image link is going to work

2009-02-03 Thread brian
On Tue, Feb 3, 2009 at 1:41 PM, daveJay wrote: > > I've got a page set up where it loads each image on the page, one > after the other. As you can see here: > > http://sandbox.exit42design.com/photography/folio_1.html > > The problem with this is that if one of the images is broken, it'll > stop

[jQuery] Re: toggle checkbox when clicking

2009-02-03 Thread Dave Methvin
> Thanks a lot for pointing out the problem in the tutorial. I have   > fixed it to work for 1.3.1: Hey Karl, it looks like something got messed up on that page. Maybe the css is missing?

[jQuery] Re: autocomplete-comma delimeter string from servlet

2009-02-03 Thread thomas.confuse
The solution the issue. formatItem: function(row,position,total,searchTerm) { // server sends rows e.g. kelantan, kedah return row.toString().split(',')[0]; } On Feb 3, 10:33 pm, "thomas.confuse" wrote: > Hi, Eric. > Thanks for t

[jQuery] Re: jQuery UI Tabs Flash

2009-02-03 Thread slake424
Hi, I am trying to slove a problem. If someone has idea to solve the problem, I would appreciate. I uses the fade in-out effect using the following. $(function() { $('#tabs > ul').tabs({ fx: { opacity: 'toggle', duration: 'fast' } }) }); The effect works fine but the content in the tabs

[jQuery] Re: js cross browser compatibility functions

2009-02-03 Thread James
http://docs.jquery.com/Tutorials On Feb 3, 2:11 pm, "j7gr...@googlemail.com" wrote: > Hi > > i am very new to jquery and have heard that it contains functions that > hide and handle the cross browser issues behind the scenes? > > could any provide link where i could find out more about this plea

[jQuery] Re: Export a part of html table to excel

2009-02-03 Thread James
You can't do that with Javascript alone. You'll need some kind of server-side processing that can create Excel formatted files. Just simply exporting a file with Content-Type for Excel is not going to give you a proper Excel file. If you're using PHP, look into PEAR's Spreadsheet_Excel_Writer pac

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Mike Alsup
> but is that mean I have to write lots code to do what I want? > actually I know the trick, just want to know can it complete through > jQuery effect by only set the options. No, I only wanted you to see that to achieve that effect you need to animate both the size *and* the position. As the wi

[jQuery] Re: Manipulating form field attributes

2009-02-03 Thread Karl Rudd
IE doesn't allow you to change the type of a form element once it's created. Best solution is to create a new element and add in the value and name, then delete the old element. Karl Rudd On Wed, Feb 4, 2009 at 9:17 AM, Sam Hastings wrote: > > Hi everyone, > > I'm trying to use the following c

[jQuery] js cross browser compatibility functions

2009-02-03 Thread j7gr...@googlemail.com
Hi i am very new to jquery and have heard that it contains functions that hide and handle the cross browser issues behind the scenes? could any provide link where i could find out more about this please? thanks richard

[jQuery] Equivalent in jQuery to Dojo's dojox.layout.ContentPane

2009-02-03 Thread Alessandro Vernet
I am looking for an equivalent in jQuery, if there is one, to Dojo's dojox.layout.ContentPane, which in essence provides a way to replace the content of a div with the a web page loaded from the client. Some of the difficulty comes from supporting JavaScript and CSS used by the page which is inc

[jQuery] background position

2009-02-03 Thread pab
Hi, I was messing around with jonathna snook;s article http://snook.ca/archives/javascript/jquery-bg-image-animations/ I'm trying to set an active state once user clicks on link this is what I have now works, i tried getting the selected state by adding a click function. $(document).ready(fu

[jQuery] Export a part of html table to excel

2009-02-03 Thread Shankar
I am trying to save a part of html table into an excel. I want to save partially inorder to omit images in the same html table. Ia m using the above code to save the table. Is there any way out to accomplish this? Thanking in advance for any tips or suggestions

[jQuery] Select empty textbox fields

2009-02-03 Thread brnwdrng
I have a set of text box inputs in a div, and want to color the empty ones red (css) when a user attempts to submit incomplete fields. I've tried this with and without an explicit iterator, as shown in the two examples below. (a) $("#<%= this.pnlInputFields.ClientID %> input[class='inputFields']

[jQuery] Superfish

2009-02-03 Thread Mario
I really love the navigation system used at the whitehouse.gov website. Can you tell me how I can implement a similar navigation system on my website? What I like about it is how the drop down menu gives you multiple sub menus that are arranged in different columns within the same drop down menu

[jQuery] Manipulating form field attributes

2009-02-03 Thread Sam Hastings
Hi everyone, I'm trying to use the following code to change to where the element has the classname "navtitle". $(".navtitle").each(function() { this.type = "hidden"; }); This code works fine in Firefox but has no effect at all in IE. Can anyone help me please?

[jQuery] validation plugin and ui tabs

2009-02-03 Thread varun
Hi Everybody I am trying to use validation plugin with ui tbas. suppose I have 5 tabs on page and every tab have submit button in that case how can I use validation plugin... I know i can use validation as: ('#form-id').validate(); but since i have 5 tabs but i cant have 5 forms in asp.n

[jQuery] Re: Live Event Firing Multiple Times Instead of Just Once?

2009-02-03 Thread Vik
Looking into it, it looks like live() is using event binding, rather than event delegation. Is that correct? I think some unusual things I'm doing in my code is resulting in live() binding a function to the same element on my page multiple times.

[jQuery] Re: Detecting wether an image link is going to work

2009-02-03 Thread Karl Rudd
You could try using the "error" handler: $(image[1]).bind('error', function(){ /* ... */ }); I believe it works for all the common browsers. Karl Rudd On Wed, Feb 4, 2009 at 5:41 AM, daveJay wrote: > > I've got a page set up where it loads each image on the page, one > after the other. As y

[jQuery] Re: jQuery AutoComplete - how to post a variable if option is selected?

2009-02-03 Thread James
One way I can think of is that you make a JSON list that has an "id" and "name" pair. When an existing option is selected, using the Autocomplete's result() function, add the id's value to some JS variable. (result() function: http://docs.jquery.com/Plugins/Autocomplete/result#handler) If it's ty

[jQuery] Re: $.css() onload

2009-02-03 Thread eagleon
actually.. i noticed something! I need to have assigned the values for the target element in css prior to it being altered onload. Can it be set onload without being specified at all? On Feb 3, 5:52 pm, eagleon wrote: > Thank you kim3er and MorningZ, I truly appreciate the help! > > On Feb 3, 5:

[jQuery] Re: $.css() onload

2009-02-03 Thread eagleon
Thank you kim3er and MorningZ, I truly appreciate the help! On Feb 3, 5:03 pm, MorningZ wrote: > "where does this belong then? " > > >     >         >         >         $(document).ready(function() { >               //Fires when the DOM is ready >         }); >         $(window).load(function

[jQuery] Re: Ajax Call in Dialog UI

2009-02-03 Thread Pedram
Great thanks . On Feb 3, 2:13 pm, "Richard D. Worth" wrote: > jQuery handles the Ajax part just fine, leaving the Dialog plugin to focus > on making the element a dialog: > > $("#myDiv").load(url).dialog(); > > or > > $("#myDiv").load(url, function() { >   $(this).dialog(); > > }); > > If you ne

[jQuery] Re: jQuery.uploader released: Flash based jQuery uploader

2009-02-03 Thread Methnen
Hey Gilles, Thanks again for the great script. I just noticed that it seems to have quit working on the latest version of Safari. It worked great but the release of Safari from last week seems to have broken something. At first I thought it was my fault but I went to your demos on your site and

[jQuery] ajaxfileupload response problem

2009-02-03 Thread Matt
Hi All, I'm trying to use the following plugin to allow me to submit data and upload a file via ajax. The plugin homepage is: http://www.phpletter.com/Demo/AjaxFileUpload-Demo/ The submission itself works fine, the data is being stored and the file is uploaded. I have a java servlet which i pass

[jQuery] jQuery AutoComplete - how to post a variable if option is selected?

2009-02-03 Thread ripcurlksm
I am using a jQuery AutoComplete plugin which fills in text as you type. I need to find a way when the page is submitted (submit.php) to determine if the user choose a company from the list, or if they typed in their own unique company. If an option is selected, can i have jQuery post an extra

[jQuery] Re: how to get action attribute from form

2009-02-03 Thread Mauricio (Maujor) Samy Silva
Both ways works fine! Please: 1- check the link to jquery library in the document , 2- don't forget to wrapper the script within ready() method, 3- double check the script and markup sintax. Maurício -Mensagem Original- De: "bob" Para: "jQuery (English)" Enviada em: terça-feira, 3

[jQuery] Re: Ajax Call in Dialog UI

2009-02-03 Thread Richard D. Worth
jQuery handles the Ajax part just fine, leaving the Dialog plugin to focus on making the element a dialog: $("#myDiv").load(url).dialog(); or $("#myDiv").load(url, function() { $(this).dialog(); }); If you need any further help, there's a jQuery UI mailing list: http://groups.google.com/grou

[jQuery] Ajax Call in Dialog UI

2009-02-03 Thread Pedram
Dear folk , I'm using the Dialog from the UI ,I want to add page with Ajax Call in it . I checked the Documentation , But I couldn't find it , has anyone done that before

[jQuery] Re: how to get action attribute from form

2009-02-03 Thread bob
Sorry. Works now. I have mistyped action="register.php".

[jQuery] Re: $.css() onload

2009-02-03 Thread MorningZ
"where does this belong then? " $(document).ready(function() { //Fires when the DOM is ready }); $(window).load(function() { //Fires when the page is loaded //(images all loaded, DOM objects placed/sized, etc

[jQuery] Re: history plugin

2009-02-03 Thread bkwdesign
well.. I guess the huge problem with my aforementioned solution is that it'll likely cause a page refresh / server request. Not too ajax-ish. ;-{ On Feb 3, 3:58 pm, bkwdesign wrote: > @relphie, I'm a newb to jQuery and Klaus' UI Tabs script, but I'm > learning very quickly. > > I'm very interest

[jQuery] Re: how to get action attribute from form

2009-02-03 Thread Andy Matthews
That's exactly how you'd do it. One thing I use for debugging is to throw an alert like so: alert($("form[name=myForm]").length); To make sure that your original query is returning a result. andy -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]

[jQuery] Re: how to get action attribute from form

2009-02-03 Thread James
http://docs.jquery.com/Tutorials:Introducing_%24(document).ready() $(document).ready(function() { $("#myForm").attr('action'); }); On Feb 3, 11:53 am, bob wrote: > Hi, > > How do I get action attribute from the following form if I know id and > name values. > > onsubmit="return false;"> >

[jQuery] how to get action attribute from form

2009-02-03 Thread bob
Hi, How do I get action attribute from the following form if I know id and name values. I tried those and it did not work: $("form[name=myForm]").attr('action'); $("#myForm").attr('action');

[jQuery] Re: animations; browser problem or bad code?

2009-02-03 Thread James
Similar to what amuhlou said, when I tried IE6 I'm getting that Line 12 error after clicking on a letter. Additionally, the footer is not displayed, and the graphics just crap out not displaying half of them initially and very flakey on mouseover. It seems to work fine on FF3 though. On Feb 3,

[jQuery] Re: $.css() onload

2009-02-03 Thread kim3er
$(document).ready() fires when the document has finished loading. It is generally appropirate to attach any onload code to that event. If you need to attach code to the window load event, do so at the top of the page before the page has started rendering. Rich On Feb 3, 9:30 pm, eagleon wrote:

[jQuery] Re: [tooltip] Upgraded to jquery 1.3.1 Tooltips doesn't show up

2009-02-03 Thread Jörn Zaefferer
Could you provide a testpage? I've tested tooltip with 1.3.1 and it works just fine. Jörn On Tue, Feb 3, 2009 at 7:27 PM, ksuess wrote: > > Upgraded to jquery 1.3.1 Tooltips doesn't show up >

[jQuery] Re: animations; browser problem or bad code?

2009-02-03 Thread amuhlou
an additional note: I have script debugging enabled in IE7: tools>internet options>advanced>under Browsing, uncheck "disable script debugging (internet explorer)" and "disable script debugging (other)" it's enough to tell you that a problem exists... not really where to find it though

[jQuery] Re: $.css() onload

2009-02-03 Thread eagleon
thanks for the reply, I got it to work without the $(window).load () ... but just to learn, where does this belong then? On Feb 3, 4:26 pm, MorningZ wrote: > Don't put > > $(window).load() > > inside > > $(document).ready() > > On Feb 3, 4:12 pm, eagleon wrote: > > > Hi Guys, > > > I was trying

[jQuery] Re: $.css() onload

2009-02-03 Thread MorningZ
Don't put $(window).load() inside $(document).ready() On Feb 3, 4:12 pm, eagleon wrote: > Hi Guys, > > I was trying to fire an $.css() during the onload event. For some > reason, it does not work. It works fine if I attach it to another > event such as a resize event, but not onload. > > Th

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread Ricardo Tomasi
I think this should be posted at jquery-dev. There is no significant difference between the hash and switch options, less than 10ms for 200.000 iterations (FF3). But both offer a solid speed improvement over a simple regex in the case posted when dealing with hundreds of calls. That could be impor

[jQuery] $.css() onload

2009-02-03 Thread eagleon
Hi Guys, I was trying to fire an $.css() during the onload event. For some reason, it does not work. It works fine if I attach it to another event such as a resize event, but not onload. This is what I have done: Code: [code] function myFunc() { $("#example").css({'width' : 10px;}); }

[jQuery] Re: history plugin

2009-02-03 Thread bkwdesign
@relphie, I'm a newb to jQuery and Klaus' UI Tabs script, but I'm learning very quickly. I'm very interested in exploring this Really Simple History script that you referred to in your post. I think what would trigger the browser to actually "go there" would be if the RSH script went one step fur

[jQuery] Re: animations; browser problem or bad code?

2009-02-03 Thread amuhlou
I decided to check your site in IE7 to see how it's supposed to behave and I found a runtime error from Line 12 of your jQuery 1.3 file ("Could not get the display property. Invalid argument"). The error is triggered after you click one of the big letters in the middle and the content panel opens

[jQuery] Long List, no particular order of IDs

2009-02-03 Thread drewtown
I have a long list of items for example + item 1 -- sub item 1 -- sub item 23 + item 45 -- sub item 142 +item 995 -- sub item 198 -- sub item 244 As you can see the ids are in no particular order. I'm looking for the most efficient way of expanding the top level ones. Also I would like all t

[jQuery] Re: Problem with Chrome firing events correctly

2009-02-03 Thread Caleb Morse
Alright I figured out what the problem was. I was beta testing win 7, and you have to run chrome with the --in-process-plugins flag set for it to run correctly. I tried it on another machine and it worked exactly like it was supposed to. Thanks for the help, -- Caleb On Tue, Feb 3, 2009 at 1:18

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread Karl Swedberg
On Feb 3, 2009, at 12:39 PM, George Adamson wrote: Absolutely, it is very very limited. So this technique is only suited to the type of regex's that I quoted, like the one used internally by jquery to test for body or html tags only, or to test for t(able|d|h) only. Particulalry when used insi

[jQuery] animations; browser problem or bad code?

2009-02-03 Thread re5et
so, the animations on my site http://www.omnex.at/modx/ work perfectly in IE7 but not in FF2, FF3 and opera9. the main menu (the big letters) should smoothly open and close when you navigate the site, which it does only in IE7 - in FF and opera, the 'closing' animation almost never works, the 'op

[jQuery] Re: clueTip - can you parse out heading when reading from external file?

2009-02-03 Thread Karl Swedberg
Hi Eric, If you get rid of the splitTitle option, the plugin will just use the title attribute of #popup1 for the clueTip title, by default. You can also set it to a different attribute with the titleAttribute option if you want. --Karl Karl Swedberg www.englishrules.com www

[jQuery] Re: toggle checkbox when clicking

2009-02-03 Thread Karl Swedberg
On Feb 3, 2009, at 9:19 AM, Dave Methvin wrote: Well, that is very strange. It works with jQuery 1.2.6, but not with 1.3.1. Hmm. Will have to investigate. Most likely the problem is that .trigger()ed clicks bubble in 1.3 but they didn't in 1.2, and it's bubbling back up to the tr. Yeah, th

[jQuery] Superfish - Entire menu flickers on hover

2009-02-03 Thread TimA
As you can see on this test page, hovering over any item in the menu causes the entire menu to flash white before the submenu appears. I only see this on IE installs with standalone IE6. On my machines with multiple IE installs, everything is fine. Oddly, this does not seem to happen if I go to

[jQuery] Re: about :not(:last)

2009-02-03 Thread Garito
> It's not a bug, it's the documented behavior: > > :first > Matches the first selected element.http://docs.jquery.com/Selectors/first I cite from the link above: Finds the first table row. $ ("tr:first").css("font-style", "italic"); Seems quite clear > > Let's go through it again. When you cal

[jQuery] [tooltip] Upgraded to jquery 1.3.1 Tooltips doesn't show up

2009-02-03 Thread ksuess
Upgraded to jquery 1.3.1 Tooltips doesn't show up

[jQuery] jQuery Forms and jTabs

2009-02-03 Thread Gilcpd
Hey guys... Im a total noob on the DOM world and just started trying to use JQuery. I intend to start learning this as soon as I can because my website will be able to benefit a lot from this amazing technology. Unfortunatelly I'm working in such ridiculous tight dead-lines that I dont have reall

[jQuery] Re: Help creating a function

2009-02-03 Thread ebru...@gmail.com
Very nice work great. I really have to learn more jquery because it works super. On 3 feb, 21:06, Eric Garside wrote: > Change > $('form').submit(function(){ > to > $('input.counter').change(function(){ > > This will prompt the check to run each time the user changes a value > in any of the conc

[jQuery] Re: Problem with Chrome firing events correctly

2009-02-03 Thread Stephan Veigl
Hi Caleb, ok, the project seems to complex to strip out some parts and run them individually. Anyway, I looked at the sources and they look quite ok to me. Sorry, that I can't help more with this. Just a hint, you could try to add some debug outputs to your code and comment out some parts until

[jQuery] Re: Help creating a function

2009-02-03 Thread Eric Garside
Change $('form').submit(function(){ to $('input.counter').change(function(){ This will prompt the check to run each time the user changes a value in any of the concerned fields. On Feb 3, 1:18 pm, "ebru...@gmail.com" wrote: > I get it now. I didn't add a submit button. Do you now if it's also

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread jay
I imagine a switch is the same speed as a hash (switches generally evaluate to a hash). Using a trie structure could be faster than regex in some circumstances I imagine: http://en.wikipedia.org/wiki/Trie On Feb 3, 12:45 pm, Eric Garside wrote: > In that case, wouldn't a switch statement have

[jQuery] Re: Math.ceil rounds down instead of up!?

2009-02-03 Thread Zaliek
Thanks a bunch! I'm still new to Javascript, but I should have known that :(

[jQuery] Re: Math.ceil rounds down instead of up!?

2009-02-03 Thread brian
On Tue, Feb 3, 2009 at 2:28 PM, Zaliek wrote: > > Using decrement the way I did will change the actual var at the same > time? > It needs to be decremented to pull the correct array value since > arrays start at [0] instead of [1] > Is there a way to get the decremented value without changing the

[jQuery] Re: Detecting wether an image link is going to work

2009-02-03 Thread Stephan Veigl
You can set a timeout and jump to the next image if the image was not loaded before the timeout. see: http://jsbin.com/evitu/edit The third image is a broken link and will run into a 5s timeout. by(e) Stephan 2009/2/3 daveJay : > > I've got a page set up where it loads each image on the page,

[jQuery] Re: Math.ceil rounds down instead of up!?

2009-02-03 Thread Zaliek
Using decrement the way I did will change the actual var at the same time? It needs to be decremented to pull the correct array value since arrays start at [0] instead of [1] Is there a way to get the decremented value without changing the actual variable? I still need to display the total weight

[jQuery] Re: Math.ceil rounds down instead of up!?

2009-02-03 Thread brian
I think you're looking at the wrong line. You're decrementing the totalweight var. weightpricearray = (pricesarray[--totalweight]).split(","); On Tue, Feb 3, 2009 at 2:02 PM, Zaliek wrote: > > I've finished my shipping calculator script, but now for some reason > Math.ceil used on "var sum" in

[jQuery] Re: Math.ceil rounds down instead of up!?

2009-02-03 Thread Zaliek
Number works the same as parseFloat, and swapping those still results in the same problem.

[jQuery] Re: DatePicker not working--how to debug?

2009-02-03 Thread brian
On Tue, Feb 3, 2009 at 1:27 AM, brian wrote: > On Mon, Feb 2, 2009 at 11:55 PM, Richard D. Worth wrote: >> This worked for me no problem >> >> http://paste.pocoo.org/show/102539/ >> >> - Richard > > Thanks for following up. This is too strange. Each test I made, I > checked that everything was l

[jQuery] Re: Math.ceil rounds down instead of up!?

2009-02-03 Thread Hector Virgen
What is the Number() function? I haven't seen that before. Can you use parseFloat or parseInt in its place? -Hector On Tue, Feb 3, 2009 at 11:02 AM, Zaliek wrote: > > I've finished my shipping calculator script, but now for some reason > Math.ceil used on "var sum" in my script does the opposi

[jQuery] Re: Cascade (chained) works in Firefox but not in IE

2009-02-03 Thread Mike Nichols
@james, There is not a fixed schema for items in cascade. The json structure is outside the scope of cascade. For smaller lists I might load some javascript when the page hits and assign the 'url' as the var I gave it. For larger lists or more complex objects I might just have an ajax call for eac

[jQuery] Math.ceil rounds down instead of up!?

2009-02-03 Thread Zaliek
I've finished my shipping calculator script, but now for some reason Math.ceil used on "var sum" in my script does the opposite of what it's supposed to! When it's used in an older version of my script it works correctly so I would assume I've done something wrong that's borking the script now. T

[jQuery] Re: How to make Jquery work properly

2009-02-03 Thread James
Try putting your jQuery code inside the ready() function. The code will execute when the DOM is ready: http://docs.jquery.com/Events/ready $(document).ready(function() { $('#section1').cycle({ fx: 'fade', speed: 'fast', timeout: 0, next: '#next',

[jQuery] Re: DIV position

2009-02-03 Thread James
If I'm correct, your callback inside your show() function cannot include parameters. Instead of: $('#profile_' + id).show("slow", hideAllProfile(id)); Use: $('#profile_' + id).show("slow", function() { hideAllProfile(id); }); On Feb 3, 1:22 am, Paresh wrote: > Is there any way to set the

[jQuery] Detecting wether an image link is going to work

2009-02-03 Thread daveJay
I've got a page set up where it loads each image on the page, one after the other. As you can see here: http://sandbox.exit42design.com/photography/folio_1.html The problem with this is that if one of the images is broken, it'll stop in it's tracks and not try to load the next. Here's an exampl

[jQuery] Live Event Firing Multiple Times Instead of Just Once?

2009-02-03 Thread Vik
I have the following code: $("#element_id").live("mousedown", function(event){ ChangeView(); return false; }); When $("#element_id") is clicked, the ChangeView() function is called not once, but multiple times. I see the fol

[jQuery] Re: Help creating a function

2009-02-03 Thread ebru...@gmail.com
I get it now. I didn't add a submit button. Do you now if it's also possible to use it without pressing on the submit so it would be a realtime check. On 3 feb, 19:08, Eric Garside wrote: > Ah, I'm pretty sure i missed wrapping the loop's "this" in a jQuery > obj > > Try replacing this line: > n

[jQuery] Re: Help creating a function

2009-02-03 Thread Eric Garside
Ah, I'm pretty sure i missed wrapping the loop's "this" in a jQuery obj Try replacing this line: num += this.val()*1; with num += $(this).val()*1; Also, do an alert before and after the loop and just see what the values are: alert('Limit: ' + lim + "\nNum: " + num); On Feb 3, 12:58 pm, "ebru...

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Ricardo Tomasi
$('#anim').animate({marginLeft: '-=50', width: '+=100'}); or $('#anim').css('position', 'relative').animate({left -50, width: '+=100'}); On Feb 3, 1:11 pm, Eric Garside wrote: > Hmm. Lets say you need it to grow 100px. Would: > > $('#anim').animate({paddingLeft: 50, width: 50}); > > work? It's h

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
but is that mean I have to write lots code to do what I want? actually I know the trick, just want to know can it complete through jQuery effect by only set the options. On 2月4日, 上午1時55分, "David .Wu" wrote: > thanks, this plugin is really cool. > > On 2月4日, 上午1時50分, Mike Alsup wrote: > > > > yu

[jQuery] Re: Help creating a function

2009-02-03 Thread ebru...@gmail.com
Looking good Eric, i tied it out, but it doenst seem to work. I already fixed the bug in the alert with the ' in it, but no reponse when filling in alot of numbers. On 3 feb, 17:48, Eric Garside wrote: > Sorry for that last post, wrong thread. :( > > Anyway, you could try something like this: >

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
thanks, this plugin is really cool. On 2月4日, 上午1時50分, Mike Alsup wrote: > > yup, I tried, but still not know to to do it proportionally. sigh.. > > Look at the technique used in this plugin: > > http://www.malsup.com/jquery/hoverpulse/

[jQuery] Re: Jquery cycle plugin - YouTube videos

2009-02-03 Thread Ado
Thanks for looking, cant see much on Google at the moment apart from people having similar problems with flash video when they try and make it display:none (which is esentially cycle plug-in is doing) Anybody else have any code for this? I will keep hunting and post back here if I come across any

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Mike Alsup
> yup, I tried, but still not know to to do it proportionally. sigh.. Look at the technique used in this plugin: http://www.malsup.com/jquery/hoverpulse/

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread Eric Garside
In that case, wouldn't a switch statement have even less overhead than creating an object to check everytime? I'd think switch(tag){case 'body':case 'html': /* ... */ break;} would be an even faster solution, no? On Feb 3, 12:39 pm, George Adamson wrote: > Absolutely, it is very very limited. S

[jQuery] Re: Problem with Chrome firing events correctly

2009-02-03 Thread morse.caleb
Sure, here you go // begin code // var cookie_name = 'WP_LiveSaver', element = 'wpTextbox1'; var LiveSaver = { init: function() { this.lastSave = (new Date()).getTime(); var wikiSection = window.location.href.match(/section=\d+/),

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread George Adamson
Absolutely, it is very very limited. So this technique is only suited to the type of regex's that I quoted, like the one used internally by jquery to test for body or html tags only, or to test for t(able|d|h) only. Particulalry when used inside a loop. For parsing a selector we still need regex.

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
yup, I tried, but still not know to to do it proportionally. sigh.. On 2月4日, 上午12時43分, Eric Garside wrote: > Try the jQuery UI "Scaling" effect. > > http://docs.jquery.com/UI/Effects/Scale > > On Feb 3, 11:21 am, "David .Wu" wrote: > > > Sorry for my bad explanation, I make a sample > > online

[jQuery] Re: find text within the page

2009-02-03 Thread Eric Garside
Replace $(".keyword:contains('"+kw+"')") .each(function(){ With $(":contains('"+kw+"')").each(function(){ On Feb 3, 11:54 am, paulinstl wrote: > yeah.. this finds it by classname (.keyword) , I need to be able to > traverse all elements > > On Feb 3, 9:39 am, Eric Garside wrote: > > > Try: > >

[jQuery] Tooltip Issue

2009-02-03 Thread Pedram
Dear Folk I'm going to use a tooltip in my website I was wondering which one of these ToolTips In the Internet is great . thanks

[jQuery] Re: Jquery cycle plugin - YouTube videos

2009-02-03 Thread Mike Alsup
> I dont suppose you have a quick demo, or code to hand to show me how > this would be done. Would be most appreciated... Hmm, I thought I did but can seem to find it. It depends what functions are exposed on the element so you may want to google it. Maybe someone else will chime in with a sugge

[jQuery] Re: Ajax: not understanding 4th param of $.post( url, [data], [callback], [type] )

2009-02-03 Thread Eric Garside
I'm not positive how jQuery handles mismatched response expectations. Testing it for yourself would be the best way to go, if you're worried about it. But your best case is to specify your expected return, if only to keep a record somewhere of what you should be getting back. On Feb 3, 12:06 pm,

  1   2   >