[jQuery] Looks like a bug in IE7 with replaceWith

2009-07-01 Thread Max Fedorov
Hi, I have a following Jquery code, as you can see all it does when user clicks an html link it shows a hidden div (I am using SlideToggle). The problem is in changing plus icon on minus icon after we clicked on a link, for example when div is hidden we should show plus, after we clicked a link

[jQuery] Re: Something changed from 1.2.2 to 1.3.2 with hashes

2009-05-20 Thread Max
Thanks - that worked perfectly. Max On May 20, 3:39 pm, John Resig wrote: > Well, in 1.3.2 it now throws an exception, since the CSS selector "#" is > invalid. If you wish to use that precise technique I'd wrap a try/catch > around the jQuery statement to catch the erro

[jQuery] Re: show if class matches current body id

2009-04-18 Thread Max
Thanks so much for the reply. however i may have worded my question poorly. I need the if statement to replace $('#menu ul.test').show(); so that instead the with class test, only the ul with the class matching the body is shown. the rest are hidden. thanks again -Max On Apr 1

[jQuery] show element if class matches current body id (Please help) « View previous topic :: View next topi c » Author

2009-04-18 Thread Max
enu() { $('#menu ul').hide(); $('#menu ul.test').show(); $('#menu li a').click( function() { $(this).next().toggle(); } ); } $(document).ready(function() {initMenu();}); do i start with something allong the lines of var bodyid = $("body").attr("id"); ? Any suggestions greatly appreciated. Thanks -Max

[jQuery] show if class matches current body id

2009-04-18 Thread Max
Hi im trying to adapt the following function so that if the ul class matches the body's id it will show. Right now it is set to show the ul with the class 'test'. This is for an accordion menu, and would allow the same menu to be an include on all pages. and the appropriate segment would open.

[jQuery] [autocomplete] Enhancements made

2009-03-05 Thread Max Franz
will find the updated plug in attached to this message. Cheers Max Franz jquery.autocomplete.js Description: JavaScript source

[jQuery] Re: Load new content, new links dont activate jquery function..

2008-12-10 Thread Max
Thanks, it works great now :), however i have one more question, what is the best way to perform a php mysql function to get data and update a div using jquery... i ask because i have a comments section that allows the user to choose how many comments to display the default is just 1, but i want

[jQuery] Re: Load new content, new links dont activate jquery function..

2008-12-10 Thread Max
oh, yea thanks :) now if i could just figure out how to pick out each piece of the returned page and load them into each div

[jQuery] Re: Load new content, new links dont activate jquery function..

2008-12-10 Thread Max
Also just wondering what does "fn" mean? does it carry some special meaning? .load(url, fn) ... sorry im really slowly trying to learn jquery :/

[jQuery] Re: Load new content, new links dont activate jquery function..

