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
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
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
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
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.
will find the updated plug in attached to this message.
Cheers
Max Franz
jquery.autocomplete.js
Description: JavaScript source
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
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
Also just wondering what does "fn" mean? does it carry some special
meaning?
.load(url, fn)
... sorry im really slowly trying to learn jquery :/
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"
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
() {
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
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
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
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;
> $(".
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
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
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
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
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.
>
>
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);
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
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
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
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
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
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
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
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
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
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
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
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
33 matches
Mail list logo