[jQuery] Re: Determine content type in $.post callback

2009-07-08 Thread Giovanni Battista Lenoci
dnagir ha scritto: Unfortunately I do not see jQuery providing similar function, while Prototype does: http://www.prototypejs.org/api/string/isJSON I've found in the source the function you've linked above, I've rewrited to make it works with jquery: jQuery.isJson = function(str) { if

[jQuery] jQuery and javascript objects

2009-07-08 Thread Nic Hubbard
I have some JSON that I returned from my server. I then converted it to an object using eval. It is only then that I can start manipulating it with jQuery (trust me). Currently the multilevel object is set in a var. Is there a way that I can then have jQuery use this, to get values from it?

[jQuery] Re: jQuery and javascript objects

2009-07-08 Thread Nic Hubbard
Is it possible to use the .each() function on an object that came from JSON? On Jul 7, 11:54 pm, Nic Hubbard nnhubb...@gmail.com wrote: I have some JSON that I returned from my server.  I then converted it to an object using eval.  It is only then that I can start manipulating it with jQuery

[jQuery] Re: getScript problem with ie6

2009-07-08 Thread Luca Maggioni
Obivously, I think that the problem is not microsoft virtual earth scripts. I thing that the problem is the fact that I raise an event before the download is finished... it could be any type of scripts On 7 Lug, 10:56, Luca Maggioni luca.maggi...@gmail.com wrote: Hi I download asynchronously

[jQuery] Re: Caching nodes

2009-07-08 Thread Darko Romanov
Ok thanks. I'm going to try it. Didn't know about the $... variables convention. d On 7 Lug, 19:35, Michael Geary m...@mg.to wrote: What you wrote would work, and it would be faster than the original code, but you're making an unnecessary $() call each time you use $(list). Instead, do it

[jQuery] Re: error jquery-1.3.2.js(line 3633)

2009-07-08 Thread Mark
Can anybody find anything what i did wrong? the only code that is not commented out in the handler.php is ?php print_r($_POST); ? To show me what kind of values it gets and how it looks in an array so i can make an associative of it. On Jul 7, 3:01 pm, Mark johanns.m...@gmail.com wrote:

[jQuery] Re: Superfish - Menu put in Master page (asp.net MVC) doesn't behave ok in content pages

2009-07-08 Thread HariOm
Thanks Charlie for your quick reply. I got it working. The problem was with Master page in MVC may be. Before I was adding reference to superfish.js file before the ContentPlaceHolder for head in master page. like: script type=text/javascript src=%=Url.Content(~/Content/webui/

[jQuery] Re: Caching nodes

2009-07-08 Thread Darko Romanov
Cool! I got code execution 50% faster! Thanks. d On 8 Lug, 09:27, Darko Romanov darko.roma...@gmail.com wrote: Ok thanks. I'm going to try it. Didn't know about the $... variables convention. d On 7 Lug, 19:35, Michael Geary m...@mg.to wrote: What you wrote would work, and it would

[jQuery] Re: error jquery-1.3.2.js(line 3633)

2009-07-08 Thread Jonathan Vanherpe (T T NV)
Sorry, I didn't see your reply, this list is pretty high-traffic. I tried it, but it doesn't give me an error. The POST returns a 200 OK. What I do notice is that after I click the button, I get a page reload, so I think you need to put a 'return false;' in there somewhere to stop the form

[jQuery] Re: how to change 2,5 to 2,50 ?

2009-07-08 Thread Massimo Lombardo
Yeah, that's what I mean ;) That's why I explicitly cited IEEE754 in my reply instead of saying something like «heh, you know, it's that weird javascript thing with numbers» :) On Wed, Jul 8, 2009 at 04:53, RobGrobg...@gmail.com wrote: On Jul 7, 9:14 pm, Massimo Lombardo

[jQuery] Can I catch the property of CSS filter?

2009-07-08 Thread David .Wu
the image is like img style=filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (src='aa.png') ... $('img').css('filter') will get progid:DXImageTransform.Microsoft.AlphaImageLoader(src='aa.png') Can I get the aa.png directly?

[jQuery] JQuery Dynamic Validations issue.

2009-07-08 Thread mnaveed
Hi, I am using the JQuery validation plug in for form validations. My page contains a loop in which dynamic forms are generated and within each form some text fields are also dynamically generated. I have assigned the id and name attributes both to form and fields with dynamically appending a

[jQuery] Re: (Validate) - How to apply validations on dynamically generated forms.

2009-07-08 Thread mnaveed
Thanks Jorn, it work fine now...:) On Jul 7, 8:36 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: $(.commForm).each(function() {   $(this).validate(); }); The call tovalidateworks only with the first selected element, so you have to do an explicit loop. Jörn On Tue, Jul 7,

