[jQuery] Create array from li text

2009-04-06 Thread Nic Hubbard
What would be the correct method to create an array from the text inside li items? Is below, the best method, or would it even work? var array_test = $(#test li).text().makeArray();

[jQuery] Multiple Plugins on the same page

2009-04-06 Thread Spot
I have searched this extensively, so if it has been covered, please forgive me. Let's see if I can describe this without confusing anyone. We have a recurring need to give users quick lookup access to several tables of information. Therefore we use a custom build autocompleter/selector

[jQuery] Re: jCarousel as Marqee Test

2009-04-06 Thread Jonathan Vanherpe (T T NV)
spiceflo wrote: Hello together, I wanna use jCarousel as you can see it here http://www.dslproviderwechsel.de in the header (the scrolling company logos). Do you know the parameters for jCarousel to display the plugin as in the example. Currently I have the following problems: - the

[jQuery] Re: Multiple Plugins on the same page

2009-04-06 Thread Spot
Just to expand on this quickly... It acts like $.extend() is referencing DataSelector, as opposed to copying it like the docs say it does. *shrug* Spot wrote: I have searched this extensively, so if it has been covered, please forgive me. Let's see if I can describe this without

[jQuery] Re: Another newbie how do I

2009-04-06 Thread Spot
Jerry, It sounds like you want a very very simple solution to this, so I am going to give it to you. This is _not_ considering clean. :) You could give each of your line items a unique id like id=line-1 id=line-2 etc. Give your text container an id... like id=text-container Then you

[jQuery] Array function

