[jQuery] Re: My code is not working getting an error missing )

2009-10-11 Thread jessie
Ok so this is what i want to do and can't achieve. I have images that i'd like to rollover here is the markup for both of those instances, 1 is a button and the other is just a hyperlink div class=LPButtona href=index.php?act=viewProdamp;productId= {VAL_PRODUCT_ID} target=_selfimg

[jQuery] Problem with accordion and rules and messages

2009-10-11 Thread Narksh
hi, i use this example http://jquery.bassistance.de/validate/demo/multipart/ i change it in hItp://assuranceauto.tv/form/demo/test.php But i have a problem, how can i get rules and messages just for accordion 0 the first form,then accordion 1 the second form var v = $(#cmaForm).validate({

[jQuery] Ajax - Disable script eval

2009-10-11 Thread Christophe
I am using the jQuery load function to grab HTML from other pages. I am only interested in the HTML and the scripts in the page are irrelevant. How can I skip the scripts eval? I tried to add a filter but the following doesn't seem to work: load(page.html *:not(script)) I was also considering

[jQuery] Re: Assigning CSS 'display:block' by jquery not working

2009-10-11 Thread Don Dunbar
Hi, this appears to be happening because of specificity in the CSS. You have the 'hidden' on a direct specification i.e. the 'ul' in question. Try adding a class like : .hidden {display:none;} and then adding and removing that through your jQuery ul.addClass(hidden) ; ul.removeClass(hidden);That

[jQuery] tablefilter with IE8

2009-10-11 Thread Benoit CAILLAUD
Hi all, I use TableFilter but it d'esn't work with IE8. I need to sort, search, and view a pager. I tried to correct by following the instructions: http://www.sitepoint.com/forums/showthread.php?t=61598, but this does not work. They advised me to go with tablesorter, but it does not search

[jQuery] I load an external page in a div but it's java script functions didn't work