[jQuery] Checking value

2009-07-08 Thread brightdad...@googlemail.com
Hi Experts, I am trying to conditionally test what the value of href is equal to. like this; if($(this).find('a').attr(href)==map.html){ alert(yes); } This doesn't work. Do anyone knows what i am doing wrong. Psuedocode please.

[jQuery] Re: Checking value

2009-07-08 Thread Massimo Lombardo
I don't know if it'll work 'cause you didn't post any XHTML, but you could give this try: if ('http://example.com/foo/bar.html' === $('a', $(this)).attr('href')) { alert('Hooray!'); } PS: avoid using == and !=, instead use === and !== On Wed, Jul 8, 2009 at 11:09,

[jQuery] Re: error jquery-1.3.2.js(line 3633)

2009-07-08 Thread Mark
I used $(document).ready(function() { $(from#myfrom).submit(function() { now it doesn't give an error anymore so far i can see. So now only try to figure out how to post the value's with out the reload and then im going to make a callback to a new div and print the php array

[jQuery] Re: error jquery-1.3.2.js(line 3633)

2009-07-08 Thread Jonathan Vanherpe (T T NV)
This should stop the form from submitting (untested): $(f...@myform).submit(function() { $.post('handler.php', { jaar:$('#jaar').val(), maand:$('#maand').val(),

[jQuery] Click on anchor, wait 1/2 second, then scroll to matched ID

2009-07-08 Thread Martin Berglund
Hi I am trying to create a nice little effect with an unordered list with anchors to a definition list with matching ID's on each dt. When a link in the ul is clicked, I want to delay the scroll for half a second, and then scroll down to the right spot. Here is what i have written so far:

[jQuery] Re: [autocomplete] Adding custom data retrieval function

2009-07-08 Thread Jörn Zaefferer
Yeah, thats supposed form a stable API for a few years. Autocomplete is high on our priority list, so... if you want to help, help with fixing bugs in other jQuery UI components, as that gives us the time to work on new stuff. A list of open blockers and criticals is here:

[jQuery] Re: Checking value

2009-07-08 Thread brightdad...@googlemail.com
Yes it worked! On Jul 8, 10:09 am, brightdad...@googlemail.com brightdad...@googlemail.com wrote: Hi Experts, I am trying to conditionally test what the value of href is equal to. like this; if($(this).find('a').attr(href)==map.html){  alert(yes); } This doesn't work. Do anyone knows

[jQuery] Re: [validation] Remote rule, show loading symbol

2009-07-08 Thread Jörn Zaefferer
You can use various ajax events to handle that, see: http://docs.jquery.com/Ajax_Events Eg. display the loading indicator on ajaxStart and hide it on ajaxStop. Jörn On Mon, Jul 6, 2009 at 8:02 PM, pimoussedelphine.ma...@gmail.com wrote: Hi, I am using a remote rule an external file to

[jQuery] Re: Tutorial evaluation

2009-07-08 Thread BaBna
The next link doesn't work? Do you have JavaScript disabled or what? :P I tested it in IE, Chrome and FF without problem. Please let me know if you're also having troubles. Jeff, sorry but I don't have a clue about cakephp - actually I'm looking into it now, it seems pretty interesting... On

[jQuery] Re: Superfish - Menu put in Master page (asp.net MVC) doesn't behave ok in content pages

2009-07-08 Thread Steve Hueners
Thankx for following this issue up...I'd find it helpful to review the other pages that lead you to this point. thx again. On Wed, Jul 8, 2009 at 12:48 AM, HariOmhariohm@gmail.com wrote: Thanks Charlie for your quick reply. I got it working. The problem was with Master page in MVC may

[jQuery] Superfish nav bar drops down BEHIND Javascript slideshow in Internet Explorer

2009-07-08 Thread Adam Bomb
I need some help. I'm using Superfish navigation with Ultimate Fade-In Slideshow. The two scripts work in harmony in every modern browser and lots of ancient ones... Except for Internet Explorer. In IE, the drop-down nav bar gets hidden underneath the fading images. See what I mean at

[jQuery] Javascript: Send / Pass value of child window to parent window

2009-07-08 Thread itranga
Hi All I have found nice article for Send / Pass value of child window to parent window http://hspinfo.wordpress.com/2008/01/17/javascript-send-pass-value-of-child-window-to-parent-window/ Regards Ranga

[jQuery] jQueryUI droppable drop function firing on over only if i have on my draggable a connectToSortable option set

2009-07-08 Thread Bubi
Hello guys hope anybody can help me with this little bug. You can see the code on http://designvictim.com/jqueryui/index.html If you want to download a .zip with the files its here: http://designvictim.com/jqueryui/source.zip Now here is my problem: I'm trying to make something similar to the

[jQuery] Javascript: Send / Pass value of child window to parent window

2009-07-08 Thread ranga pathmasiri
Hi All I have found nice article for Send / Pass value of child window to parent window . http://hspinfo.wordpress.com/2008/01/17/javascript-send-pass-value-of-child-window-to-parent-window/ Regards Ranga

[jQuery] How to target change css attribute of P tag when hovering over parent div

2009-07-08 Thread Jacques Choquette - WhistlerGraphicDesign.com
I have the following code $('.box').hover( function(){ $(this).css('background-color','#6bc6f2'); $(p).css ('color','#fff') }, function(){ $(this).css('background-color','#fbf9f9'); $(p).css ('color','#000') } ); I have the .box class applied to a div basically I what to hover over the div

[jQuery] flickering issue when using animate() in firefox

2009-07-08 Thread orizen
hi. I used jquery for building my portfolio and created a carousel like widget. http://ajaxian.com/archives/google-chrome-os-web-developers-rule everything is working fine except for animating in firefox - where the animation flickers a bit to the sides. Has anyone experienced this

[jQuery] Re: jQuery UI Ajax tabs: content not refreshing in IE6 - cache problem?

2009-07-08 Thread Gilcpd
Hey Guys I'm sorry to bother, but I have the same problem, and I've been trying to get around it. I added the option 'cache:false' on the tabs script: $(function() { $('#ajaxtab').tabs({ remote: true, cache: false }); }) But it did not work... I also tryed to add: $.ajaxSetup({

[jQuery] Re: jQuery progress bar

2009-07-08 Thread Andrzej Ekus Rusztowicz
Hi, The easiest way seems to be to display the progress bar inside modal dialog (which automatically blocks the rest of the page until the modal dialog is closed). Just make sure to prevent the user from closing the modal dialog while the progress bar is running, not sure if this can be done

[jQuery] Need Help in Table Filter

2009-07-08 Thread bharathbhooshan ambati
Hi Friend, I am trying the table filter ..i found one excellent link: http://ideamill.synaptrixgroup.com/jquery/tablefilter/tabletest.htm i tried it worked great for me But when i tried with database connection,i have an issue with the search, if the table column contains any string varchar it

[jQuery] Re: Ajax Tabs with accordion content...

2009-07-08 Thread Thomas
yes, thank you for your answer i try something with jquery live function (like livequery i think) this is my code : $(#accordion).live(click, function(){ $(#accordion).accordion({ header: h3 , autoHeight: false }); }); but this doesn't work, my accordion after a click has still no

[jQuery] Re: jCarousel Appears Vertical then Horizontal

2009-07-08 Thread Sparky12
Btw - the problem is the li utens are aligned vertically by default and then after applying the jCarousel script they become aligned horizontally ? Any way to resolve this ?

[jQuery] Re: listmenu plugin: non-ascii characters

2009-07-08 Thread Dave
Have there been any progress in this matter? On Jun 8, 11:09 pm, Jack Killpatrick j...@ihwy.com wrote: Hi, I considered building something like that in, but decided I didn't know enough about other languages to decide how best to handle them. Thanks for starting the dialog. Does anyone

[jQuery] Re: jCarousel Appears Vertical then Horizontal

2009-07-08 Thread Sparky12
Btw - the problem is the li items are aligned vertically by default and then after applying the jCarousel script they become aligned horizontally ? Any way to resolve this ?

[jQuery] Re: error jquery-1.3.2.js(line 3633)

2009-07-08 Thread Mark
Ty just found it my self to and it works i think this topic is done ty for your help!! On Jul 8, 11:37 am, Jonathan Vanherpe (T T NV) jonat...@tnt.be wrote: This should stop the form from submitting (untested): $(f...@myform).submit(function() {                        

[jQuery] Re: jCarousel Appears Vertical then Horizontal

2009-07-08 Thread Jonathan Vanherpe (T T NV)
Sparky12 wrote: Btw - the problem is the li items are aligned vertically by default and then after applying the jCarousel script they become aligned horizontally ? Any way to resolve this ? Try editing the css so the container div has overflow: hidden and a fixed width/height. Jonathan --

[jQuery] Re: Search Functionality in DataGrid

2009-07-08 Thread bharathbhooshan ambati
Hi Friends, I am trying the table filter ..i found one excellent link: http://ideamill.synaptrixgroup.com/jquery/tablefilter/tabletest.htm i tried it worked great for me But when i tried with database connection,i have an issue with the search, if the table column contains any string varchar it

[jQuery] Re: slideUp(), slideDown() choppy on IE 6, 7, 8

2009-07-08 Thread Leonardo K
I'm trying to guess here. I believe the problem is the padding of the element you are sliding. Try to remove the padding from li and add to the div inside. I know jQuery animate padding as well but in the IE is not smooth enough. On Tue, Jul 7, 2009 at 19:52, Bill bllfr...@gmail.com wrote:

[jQuery] Re: Superfish nav bar drops down BEHIND Javascript slideshow in Internet Explorer

2009-07-08 Thread Charlie
did you try solution "IE Z-Index Bug Fix" in FAQ section of superfish site? http://users.tpg.com.au/j_birch/plugins/superfish/#faq Adam Bomb wrote: I need some help. I'm using Superfish navigation with Ultimate Fade-In Slideshow. The two scripts work in harmony in every modern browser

[jQuery] having a hard time finding the parent...

2009-07-08 Thread vaaaska
Haha...nice title? ;) I have this list structure and when the page loads I reveal the active page...all the other pieces are revealed when you click. Everything works great except this one detail. I need to run a check (a filter?) to see if the active list element exists in a 'secondary' list

[jQuery] Re: jquery json make html table

2009-07-08 Thread moos3
Yeah I think thats what i'm looking for. My only question is that I have multiple tables in the table how do i handle those ones? On Jul 7, 5:15 pm, BaBna thomas.na...@gmail.com wrote: I'm not sure to have understood your question, but maybe you're trying to achieve something like this: for (

[jQuery] Re: How to target change css attribute of P tag when hovering over parent div

2009-07-08 Thread Charlie
you just need to refine your selector for p tags to fit the appropriate parent element lots of ways to do this if the p tags are in the .box div you are hovering change: $("p").css('color','#fff') to $(this).find("p").css('color','#fff') A more flexible way to do this would also be to

[jQuery] Re: TreeView Problems

2009-07-08 Thread Keith
Thanks Jon. This works perfectly. On Jul 7, 1:17 pm, Jon Banner banali...@googlemail.com wrote: i had a similar problem this morning. I updated the call to the write cookie to include a path (i was getting a cookie written for each page in the app) line 172 in the uncompressed plugin.

[jQuery] Image hover (like tooltip) to position in viewable scroll position

2009-07-08 Thread Adardesign
I have a Tooltip (larger image view) that is being positioned via e.pageX e.pageY and i am trying to make sure it is not hidden below the current scrolled view port. I have seen many sites have this my code is something like this but i am missing something. var positionImg = function(e) {

[jQuery] Re: having a hard time finding the parent...

2009-07-08 Thread BaBna
What about $('li.active').parents(ul).find(.whatever)? On Jul 8, 2:10 pm, vaaaska vask...@gmail.com wrote: Haha...nice title? ;) I have this list structure and when the page loads I reveal the active page...all the other pieces are revealed when you click. Everything works great except this

[jQuery] Re: Ajax Tabs with accordion content...

2009-07-08 Thread Charlie
take a good look at events associated with tabs.try tabload to build accordion constructor, likely a good way to go http://jqueryui.com/demos/tabs/#event-select there is a separate Google group for jQuery UI issues. Probably best to take any further problems to that group

[jQuery] Re: jQuery and javascript objects

2009-07-08 Thread Matt Kruse
On Jul 8, 1:54 am, Nic Hubbard nnhubb...@gmail.com wrote: I have some JSON that I returned from my server.  I then converted it to an object using eval.  It is only then that I can start manipulating it with jQuery (trust me).  Currently the multilevel object is set in a var.  Is there a way

[jQuery] jquery i18n : $.i18n is not a function

2009-07-08 Thread Bengo
Hi there, I'm tryin tu usejquery.i18n plugin. In my html i insert these javascript code script type=text/javascript src=js/bankone/jquery-1.3.2.min.js / script script type=text/javascript src=js/bankone/jquery.i18n.js / script script type=text/javascript src=js/bankone/i18n_properties.js/

[jQuery] Superfish : Slide doesn't work

2009-07-08 Thread Fabinou
Hello, I use superfish plugin on my website ( http://www.pms-clan.org ) for the menu. The fade method for showing works ok (but it's sometime flickers, a little bit annoying but it's ok), but i can't make it slide, using height or width method. I use for example this to show up :

[jQuery] treeview: using links that don't toggle

2009-07-08 Thread Cedd Burge
Hi. I have a treeview with links in that navigate to other pages when clicked. I didn't want these to cause toggling when they were clicked. My lists are prerendered. I didn't find a very good way to do this, but the following works, any better ways to do this would be appreciated. This

[jQuery] why is this href firing???

2009-07-08 Thread Jan Limpens
hi there! this plugin extends an input text with 2 links that increase or decrease it's value by 1. unfortunately, due to my dumbness it is not working as I would expect. When one clicks at one of the links, the link works normally as a link would (making the request to ). Anybody could tell me

[jQuery] Re: why is this href firing???

2009-07-08 Thread BaBna
I don't really see where your link is, but if you had .click(function (e){e.preventDefault();} to your link, that should disable it. On Jul 8, 3:54 pm, Jan Limpens jan.limp...@gmail.com wrote: hi there! this plugin extends an input text with 2 links that increase or decrease it's value by 1.

[jQuery] Re: treeview: using links that don't toggle

2009-07-08 Thread BaBna
Would this work? $(function(){ $(.collapsable a).click(function(e){ e.preventDefault(); }); }); On Jul 8, 1:42 pm, Cedd Burge cedd.bu...@nhs.net wrote: Hi. I have a treeview with links in that navigate to other pages when clicked. I didn't want these to cause toggling when they were

[jQuery] Re: slideUp(), slideDown() choppy on IE 6, 7, 8

2009-07-08 Thread Bill
Thanks Leonardo, I'll try that now. On Jul 8, 5:52 am, Leonardo K leo...@gmail.com wrote: I'm trying to guess here. I believe the problem is the padding of the element you are sliding. Try to remove the padding from li and add to the div inside. I know jQuery animate padding as well but in

[jQuery] Cannot disable div

2009-07-08 Thread expresso
div class=jcarousel-skin-ie7 div class=jcarousel-container jcarousel-container-horizontal style=display: block; height: 220px; width: 592px; div class=jcarousel-prev jcarousel-prev-horizontal style=display: block; disabled=false/ div class=jcarousel-next jcarousel-next-horizontal style=display:

[jQuery] Re: Cannot disable div

2009-07-08 Thread BaBna
Maybe because there is no disabled property for DIV? http://www.w3schools.com/tags/tag_DIV.asp On Jul 8, 4:25 pm, expresso dschin...@gmail.com wrote: div class=jcarousel-skin-ie7 div class=jcarousel-container jcarousel-container-horizontal style=display: block; height: 220px; width: 592px;

[jQuery] superfish displaying oddly in my FF3.5 install

2009-07-08 Thread kanjigirl
Yesterday my host did about 10 minutes of server maintenance and when they were finished, my Superfish menu in Joomla suddenly began displaying extra spacing between each li. Here's the site: http://www.redkitecreative.com/projects/checkmark/ However, apparently this is only happening for me. I

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
then why the heck does JCarousel put one in it? On Jul 8, 10:28 am, BaBna thomas.na...@gmail.com wrote: Maybe because there is no disabled property for DIV? http://www.w3schools.com/tags/tag_DIV.asp On Jul 8, 4:25 pm, expresso dschin...@gmail.com wrote: div class=jcarousel-skin-ie7 div

[jQuery] Re: Cannot disable div

2009-07-08 Thread Cesar Sanz
How come is that you want to disable a div?? Do you mean, block the content inside div? - Original Message - From: BaBna thomas.na...@gmail.com To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, July 08, 2009 9:28 AM Subject: [jQuery] Re: Cannot disable div Maybe

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
Because I want to disable the next button in this plug-in explicitely. On Jul 8, 10:30 am, Cesar Sanz the.email.tr...@gmail.com wrote: How come is that you want to disable a div?? Do you mean, block the content inside div? - Original Message - From: BaBna thomas.na...@gmail.com

[jQuery] Re: Cannot disable div

2009-07-08 Thread BaBna
Because it sucks? It might create problems with some DTD I think, and maybe this disable on a DIV is an IE special feature, I don't know. Anyway, what do you want to achieve here? On Jul 8, 4:30 pm, Cesar Sanz the.email.tr...@gmail.com wrote: How come is that you want to disable a div?? Do

[jQuery] Re: slideUp(), slideDown() choppy on IE 6, 7, 8

2009-07-08 Thread Bill
OK, I gave it a try but the problem persists. The animation works perfectly on all other browsers and I'd really like to keep it because it provides important (maybe essential) feedback to the user. However, since (inexplicably) most of our clients use IE only, this animation problem is a deal

[jQuery] Re: why is this href firing???

2009-07-08 Thread MorningZ
I see this (stopping links in their tracks) a lot and it's puzzling, so i think: *if you do not want an a to actually follow a link, then don't use an a, use a span or something instead and use CSS to make it look like a link to the user* That will 100% solve all issues with a hyperlink acting

[jQuery] Re: Superfish : Slide doesn't work

2009-07-08 Thread Charlie
probably good idea to validate page, see if that helps. Page flickers on initial load in FF also, you have a few markup problems including divs inside a tags, extra "" in some places and some unclosed tags http://validator.w3.org/check?verbose=1uri=http%3A%2F%2Fwww.pms-clan.org%2F Fabinou

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
Because I want to disable the next button in this plug-in explicitely. On Jul 8, 10:30 am, Cesar Sanz the.email.tr...@gmail.com wrote: How come is that you want to disable a div?? Do you mean, block the content inside div? - Original Message - From: BaBna thomas.na...@gmail.com

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
Do you mean, block the content inside div? I think but the reason I can't tell is because in FireBug, looking at the source, there is no content inside that div. On Jul 8, 10:40 am, BaBna thomas.na...@gmail.com wrote: Because it sucks? It might create problems with some DTD I think, and maybe

[jQuery] Re: superfish displaying oddly in my FF3.5 install

2009-07-08 Thread Charlie
looks OK in my FF 3.0.11 however in IE 7 looks different than your image. Renders with no padding ona's so li's get all bunched together Header has a div inside an h1 tag, perhaps that's causing problem? kanjigirl wrote: Yesterday my host did about 10 minutes of server maintenance and

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
If you look at the JCarousel .js, here's the logic buttonNextHTML: 'div/div', this.buttonNext = $('.jcarousel-next', this.container); if (this.buttonNext.size() == 0 this.options.buttonNextHTML != null) this.buttonNext = this.clip.before

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
this.container.css('display', 'block'); this.buttonNext.css('display', 'block'); this.buttonPrev.css('display', 'block'); this.funcNext = function() { self.next(); }; this.funcPrev = function() { self.prev(); }; this.funcResize = function() {

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
buttons: function(n, p) { if (n == undefined || n == null) { var n = !this.locked this.options.size !== 0 ((this.options.wrap this.options.wrap != 'first') || this.options.size == null); //if (!this.locked (!this.options.wrap ||

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
Now you tell me how the f* I'm supposed to understand how to manipulate this crap. So I figured I can just disable it with CSS straight up. On Jul 8, 11:05 am, expresso dschin...@gmail.com wrote:         buttons: function(n, p) {             if (n == undefined || n == null) {                

[jQuery] Re: Cannot disable div

2009-07-08 Thread amuhlou
It doesn't look like what you're trying to select exists. the jcarousel-next and jcarousel-next-horizontal classes are being applied to the same div, so there shouldn't be a space between them in your selector. Additionally, it appears your syntax for the attribute selector is incorrect Have

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
NO, I have custom code that determines how to paint in images to JCarousel based on a JavaScript array, much more dynamic and deferred loading...even more custom than they have it. So I need to be able to tell it when it's at the end to disable that button. The default behavior won't work for

[jQuery] Constrain/restrict mouse pointer to a selector

2009-07-08 Thread Coxy
Is it possible with jQuery, or JavaScript for that matter, to trap the mouse in a div or other tag so that it can only move around in it. I'd like this for a modal window so thta the user knows that they must do something in the window first before carrying on.

[jQuery] [Validate plugin] Question about the 'remote' AJAX option

2009-07-08 Thread Guillaume Lecanu
Hi, I trying to replace my old AJAX system by the Validate plugin of jQuery with the remote option. There is a way to return a custom error message directly from the server side script ? For example, I have a username.php server side script that check : - If the username is not used by someone

[jQuery] ie6/Z superfish navbar li submenu always above ul subsubmenu

2009-07-08 Thread nico
Hi, I have a problem with the superfish menu in navbar mode and ie6/7. The first submenu items are in a full width row. If there are lots of subitems i get two rows. If an item in the first row has a submenu it opens as dropdown (200px width) right below the item. This works good in all

[jQuery] Superfish Navbar wrapping too soon

2009-07-08 Thread Ryan Ross
Hello, I'm developing a site and trying to see if I can get the Superfish menu to work in my design. Here is the site: http://home.catholicweb.com/stjudeboca/index.cfm?reinit=y The problem I have run into is that using the navbar to make a horizontal menu with one level below it, the sub menu

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
amuhlou, I get a syntax error when I change .attr(disabled: true) to using commas such as you have it. I get invalid object initializer jQuery(.jcarousel-skin-ie7 .jcarousel-next-horizontal).attr ({ disabled, true }); On Jul 8, 11:06 am, amuhlou amysch...@gmail.com wrote: It doesn't look like

[jQuery] Re: Cannot disable div

2009-07-08 Thread Charlie
seems like making the custom code fit the functionality of the plugin ( which works), rather than hack the plugin to pieces to fit your methods, would make more sense expresso wrote: NO, I have custom code that determines how to paint in images to JCarousel based on a _javascript_

[jQuery] Re: why is this href firing???

2009-07-08 Thread Jan Limpens
But that is not the problem. It is 100% ok to put a click event on an anchor and expect it not to pass on the request, if you return false. For the sake of the argument, I changed the anchor to a div and I still get no exception and it still does nothing. If I do this: spinDown.click(function()

[jQuery] Re: [Validate plugin] Question about the 'remote' AJAX option

2009-07-08 Thread Jörn Zaefferer
The JSON response can be true/false, or a String, handled as false (invalid), and the string will be used as the error message. You need the latest version (1.5.5) for that to work properly. Jörn On Wed, Jul 8, 2009 at 6:03 PM, Guillaume Lecanuguillaume.lec...@gmail.com wrote: Hi, I trying

[jQuery] Re: Superfish Navbar wrapping too soon

2009-07-08 Thread Ryan Ross
I figured it out (sorta) .sf-navbar li ul { /*width:44em; /*IE6 soils itself without this*/ width: 84em; } I changed the width in ems to a larger number just to see what it would do, turns out it provided enough space for the entire sub

[jQuery] img src attribute after append(), html()...

2009-07-08 Thread rinse_my_phonebook
When I call $('#mydiv').append('pimg src=a/b/image.jpg //p'); I get div id=mydiv pimg src=http://localhost:53072/pathtocurrentpage/a/b/ image.jpg / /p /div Which is not what I want. Can anyone tell me why I get this or even how I can stop jquery from changing my src attribute? Thanks in

[jQuery] Re: why is this href firing???

2009-07-08 Thread Jan Limpens
I found out, that the plugin worked, when there is only one, but not if there are many on a page. so it was not enumerating a multiple result :) the plugin now works: (function($) { jQuery.fn.spinner = function() { return this.each(function() { // here we go! var input =

[jQuery] Re: Re: Superfish Navbar wrapping too soon

2009-07-08 Thread Charlie
Ryan, was looking at this just before you posted this. Hover over menu in IE 7 causes body background to move. Thought that was wierd. Clicked validate and you have doctype mismatch between html type and doctype, might be an issue Ryan Ross wrote: I figured it out (sorta) .sf-navbar li

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
jQuery(.jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- horizontal).attr(disabled,true); did not work. On Jul 8, 11:06 am, amuhlou amysch...@gmail.com wrote: It doesn't look like what you're trying to select exists. the jcarousel-next and jcarousel-next-horizontal classes are being

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
jQuery(.jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- horizontal).attr(disabled,true); did not work. On Jul 8, 11:06 am, amuhlou amysch...@gmail.com wrote: It doesn't look like what you're trying to select exists. the jcarousel-next and jcarousel-next-horizontal classes are being

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
Charlie, we have. But we are doing something completely past what this control does. For example I have it expanding and contracting based on # of items you want to show. Getting that logic in there required some extensive thought on my side and something that this control does not do.

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
Charlie, you also don't understand that we are using deferred loading. And I'm reading an array of IDs from a JS variable. based on those IDs I send a JSON request / response and then I get that back. I'm making this control much more dynamic than their out of box example here:

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
Charlie, you also don't understand that we are using deferred loading. And I'm reading an array of IDs from a JS variable. based on those IDs I send a JSON request / response and then I get that back. I'm making this control much more dynamic than their out of box example here:

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
We couldn't just set the size like they did either. Because we don't want to set a size greater than the # of elements we're showing. So I wanted to set # of items to show and on click of next it dynamically figures out how many more elements to show. So if I specify 4, I even have some

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
seems like making the custom code fit the functionality of the plugin ( which works) obviously but I poured through all examples and none of them would do what we want. We are going beyond what this thing does in terms of how it does the deferred loading. On Jul 8, 12:06 pm, expresso

[jQuery] Re: Cannot disable div

2009-07-08 Thread MorningZ
jQuery(.jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- horizontal).attr(disabled,true); did not work. Why would you expect that to? As mentioned at the very top, there is no disabled property of a div On Jul 8, 1:06 pm, expresso dschin...@gmail.com wrote: We couldn't just set the

[jQuery] Re: Rare .die() behaviour

2009-07-08 Thread Pau Taw
The code is part of a big proyect, and I've added this behaviour recently, so posting all the code is a little bit... imposible i think, too much lines. But thanks for the answer, knowing that it must work as it's expected I'll jus debug the code to find if something is making it work wrong.

[jQuery] Re: Superfish Navbar wrapping too soon

2009-07-08 Thread Ryan Ross
Thanks Charlie, I adjusted the .sf-navbar li ul width to 60em. Originally it was 84, and extended the page when hovering, causing the body background to move since it was centered, and the page was increasing in width. On Jul 8, 12:52 pm, Charlie charlie...@gmail.com wrote: Ryan, was looking

[jQuery] Re: Cannot disable div

2009-07-08 Thread expresso
The hardest part about this plug-in has been that after pouring over the base code in his .js file I do not see how it's disabling the next button. Based on what!?!?! I mean I can stare the code right in the eye where it's happening but I cannot make sense of it: var self = this;

[jQuery] Re: img src attribute after append(), html()...

2009-07-08 Thread Ralph Whitbeck
Is this in IE? On Wed, Jul 8, 2009 at 12:41 PM, rinse_my_phonebook hugo.lee...@gmail.comwrote: When I call $('#mydiv').append('pimg src=a/b/image.jpg //p'); I get div id=mydiv pimg src=http://localhost:53072/pathtocurrentpage/a/b/ image.jpg

[jQuery] Re: Cannot disable div

2009-07-08 Thread MorningZ
If it was me trying to accomplish what you wanted to do, it would be like this define a CSS class that makes the div look faded out .op35 { -moz-opacity:.35; filter:alpha(opacity=35); opacity:.35; } Now, if you want to disable a div, then use .addClass(op35) find the event in the code that is

  1   2   >