2009-04-06 Thread Alex Wibowo
Gday, Is there a short way to do: $(#idOne).show(); $(#idTwo).show(); ? So far, my best bet is to do: $.each([#idOne,#idTwo],function(){ $(+this).show(); }); Thanks in advance! -- Best regards, WiB

[jQuery] Re: Array function

2009-04-06 Thread Ferenc Radius
$(#idOne,#idTwo).show(); On Mon, Apr 6, 2009 at 10:45 AM, Alex Wibowo alexwib...@gmail.com wrote: $(#idOne).show(); $(#idTwo).show();

[jQuery] [autocomplete] item selection event in this official branch/version?

2009-04-06 Thread dan
'm trying to use the ac plugin (great widget!) but need some advice. My remote data set is a json list and gets formatted approrpiately but I also need to use the selected item event but this doesnt seem available in this (but is in some other branches?). Does anyone have a way of getting use of

[jQuery] jscrollpane: how to modify outside content depending on scroll position?

2009-04-06 Thread Volker
Hi! Using jScrollPane, I'd like to show a grahpical marker NOT included in the scrolling div. Use Case: 1. Page shows with [div class=scroll] jScrollPane - all works fine, content is displayed at the top 2. Outside the .scroll div, I have two pictures (pUp and pDown: arrows) displayed to indicate

[jQuery] Re: Select images instead of text

2009-04-06 Thread benoit v.
If anyone is interested, I found a solution to my problem here. http://ask.metafilter.com/16153/Images-in-HTML-select-form-elements Now I'm able to visually select images inside a form, that provides my PHP script the filename of the selected element. It's actually a play around with checkbox,

[jQuery] Re: Array function

2009-04-06 Thread Jonathan Vanherpe (T T NV)
Alex Wibowo wrote: Gday, Is there a short way to do: $(#idOne).show(); $(#idTwo).show(); ? So far, my best bet is to do: $.each([#idOne,#idTwo],function(){ $(+this).show(); }); Thanks in advance! $('#idOne, #idTwo').show(); just like css

[jQuery] [validation] how to validate two dependent input boxes.

2009-04-06 Thread Skovgaard
For example if you have a price range minimum and maximum. It must be checked that min. is less than max and the other way round. Is this possible?

[jQuery] jQuery plugins and Scriptaculous

2009-04-06 Thread Raphael
Hello, Yes, this is another jQuery and Prototype incompatibility problem. I am trying to use a jQuery plugin, Date Picker (http://www.eyecon.ro/ datepicker/), on a page that also has to use Scriptaculous. I *have* to use Prototype: it's a Rails (v1.1.6) application we use at work and I can't

[jQuery] Modify selection in dynamically generated menu

2009-04-06 Thread cdaveb
In my first jQuery project, I'm trying to setup a form that has certain pieces dynamically generated based on menu selections. I have a button that loads json via Ajax and adjusts select values of the items in my form. Each of the selects in the form also has a related menu dynamically loaded via

[jQuery] Bug in jcarousel

2009-04-06 Thread wapgui
There is a bug in the jcarousel if you using xhtml instead html. See: http://groups.google.com/group/liftweb/browse_thread/thread/973aabff8a95fa77/b143b4975ddb8124?hl=en#b143b4975ddb8124 Thanks to Marius again. The carousel works if you edit the js and replaced the UL with ul. A change in the

[jQuery] slideToggle multiple

2009-04-06 Thread mike
Hi, i'm very new here so sorry if this doesnt make sense. I have created the following code which works ok but its only for 1 elements (more1/less1) but i want it to work for x number of boxes, e.g. more2/ less2, more3/less2 without having to code some jquery for each. here is the code: script

[jQuery] ClueTip Width Question

2009-04-06 Thread pnda...@googlemail.com
Hi, I have clueTip working really nicely (for the most part) but just have two issues, well, one issue and one question. First of all thanks for all the work on this plugin its great. First question is about the width. Is there any way to have it resize based on the content? I'm just using it

[jQuery] Jquery Autocomplete

2009-04-06 Thread Azzu
I group I am a new bee to jQuery. I have two textbox on my jsp page. I have applied the Autocomplete feature on first textbox where in list is generated by parsing a XML. On selection of an option on first textbox I want to list all the parameters associated with the selected parameter (on first

[jQuery] listnav

2009-04-06 Thread Paul
does this thing only work when placed inside a form? what if my server does not handle asp? I simply cannot get it to work. Even the listnav bar does not display. I am trying to implement demo one. here is my page code: NB i have omitted header and footers from this snippet. script

[jQuery] fade and other effects don't work...

2009-04-06 Thread gostbuster
Hi everyone, I'm having a quite strange problem with JQUERY : It seems that effects dont work. Effects like animate, slide, fade etc I tried several things but there is not result. Here is my test code : script type=text/javascript $(function (){ $(#effet).click(function (){

[jQuery] [validation] how to validate two dependent input boxes.

2009-04-06 Thread Skovgaard
Sorry if this is a double post. I can't see my previous post in the discussion. For example if you have a price range minimum and maximum. It must be checked that min. is less than max and the other way round. Is this possible?

[jQuery] Re: jquery validate error

2009-04-06 Thread sergio.marchesini
Hi, I have the same problem, BUT I have keyup-validation off. What seems to trigger the eroor seems to be the onfocusout option. Any hints? TIA sergio On Feb 10, 11:43 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: onkeyup:true is the culprit. You can disable the keyup-validation via

[jQuery] JQuery and append().

2009-04-06 Thread pankajspace
Hello, I have written a code in which after clicking a button a html is appending inside a div, I have used append() method in jquery for that purpose. In the appended html code I have another button having id 'btnGo'. After clicking on this button I want some further functionality,

[jQuery] Re: JQuery and append().

2009-04-06 Thread amuhlou
From the code you posted, it looks like you're missing the # in the btnGo selector, it should be $(#btnGo).click(function(){alert ('hi');}); On Apr 6, 8:29 am, pankajspace pankajsw@gmail.com wrote: Hello,      I have written a code in which after clicking a button a html is appending

[jQuery] Re: Validation CheckBoxes group

2009-04-06 Thread Sean O
Luigi, This should work for you: var isChecked = false; $('.campi[name=license]').each(function(){ if ( $(this).attr('checked') ) isChecked = true; }); SEAN O http://www.sean-o.com Ciupaz wrote: Hi all, in my .aspx page I have a series of checkboxes for the driver license:

[jQuery] How does the form plugin (or jquery?) determine if a server response is an error or success?

2009-04-06 Thread boermans
In my particular scenario, the form plugin http://www.malsup.com/ jquery/ is triggering the specified success function, despite the server returning a 409 conflict error (as seen in Firebug). The error itself is okay - that’s what I am expecting given the content of the form. I’m trying to

[jQuery] Re: fade and other effects don't work...

2009-04-06 Thread boermans
On Apr 6, 6:18 pm, gostbuster jeremyescol...@gmail.com wrote: Here is my test code : script type=text/javascript $(function (){ $(#effet).click(function (){         $(this).fadeOut(slow);         $(this).fadeIn(fast); });}); /script div id=effetbonjour/div When I click, the div

[jQuery] Re: slideToggle multiple

2009-04-06 Thread boermans
On Apr 6, 9:03 pm, mike michaelpi...@googlemail.com wrote: created the following code which works ok but its only for 1 elements (more1/less1) but i want it to work for x number of boxes, e.g. more2/ less2, more3/less2 without having to code some jquery for each. here is the code:        

[jQuery] Re: remove all center tags hidden

2009-04-06 Thread tij_dev
No one for any help :( On 1 avr, 14:04, tij_dev tijmas...@googlemail.com wrote: Hello everybody, I'm trying to remove all the center tags which have a visibility hidden. I tried : $(cent...@style*=hidden],pDocument).remove(); (pDocument is the node I'm working on) but this doesn't

[jQuery] Jquery loop problem

2009-04-06 Thread Sai Krishna
Hello, I'm very new to jquery. Can somebody help me with some information. I'm printing an a series of forms with php in the form of grid data. Each row would contain a form. Now if anybody clicks on any of the submit form of any row, I need a popup that would come with that form data. Each

[jQuery] Re: Jquery loop problem

2009-04-06 Thread Chandan Luthra
Hi, I had also faced problem similar to this and luckily was able to find out a solution for this. But I can only solve your problem if provide the HTML text of the page. With Regards, Chandan Luthra Intelligrape Software Pvt. Ltd. Rita Rudner - In Hollywood a marriage is a success if it

[jQuery] Re: remove all center tags hidden

2009-04-06 Thread Chandan Luthra
$('cent...@style*=display: none]').remove() With Regards, Chandan Luthra Intelligrape Software Pvt. Ltd. Fred Allen - Washington is no place for a good actor. The competition from bad actors is too great. On Mon, Apr 6, 2009 at 18:59, tij_dev tijmas...@googlemail.com wrote: No one for any

[jQuery] Re: Jquery loop problem

2009-04-06 Thread Sai Krishna
Hi , Im providing you with that part of html code output HTML start div id = sec3 div class=sec3h1 span style=margin-left:10px; Event/span span style= margin-left:170px; line-height:40px; Exp Date/span span style=margin-left:35px;

[jQuery] Re: fade and other effects don't work...

2009-04-06 Thread gostbuster
Hey ! THANK YOU VERY MUCH, I fixed the problem : Actually, I'm using Zend frame work and there is a method which displays this line in the header : meta http-equiv=Content-type content=text/html; charset=utf-8 / meta http-equiv=Content-Style-type content=text/html / ---this line That's

[jQuery] Re: JQuery and append().

2009-04-06 Thread Chandan Luthra
Hi, Create a function in the script tag and put the task that you want to perform on the click of btnGo example: *script function demoFunction(){ alert(hi) } /script* now just write the following code on some click : *$('div').click(function(){ $('#someId').append(input

[jQuery] dont waste ur time with this it dont work

2009-04-06 Thread Paul
ive spent all day trying to get this to work. are u sure it has been tested using v 1.2.6

[jQuery] Re: dont waste ur time with this it dont work

2009-04-06 Thread brian
Wow, thanks for the tip! I'm sure all of the other tens of thousands of people using jQuery will be relieved to know that there's *just no point* in going on with it any longer. You've potentially saved each of us from years of heartache and despair. Thanks again! On Mon, Apr 6, 2009 at 11:11

[jQuery] Re: Hide li elements if total ul height container height

2009-04-06 Thread Sero
bump... pretty please? How do I remove more than the last child if necessary? On Apr 3, 11:34 am, Sero r...@combinecreative.com wrote: Hi guys, What I'm trying to do is hide list elements if their combined height is greater than my container div.  I've got a start, but it's not perfect.

[jQuery] Re: Hide li elements if total ul height container height

2009-04-06 Thread brian
What about setting a fixed height to the UL in your CSS along with overflow: hidden? On Mon, Apr 6, 2009 at 11:34 AM, Sero r...@combinecreative.com wrote: bump... pretty please?   How do I remove more than the last child if necessary? On Apr 3, 11:34 am, Sero r...@combinecreative.com wrote:

[jQuery] Re: dont waste ur time with this it dont work

2009-04-06 Thread ryan.j
i strongly disagree! my life now feels empty and meaningless - like somebody plucked my still-beating heart out of my chest and crushed it infront of me. the years ahead can only be filled with heartache and despair :( On Apr 6, 4:19 pm, brian bally.z...@gmail.com wrote: Wow, thanks for the

[jQuery] Re: Hide li elements if total ul height container height

2009-04-06 Thread Sero
Thanks, but sometimes I'll get an li with the text cut off through the middle. Only the top half of the letters display - looks rough. On Apr 6, 9:44 am, brian bally.z...@gmail.com wrote: What about setting a fixed height to the UL in your CSS along with overflow: hidden?

[jQuery] Re: submit() question

2009-04-06 Thread Sean McKenna
I'm not sure I understand what you are trying to do, but if the requirement is to pass the values to the server, you can include them in the data parameter of the ajax routine. data: $(this).serialize() + add_item=1, On Apr 5, 3:10 pm, debussy007 debussy...@gmail.com wrote: What do

[jQuery] Re: dont waste ur time with this it dont work

2009-04-06 Thread Michael Lawson
I seem to be having the same problem with jQuery Every time I do this alert($('#test').text()); and test contains the answer from 1 / 0 the whole fabric of the universe seems to come apart. cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-828-355-5544

[jQuery] Re: submit() question

2009-04-06 Thread ryan.j
wouldn't the callback happen after the submit() function had executed, so you'd be putting the new values in after the submit? On Apr 5, 11:10 pm, debussy007 debussy...@gmail.com wrote: What do you mean by wrap 'submit()' that is built in 'form object' ? Sorry I didn't understand )

[jQuery] Re: dont waste ur time with this it dont work

2009-04-06 Thread Al Yukna
JQuery's latest version is scheduled to come with an Easy button I hear. That will rock. On Mon, Apr 6, 2009 at 11:51 AM, Michael Lawson mjlaw...@us.ibm.com wrote: I seem to be having the same problem with jQuery Every time I do this alert($('#test').text()); and test contains the answer

[jQuery] Re: Hide li elements if total ul height container height

2009-04-06 Thread brian
On Mon, Apr 6, 2009 at 11:50 AM, Sero r...@combinecreative.com wrote: Thanks, but sometimes I'll get an li with the text cut off through the middle.  Only the top half of the letters display - looks rough. Good point. What about using a while loop, then? $(function() {

[jQuery] Re: can someone take a look please...

2009-04-06 Thread webguy262
The code currently on the site ask users to copy and paste the partnumber. I had to do that b/c even with 'id=partnum' the PartNumber field in the GetAQuote form does not populate in IE. Here's a version of the page with input type=text name=partnum id=partnum value= /

[jQuery] Re: can someone take a look please...

2009-04-06 Thread MorningZ
What does this have to do with jQuery? (since there is no usage of it in that link above) On Apr 6, 12:26 pm, webguy262 webguy...@yahoo.com wrote: The code currently on the site ask users to copy and paste the partnumber.  I had to do that b/c even with 'id=partnum' the PartNumber field in

[jQuery] Re: dont waste ur time with this it dont work

2009-04-06 Thread Eric Garside
Mike, the problem there isn't with jQuery, it's with Math. For some reason, the original developers felt x/0 throws a rather nasty exception. Have you tried porting your code to a parallel universe and running it there to see if it's still tearing spacetime? On Apr 6, 11:51 am, Michael Lawson

[jQuery] Re: dont waste ur time with this it dont work

2009-04-06 Thread Eric Garside
Al, yes I hear that too. Looking at the nightlies, you can implement the easy button feature in jQuery1.3.2- with the following: $('button.easy').click(function(){ $('body').empty().text('That was easy'); }); On Apr 6, 11:54 am, Al Yukna ayu...@gmail.com wrote: JQuery's latest version is

[jQuery] New jQuery plugin LoopedSlider. Looking for feedback

2009-04-06 Thread Nathan
Yeah I know, another content slider, there are way too many. But I've wanted something that looped from first to last or last to first slide using next/previous buttons and that fades if you click on a slide number. So that's why I've created this plugin. Would love some code feedback if anyone

[jQuery] Re: listnav

2009-04-06 Thread Jack Killpatrick
A form is not necessary: it renders straight html with css styling. It's a purely client-side thing: as long as you follow the implementation model for your HTML, it should work. I can take a look at the page if you can post a url for it. It looks like your setup below is correct. - Jack

[jQuery] Re: dont waste ur time with this it dont work

2009-04-06 Thread Michael Lawson
Of course! a parallel universe! why didn't I thin of that? cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-828-355-5544 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer would test gold. If you find they make sense, conform to

[jQuery] Re: Hide li elements if total ul height container height

2009-04-06 Thread Sero
Beautiful, thank you so much Brian! On Apr 6, 10:17 am, brian bally.z...@gmail.com wrote: On Mon, Apr 6, 2009 at 11:50 AM, Sero r...@combinecreative.com wrote: Thanks, but sometimes I'll get an li with the text cut off through the middle.  Only the top half of the letters display - looks

[jQuery] Trying to understand how to use global variables...

2009-04-06 Thread Rick Faircloth
I've read up on the subject, but my application is showing that my understanding has gaps. If I have an ajax function that in the returned response exists a value called response.STORY_ID and I used the statement in the success section of the ajax function, gNewStoryID = response.STORY_ID,

[jQuery] Re: Create array from li text

2009-04-06 Thread Nic Hubbard
A better explanation: I have a var that contains some html. Within that there are li elements that I need to strip the text out of and put that into an array. How would I do this? I figure I could use each() and push(), but I am not sure how to do this grabbing it from a var. On Apr 5, 11:30 

[jQuery] Re: Simple way to check for duplicate menu values in jquery?

2009-04-06 Thread laredotornado
If one select menu item's value matches another, I want to throw an alert telling the user Only one menu can have this value. and I don't want the form to be submitted. - Dave On Apr 5, 6:13 pm, MorningZ morni...@gmail.com wrote: What do you want to do if you find a duper? - remove the

[jQuery] Re: Trying to understand how to use global variables...

2009-04-06 Thread Michael Lawson
Hi Rick, A global variable is available throughout a single instance of the script. For example, If I have a global variable called foo, I can access it in any function within the same script. However, If my application changes pages, I will lose the values in those globals, or even the

[jQuery] Re: Create array from li text

2009-04-06 Thread Jack Killpatrick
maybe something like this: var ar = []; $('#yourList li').each(function(){ ar.push( $(this).text() ); }); - Jack Nic Hubbard wrote: A better explanation: I have a var that contains some html. Within that there are li elements that I need to strip the text out of and put that into an

[jQuery] Re: Trying to understand how to use global variables...

2009-04-06 Thread Michael Lawson
You're very welcome Rick, Can you provide some code or links to some examples of what you're seeing? As mentioned in another post, that would greatly help in diagnosing your problem. cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-828-355-5544 E-mail:

[jQuery] Re: Create array from li text

2009-04-06 Thread Nic Hubbard
Yeah, I had thought of the hidden div idea, and placing the html into that, then using .each(). I just wondered if there was a method to do it without adding the content to the DOM. On Apr 6, 10:35 am, Jack Killpatrick j...@ihwy.com wrote: d'oh, I just realized you have the html in a var...

[jQuery] jScrollPane issues

2009-04-06 Thread jon randahl
Evening All! I'm having a bit of issue with the jScrollPane plugin by Kelvin Luck. A couple of issues actually! First, in non-IE browsers the scroll will not apply to the container specified, even though that container IS wrapped by the .jScrollContainer div by the script. Second, the width of

[jQuery] Re: Trying to understand how to use global variables...

2009-04-06 Thread Rick Faircloth
This is part of a content management system for a client, so it's not publicly accessible.if it appears I can't solve the problem otherwise, I'll set up a test case based on the code that is publicly accessible. However, here's the relevant code from the app that shows what I'm doing: (and

[jQuery] Re: Trying to understand how to use global variables...

2009-04-06 Thread Michael Geary
It would be easier if you had a link to a test page or at least some code to look at. Otherwise we can only guess what might be wrong. Here is one possibility. Note what you said here: ...by using gNewStoryID = response.STORY_ID, I was creating a global variable that could then be used in

[jQuery] Re: JQuery and append().

2009-04-06 Thread cdaveb
In my early jQuery experiences, I found that dynamically generated HTML could not be accessed directly by events. I had to use the livequery plugin to get them to work. I'm still pretty much a jQuery newbie though, so maybe there is another way.

[jQuery] Re: Trying to understand how to use global variables...

2009-04-06 Thread Rick Faircloth
Hi, Michael and thanks for the reply… That helps some, but something I realized after I posted confuses me even more. I noticed the global variable I set, gNewStoryID, did show up when I tried to used it in another function on the same page, *even while throwing the error at the same

[jQuery] Re: Create array from li text

2009-04-06 Thread Jack Killpatrick
d'oh, I just realized you have the html in a var... I s'pose a cheat would be to add them to a hidden UL and then do something like the below so you could take advantage of the .text() and .each() method. Other than that, I'm not sure of the regex offhand to split the LI's and parse out the

[jQuery] Re: Trying to understand how to use global variables...

2009-04-06 Thread Michael Geary
I probably shouldn't have suggested using alert() since it actually can affect the order of execution in an odd way. (The code immediately below the alert call won't execute until you close the alert, but other code in the page could execute during that time in some cases.) So stick with

[jQuery] Re: Use jquery before the DOM is ready?

2009-04-06 Thread Karl Swedberg
On Apr 5, 2009, at 11:30 PM, Hector Virgen wrote: Just curious, why would you want to avoid document.write()? Here's one reason: http://ln.hixie.ch/?start=1091626816count=1 --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Trying to understand how to use global variables...

2009-04-06 Thread Michael Lawson
The function should occur sequentially, but that execution of your success function might not. AJAX is by default asynchronous so it will not affect the rest of the page loading. That also means that if you try to access a variable that is only set by that success function before AJAX returns,

[jQuery] Re: Use jquery before the DOM is ready?

2009-04-06 Thread Hector Virgen
@Karl: Thanks, that sounds like a good reason to me :) I wasn't aware of XHTML not allowing document.write() @Ricardo: The $('head').append() approach looks great. -Hector On Mon, Apr 6, 2009 at 11:31 AM, Karl Swedberg k...@englishrules.comwrote: On Apr 5, 2009, at 11:30 PM, Hector Virgen

[jQuery] Re: Unexpected behavior of Cycle plugin in some browsers

2009-04-06 Thread molips
thank you, that really helped!

[jQuery] Re: can someone take a look please...

2009-04-06 Thread webguy262
Thanks for looking. As I wrote in my original post, I am seeking advice on using jQuery to get the IE functionality... MorningZ wrote: What does this have to do with jQuery? (since there is no usage of it in that link above) On Apr 6, 12:26 pm, webguy262 webguy...@yahoo.com

[jQuery] ajax - no callback on timeout

2009-04-06 Thread bob
Hi, Does anybody know how to trigger timeout function. If database does not respond in 5 seconds I need to display some notification to user. The following example did not trigger any callback after 5 seconds. jQuery.ajax({ type: POST, url: 'proccess.php',

[jQuery] Sending js variables to a jQuery constructor

2009-04-06 Thread expresso
Is this possible? var tabSelectHandler = handleTabSelect_Pers; $('#tabs').tabs({ selected: '0', fx: { opacity: 'toggle' }, select: tabSelectHandler }); where I'm passing tabSelectHandler variable into the tabs constructor?

[jQuery] Re: Trying to understand how to use global variables...

2009-04-06 Thread Rick Faircloth
Michael G. Michael L. … This is interesting… With this code executing: (This code will seem a little strange since it’s involves more functions than is absolutely necessary, but it’s part of my attempt to “encapsulate” some of my code to make it more manageable…some of the sequences

[jQuery] Re: Another newbie how do I

2009-04-06 Thread brian
You could lay out the list like so: ul id=your_list liSight-hounds and other fast dogs div Two or three paragraphs describing greyhounds, whippets, Italian greyhounds, their relative size, average top speed, and so on. /div

[jQuery] Re: jQuery.support -- No direct support for IE6 detection

2009-04-06 Thread Spot
Yes, key handling support would be a god send! akzhan wrote: Also I suppose that jQuery.support can add key handling browser mode. WebKit, Mozilla and IE works different on key events. On Apr 5, 8:45 am, Ricardo ricardob...@gmail.com wrote: jQuery.support is for feature detection. The

[jQuery] Re: How does the form plugin (or jquery?) determine if a server response is an error or success?

2009-04-06 Thread Mike Alsup
Where Firebug has recognised the server response text as json - but the form plugin (or jquery) is still reporting success. Obviously there is more to this than I understand. All clues and guesses are very welcome as this is new territory for me. As a browser plugin Firebug has access to

[jQuery] Re: Trying to understand how to use global variables...

2009-04-06 Thread Michael Geary
I would expect the order a, c, d, b. That's exactly what your code says to do. You log the a, then you call defCreateStorySuccessResponse() which logs the c and d, then that function returns to the code which logs the b. Did you want some other order of execution for these statements? Also, what

[jQuery] Re: Sending js variables to a jQuery constructor

2009-04-06 Thread Michael Geary
I'm not sure I follow you. Is handleTabSelect_Pers the name of a function, and you've stored that function name in the tabSelectHandler variable, and so you want the select callback to call your handleTabSelect_Pers() function? If that's correct, and handleTabSelect_Pers() is a global function,

[jQuery] Re: Use jquery before the DOM is ready?

2009-04-06 Thread Michael Geary
document.write() works fine in XHTML documents unless you serve the document with an XHTML MIME type, which is rarely done in practice. If you are doing that you must avoid document.write(). I'm a big fan of document.write(). It lets you accomplish some things very cleanly that you can't do at

[jQuery] Re: Use jquery before the DOM is ready?

2009-04-06 Thread Michael Geary
document.write() can only be used while the document is open (i.e. while the page is loading), not in response to any event such as the load event. If you call document.write() in an event handler, the document has already been closed. So document.write() opens a *new* document to write into,

[jQuery] Re: listnav

2009-04-06 Thread Ricardo
Try putting your code at jsbin.com or somewhere we it's actually useful. I don't see the variable 'self' defined anywhere, what kind of errors are you getting? cheers, - ricardo On Apr 6, 7:39 am, Paul pnmorri...@gmail.com wrote: does this thing only work when placed inside a form? what if

[jQuery] Re: dont waste ur time with this it dont work

2009-04-06 Thread Ricardo
I think he was talking about the listnav plugin, see this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/6e2e116297c580bb/6d837f3c3e535d13?hl=en#6d837f3c3e535d13 On Apr 6, 12:47 pm, Eric Garside gars...@gmail.com wrote: Do you have a test page you can show? jQuery does,

[jQuery] Re: Trying to understand how to use global variables...

2009-04-06 Thread Ricardo
As you said you wanted to simplify your code, I'd recommend not using global vars. You might want to use the same var somewhere else in the code and create a mess. Why not just pass it to the function that will use it? if (response.MESSAGE == 'Success' ){

[jQuery] Re: Create array from li text

2009-04-06 Thread Ricardo
jQuery can parse it and create the elements without adding them to the DOM, then you can use Jack's suggestion: var arr = []; $(yourHTMLstring).find('li').each(function(){ arr.push( $(this).text() ); }); - ricardo On Apr 6, 2:48 pm, Nic Hubbard nnhubb...@gmail.com wrote: Yeah, I had

[jQuery] Plugin Development

2009-04-06 Thread Spot
How would one develop a plugin which can exist multiple times on the same page, without conflicting with each others namespaces?

[jQuery] Re: submit() question

2009-04-06 Thread debussy007
I need something like that, but it is not ajax. In the submit callback I need to add additional post parameters. Concretely, a user may specify a country and a town in my form. in the submit callback, I will make a request to Goole Maps API to have the longitude and lattitude. If google cannot

[jQuery] Re: jQuery.support -- No direct support for IE6 detection

2009-04-06 Thread Joe McCann
Ricardo, I see your point now. I was under the impression $.browser was becoming deprecated so $.support would take it's place. But given the fact that I currently need to run one method for IE6, I will continue to use the $.browser method. In regards to conditional comments, this becomes a

[jQuery] Re: Trying to understand how to use global variables...

2009-04-06 Thread Rick Faircloth
I see what you're saying. the defCreateStorySuccessResponse() function is going to run completely before the second console in the success function will output the variable.make sense. Also, what is that #1 item in your list? 1) gNewStoryTITLE is not defined

[jQuery] Re: How does the form plugin (or jquery?) determine if a server response is an error or success?

2009-04-06 Thread boermans
On Apr 7, 4:54 am, Mike Alsup mal...@gmail.com wrote: Where Firebug has recognised the server response text as json - but the form plugin (or jquery) is still reporting success. Obviously there is more to this than I understand. All clues and guesses are very welcome as this is new

[jQuery] jQuery code works in FireFox but not in IE!?!?

2009-04-06 Thread David
I've been using jQuery for years and I have NEVER had a problem like this. Here is the site in question: http://winterberry.wiremediahosting.com/ jQuery is used all over the site. The recent engagements area on the home page is an AJAX slideshow. There's some jQuery for the login form. On the

[jQuery] Trying to get Jquery Slideshow to function

2009-04-06 Thread c.gray
Hello, I am trying to implement the jqeury slideshow (http://malsup.com/ jquery/cycle/) to function on my site. it seems so simple, but for some reason the previous and next buttons are not working. Here is my URL: http://sarahmadeit.com/slideshow/demo/ This is just a test to see if I can get

[jQuery] Where to paste this extension

2009-04-06 Thread jQueryAddict
trying to figure out where I'd include this script. http://happygiraffe.net/blog/2007/09/26/jquery-logging/comment-page-1/#comment-981 if I include it in my page, how is it gonna know what the var jQuery.fn.log is? I don't see how to set this up.

[jQuery] [autocomplete] trying to get work a virtual keyboard with autocomplete

2009-04-06 Thread enriquepalaci...@gmail.com
Hi everyone, I have a question that i cannot answer, i am using the autocompleter plugin (http://plugins.jquery.com/project/autocompletex) for getting some suggestions along with JQuery Keypad for a virtual keyboard (http://keith-wood.name/keypad.html). The reason? Im developing for a LCD Touch

[jQuery] jquery and XSS

2009-04-06 Thread Ido Green
Hi, I'm using jQuery to the last 2 years and in the past few weeks... I was wondering why there is no plugin to give us the options to: 1. Control/Log all the redirects that are being made on the page (window.location.replace). 2. Any other activity that 'looks' strange. E.g. amount of calls

[jQuery] Find form input from click on child img

2009-04-06 Thread Jon Bennett
hi, I'm working on a cms and have hit a brick wall with something. I have the following html ul - li - - input.is-hero - - input.weight - ul - - li - - - img.thickbox (preview) - - - img.is-hero I'm listening to the click event of is-hero, but can't seem to get from that back up the tree to

[jQuery] BlockUI Plugin - No overlays in Linux (Fedora)

2009-04-06 Thread Matt
I was trying the BlockUI plugin - we're about to implement it with one of our products at work. The current way that we do things doesn't display right in Linux (Firefox). (Actually, it doesn't display very well at all, which is why we're moving to BlockUI anyway.) It turns out that BlockUI

[jQuery] Which is faster?? Accesing by class or id?

2009-04-06 Thread mattimus5...@gmail.com
Hey guys, I was just wondering if there is a speed difference in which way you access an element. For example: div class=conp class=para id=mineTest/p/div Is it faster to use $(#mine) -or- to access the same element using the class, such as $(div p.para) -or- does it not even matter??? Just

  1   2   >