[jQuery] Re: jQuery.ajax custom parameter to success callback function

2009-08-05 Thread Ricardo
There is no point in validating via AJAX unless something related to sessions needs to be checked. You should validate twice, once client- side in javascript and again on the server. The jQuery Validation plugin should cover your needs for this: http://docs.jquery.com/Plugins/Validation On Aug

[jQuery] Re: $.jgrid is undefined with jqgrid plugin

2009-08-05 Thread Tony
Hello, A good explain why is this is here: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:how_to_install Best Regards Tony On Aug 5, 2:33 am, Josh Nathanson joshnathan...@gmail.com wrote: I think that plugin is broken.  I tried it a couple of weeks back and got the same error, tried to

[jQuery] Re: Are the OAuth Consumer Token and Secret assigned to a specific Server IP address

2009-08-05 Thread Jörn Zaefferer
Uh, wrong list? This list is about jQuery, seems mostly unrelated... Jörn On Wed, Aug 5, 2009 at 2:06 AM, MECarluen-TwitterGroupmecarl...@gmail.com wrote: Hello Gurus- quick question, are the Consumer Token and Secret assigned to a specific Server IP address? I am currently switching my

[jQuery] Re: Get this in ajax

2009-08-05 Thread Jaggi
Ah i did try that but it didn't output anything (using firebug). But when i just tried adding it now and just running it in the code the code seems to work (still doesn't output anything tho). Must be one of those things, thanks. On Aug 4, 7:20 pm, James james.gp@gmail.com wrote:

[jQuery] Live function being weird

2009-08-05 Thread Jaggi
I have two snippets of code: This one doesn't work $(form[name='edit']).live('click', function() { return false; }); This one does: $(form[name='edit']).click( function() { return false; }); I'm not sure why this is though, are attribute filters not supported with the live

[jQuery] Re: Show How many text box empty How many text box filled

