?

Log in

JQUERY - an LJ resource for jquery developers' Journal
 
[Most Recent Entries] [Calendar View] [Friends]

Below are the 6 most recent journal entries recorded in JQUERY - an LJ resource for jquery developers' LiveJournal:

Sunday, October 21st, 2012
5:16 pm
[oscario]
Strange bug
Hello! I'm using jQuery to switch plans on my site. For example, on this page: http://www.vozdvizhenka.info/vozdvizhenskaya/36/
 It works great! Only for some reason, after the third div script code adds quotation marks “” immediately after the active divas and shifts all the way down on the value of the string. Have any suggestions? Why? The page on which it occurs: 
Thank U!
Tuesday, December 13th, 2011
8:17 am
[intotheashtray]
Advice
I'm doing a website for a friend's music store. He's like to have an
amplifier on the page, using knobs as navigation. He'd like the inside
mesh part of the amp to dissolve when a knob is clicked, and for that to
display text and information. My question is this, can this be done
without flash? We're trying to avoid flash so that Iphone and other
smart phones can access it. A friend of mine said Jquery may be the
route to go. Any help would be appreciated. I taught myself HTML years
ago, but have fallen behind when I shifted more towards graphic design.
Below is an example

http://www.flickr.com/photos/keep_it...3509/lightbox/
Wednesday, June 17th, 2009
2:21 am
[dimascii]
 Hi everyone!
I have html document, including:
...
$("a").filter(".parent")
.click(function(){
$('div#display_par').load('getchild.php?c=2');
return false;
})
.end();
 
$("a").filter(".sub_category")
.click(function(){
$('div#display_sub').load('goods.php?c=1');
return false;
})
.end();
  
});
   </script>
</head>
 
  <body>
  <a href="" class="parent">par_cat</a>
 
    <div id="display_par"></div>
    <div id="display_sub"></div>
...
As you can see I have a link on my php script which returns string like: 
print "\t\t<td><a href='' class='".$col_value."'>$col_value</a></td>\n";
"a href='' class='sub_category'>child</a>"
But when I press this link , the action "$("a").filter('.sub_category')" doesn't work! Can anybody say why?
The aim of mine is to create the dynamic menu and it's sub menu, may be i'm totally incorrect with a method I choosed,then how such a thing you do?
Thanks for answers.
Thursday, December 11th, 2008
1:25 pm
[crydown]
jquery + bind('click') + IE + variables scope
Hi everyone! Need help.

I have the button and jquery .bind('click') on it. in bind I call the fucntion which get an object (inputData) as argument and processes jquery POST to controller. JQuery POST has a callback in which I try to deal with this argument (inputData). But only in IE it already has its property "data" = null. Does anybody know what happening? How can I resolve this problem?

If I try to send POST without bind it work correct..


Here is full code and link to example...Collapse )


Thanks

Friday, August 29th, 2008
8:12 am
[lrdjester]
Dynamic error message
OK, I am new to this community, but I have exhausted my other resources.

I have hacked at this code for a good part of three days and I am hitting a wall.

I m rewriting the date validation routines for an aging application as there are several separate stand-alone scripts to do it.

I have things about 95% done, but I am getting hung up on one jQuery call.

The line I am having a problem with is:
$(inDate).siblings('.error').append("The date is a required field.");


The preceding line:
$(inDate).parents('.datebox').css('backgroundColor','red');


Works just fine.

The inDate is a passed div reference for the input box itself.

A sample control is as follows:

(div class="datebox" id="lte")(div class="error")(/div)
Date prior to or equal to today: (input type="text" name="datebox1" id="datebox1" size="12" /)(br /)
(/div)


Any ideas?
Monday, September 3rd, 2007
11:44 pm
[amisplacedphile]
jQuery - my current code
$(document).ready(function() {
$('div.formHelp > div').hide();
$('div.formHelp > img').click(function() {
$(this).next('div').toggle('normal');
if
($(this).attr("src","/images/css/formHintButton.gif"))
($(this).attr("src","/images/css/formHintButtonSelected.gif"))
else
($(this).attr("src","/images/css/formHintButtonSelected.gif"))
($(this).attr("src","/images/css/formHintButton.gif"))
return false;
});
});

Basically, this will show a hidden div and swap the image - unfortunately, it still doesn't swap the image BACK. I'm still working on it...
Jquery: Write less, do more   About LiveJournal.com