[jQuery] Re: jquery append() works for local but not when loaded from server side? the same html file

2009-07-05 Thread Slowness Chen
by setting a breakpoint, I made sure the "$ ("#show_messages_div").append("test");" line is executed, but nothing happens, but if copy this line and execute it in the console, it works, this is so weird. On Jul 6, 1:16 pm, Slowness Chen wrote: > the html is like the following. it works fine if I

[jQuery] jquery append() works for local but not when loaded from server side? the same html file

2009-07-05 Thread Slowness Chen
the html is like the following. it works fine if I load it as a local html file, but when I load it from a server, it doesn't, I printed $ ("#show_messages_div").html() in console but it showed nothing. it just doesn't make any sense to me. I tried searching around but found nothing. can anybody

[jQuery] Re: Function to parse query string from URL?

2009-07-05 Thread mkmanning
http://plugins.jquery.com/project/parseQuery (minified it's 449 bytes http://plugins.jquery.com/files/jquery.parsequery.min_.js_.txt) On Jul 5, 1:41 pm, candlerb wrote: > Hello, a quick question in case I'm being stupid :-) > > I see that jQuery provides a function to turn an object into a s

[jQuery] Remove an

2009-07-05 Thread expresso
I want to remove the following and any after that which have the class jcarousel-item-placeholder in them I'm not sure how to go about this.

[jQuery] Re: Cleaning up javascript before ajax load

2009-07-05 Thread Veeru
Hi there guys i was thinking of another solution, just watn to get your opinion as well. In my javascript, i was thinking of having everything in a name space, something like this namespace a=function(){ setEvents=function(){ }, unsetEvents=function(){ }, destroy=function(){ } } So ever

[jQuery] Animate-problem with IE

