[jQuery] dialog UI draggable

2009-01-06 Thread vorob...@gmail.com
Hello, I'm having a problem, perhaps anyone can spot what the problem is. For some reason, the following syntax does not My concern is the draggable thingy. I want the dialog box be draggable only within the browser's internal window borders. This is how I understand it should work:

[jQuery] Re: iterate over json

2009-01-06 Thread brian
You know, I didn't even realise it, having just been working on a lot of PHP with ${variables} inside strings. Yeah, that is unwieldy. On Tue, Jan 6, 2009 at 12:33 AM, Michael Geary m...@mg.to wrote: That's an unusual JSON object. Does it really have to be structured that way, or do you have

[jQuery] Re: [validate] Attaching events to dynamically added fields

2009-01-06 Thread Jörn Zaefferer
The validation plugin binds various events to the form, handling everything that bubbles up from its form elements. So you don't have to add any event binding after adding new elements, just make sure the validation rules are present. If it isn't working, its probably a different issue. Jörn On

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
Thank you!. I've been thinking that it might be because the element changes? in that case, how would I make it re-register the click event when the element has been clicked? On 5 Jan., 21:22, Ricardo Tomasi ricardob...@gmail.com wrote: doesn't make any sense, there must be something else

[jQuery] Re: XML in IE not reporting size or length correctly

