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 jere...@gmail.com 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 error.
--John
').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.
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 ul with class test, only the ul with the class
matching the body is shown.
the rest are hidden.
thanks again
-Max
On Apr 18, 6:50 pm
the updated plug in attached to this message.
Cheers
Max Franz
jquery.autocomplete.js
Description: JavaScript source
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
() {
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;,
Also just wondering what does fn mean? does it carry some special
meaning?
.load(url, fn)
... sorry im really slowly trying to learn jquery :/
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
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
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:
div id=userrateUser Rating is 7.8/10/div
The current rating is fetched from a mysql database with php.
div id
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;
...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 in the jQuery tutorials but I
have not been able
is more about creating object
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,
input type='button' value='Button' onclick
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.. interesting the second one
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-Interface-functions---something-stupid-i%27m-sure...-tp18585339s27240p18585339.html
Sent from the jQuery General Discussion mailing list archive
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-Interface
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 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 Fri, Jul 11, 2008 at 5:54 AM, Kevin
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);
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 first tree, click on item 3
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 know how the animation works. :)
thanks
max
On Jun 11, 10:29 am, Max Williams (Brighton)
[EMAIL PROTECTED] wrote:
Hi rolf
yeah, that would do fine
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
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
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
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 refreshes
the tree with an ajax call that returns some json. This is working
fine
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,
:
jQuery.fn.toggleActive = function(e){
$('#iconBox ul.bar li').children(a).removeClass(active);
e.addClass(active);
return false;
};
But I don't know how to call, and how to pass the param.
Any help please?
Thanks in advance.
Max
)
thanks in advance
max
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 that working, you can tackle thetreeviewquestion.
-Mike
From: Max Williams (Brighton)
Hi - first of all this is a plugin-specific question
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
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 jQuery when using with other js
framework and $() is defined.
who can add this and pack
33 matches
Mail list logo