2009-07-05 Thread nappy`
On http://worldfashion.se you'll se what i'm trying to achieve on the three divs if you put your mouse over "brand/blog/event". In Firefox it works perfectly, but in IE i'm getting an annoying space at the bottom. I'm changing the css of the divs using .animate with queue set to false. how do i

[jQuery] Reload events after ajax

2009-07-05 Thread misiek
ents? I mean how to add binds to which is/are returned from Ajax request. I have already tried with $("div.nawi a").change,load ,but without positive results. __ Information from ESET NOD32 Antivirus, version of virus signature database 4219 (20090705) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

[jQuery] IE does not update the DOM

2009-07-05 Thread Nachitox
Hi! I got a problem with IE when adding new events to a link... I have 2 arrays: array_id & array_img that holds the id of the link and the image of the img () for (i = 0; i < cnt; i++) { img = get_image(array_img[i]); $("#i"+array_id[i]).attr("src", "images/"+img); $("#"

[jQuery] Re: plugin blockUI : display error

2009-07-05 Thread boulet sensei
nobody to help me ?

[jQuery] Re: advice to eliminate transition flashes

2009-07-05 Thread waseem sabjee
well your using the slide up and slide down. i suggest making a more custom animation. // slide Up Reworked $(".myobj").animate({ opacity:0, marginTop:-100% }, 500); // slide Down Reworked $(".myobj").animate({ opacity:1, marginTop:0% }, 500); i haven't really tested these but you could play a

[jQuery] Re: advice to eliminate transition flashes

2009-07-05 Thread Charlie
there's nothing in this post to work with to help assist. Posting a live link or a test case in jsbin.com would be best bet for anyone to see what is happening, and how it is created. Blake Senftner wrote: Hi all, I've got a nice little bit of logic for exposing and hiding detail info

[jQuery] Function to parse query string from URL?

2009-07-05 Thread candlerb
Hello, a quick question in case I'm being stupid :-) I see that jQuery provides a function to turn an object into a set of URL query parameters: $.param({foo:"xxx", bar:"yyy"}) => "foo=xxx&bar=yyy" My question is: is there a function which does the opposite, i.e. parsing a query string into

[jQuery] Re: Getting a variable out of a function

2009-07-05 Thread pixelvoodoo
TEST is just some html text to show me something has happened. I am trying to accomplish a drop down menu. All I want is to be able to if menu is active don’t hide menu, if menu is not active but menu link is then don’t hide, if menu link and menu inactive then hide menu. Code below function fc

[jQuery] advice to eliminate transition flashes

2009-07-05 Thread Blake Senftner
Hi all, I've got a nice little bit of logic for exposing and hiding detail information on my pages. It's simply doing slides down/up and fades in/out to achieve appearing and disappearing. However, when there is more than just a few lines of content being revealed, the web page flashes an

[jQuery] Re: Getting a variable out of a function

2009-07-05 Thread pixelvoodoo
Tried your amends but no luck :( still tells be undefined. On Jul 4, 10:49 pm, waseem sabjee wrote: > hi there. > > 1. ensure the script refference to JQuery is correct > > > ensure the path is correct as well as the spelling > > if  your script refference is correct and the errors continue try

[jQuery] Re: , hover & active

2009-07-05 Thread Erik R. Peterson
Thanks. Upgrade didn't work.. I feel I'm so close. Erik On Jul 5, 2009, at 2:23 PM, Charlie wrote: using older version jQuery 1.2.6 see what happens if upgrade http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js ">. another thing to consider is you are using 2 c

[jQuery] Re: , hover & active

using older version jQuery 1.2.6 see what happens if upgrade "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">. another thing to consider is you are using 2 click events on your  links. You have one click event scripted for loading content, another for switching class, mi

[jQuery] Re: , hover & active

I have the fixed version pasted inside the html. I'm still getting a error when I click on the first link: Line 22 is: $(this).addClass("active"); [Exception... "Could not convert JavaScript argument arg 0 [nsIDOMViewCSS.getComputedStyle]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CON

[jQuery] Re: Live() event doesnot refresh the class of the event which was changed dynamically.

Also, be very, very careful with using mouseover, mouseout, or mousemove with live events. The way live events work is to put an event handler on the document and catch events as they bubble up and check them against the selector. So, when using mouseover live events, you are executing a compari

[jQuery] jQuery Fancy Captcha

I'm having some issues with this plugin. First when it displays the images it never has the one you're supposed to drag listed (None, the book is always listed in the place of the one that is supposed to be dragged to the circle), this is in IE. In Firefox it simply does not work, it displays the

[jQuery] Re: Live() event doesnot refresh the class of the event which was changed dynamically.

Pretty sure that you have to create a new .live() event for your expected class. So, you would need to do: $(".newClass").live("mouseover", function(){ //clickable function here.. }); On Jul 5, 12:30 am, Sanam wrote: > Hello, >      I got this problem

[jQuery] Re: , hover & active

you put typo version on page with missing bracket, my bad but I did try to fix it. Throws erreor also in Firebug, if you open Firebug, paste that JS right into console and click run, you can see the active class get added when you do test click. Click another link, see the first "active" disap

[jQuery] Re: , hover & active

Wow.. this one is really kicking me! http://www.enaturalskin.com/needhelp.htm I placed the code and updated my CSS, but no go... So far this is what I have: CSS: #cs_links {width: 146px; float: left; margin:5px 0px 0px 25px} #cs_links a:hover, .active

[jQuery] Re: , hover & active

typo, left out a bracket $("#cs_links a").click(function() {     $(".active").removeClass("active");     $(this).addClass("active");     return false; }); Charlie wrote: >From what I see all your image links do exact same shift of background image on hover and active. You used a different cl

[jQuery] Re: , hover & active

>From what I see all your image links do exact same shift of background image on hover and active. You used a different class for each link to assign indiividual background images, however you don't need to create a new class for each link just to shift the background since they all shift same

[jQuery] Re: ready() to bind post-ajax events

On Jul 4, 12:55 pm, "Josh Nathanson" wrote: > Would there be a racing issue with html() though?  I believe that is not an > asynchronous method, so it would have to complete before the next chained > method. > > -- Josh > > - Original Message - > From: "hedgomatic" > To: "jQuery (Engli

[jQuery] Re: , hover & active

I went ahead and placed the script but still no success. Could my CSS be an issue here? Erik On Jul 5, 2009, at 8:10 AM, waseem sabjee wrote: ok. replace your js with the following (all the js) $(function() { // similar to $(document).read() { var obj = $(".cs_links"

[jQuery] Re: , hover & active

ok. replace your js with the following (all the js) $(function() { // similar to $(document).read() { var obj = $(".cs_links"); var items = $(".cs_contact", obj); items.click(function(e) { e.preventDefault(); var current =

[jQuery] Re: jQuery Countdown and close button

The problem is that the closeButton setup is called immediately it is encountered - before the button itself exists - so no match and nothing happens. You need to move the $('#closeButton').click(function () { ... }); inside the document ready call: $(function () { ...}).

[jQuery] Re: , hover & active

Still doesn't work. Page: http://www.enaturalskin.com/needhelp.htm I placed your script: var obj = $(".cs_links"); var items = $(".cs_contact", obj); $(".cs_contact").click(function() { var current = items.index($(this)); items.removeClass("active"); items.eq(current).addClass("active"); });

[jQuery] how can i make in joomla 1.5 - superfish expand or close on click

hi, i need SPECIFIC guide how to make the superfish vertical menu to expand or close on click and not on hover. has anyone done it? please explain the steps you did.. ty in advanced

[jQuery] ajaxForm and validate plugin

Hi all! I have a form and I want to validate before submit with [1] plugin because nice and good. I want to send the form's data with ajaxForm [2] plugin. The problem is the next: I set the ajaxForm options that before send the data validate. The validate plugin is working fine because I got erro

[jQuery] Re: , hover & active

hi, you can also do something like that for toggle. $(".cs_contact").toggle(function(){ // addClass('active'); },function(){ // removeClass('active'); }); hope it would help you. On Sat, Jul 4, 2009 at 7:47 PM, Erik R. Peterson wrote: > I have two image based

[jQuery] Re: , hover & active

ok i just changed the js for you // this is our object refference point. we only want to effect elements within this object var obj = $(".cs_links"); // we now need a refference point for each item // the , obj means we only want items within our object var items = $(".cs_contact", obj); // clic

[jQuery] Re: live event doesn't work after append()

i think i am having the similar problem as yours. I have used live to make clickable the dynamically added elements as below. $(".addressDiv span").live("mouseover", function(){ //clickable function here.. }); But the problem is that once the dynamically ad

[jQuery] Live() event doesnot refresh the class of the event which was changed dynamically.

Hello, I got this problem with live() event.I have used it as follows. $(".addressDiv span").live("mouseover", function(){ //clickable function here.. }); I have used the live() event to trigger the function on mouseover in the dynamically added