2008-12-10 Thread Max
Thanks for the reply, but im not exaclty sure how i go about picking a piece of the page and putting it into a div... i jsut cant seem to find out anywhere how to do this :(.. $("#nav").fadeOut("fast"); $("#content").fadeOut("fast"); $.get("http://www.site.com/mypage"

[jQuery] Re: Load new content, new links dont activate jquery function..

2008-12-10 Thread Max
Thanks ive used delegation to fix the links that are created by ajax, but i still cant seem to figure out how to update 2 div's using .load ajax function... at the moment i have: $("#clickrate").fadeOut("fast"); $('#clickrate').load("http://www.site.com/mypage #clickrate", function () {

[jQuery] Load new content, new links dont activate jquery function..

2008-12-09 Thread Max
Hi, im quite new to jquery so not sure what im doing wrong. (or if what im doing is the best way). But here goes, i have a rating script, that allows ratings between 1-10. The HTML: User Rating is 7.8/10 The current rating is fetched from a mysql database with php. 1 2 3 4 5 6 7 8 9 10 | Your c

[jQuery] Re: Object Oriented Form Handling

2008-12-04 Thread Max
t classes (like Record), but jQuery certainly isn't. Thoughts? Max On Dec 4, 2:31 pm, Will <[EMAIL PROTECTED]> wrote: > Does anyone know of a way to use class like objects in event handling > using jQuery? > > For Example, > > > > where .show() is a method of the

[jQuery] Re: Functions and variables

2008-12-04 Thread Max
ns and reusable code...either use the regular code you have there, wrap up your code in a regular JavaScript "class", or make a jQuery plugin that's specific for your site. Max On Dec 4, 2:26 pm, Will <[EMAIL PROTECTED]> wrote: > I'm sure this is dealt with somewhere i

[jQuery] Re: div hides ok, but doesn't show up again.

2008-12-04 Thread Max
Try putting some logging in the .load callback, on the ct variable...make sure it's getting bound correctly. On Dec 4, 2:19 pm, Polskaya <[EMAIL PROTECTED]> wrote: > Hi all, > I am trying to load content from another file in several divs on one > page. > If i use this script: > > var ct=0; > $(".

[jQuery] Re: Attribute selector with namespace

2008-11-07 Thread Max
I also took a stab at this and...had no luck. If it wasn't obvious, I think jQuery is getting tripped up on the : because of :'s association with filters. Not sure if there'll be an easy workaround. Max On Nov 7, 3:21 pm, MorningZ <[EMAIL PROTECTED]> wrote: > Hmmm.. in

[jQuery] Re: Can't seem to access any Interface functions - something stupid i'm sure...

2008-07-22 Thread Max Williams
Ah, thanks Richard. I actually just got it working - i had a space at the start of my interface folder name (doh, knew it would be something dumb). I'll look at jQueryUI though. cheers, max -- View this message in context: http://www.nabble.com/Can%27t-seem-to-access-some-any-Inte

[jQuery] Can't seem to access any Interface functions - something stupid i'm sure...

2008-07-22 Thread Max Williams
Like i say i've used other plugins with no problems so i'm probably just missing some vital bit of information - like where to put the interface files for example. Can anyone help? thanks - max -- View this message in context: http://www.nabble.com/Can%27t-seem-to-access-any

[jQuery] Re: [ Add Onclick on loaded image ]

2008-07-11 Thread Topayung, Amdys Max
Hi Kevin do you have any clue how can i add some progress image on top of the real image while there downloading ? Thanks, Regards Amdys On Fri, Jul 11, 2008 at 4:32 PM, Topayung, Amdys Max <[EMAIL PROTECTED]> wrote: > Thanks Kevin ! > > Regards, > amdys > > > On F

[jQuery] Re: [ Add Onclick on loaded image ]

2008-07-11 Thread Topayung, Amdys Max
Thanks Kevin ! Regards, amdys On Fri, Jul 11, 2008 at 5:54 AM, Kevin Pepperman <[EMAIL PROTECTED]> wrote: > since the image is loaded dynamicly,you should use the jquery.listen > plugin. > > It will allow you to 'listen' for the element and attach a click event to > the newly created image. > >

[jQuery] Re: [ Add Onclick on loaded image ]

2008-07-10 Thread Topayung, Amdys Max
Hi,, This is what i change so far.. But it always execute the alert each time the image is loading. $.fn.image = function(src, f){ return this.each(function(){ var i = new Image(); i.src = src; i.onload = f; *i.onclick = alert(c);* this.appendChild(i);

[jQuery] Re: treeview async - callback on completion? (or some other way to do temporary "loading..." text)

2008-06-11 Thread Max Williams (Brighton)
uery(document).bind('treeviewLoaded', function() { jQuery("#loading-text").hide(); }); It's not ideal as it's called every time a branch loads whereas it really only needs to be called the first time. And it feels a bit dirty. I'd still like to kn

[jQuery] Re: treeview async - callback on completion? (or some other way to do temporary "loading..." text)

2008-06-11 Thread Max Williams (Brighton)
Hi rolf yeah, that would do fine actually - i missed that. Do you know how that is generated? thanks max On Jun 10, 5:41 pm, rolfsf <[EMAIL PROTECTED]> wrote: > If you look at the async > demo:http://dev.jquery.com/view/trunk/plugins/treeview/demo/async.html > > in the fi

[jQuery] treeview async - callback on completion? (or some other way to do temporary "loading..." text)

2008-06-10 Thread Max Williams (Brighton)
eview to signal when it's finished loading the json, so i can remove the text? Is there a simpler way to have some "loading..." text displayed so that it will disappear when the tree loads? thanks max

[jQuery] Re: [treeview] - async version - how do i call some js AFTER the tree has loaded some json for the first time?

2008-05-15 Thread Max Williams (Brighton)
element. > > More on the target property here:http://docs.jquery.com/Types/Event#target > > Jörn > > On Thu, May 15, 2008 at 3:31 PM, Max Williams (Brighton) > > <[EMAIL PROTECTED]> wrote: > > > I'm using the async version of the treeview plugin, which re

[jQuery] [treeview] Does anyone know of a persistence mechanism for the asynchronous version of the treeview plugin?

2008-05-15 Thread Max Williams (Brighton)
I'm trying to write my own cookie-based persistence method for the asynch version of the Treeview plugin, and am running into some difficulties. Has anyone else done this please, or know of an existing solution? thanks max

[jQuery] [treeview] - async version - how do i call some js AFTER the tree has loaded some json for the first time?

2008-05-15 Thread Max Williams (Brighton)
I'm using the async version of the treeview plugin, which refreshes the tree with an ajax call that returns some json. This is working fine. However, the cookie-based persistence doesn't work with the async version and i'm trying to write my own. In order to do this, i'm using jQuery to monitor

[jQuery] Problems with order in animation

2008-05-14 Thread Max
I have a menu with 3 items: Agradecimientos | Comentarios | Contacto If I click one of these elements, a box may slide down, and show content. And if the box is already down (if one of the items is active), the box should firts slide up, replace the content with the new one, and slide down. So, t

[jQuery] Right way to write a function

2008-05-09 Thread Max
s("active"); return false; }; But I don't know how to call, and how to pass the param. Any help please? Thanks in advance. Max

[jQuery] Re: requesting and sending JSON in a ruby on rails app

2008-05-07 Thread Max Williams (Brighton)
JavaScript at > all; you are simply debugging yourRailsapp. > > Once you know you have good JSON data, you can test question #2 with a > simple test case that just downloads the JSON data with jQuery and displays > it (even with just a console.log call). > > Finally, with all th

[jQuery] requesting and sending JSON in a ruby on rails app

2008-05-07 Thread Max Williams (Brighton)
b) how do i send through the id of the clicked-on branch to the controller? (and retrieve it in the controller) thanks in advance max

[jQuery] Any way to use cross browser method "document.selection.clear()" ?

2007-08-30 Thread Max
Hi there, All I want is to AVOID any text selection and hightlight while doing these: "Click somewhere on the page, and Shift + Click elsewhere on the page again," and the text between the two Clicks would be selected and hightlighted. In IE, i can use the "document.selection.clear()" method to c

[jQuery] Re: how to add jQ$ to be same as $ ?

2007-08-29 Thread Max
brary > using the argument true > > http://jquery.com/blog/2007/08/24/jquery-114-faster-more-tests-ready-... > > -- David > > Max schreef: > > > Hello there, > > I want to place jQ$ to be same as $ and/or jQuery. > > just than, I can use jQ$ in case of jQuer