2009-01-06 Thread Balazs Endresz
Check these: http://groups.google.com/group/jquery-en/browse_frm/thread/95718c9aab2c7483/af37adcb54b816c3?lnk=gstq=parsexml#af37adcb54b816c3 http://dev.jquery.com/ticket/3143 On Jan 6, 12:02 am, maytr...@gmail.com maytr...@gmail.com wrote: XML in IE not reporting size or length correctly

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
?php include('../includes/top.php'); ? ?php include(../editor/fckeditor.php); ? ?php $mode = isset($_GET['type']) ? $_GET['type'] : false; ? script $(document).ready(function(){ $(#cal ul).tabs(); $(.CalendarDelete).click(function(Element) { var

[jQuery] superfish parent nav items retain hover background settings but not text settings

2009-01-06 Thread haphun
I am trying to implement a superfish based dropdown nav, but I'm having trouble due to the color scheme I'm trying to implement Currently, I have a dark background and light text and the colors swap on hover. This is working fine with the exception of the parent elements that remain selected as

[jQuery] Page reloading when modifying DOM

2009-01-06 Thread cyber_drac
Dear All, I have noticed flash components in the web page reloads when I modified DOM using “append”. This is only happens in Firefox 2 and 3. Although in Firefox 2 entire web page, get refresh when I try to do that. Here is a sample code snippet. $(div# wrapper

[jQuery] Re: UI dialog draggable containment option change

2009-01-06 Thread JuergenRiemer
[..] I made it work by modifying the jQuery UI core, and adding containment:'window' as a default option value in _makeDraggable method of a dialog widget: [..] however this doesn't really resolve the problem, because it'll be a headache if I want to reuse this bundle and have alternative

[jQuery] values getting erased after refreshing

2009-01-06 Thread kalyan
hello sir, i am using thick box for my site. and after closing the thickbox, i am refreshing the parent page, so that the user can see his latest changes. but the problem is, i am also having some controls on the parent page, for example: i am having two text box's and one dropdownlist. the user

[jQuery] Re: dialog drag problem with iframe

2009-01-06 Thread Hamilton Lima (athanazio)
I registered myself at http://ui.jquery.com/bugs but i don't have the rights to open an ticket .. =( On Jan 5, 9:56 pm, Richard D. Worth rdwo...@gmail.com wrote: On Mon, Jan 5, 2009 at 6:49 PM, Hamilton Lima (athanazio) hamilton.l...@gmail.com wrote: Thanks Richard ! I will open a

[jQuery] Hide / show password field with focus

2009-01-06 Thread rob303
Hi, I've put together a couple of small functions to handle the removal / restore of the default text inside some text inputs. One of these inputs is a password field. I'm showing the user a standard text field containing the text 'Password'. When the user clicks in the box the standard text

[jQuery] Re: dialog drag problem with iframe

2009-01-06 Thread Richard D. Worth
I'm not sure why that would be. I see your account. Also, as a test I just created a test account for myself. Oncee I did, and once I used it to log in, I got no error message at this url http://ui.jquery.com/bugs/newticket Are you getting an error message? Also, make sure the top-nav looks like

[jQuery] Re: Anyway to highlight words accents-insensitive?

2009-01-06 Thread Hamilton Lima (athanazio)
Alex, I believe you are looking for something like the soundex implementation, that can aproximate words, I´m not sure how close this can go with extended chars like we have in portuguese. but you can give a try and let us know =) look at some references

[jQuery] feature suggestion: .attr() without params returns the whole list of attributes

2009-01-06 Thread Alexandre Plennevaux
I would like to suggest a feature to add to jquery attributes commands: I 'm using custom attributes to store UI states. At some point i would find it handy to be able to just console.log($(this).attr() ) to see all the attributes and their value. Not a groundbreaking change, but a nice

[jQuery] Re: UI dialog draggable containment option change

2009-01-06 Thread Richard D. Worth
You could override the draggable default before calling .dialog (which in turn calls .draggable). Like so $.extend($.ui.draggable.defaults, { containment: 'window' }); Also, note that in the latest trunk (after 1.6rc4) dialog has been changed to default to draggable containment: document. So

[jQuery] Re: UI dialog draggable containment option change

2009-01-06 Thread Richard D. Worth
Also, note: there is a dedicated mailing list for discussion of jQuery UI plugins[*]: http://groups.google.com/group/jquery-ui - Richard [*] http://rdworth.org/blog/2008/10/jquery-plugins-and-jquery-ui/ On Tue, Jan 6, 2009 at 6:58 AM, Richard D. Worth rdwo...@gmail.com wrote: You could

[jQuery] Re: dialog UI draggable

2009-01-06 Thread Richard D. Worth
On Tue, Jan 6, 2009 at 4:16 AM, vorob...@gmail.com vorob...@gmail.comwrote: Hello, I'm having a problem, perhaps anyone can spot what the problem is. For some reason, the following syntax does not My concern is the draggable thingy. I want the dialog box be draggable only within the

[jQuery] How to incorporate this in a existing joomla template?

2009-01-06 Thread Marie-Line
Hi! I have an existing joomla template but now want to use the superfish dropdown many in it. I already uploaded the module, activated it, and looked at example code. But I have no idea what code to put where to make it work... Can anyone help me with this? Thanks! Marie-Line

[jQuery] Re: iterate over json

2009-01-06 Thread bjorsq
Try something like this (if you can't re-structure the JSON Object): $.each(myJSONObject.formValues, function(i,item) { var itemtxt = 'Object details for formValues['+i+']:\n\n'; for (prop in item) { itemtxt += prop + ': ' + item[prop] + '\n'; } alert(itemtxt); }); For

[jQuery] Re: feature suggestion: .attr() without params returns the whole list of attributes

2009-01-06 Thread Balazs Endresz
Why not use $(el).data() for that? On Jan 6, 12:57 pm, Alexandre Plennevaux aplennev...@gmail.com wrote: I would like to suggest a feature to add to jquery attributes commands: I 'm using custom attributes to store UI states. At some point i would find it handy to be able to just

[jQuery] Re: Combo box problem

2009-01-06 Thread Chandan Luthra
well it means : if(x=='hi') { id='#list' }else{ id='#list1' } simple conditional operator or say ternary operator ?: With Regards, Chandan Luthra Mb:+91-9311792622 Intelligrape Software Pvt. Ltd. On Tue, Jan 6, 2009 at 12:57 PM, Vijendra vijendrami...@gmail.com wrote:

[jQuery] Re: iterate over json

2009-01-06 Thread bob
Thanks a lot.

[jQuery] a possible selector bug in 1.2.6 solved in 1.3.beta2

2009-01-06 Thread pixeline
strange, i was fighting against a bit of code where the selector engine would not want to behave as i expected. Out of ideas, i tried using the freshly released jquery 1.3 beta 2 and it turns out the engine now works as i expected! here is the incriminated code: var $thisLI = $('#' +

[jQuery] tab through the DOM on page

2009-01-06 Thread roxstyle
Is there a method or plugin that allows a user to tab through DOM elements on page? This would be used where the form elements are dynamically generated.

[jQuery] Re: dialog drag problem with iframe

2009-01-06 Thread Hamilton Lima (athanazio)
I was pressing enter at the login screen =) so it was using the search for by default and not submiting the login data hehehe. after read my, how to login for dummies I was able to login and create the ticket, http://ui2.jquery.com/bugs/ticket/3781 thanks again. Hamilton www.athanazio.com On

[jQuery] Re: Hide / show password field with focus

2009-01-06 Thread rob303
Hi, I'm still really struggling with this. Any help would be greatly appreciated! Rob. On Jan 6, 11:40 am, rob303 r...@cube33.com wrote: Hi, I've put together a couple of small functions to handle the removal / restore of the default text inside some text inputs.  One of these inputs is

[jQuery] A question regarding jquery object

2009-01-06 Thread yellow1912
Hi all, I have a question regarding jquery object: if I bind my plugin like this: $('#myButton').myplugin(); And inside my plugin, I want to bind ajaxForm listener to all forms inside 'this' current element, what is the best way to do it? I can get the id by using $this.attr('id'), but there

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread Ricardo Tomasi
There it is. How exactly does it change, are you replacing it? See the LiveQuery plugin, it rebinds event handlers to all matched elements automatically: http://brandonaaron.net/docs/livequery/ On Jan 6, 7:49 am, revivedk timsoren...@gmail.com wrote: Thank you!. I've been thinking that it

[jQuery] Re: Page reloading when modifying DOM

2009-01-06 Thread Ricardo Tomasi
could you point us to the live page where this is happening? It certainly has to do with the element's content. On Jan 6, 6:48 am, cyber_drac fernando.sami...@gmail.com wrote: Dear All, I have noticed flash components in the web page reloads when I modified DOM using “append”. This is only

[jQuery] Re: feature suggestion: .attr() without params returns the whole list of attributes

2009-01-06 Thread Ricardo Tomasi
You can't see all data saved either.. On Jan 6, 12:01 pm, Balazs Endresz balazs.endr...@gmail.com wrote: Why not use $(el).data() for that? On Jan 6, 12:57 pm, Alexandre Plennevaux aplennev...@gmail.com wrote: I would like to suggest a feature to add to jquery attributes commands: I 'm

[jQuery] Re: tab through the DOM on page

2009-01-06 Thread Ricardo Tomasi
You can tab through elements without any javascript, it's default browsers behavior. On Jan 6, 1:40 pm, roxstyle resut...@gmail.com wrote: Is there a method or plugin that allows a user to tab through DOM elements on page? This would be used where the form elements are dynamically generated.

[jQuery] Re: A question regarding jquery object

2009-01-06 Thread Ricardo Tomasi
Not sure that this is it, but $.fn.myplugin = function(options) { return this.find('form').ajaxForm(); }); ? On Jan 6, 1:59 pm, yellow1912 yellow1...@gmail.com wrote: Hi all, I have a question regarding jquery object: if I bind my plugin like this: $('#myButton').myplugin(); And

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
I'm pretty sure i'm not replacing it, im calling this: $(this).attr(src,images/up.png); does that actually replace the element? I did try $(this).src = images/up.png; however that didn't seem to work On 6 Jan., 17:04, Ricardo Tomasi ricardob...@gmail.com wrote: There it is. How exactly does it

[jQuery] Re: Proper way of binding/unbinding event in plug-ins

2009-01-06 Thread Eridius
Anyone? Eridius wrote: Is the following syntax the proper way to bind and unbind event in plugin so that you minimize the chance you will unbind and event that you did not set? $(selector).bind('event.custom_tag', function); so if you take the following:

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
I found the error. had to do data.remove(); instead of data.hide(); On 6 Jan., 17:23, revivedk timsoren...@gmail.com wrote: I'm pretty sure i'm not replacing it, im calling this:  $(this).attr(src,images/up.png); does that actually replace the element? I did try $(this).src = images/up.png;

[jQuery] Re: feature suggestion: .attr() without params returns the whole list of attributes

2009-01-06 Thread Balazs Endresz
You can, but it's undocumented and unnecessary :) But you can have your own namespace: $(el).data('myns.something', value); so $(el).data('myns'); will return all your properties. On Jan 6, 5:06 pm, Ricardo Tomasi ricardob...@gmail.com wrote: You can't see all data saved either.. On Jan 6,

[jQuery] Can I use a selector instead of this fn to check for .jpg?

2009-01-06 Thread the_woodsman
Hi all, I have a function that determines (a bit hackily!) if an image is a jpeg. isJpeg=function(src) { mySplit=src.split('.'); extension=mySplit[mySplit.length-1]; isJpg=(extension=='jpg' || extension=='jpeg' || extension=='JPG'

[jQuery] Re: feature suggestion: .attr() without params returns the whole list of attributes

2009-01-06 Thread Richard D. Worth
.data() puts the namespace after the dot ( . ), not before. So it's $(el).data('something.myns', value); Event namespacing in jQuery is this way also $(el).bind(click.foo, fn1) $(el).bind(click.bar, fn2) $(el).bind(click, fn3) $(el).unbind(.foo) - Richard On Tue, Jan 6, 2009 at 11:58 AM,

[jQuery] working with appended elements

2009-01-06 Thread Luke Adamis
first time I am working with append(). If I create an element with append(): $('#box').append('div id=hidemeHide Me/div'); then I need that element to be clickable. $('#hideme').click.function() { $(this).fadeOut(); }; but it is not responding. I assume because it wasn't there when

[jQuery] Re: feature suggestion: .attr() without params returns the whole list of attributes

2009-01-06 Thread Karl Swedberg
I just played around in Firebug and noticed that DOM elements have an attributes property (in Firefox, at least), so I tried this, using the first textarea in my document as an example: var a = $('textarea')[0].attributes, attrs = []; for (i=0; i a.length; i++) {

[jQuery] Re: feature suggestion: .attr() without params returns the whole list of attributes

2009-01-06 Thread Alexandre Plennevaux
quite nice karl, thanx ! On Tue, Jan 6, 2009 at 6:09 PM, Karl Swedberg k...@englishrules.com wrote: I just played around in Firebug and noticed that DOM elements have an attributes property (in Firefox, at least), so I tried this, using the first textarea in my document as an example:

[jQuery] Re: feature suggestion: .attr() without params returns the whole list of attributes

2009-01-06 Thread Joe
Balazs, That throws an error in the data method. Joe On Jan 6, 10:06 am, Ricardo Tomasi ricardob...@gmail.com wrote: You can't see all data saved either.. On Jan 6, 12:01 pm, Balazs Endresz balazs.endr...@gmail.com wrote: Why not use $(el).data() for that? On Jan 6, 12:57 pm,

[jQuery] Re: feature suggestion: .attr() without params returns the whole list of attributes

2009-01-06 Thread Balazs Endresz
Hi Joe! Sorry, I was wrong, as the namespace is reversed. But maybe using it this way is easier and a bit faster: $(el).data('myns', {}); var mydata=$(el).data('myns'); //save a reference mydata.prop=0; //set mydata.prop; //get Btw. if you're still working on it the translation plugin has

[jQuery] Re: Can I use a selector instead of this fn to check for .jpg?

2009-01-06 Thread David Hulbert
You can extend jQuerys selectors like this (doesn't quite work yet, sorry): $.extend($.expr[':'],{ jpg: function(a) { return $(a).filter('img').attr('href').split('.').pop().match(/ jp/i); // return $(a).is(img[href$='jpeg']); also could work } }); Will let you do this:

[jQuery] Re: A question regarding jquery object

2009-01-06 Thread yellow1912
Thanks Ricardo. Excellent, that did the trick. Can I ask you one more thing? 1. Before I put all the code into a plugin, I used to have it like this: $(#checkoutForm form).livequery(function() { $(this).ajaxForm(options); }); 2. Now with the plugin I bind it this way:

[jQuery] Re: working with appended elements

2009-01-06 Thread Luke Adamis
never mind livequiery did the trick. L. On Jan 6, 2009, at 11:08 AM, Luke Adamis wrote: first time I am working with append(). If I create an element with append(): $('#box').append('div id=hidemeHide Me/div'); then I need that element to be clickable. $('#hideme').click.function() {

[jQuery] Re: Can I use a selector instead of this fn to check for .jpg?

2009-01-06 Thread MorningZ
Wow, is that function in the first post overly complicated isJpg = function(src) { return src.test(/\.[jpg|jpeg]$/i); } would do the trick (i'll note: untested though as it's off the top of my head) On Jan 6, 1:01 pm, David Hulbert dave1...@gmail.com wrote: You can extend jQuerys

[jQuery] Re: Jquery coding direction

2009-01-06 Thread tawright915
I did not make my question clear and left out some things so here is goes again. I have two textboxes on my web form. When blank they are both required and are validated upon submit. However if one is filled in then the other is not required any more and the page should allow to validate

[jQuery] Re: [validate] Attaching events to dynamically added fields

2009-01-06 Thread Rob
Ok, the rules are inline, thank you very much for the response, I will take a second look at it to see if I can figure out what's going on. On Jan 6, 2:34 am, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: The validation plugin binds various events to the form, handling everything that

[jQuery] Re: Hide / show password field with focus

2009-01-06 Thread Daniel
When you click outside the password field, the field is still input class=login_input type=password name=pass value= / not input class=login_input type=text name=fake_pass value=?php echo TEXT_PASSWORD; ? / Therefore, default value is '' , not ?php echo TEXT_PASSWORD; ? a quick fix to your code

[jQuery] Re: Jquery coding direction

2009-01-06 Thread Daniel
What kind of validation are you using ? Are you using jquery Form plugin ? On Jan 7, 3:03 am, tawright915 tawright...@gmail.com wrote: I did not make my question clear and left out some things so here is goes again. I have two textboxes on my web form.  When blank they are both required and

[jQuery] Re: Absolute Image location

2009-01-06 Thread MarkAtHarvest
Thanks Andy, I am developing the application on Grails with Jetty server, which automatically gives me the url of http://localhost:8080/mytrial, , but I got your point, that is a very good workaround. In apache, we can do that directly. Let me throw this open on grails forum to see how Jetty

[jQuery] Re: Jquery coding direction

2009-01-06 Thread Daniel
Sry , I mean Validation plugin On Jan 7, 3:40 am, Daniel dqmin...@gmail.com wrote: What kind of validation are you using ? Are you using jquery Form plugin ? On Jan 7, 3:03 am, tawright915 tawright...@gmail.com wrote: I did not make my question clear and left out some things so here is

[jQuery] Re: Absolute Image location

2009-01-06 Thread MarkAtHarvest
Thanks Liam, I got that problem and implemented the solution as you mentioned.. The problem of what you mentioned to go to live site, we need to change it, Thats what needs to be addressed, till the time I will edit it manually edit it before getting it to production Liam Byrne wrote:

[jQuery] Re: Select first sibling

2009-01-06 Thread Anjanesh
Thanks. But this always selected the first sibling from the children. Wanted the dd corresponding to the dt faded, I was actually looking for the next sibling. $(this).parent().parent ().next() worked ! On Jan 5, 7:13 pm, MorningZ morni...@gmail.com wrote: Try

[jQuery] Re: Jquery coding direction

2009-01-06 Thread tawright915
yes On Jan 6, 1:44 pm, Daniel dqmin...@gmail.com wrote: Sry , I mean Validation plugin On Jan 7, 3:40 am, Daniel dqmin...@gmail.com wrote: What kind of validation are you using ? Are you using jquery Form plugin ? On Jan 7, 3:03 am,tawright915tawright...@gmail.com wrote: I

[jQuery] Re: Jquery coding direction

2009-01-06 Thread tawright915
jquery.validate.js On Jan 6, 1:44 pm, Daniel dqmin...@gmail.com wrote: Sry , I mean Validation plugin On Jan 7, 3:40 am, Daniel dqmin...@gmail.com wrote: What kind of validation are you using ? Are you using jquery Form plugin ? On Jan 7, 3:03 am,tawright915tawright...@gmail.com

[jQuery] Re: IE Problem

2009-01-06 Thread jhm
Fiddler is a great tool, thanks for that tip! Unfortunately, it doesn't help my problem. I figure I must be doing something fundamentally wrong, since jquery is widely thought of as browser agnostic. So, I put together a small sample file that has everything in it (and still exhibits the

[jQuery] Re: IE Problem

2009-01-06 Thread jhm
I'd suggest downloading and installing Fiddler (http://www.fiddlertool.com) That's a great tool, thanks! Unfortunately, it doesn't help my problem. I figure I must be doing something fundamentally wrong, since jquery is widely thought of as browser agnostic. So, I put together a small sample

[jQuery] base tag breaks jquery pagination

2009-01-06 Thread ripcurlksm
I have jQuery pagination working in my search results, however, I hit a snag when trying to view the next page's results, because of my base url integrating this into my page and the pagination is showing up, but the links are broken because I am using a base tag. For example: Normally the

[jQuery] Re: Can I use a selector instead of this fn to check for .jpg?

2009-01-06 Thread Ricardo Tomasi
regex is the way to go, but just out of curiosity: $('img').is('[src$=.jpg],[src$=.jpeg],[src$=.JPG],[src$=.JPEG]') On Jan 6, 3:03 pm, the_woodsman elwood.ca...@gmail.com wrote: Hi all, I have a function that determines (a bit hackily!) if an image is a jpeg.         isJpeg=function(src)

[jQuery] Re: Absolute Image location

2009-01-06 Thread Andy Matthews
My pleasure. One thing that you can do is to set an application level variable containing the full absolute path to your site. For you, locally, that var would be: /mytrial/images/ Online the path would be different: /images/ So your links might look like this: img src=? echo($imgPath +

[jQuery] Need advice on new jQuery plugin

2009-01-06 Thread BrianH
I had a need for a certain functionality on my web page and thought I would try my hand at writing my first jQuery plugin (I'm sure that's how everyone gets their first plugin started). Since this is my first plugin, I would really appreciate it if I could get some feedback and criticism (be

[jQuery] Re: My toggleClass is not working.

2009-01-06 Thread thiago silvestre
Need a help! On Tue, Jan 6, 2009 at 14:19, thiago silvestre thisilver@gmail.comwrote: Hello, I'm a beginner with jQuery. My function is not working. * jQuery:** * $(document).ready(function() { $(a).filter(#click).click(function(){ $(div .six).toggleClass(div

[jQuery] My toggleClass is not working.

2009-01-06 Thread thiago silvestre
Hello, I'm a beginner with jQuery. My function is not working. * jQuery:** * $(document).ready(function() { $(a).filter(#click).click(function(){ $(div .six).toggleClass(div .two) }).end() }); *HTML* ul li class=sixa href=# id=clickClick/a/li /ul Help-me plz.

[jQuery] parallel inclusion dojo-storage+jquery

2009-01-06 Thread aldana
hi, we are using jquery but we need functionality of dojo-storage (jquery doesn't seem to provide yet). has somebody tested whether there are bad influences including both libraries at the same time? thanks

[jQuery] Re: Superfish with bgiframe does not cover position:relative div in IE

2009-01-06 Thread camron
this worked for me http://webdemar.com/webdesign/superfish-jquery-menu-ie-z-index-bug/ On Dec 17 2008, 11:30 am, Jamie Krug jamiek...@gmail.com wrote: Hi, I'm fairly new to jQuery and not a terribly strong JavaScript guy. I was excited to style up my own Superfish (http://users.tpg.com.au/

[jQuery] Advanced Ajax Image Slider

2009-01-06 Thread amerz
Hello, I am trying to put together an ajax image slider that allows the user to specify a title for each image. I have a mockup located at http://static.spartaninternet.com/sandbox/slider-example.jpg When the user clicks the next/previous arrow, two things should happen: 1) the image should

[jQuery] My toggleClass is not working.

2009-01-06 Thread thisilver
Hello, I'm a beginner with jQuery. My function is not working. jQuery: $(document).ready(function() { $(a).filter(#click).click(function(){ $(div .six).toggleClass(div .two) }).end() }); HTML ul li class=sixa href=# id=clickClick/a/li /ul Help-me plz. Tks

[jQuery] Custom Events on Non-DOM Objects

2009-01-06 Thread Marcus Cavanaugh
I noted that firing custom events seems to work on any object, for instance: var myObject = {}; $(myObject).bind(...) $(myObject).triggerHandler(...) Simon Willison had written a tutorial that mentioned using document instead for that purpose, and I seem to recall yet another mention of using

[jQuery] example on site, have question

2009-01-06 Thread Andy
I'm trying to figure out how this works. It appears it is re- iterating the click function in this call. Why would this work? I don't see how I would know to create the method this way if I was going to recreate this. $(document).ready(function(){ $(document.body).click(function

[jQuery] inArray doesn't work in jQuery 1.2.6

2009-01-06 Thread Xeto
Hi, I need to check if a value is in a array. I tested it with json data and also with the example from visualjquery.com. inArray returns every time -1. Is it correct that inArray doesn't work? Is it a bug? Best regards

[jQuery] Complex Ajax Image Slider

2009-01-06 Thread amuhlou
Hello, I tried posting this once before but the post doesn't seem to be appearing after many many minutes. I am trying to put together an ajax image slider that allows the user to specify a title for each image. I have a mockup located at

[jQuery] My toggleClass is not working.

2009-01-06 Thread thisilver
Hello, I'm a beginner with jQuery. My function is not working. jQuery: $(document).ready(function() { $(a).filter(#click).click(function(){ $(div .six).toggleClass(div .two) }).end() }); HTML ul li class=sixa href=# id=clickClick/a/li /ul Help-me plz. Tks

[jQuery] Re: Attaching events to dynamically added fields

2009-01-06 Thread canadaduane
Use the livequery plugin. It's absolutely beautiful. On Jan 5, 3:26 pm, Rob robstefanus...@gmail.com wrote: Thanks Brian, At the moment I'm using basically the simplest implementation of the plugin.  I'm using inline rules, so I don't have to worry about the brackets yet.  I do understand

[jQuery] Complex Ajax Image Slider

2009-01-06 Thread amuhlou
Hi There, I am looking for a slider script which cycles through images while at the same time cycling through a list of tags associated with those images. I've posted a mocked up example at: http://static.spartaninternet.com/sandbox/slider-example.jpg When the user clicks the next button, the

[jQuery] Fade in and fade out plug in?

2009-01-06 Thread Bromide
Hello, Does any plug-in like this exist?: I have several div's on a page. There is a menu on the page that corresponds with each div. Initially, there should only be one div showing. When the user clicks a menu item, the corresponding div fades in. When the user clicks another menu item, the

[jQuery] Multiple Carousels sliding at once

2009-01-06 Thread BiancaSoCh
Hi everybody, I am new to this forum and english is not my native language; so I'm sorry for any possible mistake... I have a question about jQuery carousels. I would like to have a few ones (maybe 3 or 4) on my page, with a general controller outside of them. If I click the controller, all of

[jQuery] Re: inArray doesn't work in jQuery 1.2.6

2009-01-06 Thread MorningZ
Hard to tell why it doesn't work when you don't provide an example and the example provided on visualjquery.com (Utilities/Array and Object Operations/$.inArray) works just fine (FF3) . On Jan 6, 11:07 am, Xeto zwergenh...@gmail.com wrote: Hi, I need to check if a value is in a array. I

[jQuery] Re: parallel inclusion dojo-storage+jquery

2009-01-06 Thread pete higgins
There are none. Dojo only takes a few globals for the namespace, and doesn't use $ for anything. There is no bad influence, other than the duplication in functionality between base dojo.js and jquery.js On Tue, Jan 6, 2009 at 10:27 AM, aldana ald...@gmx.de wrote: hi, we are using jquery but

[jQuery] Re: Fade in and fade out plug in?

2009-01-06 Thread Chris Missal
Can you just use the Fading Effects, http://docs.jquery.com/Effects ? I'm not sure you need a plug-in to do what you want. On Jan 6, 10:15 am, Bromide dcl...@clughportfolio.com wrote: Hello, Does any plug-in like this exist?: I have several div's on a page. There is a menu on the page

[jQuery] Re: My toggleClass is not working.

2009-01-06 Thread amuhlou
In your script it appears that you are trying to toggle the class of a div, but in the HTML you have no divs. On Jan 6, 11:19 am, thiago silvestre thisilver@gmail.com wrote: Hello, I'm a beginner with jQuery. My function is not working. * jQuery:** * $(document).ready(function() {  

[jQuery] Re: example on site, have question

2009-01-06 Thread Alexandre Plennevaux
Basically, what this snippet does, is 1/ adding a DIV element at the end of the BODY element; 2/ counting the new amount of DIV 3/ printing the string there are XX dvis in every SPAN element available in the DOM 4/ triggering the onclick() event so the script runs once on page ready. So the

[jQuery] Re: Hide / show password field with focus

2009-01-06 Thread rob303
Thank you Daniel. That's perfect. This was hole in my understanding: $('.header_login_right_fake .login_input')[0].value = $ ('.header_login_right_fake .login_input')[0].defaultValue; How to access the attributes of the inputs! My function now looks like this: // restore default text in

[jQuery] Re: example on site, have question

2009-01-06 Thread Andy
What I am confussed on is there are two Click functions inside the ready call. I'm trying to understand why there are two? Seems like it would execute two onclick commands when this is fired. On Jan 6, 3:30 pm, Alexandre Plennevaux aplennev...@gmail.com wrote: Basically, what this snippet

[jQuery] Re: example on site, have question

2009-01-06 Thread Ricardo Tomasi
The first click() is being passed a function as an argument, so it's attaching that function to an event listener. The second one has no argument, so it is firing the event handlers. Try this: $(document).ready(function(){ $('body').click(function(){ // alert('Clicked?');

[jQuery] Re: Fade in and fade out plug in?

2009-01-06 Thread Ricardo Tomasi
It's as simple as this: ul class=menu lia href=#fishItem/a/li lia href=#bearItem/a/li /ul div id=contents div id=fishcontents 1/div div id=bearcontents 2/div /div $('.menu li a').click(function(){ var which = $(this).attr('href').substring(1); //remove the '#'

[jQuery] how difficult is it to prevent draggable() artifacts?

2009-01-06 Thread James
I've noticed that complex layouts inside of the draggable() target or embedded flash objects leads to temporary graphical artifacts when dragging the target element. This is the case in FF3 at least, so I imagine it's not much better in other browsers. How have others dealt with this problem?

[jQuery] Draggable function for new created div..

2009-01-06 Thread merihsaka...@yahoo.com
Hi all , I have a poroblem with new created div.. draggable function is not working. normally draggable div is working successfull like this code. html head script src=js/dragYeni/jquery.js/script script type=text/javascript src=js/iutil.js/script script type=text/javascript

[jQuery] storing objects in jQuery data

2009-01-06 Thread gibble
I am storing js objects using jQuery.data eg. var newDeployment = { server: server, application: application, references: references }; $('select#something option:first').data('value', newDeployment); The problem is that I then

[jQuery] Superfish problem in Firefox (cutting off menu) but not iExplorer?

2009-01-06 Thread Bilal Zaidi
[img]http://img.photobucket.com/albums/v154/lalib786/screenshot.jpg[/ img] Hi Guys. Im creating a site in Joomla version 1.5.8 and am quite new to it. I am quite new to this all so sorry in advance if I ask anything stupid. So the problem I am having is with the top navigation menu called

[jQuery] Superfish problem in Firefox (cutting off menu) but not iExplorer?

2009-01-06 Thread Bilal Zaidi
Screenshot of problem: http://img.photobucket.com/albums/v154/lalib786/screenshot.jpg Hi Guys. Im creating a site in Joomla version 1.5.8 and am quite new to it. I am quite new to this all so sorry in advance if I ask anything stupid. So the problem I am having is with the top navigation menu

[jQuery] Re: storing objects in jQuery data

2009-01-06 Thread Dave Methvin
Is there a way to get just a copy of the data, not the reference to the data itself? You could use something like this: var aCopy = jQuery.extend({}, $('#something option:first').data ('value')); Since extend returns its first argument, you'd get the a new object with all the data values

[jQuery] Re: Custom Events on Non-DOM Objects

2009-01-06 Thread Ariel Flesler
Using non-dom elements should work just fine. You'd rather not use the document as that could lead to unexpected memory leaks. -- Ariel Flesler http://flesler.blogspot.com On Jan 6, 1:56 pm, Marcus Cavanaugh marcuscavana...@gmail.com wrote: I noted that firing custom events seems to work on

[jQuery] having a child div inherit a parent width

2009-01-06 Thread roxstyle
I have a table where each td has its width declared in css rules. Inside some td i have either p or div I want to have these elements inherit the width of the parent td. I have a sample here - http://www.roxstyle.com/projects/blssi/cms/user-tools-v1/user-search.html if you click on the user

[jQuery] Re: row highlite in jquery

2009-01-06 Thread Vicky am
Hello Karl, Very good it works. Also how isay if td does not have table. one of my td has table and it should not higlite that. thanks. On Tue, Jan 6, 2009 at 1:03 AM, Karl Swedberg k...@englishrules.com wrote: Hi Vicky, You could try this: $('tr:has(td)') ... --Karl Karl

[jQuery] Re: row highlite in jquery

2009-01-06 Thread vivekamar007
To explain ahead one row is looking in this tr td colspan=5table border=0 tr td span1/span /td td/td td/td /tr /table/td /tr how filter this using youre

[jQuery] Re: example on site, have question

2009-01-06 Thread MorningZ
If you need help understanding... perhaps the documentation will help http://docs.jquery.com/Events/click#fn On Jan 6, 5:19 pm, Andy adharb...@gmail.com wrote: What I am confussed on is there are two Click functions inside the ready call.  I'm trying to understand why there are two?  Seems

[jQuery] In a pickle -- JavaScript Pagination vs. PHP/MySQL Pagination

2009-01-06 Thread ripcurlksm
--- here is a picture of me I have a jQuery sortable table with jQuery pagination, which is being fed from PHP/MySQL-- and now that I have it setup, I am in a pickle. It appears I can only have cake or eat it. I want a table that loads fast from MySQL, that I can paginate (for performance) AND

  1   2   >