2009-08-05 Thread thedad...@gmail.com
I use this method. $(‘input text ’).each(function(i){ // then i+1 will give you the total number of the match elements. }) On Aug 5, 10:33 am, bharani kumar bharanikumariyer...@gmail.com wrote: Hi , Basically am doing something like validation function , Having form with 5 text box ,

[jQuery] Re: $.jgrid is undefined with jqgrid plugin

2009-08-05 Thread Massimiliano Marini
Hi Tony, A good explain why is this is here: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:how_to_install very helpfull, now all works fine thanks a lot. :) Regards -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ It's easier to invent the future than to predict it.

[jQuery] Pop-up, hover or focus -problem

2009-08-05 Thread Geir
Hi! I'm making a pop-up Google search-box for my site. However it's something wrong with my jQuery-code. Can you help me? js: if ( $('#Search').hover() || $('#Google').focus() ) {$('#Google').show() } else { $('#Google').hide()

[jQuery] Re: jQuery.ajax custom parameter to success callback function

2009-08-05 Thread rem
Thank you Ricardo! On Aug 5, 9:28 am, Ricardo ricardob...@gmail.com wrote: There is no point in validating via AJAX unless something related to sessions needs to be checked. You should validate twice, once client- side in javascript and again on the server. The jQuery Validation plugin

[jQuery] Re: Custom Attributes - Beginner tip

2009-08-05 Thread Miket3
Damn it! I stand corrected. Thanks Jules! And it worked as I thought it should have. Even though this is only my 2nd jQuery project I KNOW for a fact(mostly) that I used the proper syntax and method of trying to retrieve my custom attrib. I have a sneaky feeling that I was a victim of

[jQuery] Re: Custom Attributes - Beginner tip

2009-08-05 Thread Cam Spiers
Don't be too hard on yourself mate. The docs are your friend too :) On Wed, Aug 5, 2009 at 10:52 PM, Miket3 miketro...@gmail.com wrote: Damn it! I stand corrected. Thanks Jules! And it worked as I thought it should have. Even though this is only my 2nd jQuery project I KNOW for a

[jQuery] Re: Custom Attributes - Beginner tip

2009-08-05 Thread Rick Faircloth
Thanks for the tip! -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Miket3 Sent: Tuesday, August 04, 2009 8:04 PM To: jQuery (English) Subject: [jQuery] Custom Attributes - Beginner tip One issue I ran across while learning jquery

[jQuery] Re: Pop-up, hover or focus -problem

2009-08-05 Thread Geir
Thanks! On Aug 5, 1:12 pm, Charlie charlie...@gmail.com wrote: hover requires 2 functions hover(over,out) Ok, so can I use mouseOver instead? take the * if* out logic not making sense on the focus part. If you can focus on element it's already showing The focus is for if $('#Search').hover

[jQuery] Re: Superfish as popup menu?

2009-08-05 Thread Charlie
the popup menu example is just exposing a hidden element, regardless of what is contained in it, like a menu in your case very simple to get one to appear like the YUI example with a show on button click function // first hide menu on page load $('#menu').hide() //click button to expose menu

[jQuery] Re: Pop-up, hover or focus -problem

2009-08-05 Thread Charlie
what if user shows the box on mouseover but doesn't use it? Geir wrote: Thanks! On Aug 5, 1:12pm, Charlie charlie...@gmail.com wrote: hover requires 2 functions hover(over,out) Ok, so can I use mouseOver instead? take the * if* out logic not making sense on

[jQuery] Re: hide() does not hide span in IE, but does in FF

2009-08-05 Thread Charlie
this is a lot to sift through to find one span hide issue for which there is likely an easy solution. You'll get a lot better response by putting a test case on live link. jsbin.com is great for this if you don't have public access server msmaeda wrote: Hi, With the code below, I am

[jQuery] Re: replaceWith()

2009-08-05 Thread Charlie
there are lots of ways in jQuery to create relationships between selectors depending on your markup. Without seeing any markup it's hard for anyone else to help you create those connections ProfCrazyHorse wrote: I want to replace one element with another, and keep the element contents

[jQuery] overwriting document.write() with jQuery's append()

2009-08-05 Thread Benedikt
Hi everybody, hope I have your attention this time... Some of you propably know the problem with advertisment distributors and their excessive use of document.write() On the one hand, you tried to call advertisement as soon as possible, to have it shown as soon as possible. On the other hand,

[jQuery] Re: css on dynamic table row

2009-08-05 Thread Stefano
show me your css fragment with the selector and if you can a fragment of the jquery if its possilbe, you do not have it maybe online somewhere? do you use firebug or web-developer toobar ? you could look on the generated code if everthing went ok i will try to make an example today when i will

[jQuery] Re: Superfish as popup menu?

2009-08-05 Thread Ryan McKinley
Dooh -- now that you mention it, I should show/hide a vertical style menu (I was trying to figure out how to just show a submenu) thanks! On Aug 5, 2009, at 7:45 AM, Charlie wrote: the popup menu example is just exposing a hidden element, regardless of what is contained in it, like a menu

[jQuery] getting the height of some div (which contains p having some margin defined)

2009-08-05 Thread ZedroS
Hi I would like to get the height of a div. This div contains other markups tag like some paragraph. However, I don't manage to get the height of this div if some paragraphs inside of it have some margin defined, even when using outerHeight(true)... It looks like I'm missing something, can

[jQuery] Replace string characters using jQuery

2009-08-05 Thread MiKiTiE
Hi Everyone First post - please be gentle. I am running a search on my web site which uses jQuery to take the search terms and build up a URL based on them. For example, if someone searches for chair my URL will be appended with /chair/. However, if someone searches for something which is two

[jQuery] jQuery conflicts

2009-08-05 Thread bencharity
I would like to use several jQuery effects through a website that I am developing; a login popup, a drop down contact form, coda content scroller, and tabbed content. However, these implementations keep interfering with each other. Is there any way to get around this? I seems as though there

[jQuery] How to modify the url function [validate]

2009-08-05 Thread Fong
Hi all, This post is in regards to the jQuery plugin for validation. I am using the url method to get validation text fields which I want to have a url. But I want a slight modification where I only want to the base directory of a site and not an individual page. For example, I want

[jQuery] Superfish how to add mouseup event

2009-08-05 Thread Eddie
hi there, does anyone knows how can i add an onmouseup event script for the drop down menu? i want to provide an alternative clicking convenient for the user, other than clicking on the anchor to access the menu items. I want to make the acess is possible even if the user clicks at the background

[jQuery] onLoading and onComplete Event Methods in JQuery

2009-08-05 Thread Gaurav
Hi All, I am new to Jquery , i implemented the Ajax request in my web application using prototype.js but because of some issues i need to replace prototype.js with jquery so i gone through the jquery documentation but i did not found any replacement for the onLoading of prototype.js My Current

[jQuery] Re: jQuery Cycle pager with images

2009-08-05 Thread AdmireNL
Hi, I've done that before. Check this website: http://www.hoveniersbedrijfdeweerdt.nl/ You can see that the active pager image gets a class. With that class you can change it's appearance with CSS. Goodluck! Admire On Jul 23, 6:10 pm, matttr tmat...@gmail.com wrote: Hi, I am fairly new to

[jQuery] Re: how to multiple images slideshow with jquery cycle plugin

2009-08-05 Thread AdmireNL
Hello, I'm looking for a same kind of solution. Sliding rows of 3 images at the same time. 9 visible images in 3 rows (1-3) (4-6) (7-9). Next slide will hide (1-3) and who (10-12). Anyone know how to do that? (Auto scroll and pause on hover is not a problem, that's all documented on:

[jQuery] Re: Live function being weird

2009-08-05 Thread MiKiTiE
If I remember correctly the live event can only handle tag elements not specific names. So for example, $(form).live('click', function () { }); would work. Perhaps you can use an id on your form, maybe that would work? Do you have to use the live event specifically or were you just curious as to

[jQuery] jquery tabs doesn't work under IE

2009-08-05 Thread bary white
here is my site: http://testlayout.cba.pl/ tabs don't work under IE - all div's are visible. I should add some code? I thought that jquery works under all browsers...

[jQuery] Re: $.post callback broken in safari in new window.open()

2009-08-05 Thread akume
i'm having a similar problem with $.get. the callback isn't fired for safari 4. -akume Thomas Bircher wrote: hello I'm opening a new window with window.open() In the new window a file is loaded with the following post data function: function ajaxPost(url,data){

[jQuery] Re: News scroller

2009-08-05 Thread ramachandran natesan
You can do this using MARQUEE a simple HTML tag On Jul 28, 12:59 pm, Andrea - Aosta andreabe...@gmail.com wrote: I have found thsi example made width mootoolshttp://javascript.html.it/demo/javascript/5338/esempio.htm A similar plugin for jquery exists? Thank you

[jQuery] End of animation

2009-08-05 Thread Mathieu
Hi all, I would like to know when a set of animations, started inside an each function, is finished. In the following example, how can I simply hide the whole #menu element once LI elements have been fully animated ? --- HTML div id=menu ul liOne/li

[jQuery] Re: jquery tabs doesn't work under IE

2009-08-05 Thread MorningZ
I don't see that page working for FF3.0 even. it's your use of the code, not the code itself On Aug 5, 8:33 am, bary white jimm...@wp.pl wrote: here is my site:http://testlayout.cba.pl/ tabs don't work under IE - all div's are visible. I should add some code? I thought that jquery works

[jQuery] Re: xpath not returning objects

2009-08-05 Thread Old Orange Juice
IF that's the case, http://docs.jquery.com/DOM/Traversing/Selectors#Using_CSS_and_XPath_Together should be changed. That page says: Get the input field's value with the name of 'bar': $(inp...@name=bar]).val(); All checked radio buttons: $(inp...@type=radio][@checked]) it also says:

[jQuery] Re: Show How many text box empty How many text box filled

2009-08-05 Thread bharani kumar
thanks ,,, but i did with genral javascript using for loop Thanks On Wed, Aug 5, 2009 at 2:58 PM, thedad...@gmail.com thedad...@gmail.comwrote: I use this method. $(‘input text ’).each(function(i){ // then i+1 will give you the total number of the match elements. }) On Aug 5, 10:33

[jQuery] Re: How to modify the url function [validate]

2009-08-05 Thread Jörn Zaefferer
I recommend to use the url method, than add a custom method (http://docs.jquery.com/Plugins/Validation/Validator/addMethod) that checks your requirement. That way your method can rely on a valid URL. Jörn On Wed, Aug 5, 2009 at 6:18 AM, Fongf...@weblite.ca wrote: Hi all, This post is in

[jQuery] Re: End of animation

2009-08-05 Thread Leonardo K
Use the callback function $(#menu li).click(function() { // toggle selected item in list $(this).toggleClass(selected); // animate all other LI elements to disappear (sliding left) $(#menu li:not(.selected)).animate({ marginLeft: -200px }, function(){

[jQuery] Re: jqGrid with c#

2009-08-05 Thread Fontzter
If you user a DAL like SubSonic many have a ToJson() function. This article might help. Maybe you could tweak it to return things in the jqGrid format. http://www.codeproject.com/KB/aspnet/ASPNET_DataTable_to_JSON.aspx I think a DAL or Linq or something else that handles paging is your best

[jQuery] Re: jquery tabs doesn't work under IE

2009-08-05 Thread bary white
Whole page is only template. The jQuery elemet is purple box called dynamic box - it should change by itself each 2.5 seconds and after click on red box 1 buttons next to it. I've changed something in the code, now it works under ie, but when you chose box 3 - the box will move on the end of the

[jQuery] Re: edit dialog display issue

2009-08-05 Thread Tony
Hello, Maybe this will be usefull. http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#form_editing Regards Tony On Jul 29, 8:51 am, Ravi morir...@gmail.com wrote: Hii..i am new injqgrid. i have to achieve following functionality.. I get grid which displays all data..now i want

[jQuery] Re: Tabs: page jumps to top when tab changes

2009-08-05 Thread chris_huh
I have fixed it. In the end i used the original code: script type=text/javascript $(function() { $(#tabs).tabs({ fx: { opacity: 'toggle' } }).tabs ('rotate', 5000); }); /script But turned off the fade between items as that seems to have been the cause. So now i

[jQuery] Re: Ajax response attached file

2009-08-05 Thread David
window.location.href = file_url; It seemed to me the best solution. On 4 ago, 21:21, David garcia.narb...@gmail.com wrote: Would it be a proper solution to use a hidden iframe and set the 'src' attribute with the file URL? That is, in the Post methodAJAXrequest, in its callback function, set

[jQuery] Re: Bug? -- toggle() of TR broke in IE8

2009-08-05 Thread Fontzter
Liam, Thanks for your input, we all know how irritating IE can be. However, there are a few things about this that puzzle me: * It works in IE6, IE7, FF, Chrome and Opera * It works with jQuery 1.2.6 * You can call show() and hide() on the TRs and it works in IE8 (see

[jQuery] FOR loop corrupting external links from MySql / getJSON procedure

2009-08-05 Thread fluxUX
I am doing a FOR loop and creating a list which I am getting from a mysql DB. I am having trouble linking to an external _blank page. i am passing my userID (+uidCN+) and when I do the results sometimes the results list out no problem ...and sometimes it does not. It seems my loop is creating a

[jQuery] Re: Bug? -- toggle() of TR broke in IE8

2009-08-05 Thread Liam Potter
Sorry about the hostility, was having a pretty stressful day and I didn't really look into the problem too much, so my apologies for that. Now that I've had a better look, it actually does look like a bug. If you enter a value to the toggle, IE8 will do something with the TR, but it ends up

[jQuery] Re: xpath not returning objects

2009-08-05 Thread Liam Potter
, in a big red box it says This is an old version of the *Selectors* API: *View the Current API http://docs.jquery.com/Selectors* Old Orange Juice wrote: IF that's the case, http://docs.jquery.com/DOM/Traversing/Selectors#Using_CSS_and_XPath_Together should be changed. That page says:

[jQuery] Re: End of animation

2009-08-05 Thread Mathieu
Thanks for your answer Leonardo. The callback is not called once. $(#menu li:not(.selected)).animate({ marginLeft: -200px }, function() { $(#menu).hide(); alert(Hello); }); Hello gets printed many times. -- Mathieu On Aug 5, 3:29 pm, Leonardo K leo...@gmail.com wrote:

[jQuery] Re: IE click event handling problem

2009-08-05 Thread ak732
@Ricardo: I've cleaned up my code as you recommend. Thanks for the tips. Andy On Aug 4, 6:06 pm, Ricardo ricardob...@gmail.com wrote: You could use a opacity of 0, it's not that ugly of a hack. And you could use this simple logic instead of ifs and is()'s: var cb = this; //checkbox

[jQuery] Re: Live function being weird

2009-08-05 Thread Karl Swedberg
Is there a default onclick action for forms? You're applying the live handler to the form with name=edit. What typically happens when you click a form? Maybe you're using the wrong selector? Or maybe you want to prevent the form from submitting. If the latter, the .live() method does not

[jQuery] Re: hide() does not hide span in IE, but does in FF

2009-08-05 Thread Cesar Sanz
I will suggest you, that instead of pasting all your code (which ALMOST nobody reads) you put a demo in http://www.jsbin.com - Original Message - From: Charlie To: jquery-en@googlegroups.com Sent: Wednesday, August 05, 2009 6:00 AM Subject: [jQuery] Re: hide() does not hide

[jQuery] Re: replaceWith()

2009-08-05 Thread Cesar Sanz
@ProfCrazyHorse: Your solution seems simple.. why to change something that is working fine? - Original Message - From: Charlie To: jquery-en@googlegroups.com Sent: Wednesday, August 05, 2009 6:38 AM Subject: [jQuery] Re: replaceWith() there are lots of ways in jQuery to

[jQuery] Re: Custom Attributes - Beginner tip

2009-08-05 Thread Cesar Sanz
What happens with custom attributes regarding the strict XHTML format? - Original Message - From: Rick Faircloth r...@whitestonemedia.com To: jquery-en@googlegroups.com Sent: Wednesday, August 05, 2009 5:12 AM Subject: [jQuery] Re: Custom Attributes - Beginner tip Thanks for the

[jQuery] Re: getting the height of some div (which contains p having some margin defined)

2009-08-05 Thread Cesar Sanz
$(div).height() ??? - Original Message - From: ZedroS zedros.schwa...@gmail.com To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, August 05, 2009 5:02 AM Subject: [jQuery] getting the height of some div (which contains p having some margin defined) Hi I would

[jQuery] Re: Live function being weird

2009-08-05 Thread Jaggi
Yea i know the form doesn't support the submit which is why i had to use the click method. Its kind of weird that it works on a number of my forms but then stopped on two. So was trying to figure the reason for it. In the end i gave the submit button a class and did it off that. I'm using live

[jQuery] Re: [Linkselect] Change function fires when using replaceOptions

2009-08-05 Thread Dan G. Switzer, II
skube, This is not a limitation, but a specific design decision. If you're replacing the options in a select box you are in affect also changing the value (or at least potentially changing) the value since you now have a completely new set of values in the box. Therefore, to ensure that

[jQuery] Re: xpath not returning objects

2009-08-05 Thread Cesar Sanz
the @ symbol is no longer needed - Original Message - From: Old Orange Juice kc2...@gmail.com To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, August 05, 2009 7:21 AM Subject: [jQuery] Re: xpath not returning objects IF that's the case,

[jQuery] Re: jQuery Cycle - Get Current Slide Number

2009-08-05 Thread Ed F.
I figured out a way to make the current slide number work for multiple slideshows on the same page, but i have to repeat the function declarations for each instance of a slideshow, like so: code // init for the cycle js $(document).ready(function(){ $('#s1').cycle({ fx:'fade',

[jQuery] Filter List Items w/ Sub-Lists

2009-08-05 Thread Panman
I have selected a list that contains sub-lists. Now, I'd like to search for the list items that contain sub-lists (but not including the sub-list-items). I think the example below will explain what I'm trying to do. HTML: ul class=start-here liDo Not Need/li liNEED THIS ITEM ul

[jQuery] Re: End of animation

2009-08-05 Thread Leonardo K
Try this. $(#menu li:not(.selected)).animate({ marginLeft: -200px }, function() { if ($(this).is(':last')) { $(#menu).hide(); } }); On Wed, Aug 5, 2009 at 12:15, Mathieu mathieu.led...@gmail.com wrote: Thanks for your answer Leonardo. The callback is not called once.

[jQuery] Unsaved Changes form validation

2009-08-05 Thread Chris Renner
This is not JQuery specific per se, but a generalized JavaScript problem. I happen to be using JQuery in my application, so the solution will most certainly be implemented with JQuery. I have a multi-page form which I allow the user to navigate freely before validating and submitting. There is

[jQuery] Global AJAX events, not working?

2009-08-05 Thread Julijan Andjelic
I've tried like this: $(#loading).ajaxStart(function() { $(this).show(); }). ajaxComplete(function() { $(this).hide(); }) I've triple checked the id of loading image and everything, but still doesn't work. Any ideas what could be wrong?

[jQuery] Possible IE8 Bug with jQuery

2009-08-05 Thread Matt
I believe I have found a bug in IE8; it's possible that it's something jQuery is doing, but I really doubt it. I'm only cross-posting this here in the hopes that someone can suggest a workaround, because I have tried everything I can think of. A code sample is available here:

[jQuery] Forcing JSON parse by headers

2009-08-05 Thread moltar
Here is a scenario. I am submitting a form via AJAX. The form may either return HTML (when there are input errors) or JSON (successful response). If during request I specify dataType: 'json' then HTML doesn't get thru correctly, if I don't then JSON is displayed as plain text. I am sending the

[jQuery] JQuery autocomplete got broke after i update it.

2009-08-05 Thread pankaj
Hi All, After I update JQuery autocomplete plugin (jQuery UI Autocomplete @VERSION), I found one issue. The issue is as follows. When I type jua in the autocomplete field. Four matches are returned for users with the first name juan. Then add an n.Only the first match remains in the list. I

[jQuery] Re: Filter List Items w/ Sub-Lists

2009-08-05 Thread Dan G. Switzer, II
Try: $('.start-here li').filter(':has(ul)').append('span class=ui-icon ui- icon-plus/span'); -Dan On Wed, Aug 5, 2009 at 11:59 AM, Panman rpann...@gmail.com wrote: I have selected a list that contains sub-lists. Now, I'd like to search for the list items that contain sub-lists (but not

[jQuery] Re: Filter List Items w/ Sub-Lists

2009-08-05 Thread Paul Mills
Try, $('.start-here li:has(li)').append('span class=ui-icon ui- icon-plus/span'); Paul On Aug 5, 4:59 pm, Panman rpann...@gmail.com wrote: I have selected a list that contains sub-lists. Now, I'd like to search for the list items that contain sub-lists (but not including the

[jQuery] Re: jCarousel External Control as Pagination

2009-08-05 Thread Jon Banner
without seeing your code it's a bit of guess work... you could try this use the callback function initCallback assuming that you are showing 5 items and your external control has id = btn-show-next, attaching an event something along these lines ought to help you.

[jQuery] Re: getting the height of some div (which contains p having some margin defined)

2009-08-05 Thread ZedroS
hi we have just found out the issue. Let's say you have div id=div pbla/p /div Like this, $('#div').outerHeigth(true) won't care about the p margin. In fact, in just care about the row content If you switch to div id=div style=display: visible pbla/p /div then $('#div').outerHeigth(true)

[jQuery] Re: jQuery Cycle - Get Current Slide Number

2009-08-05 Thread Charlie
As long as you keep the ID's unique for the separate slideshows *and pagers* you should be able to call same functions onAfter duplicate your constructor with the other ID you want to have cylcle on and change your pager ID accordingly Ed F. wrote: I figured out a way to make the

[jQuery] Re: jQuery Cycle - Get Current Slide Number

2009-08-05 Thread Charlie Tomlinson
sorry , your next and prev ID's will need to be unique, change them iin new constructor Ed F. wrote: I figured out a way to make the "current slide number" work for multiple slideshows on the same page, but i have to repeat the function declarations for each instance of a slideshow,

[jQuery] Re: jQuery conflicts

2009-08-05 Thread Charlie
you only need to call jQueryNoConflict once for the page after that any jQuery functions would start with jQuery('selector' Try removing all the noconflict variables bencharity wrote: I would like to use several jQuery effects through a website that I am developing; a login

[jQuery] Re: jQuery Cycle - Get Current Slide Number

2009-08-05 Thread Ed F.
Hi Charlie, thanks for the reply, i appreciate it. That's what I'm doing: repeating the constructor and changing the IDs. this adds 200 extra lines of code to the js file though. Previously in this thread, someone else figured out a way to not have to add unique IDs to the html code. so that

[jQuery] append help

2009-08-05 Thread Dave Maharaj :: WidePixels.com
I want to add .loading class before an element (#admin_content) so when a user clicks on a link it add the loading class before the #admin_content DIV but just can figure out to add the div class=loading/div I do not want to load the pages up with loading div tags all over the site.

[jQuery] Re: Filter List Items w/ Sub-Lists

2009-08-05 Thread Charlie
adding a ** prior to a selector will cause selector to be a child only and exclude further descendant levels $('.start-here li:has(li)')/// this will only look at first level of li within class=start-here Paul Mills wrote: Try, $('.start-here li:has(li)').append('span class="ui-icon

[jQuery] Re: jQuery Cycle - Get Current Slide Number

2009-08-05 Thread Charlie
constructor you are showing is only about 10 lines. If the onAfter is identical events for both you should be able to re use the same function after: onAfter1 for both Ed F. wrote: Hi Charlie, thanks for the reply, i appreciate it. That's what I'm doing: repeating the constructor and

[jQuery] Re: Show/hide on radio button click

2009-08-05 Thread Magnificent
Hey Jules, thanks much, this works like a champ!

[jQuery] Re: Forcing JSON parse by headers

2009-08-05 Thread mkmanning
Well, the easy answer is just send JSON in both cases, with the HTML as part of the JSON response. $.ajax returns the XMLHttpRequest that it creates, so you could get the content type in your success function and eval the JSON yourself: var xhr = $.ajax({ ... success: function(data){

[jQuery] Re: [Linkselect] Change function fires when using replaceOptions

2009-08-05 Thread skube
I don't necessarily agree. Perhaps I'm misunderstanding something. If one is using the first select to populate the second, replaceOptions fires the change function on the second select. But I'm already using the change function (say, to submit the form) for when I actually pick an option from

[jQuery] Re: jQuery Cycle - Get Current Slide Number

2009-08-05 Thread Ed F.
Hi Charlie, I'm sorry i don't think i'm making myself clear enough. here is the init.js file that i'm using, you can see the repeated code for each instance of the slideshow: http://tinyurl.com/mrhkym as you can see, lots of duplicated code to deal with each unique instance of the slideshow.

[jQuery] Re: jCarousel External Control as Pagination

2009-08-05 Thread Gingah
After very much hassling google, I found the answer to my first question to be: carousel.scroll(9) Basically, to go to image-element number 9, I would need to pass that into a button. Much simpler than I had expected, and it works just as hoped. To the harder issue; replacing the External

[jQuery] Re: replaceWith()

2009-08-05 Thread mkmanning
The solution doesn't work. $(h2).text() concatenates all the text from every h2 (it would also miss any markup inside the h2). If you want to extract the contents into a variable, then you'll have to iterate over the collection of h2's to do the manipulation. There are other ways to accomplish

[jQuery] [treeview] - How to manually set a persistent location

2009-08-05 Thread Marty Tennison
I'm using the treeview plugin for navigation on our website. It works great but I wanted to be able to override the persist:location when needed. For example, on an e commerce site where items are part of a category, I need to have that tree open to that category. To achieve this, I hacked

[jQuery] Re: jQuery Cycle - Get Current Slide Number

2009-08-05 Thread Charlie
sorry, didn't realize you were running 12 slideshows. You could change to classes on all your selectors and index them to shorten code to one constructor. Not sure that performance wouldn't be a hinderance though Ed F. wrote: Hi Charlie, I'm sorry i don't think i'm making myself clear

[jQuery] Re: Pop-up, hover or focus -problem

2009-08-05 Thread Tim
Adapt the code to something like this: $(#search).hover(function() { //On hover... $(#Google).show(); } , function() { //On hover out... $(#Google).hide(); }); Tim :o] On Aug 5, 6:53 am, Charlie

[jQuery] Using .live and .each

2009-08-05 Thread Nic Hubbard
I have a script that runs when I load the page which converts some dates. I am not using ajax as well, and I need to use .live to convert the dates that I brought in through ajax. How would I combine .live with .each and make it work? if ($(span.ISODate).length 0) {

[jQuery] Re: Malsup Form Plugin and buttons tags

2009-08-05 Thread Mike Alsup
Button elements do not have values submitted when a form submits unless they are of type 'submit' and you're using ajaxForm. More details here: http://www.w3.org/TR/html4/interact/forms.html#successful-controls Mike On Aug 4, 10:26 am, NickUK nicklev...@gmail.com wrote: I'm using 2.28

[jQuery] Re: binding text event

2009-08-05 Thread James
You can also register and bind custom events through it, so you can pretty much put 'anything' inside $.bind. For more info, just do a search on creating custom events with jQuery and you'll find some stuff. Just curious, how does what you're doing come in useful when handling Chinese input? On

[jQuery] Re: jQuery Cycle - Get Current Slide Number

2009-08-05 Thread Ed F.
Yes, i think that's the way to go, i'm just not talented enough with the js to write that indexing code. that's why i'm posting here. this thread was started by someone who had done the same thing, and with some help, got it to work. i couldn't get his code to work, so i'm hoping someone might

[jQuery] Re: Global AJAX events, not working?

2009-08-05 Thread Cesar Sanz
Check the height/width of the #loading element maybe it is collapsed,so, you cannot view it - Original Message - From: Julijan Andjelic julijan.andje...@gmail.com To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, August 05, 2009 9:00 AM Subject: [jQuery] Global AJAX

[jQuery] How to modify the url function [validate]

2009-08-05 Thread Fong
Hi all, This post is about the jquery validation plugin. I am using the url() method to validate text fields for valid url input. It works fine, but I want a slight modification where I am checking whether a base directory has been added and not some individual page. For example, not

[jQuery] Re: How to modify the url function [validate]

2009-08-05 Thread Fong Chun Chan - IT Coordinator
I just found my post. Sorry please ignore my last reply. Thanks for your help Jorn. I will try it. On Aug 5, 12:20 pm, Fong f...@weblite.ca wrote: Hi all, This post is about the jquery validation plugin.  I am using the url() method to validate text fields for valid url input.  It works

[jQuery] Re: Pop-up, hover or focus -problem

2009-08-05 Thread Geir
On 5 Aug, 20:16, Tim tberne...@mchsi.com wrote: Adapt the code to something like this:                 $(#search).hover(function() { //On hover...                         $(#Google).show();                 } , function() { //On hover out...                         $(#Google).hide();        

[jQuery] Re: append help

2009-08-05 Thread amuhlou
I refer to this tutorial a lot when figuring out how to load things: http://net.tutsplus.com/javascript-ajax/how-to-load-in-and-animate-content-with-jquery/ step 4 should be especially useful to you On Aug 5, 12:57 pm, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: I want to add

[jQuery] Re: Replace string characters using jQuery

2009-08-05 Thread Karl Swedberg
Hi there, It looks like your test: var test = searchval.text().replace(' ','+'); is trying to use the .text() jQuery method on a string. Remove that part and it should work, sort of. It'll only replace the first instance of a space. Instead, use the regex replace and set the global (g)

[jQuery] Re: Tablesorter plugin - grouping rows and sorting per group?

2009-08-05 Thread Crazy Serb
A-ha! That's pretty much what I'd need... Now, is there any slick way of repeating that over and over for different tables (with class names of multisort1, multisort2, etc) in case I have a few of these multi-sort tables on the same page and need to keep them separate? Or would I pretty much

[jQuery] Re: Tablesorter plugin - grouping rows and sorting per group?

2009-08-05 Thread aquaone
I'm sure you can look at the code and find a way to get it working in the general case. What's there was just kinda a quick and dirty hack I wrote for another guy a while ago. I'll leave it as an exercise for the reader though. ;-) aquaone On Wed, Aug 5, 2009 at 14:16, Crazy Serb

[jQuery] Re: replaceWith()

2009-08-05 Thread ProfCrazyHorse
After testing your statements, I see you are basically correct. Contents of all my h2s were replaced by the content of the first one (no concatenation). The iteration (using each) and using html() instead of text() seems to have worked. Next, I will try the wrapInner technique... Thank you!

[jQuery] AJAX global events

2009-08-05 Thread Julijan Andjelic
$(#loading).ajaxStart(function() { $(this).show(); }). ajaxComplete(function() { $(this).hide(); }) This is my code, it should make the loading image visible when ajax is active but this doesn't seem to work, any ideas what am I doing wrong? I've also tried with bind but also didn't work.

[jQuery] Re: Global AJAX events, not working?

2009-08-05 Thread Julijan Andjelic
Yes, I've checked it. It shows up nicely once I remove the display:none attribute. On Aug 5, 9:15 pm, Cesar Sanz the.email.tr...@gmail.com wrote: Check the height/width of the #loading element maybe it is collapsed,so, you cannot view it - Original Message - From: Julijan Andjelic

  1   2   >