2009-10-11 Thread ali Ramezankhani
I load a page in a div and i use some effect from jquery in these pages but effect's didn't work script type=text/javascript jQuery(document).ready(function() { jQuery('#m12').click(function() { jQuery('#left_intd').load('eee.html'); return false; }); jQuery('#m22').click(function() {

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Don Dunbar
Hi, javascript has an 'xor' operator. It works just like 'or' in an 'if' statement except in 'xor' only one side can be true. In a normal 'or' statement either side can be true or both can. So you probably want to do something like: if ( A XOR B) { } . Then only one can be true to continue if

[jQuery] Re: My code is not working getting an error missing )

2009-10-11 Thread jessie
bump* anyone? ;) On Oct 11, 4:43 pm, jessie mi...@optusnet.com.au wrote: Ok so this is what i want to do and can't achieve. I have images that i'd like to rollover  here is the markup for both of those instances, 1 is a button and the other is just a hyperlink div class=LPButtona

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Phper
How can I write the code in the context of Jquery validate function? On Oct 11, 12:43 pm, Don Dunbar salemd1s...@gmail.com wrote: Hi, javascript has an 'xor' operator. It works just like 'or' in an 'if' statement except in 'xor' only one side can be true. In a normal 'or' statement either

[jQuery] Re: My code is not working getting an error missing )

2009-10-11 Thread Rick Faircloth
Hi, again, Jessie... Just wanted to let you know I haven't given up on you. It's was about midnight here and time for some sleep. Now I'm up again and I'll be able to take a look at your code later today and see if we can figure things out. I'm not the brightest knot on the jQuery log, but I'm

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Don Dunbar
Hi, if you are using the validation plugin, I believe it has a function addMethod that allows you to write your own method for the validation. It requires a name (javascript identifier), a method to check input against ( in your case A and B would be checked for completion) and a message to

[jQuery] Re: Using jquery ui plugin. Don't know what functions name to use.

2009-10-11 Thread Charlie
the functions for the labs examples aren't likely in production version of jQueryUI, you'll need to include whatever js files they are using as well Aaron wrote: HI, I am using this: http://jquery-ui.googlecode.com/svn/branches/labs/carousel/demo/index.html plugin to jquery ui. The

[jQuery] Publish subscribe / event pooling

2009-10-11 Thread Martin Tschofen
I've been noodling around on how to create a pubsub system that doesn't depend on linking objects and events together. Based on previous post it turns out to be straight forward with bind and trigger (see code below). However, two things I can't figure out. I can't figure out why namespaced

[jQuery] Error message

2009-10-11 Thread factoringcompare.com
Hi, Three values must add up to 100%. I have used two selects; #Stock_materials and #Stock_WIP with then third #Stock_Finished automatically displaying the result. Issue is that I want to highlight #Stock_WIP in red with an error message if the total in Stock_WIP is =100. How do I add it into

[jQuery] Re: Hide checkbox when choosen value in select 0

2009-10-11 Thread brian
On Sat, Oct 10, 2009 at 1:45 PM, Tan it_qn2...@yahoo.com wrote: Hello, span id=thmr_5 class=thmr_call  div class=form-item id=edit-sitewide-wrapper  label class=option for=edit-sitewideinput type=checkbox name=sitewide id=edit-sitewide value=1   class=form-checkbox / site wide/label /div

[jQuery] Re: Assigning CSS 'display:block' by jquery not working

2009-10-11 Thread Caisys
Rick, I am trying to have a two level horizontal nav bar. The second levels would be hidden by default. Depending on the location of the page being served the right one should be displayed by jq. Don, You are right assignment by id (#) takes higher priority over assignment by class. I couldn't

[jQuery] Re: How to link the JQuery

2009-10-11 Thread Bertilo Wennergren
Charlie Griefer wrote: There's no functional difference between using an external .js file or putting your JS in the page itself. Arguably, it's easier to maintain if it's well-organized in included files... but functionally no different. Well, there's the advantage of the .js file being

[jQuery] Obfuscated jQuery

2009-10-11 Thread elle
I realize I could go through and obfuscate (condense) the file myself for the purpose of faster performance, but it's 4,377 lines of code. Is there an obfuscated version of 1.3.2 anywhere?

[jQuery] LavaLamp problem in IE

2009-10-11 Thread Peter
I have a site where the horizontal LavaLamp top menu is fine in FF, but in IE6 is so spaced out that it overflows and looks horrible. As a work around I have squeezed all of the links together so they fit in IE. However they are now all squeezed together and off-center in FF, so it now looks

[jQuery] Newbie trying to Ajax in IE8

2009-10-11 Thread rhernandez
hello, im newb in jquery ajax. im trying to make this code work in IE8 and i dont know what im doing wrong. is a simple call with $.ajax to get a word from a php Works fine in Firefox and Chrome, but in IE8 seems like .find wont find the word tag. i been looking at the discussion mails but

[jQuery] Re: LavaLamp problem in IE

2009-10-11 Thread Don Dunbar
Hi, this sounds like a CSS issue actually. You should search for how to make a conditional comment in X/HTML and apply a separate style sheet for IE using that. The reason this happens is probably because of how IE especially 6 and earlier handles the box-model in css differently. And so styles

[jQuery] Re: Obfuscated jQuery

2009-10-11 Thread Karl Swedberg
On Oct 11, 2009, at 1:05 PM, elle wrote: I realize I could go through and obfuscate (condense) the file myself for the purpose of faster performance, but it's 4,377 lines of code. Is there an obfuscated version of 1.3.2 anywhere? We don't officially support an obfuscated (packed) version of

[jQuery] Select element in form?

2009-10-11 Thread zephyr
Hi, I have a form and want to select a text input element _in that specific form_. This is my code: $(form [name= +formName + ] :text[name= +textInputField+ ])) formName: a form in my document textInputField: a input type=text in my document If I do this alert($(form [name= +formName + ]

[jQuery] $.post and form data

2009-10-11 Thread Jason
Can someone explain a little bit more (more then jQuery's docs) about how the $.post operates? I know it's a shortcut for .ajax and it uses the HTTP POST request. So I'm guessing it's not sending the same request the form would send... i.e. you HAVE to provide the data to the php script through

[jQuery] [BUG?] Ie8 span.show() on a.hover()

2009-10-11 Thread Alessandro
Hi, i'm trying to make a div showing when user moves mouse over a link, so html is this: a href=page.php?id=3 class=menuItem id=newsnews/a span id=newsBar a href=mandiprovanews/abr a

[jQuery] Re: LavaLamp problem in IE

2009-10-11 Thread tubby
Hi, I have exactly the same problem as Peter. I have tried to modify the lavalamp css as per Don's suggestion but have so far been unsuccessful. Can anybody provide some example code or documentation as to how to go about modifying the css on Peter's so that it works with IE? Any help

[jQuery] Treeview - Custom hyperlink click event

2009-10-11 Thread philsturgeon
I am trying to remove the default behaviour from the A within the Treeview structure. I want the +/- icons to continue to toggle but when a user clicks on the A I want to fire my own event. This event is currently firing fine, but it also fires the toggle behaviour meaning the tree still expands

[jQuery] Re: Select element in form?

2009-10-11 Thread Karl Swedberg
You have a space between form and [name=...] . In CSS a space is a descendant selector, so it's expecting some descendant of the form to have a name equal to formName. Remove the space and you should be fine. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: $.post and form data

2009-10-11 Thread Karl Swedberg
On Oct 11, 2009, at 3:35 PM, Jason wrote: Can someone explain a little bit more (more then jQuery's docs) about how the $.post operates? I know it's a shortcut for .ajax and it uses the HTTP POST request. So I'm guessing it's not sending the same request the form would send... i.e. you HAVE

[jQuery] Simple Tooltip

2009-10-11 Thread shapper
Hello, I need a simple tooltip which html markup is only a div. I have the following: this.tooltip = function(){ /* CONFIG */ xOffset = 10; yOffset = 20; // these 2 variable determine popup's distance from the cursor // you

[jQuery] Re: Treeview - Custom hyperlink click event

2009-10-11 Thread Shawn
are you returning false from your event handler? That *should* stop all other event processing. You could also try to capture the event object (i.e. .click(function(theEvent) { }); ) and then make use of the .stopPropagation() method. Neither trick will do you any good if the treeview's

[jQuery] Re: Ajax - Disable script eval

2009-10-11 Thread Christophe
Update: I ended up adding this line of code to my script: jQuery.globalEval = function(){}; I am still interested in advice if there's a better way. On Oct 11, 10:12 am, Christophe christophe.humb...@gmail.com wrote: I am using the jQuery load function to grab HTML from other pages. I am

[jQuery] Re: Select element in form?

2009-10-11 Thread RobG
On Oct 12, 7:12 am, zephyr marc.at.comp...@gmail.com wrote: Hi, I have a form and want to select a text input element _in that specific form_. This is my code: $(form [name= +formName + ] :text[name= +textInputField+ ])) Why not: $(document.forms[formName].elements[inputName]) -- Rob

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Phper
A good clue. But I still don't know where to write the if statement. It would be good if you can give me an example. On Oct 11, 10:57 pm, Don Dunbar salemd1s...@gmail.com wrote: Hi, if you are using the validation plugin, I believe it has a function addMethod that allows you to write your own

[jQuery] Display fails when jQuery.js isn’t cached . When cached, page displayed OK.

2009-10-11 Thread Bob
I have jQuery UI Tabs which load their content via AJAX. About once every 15 times when the entire page is loaded (not just XHR), things fail and I don't see the proper content in the tab. The jQuery executes without error, but the page display is wrong. Fiddler showed me that when things fail

[jQuery] jQuery blockUI overlay color and cursor doesn't work on firefox 3.5.3 (linux)

2009-10-11 Thread Smart Kenny
jQuery blockUI shows a grey overlay on all browsers on window. But on linux firefox (3.5.3 3.0.10) the overlay is transparent no matter what color and opacity is set. The 'wait' cursor also doesn't work on linux firefox while it works as expected on all browsers on windows.

[jQuery] Re: New SlickGrid example page - AJAX loading

2009-10-11 Thread Wildan Maulana
Hi Tin, Is there an API to add new column ? Thanks! On Oct 9, 4:32 am, Tin michael.leib...@gmail.com wrote: A lot of people have been asking for an example of how to use SlickGrid with remote data stores.  I've just added a new sample page that does just that:

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Phper
script type=text/javascript src=http://code.jquery.com/jquery- latest.js/script script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/validate/jquery.validate.js/script script type=text/javascript !-- $(document).ready(function() { $(#form1).validate({ rules: {