hsfrey ha scritto:
In this line of code, I'm looking for a div whose Id is in variable
b1, and which has an input button field whose value is Show or
Hide, and this line is to toggle those values.
$(([id$=+b1+]) input).attr(value, attr(value)
==Hide?Show:Hide);
This doesn't work, and Firebug
Should I take this to mean no one's quite sure?
I know it's kinda rude of me to throw a chunk of code up like that,
but I'm pulling my (prematurely gray) hair out.
On Oct 5, 2:09 pm, Fluffica thomas.james.winstan...@googlemail.com
wrote:
Good Morning/Afternoon (depending where you are)
I
Hi
Can anyone help? I'm trying to toggle a class on the span .arrow when
you click .msg_head. I have several classes of .arrow on the page and
only want to toggle the class of the span within the element i'm
clicking. This is my code - but it doesn't work... any advice?
Thanks
Craig
UPDATE:
Within the function, I get the parent div elements ID.
var divId = $(this).parents(“div[id^=tabs-]”).attr(“id”);
Then I thought I could use this ID of that div, to select the link
that has that ID as an anchor? But this last part just returns [Object
object]?
alert($(#tabs ul li
var divId = $(this).parents(div[id^=tabs-]).attr(id);
var sTag = inner tab: + $(#tabs ul li a[href=#+ divId
+]).text
();
sTag = sTag + \nmain tab: + ui.tab.textContent;
alert(sTag);
On 7 Oct, 10:26, Dylan dylan.h...@gmail.com
Thanks alex, it works.
On Wed, Oct 7, 2009 at 7:20 AM, alexbodn.gro...@gmail.com wrote:
please try cacheLength=0 arg to autocomplete.
Thanks Liam Potter...
I want this becoz my case in Drupal case... :D
If u know about primary link drupal based on link...
So I override that link became image link based on title link...
If I use css... I must add some line css for that link when I add some
link in Drupal
On Oct 6, 5:10 pm,
I have just updated my code and still no luck :(
Here is my new code... can anyone help?
Thanks, Craig
JS
script type=text/javascript
$(document).ready(function(){
$('.expander_content').hide();
$('.expander h3').click(function () {
I am looking at the auto-complete demo page, (
http://view.jquery.com/trunk/plugins/autocomplete/demo/ ) on the demo
of remote images.
the Javascript for that is
$(#imageSearch).autocomplete(images.php, {
width: 320,
max: 4,
highlight: false,
Hi all,
I would like to use the remote method to do a validation of user data
but I cannot configure the server-side script to simply return true
or false. It can only return a JSON object like {result:true} or
{result:false}. How do I have to configure the remote method to
handle that?
I tried
div
ul id=sortable
li id=1span/span
Item1
input type=checkbox id=chk1 value=1 /img
src=images/close.gif
onclick=ClearSearchDataOnClose1() /
/li
li id=2span/span
Item 2
Hi friends.
Is there any plugin for jQuery which could do some thing the same as
ExtJsGuiDesigner?
I mean making a Gui(forms, blocks, ...) and then saving the output in
JSON or XML format,
and using that saved files in our site.
Any links or samples? pls help me. tnx.
best wishes.
It seems straight forward but I still need some advice. I have this so
far just to see if I can split the array twice...but it is not working
$(document).ready(function() {
$(#GetData).click(function() {
var string = $('#PartNum').val().replace(/(\r\n)/g, ~);
var group = string.split('~');
Hi all,
I'm having trouble paging from six to six the search results coming
from a webservice, hope someone can help :
Let's see it with an example:
The variable that stores the number of elements of the search results
array is called contentLenght.
Let's say that contentLenght equals 9.
I found out there is a formatMatch function.
formatMatch: function(row) { return row.N; }
it's just not in the documentation
On Oct 7, 10:50 am, Bjarki bjar...@gmail.com wrote:
I am looking at the auto-complete demo page,
(http://view.jquery.com/trunk/plugins/autocomplete/demo/) on the demo
Google has a great API for feeds that doesn't require the proxy php you
are using. There are also several jQuery plugins wrapping the google
feed API
http://code.google.com/apis/ajaxfeeds/
NRutman wrote:
MorningZ, done that. My approach is exactly what some other folks are
using. I'm
I believe I've found an acceptable solution that doesn't require
hacking the plugin itself.
I hope I haven't overlooked any unwanted side effects now.
I've instantiated validate like this now, essentially overwriting the
onfocusout handler:
$(myform)
.validate(
onfocusout:
Hi there,
Firstly this forum has been always been so good that's I've never actually
needed to start a thread before because the old threads are so useful!
br /
Now though, i'm stuck!
br /br /
I have ajax which checks a login formbr /
on success I want to create a div and populate it with the
Hi guys, got stuck and looking for help.
I CSSed haccordion to become a vertical slide-out gallery menu, and
needed a way to hide the expanded list (.content) when item is clicked
(when user chooses a photo, see URL below). That was no big deal, just
used JS set the .content width to 0px just
Have you tried .addClass() and .removeClass() and setting up a different
action for each, thus simulating toggle?
craigeves wrote:
Hi
Can anyone help? I'm trying to toggle a class on the span .arrow when
you click .msg_head. I have several classes of .arrow on the page and
only
it's your use of next() that's incorrect. You have 2 cases of HTML now
so explanation a little trickier. Original html .arrow was a descendant
not a sibling, next() looks for siblings so in 1st case changing to
find() or children() would work
Second case HTML, next looks down the DOM and
Hi Everyone,
I am using Eric Martains Simple Modal dialog box. Here is my
problem. I have a page, (which we will call page A) that contains an
iframe (which we will call page B). I can modify page B, the iframe,
but I can not modify page A, the containing page.
I would like to display the
Hi there, I'm fumbling through here so I apologize in advance for
being such a newby to javascripts and jquery. I spent the entire day
yesterday getting jscrollpane to work on a site I've been working on
and was SO excited to see that it was working beautifully in firefox
this morning after some
Hi,
If I am doing this:
alert($(.ivts_thead).find(tr:first).find(td).length);
alert($(.ivts_thead tr:first td).length);
I get in both cases the same result, the expected elements are in my
object, but in the second case, I get a Firebug warning saying
Unknown pseudo-calls or pseudo-element
Sorry, the message is Unknown pseudo-class or pseudo-element
'first'.
Are the Simple Modal function and jQuery also in frame B?
If yes, I am not sure, and that sounds like a bad idea...
If not, you should be able to do something like this:
var t = top.window;
var $d = t.$(document.body);
$d.find(#myElement).modal();
On Oct 7, 2:36 pm, Yeuker yeu...@gmail.com
If you only want to force only one checkbox to be checked at any given time,
why not just use radio inputs?
Rick
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of OOps
Sent: Wednesday, October 07, 2009 2:48 AM
To: jQuery (English)
Hey there,
I don't think it has anything to do with the javascript here, it's
your CSS or HTML structure:
you've got DIV and P on the same level, and you must miss some float
or overflow property on some of your DIV.
Basically, your div with the jScrollPaneContainer class is not
pushed below by
A jQuery factory for creating sprites from images. Each sprite created
from a Sprite Factory is assumed to be the same size
Features
* Works from a rectuangluar grid of sprites.
* Fast, good for rendering large numbers of similar sprites
* Preloading CSS for large images (will add
Hi , please whymy question is not answer ?
something is not clear ? thanks.
you must have asked your question outside of normal support hours.
have you looked into this plugin?
http://abeautifulsite.net/notebook_files/80/demo/jqueryContextMenu.html
2009/10/7 donovan78 djalmabri...@gmail.com
Hi , please whymy question is not answer ?
something is
Bump?
On Oct 5, 3:19 pm, Gremlyn1 greml...@gmail.com wrote:
Sure, as I said I have the following function in place:
$j(document).ready(function() {
$j('#answerbox').hide();
$j('a.faq').click(function() {
var faq_id = $j(this).attr('id');
$j('#faq' +
http://autocompleter.mwierda.blackpearl.minus3.nl/demo/table.html
type in 'c' for a grouped result, using a TABLE for the layout.
its mostly the fillList that's altered, see:
http://autocompleter.mwierda.blackpearl.minus3.nl/jquery.autocomplete.js
please let me know if this was helpful or if
I don't have time to put a real test-case together right now, but just
on the off chance that someone's experienced the same class of
problem:
I'm using jquerycyclelite (http://malsup.com/jquery/cycle/lite/) to
animate a set of linked images. An ancestor element has padding, but
the images seem
Hello,
I am working with DotNetNuke and the Accordion widget from JQuery.
The problem is that the DNN-page is loaded in an IFrame so i cannot
acces the accordion.
div class=dvFrame
iframe class=IFrame marginheight=0 marginwidth=0
frameborder=0 runat=server id=frmDNN /iframe
/div
I'm trying to use the plugin with generated json, but the parse isn't
going very well... My json, that is being produced is something like
that:
[ { id: 9887, nome: Salvador, estado: BA }, { id:
9890, nome: Salvaterra, estado: PA }, { id: 9888,
nome: Salvador das Missões, estado: RS }, { id:
Hi all, I hope you will be able to help me out.
I was wondering if there is a way to execute a function after every
animation step WITHOUT modifying jQuery core.
Thanks in advance!
Ramon
I know this might have been asked before but I would like a final and
complete answer as it pertains to my situation.. I have a commercial
webapp that I will be selling I would like to include the jquery
library in my web app under the MIT License. I just wanted to verify
that jquery under the
Hi - for a project I'm working on I want to make a video which will
close itself when playback is complete.
The idea is - on loading the page a container div will appear and auto-
play the video, then when playback is complete the video will be
unloaded and the container will disappear. Invoking
Very odd. Cleared cache and such when testing. Doesn't work in 1.3.2
does work in 1.2.6 Good news is I don't need 1.3.2 so problem is
solved more or less. If i run into it on any other site I may have to
investigate further. Thanks for looking at it.
On Oct 6, 2:51 pm, Giovanni Battista
Unfortunately yes, both jquery and simplemodal are in the iframe b.
On Oct 7, 9:56 am, BaBna thomas.na...@gmail.com wrote:
Are the Simple Modal function and jQuery also in frame B?
If yes, I am not sure, and that sounds like a bad idea...
If not, you should be able to do something like this:
Hi all,
The code below is producing this:
div id=searchResults
li class=searchResultsItemh4Title/h4plalala/p/li
li class=searchResultsItemh4Title/h4plalala/p/li
li class=searchResultsItemh4Title/h4plalala/p/li
li class=searchResultsItemh4Title/h4plalala/p/li
li
In the second argument to .animate() you can specify a step callback, like
so
$(#myDiv).width(100);
$(#myDiv).animate({ width: 500px }, {
duration: 500,
step: function(val, opt) {
console.log(val, opt)
}
});
The val in above will go from 100 to 500, and opt will contain among others,
a
This is a request for help from people who have Google Gears
installed. Could you try the following demo:
http://www.appelsiini.net/demo/gears_upload/demo.html
Just drag and drop image or multiple images to the page and they are
uploaded. I try to figure out if there are any browsers with
Hi, i resolved the probleam, actually, i was looking for in the wrong place.
I had to use the parse function to solve the problem when i get json from
the server. Thanks!
On Wed, Oct 7, 2009 at 11:22 AM, Alberto alots@gmail.com wrote:
I'm trying to use the plugin with generated json, but
Thanks for the help! I nailed it with the following:
$('.todo_item h2').live('click', function() {
clicks++;
x = $(this);
if (clicks == 1) singleClick = setTimeout(function() { clicks
= 0; showExtra(x); }, 300);
if (clicks == 2) { clearTimeout(singleClick);
To MorningZ:
Oh please, rude? Rude is speaking with no context.
There was no ill will, in fact if you actually read posts this group,
a question was asked to the community regarding besides a mouse
listener how to get around this problem in IE in relation to
potenially editing the code.
Bug in
Hi,
Using Firefox 3.5.3 (and firebug) I run the Ajax code below locally
(i.e. not on the same domain as the Ajax URL). Unlike in IE, this code
is not working in Firefox due to cross-domain Ajax restrictions. Of
course, as soon as I upload the code to my PHP server on the same
domain it runs
I encountered an unusual problem. I have a ajax setup. And clicking a
specified image will call this ajax function.
It goes something like:
jQuery.ajaxSetup({
'beforeSend': function(xhr) {xhr.setRequestHeader(Accept,text/
javascript)}
})
jQuery.fn.checkmarkClickWithAjax = function(){
I've been using the jquery autocomplete plugin by Jorn Zaefferer
(thanks for the nice work).
My problem is that results are returned in a class=ac_results, and
I'd like to edit this class name at will with the initialization of
every instances so I can put them into different groups for styling
Thanks so much BaBna. I think you're right about it not having
anything to do with the javascript itself. I probably should be asking
this in a general web design forum except for that I've never had
issues with this shifting (at least not nearly to this degree) on
sites that haven't included the
I forgot to include the link again, just so it's handy if anyone can
take a look: http://www.auntiepea.com/ew/OldFarm/index.html
I've set up a sample page on JS Bin:
http://jsbin.com/oqeco
Check the source for the code.
On Oct 7, 2:38 am, robert...@gmail.com robert...@gmail.com wrote:
It seems straight forward but I still need some advice. I have this so
far just to see if I can split the array twice...but it is not
Update. I figured out which area was causing the issues. Zeroed out
the margins on the main content area and used padding to place the
content where I wanted it. Worked like a charm.
Thanks again BaBna for headin' me in the right direction on this.
On Oct 7, 11:04 am, BaBna
here is my code.
$(#ddl_customer).change(function(){
cuslist = $(#ddl_customer).val().join(, );
alert(cuslist);
});
$(#ddl_customer).selectChain({
Hi y'all,
Please look at this code:
$('ul#navigation li ul lia').click(function(){
var active = $(this).text();
$('#artcontent p').empty();
$.ajax({
type: 'POST',
url: 'homepage/readarticle',
data: $(active).serialize(),
Thank you so much, this is just what I needed :)
Ramon
On 7 oct, 19:40, Richard D. Worth rdwo...@gmail.com wrote:
In the second argument to .animate() you can specify a step callback, like
so
$(#myDiv).width(100);
$(#myDiv).animate({ width: 500px }, {
duration: 500,
step:
$(active).serialize() will not do anything to a text element, only
input elements.
You'd probably want to change your ajax data option to something like:
data: { article:active }
where article will become your field name in your script.
active is your Javascript variable (var active =
I am creating an array wherein I am (succesfully) grabbing all child
images based on a parent node and source file name:
var cimage = globals.ref.parent().find('img[src*=blue]:not(:first)')
globals.childImg = cimage;
There are 8 items coming back in the array (there are 8 images). I
want to be
Hello,
I've started to use this plugin within an application I'm building,
but I've noticed some restrictions in usage like:
1. How to remove the label? I just wanted to be able to highlight
the field that is a required or something, and no label. For this I've
create a new boolean option named
I am using superfish and I am wondering how I can go about changing
the hover event to click so that when people hover over the links it
doesn't do anything until they click them.
Thanks,
Spencer
Hello,
i am trying to use cluetip to show events schedule when the mouse is
over a datepicker date.
I found this way :
...
beforeShowDay: function(date) {
return [dates[date], (dates[date]) ? 'info_evenement' : '',
information_du_jour];
},
Hey thanks for the reply,
the group lives!!!
I did that and still nothing. I am using codeigniter and I would like
to paste the code incase it sheds more light and maybe a solution?
thanks here it is:
MODEL-
function displayby_name($name) { $this-db-select
$this-input-post('active')
Is active the right variable? Or did you use article like I put in
to my example?
This is a jQuery group meant for jQuery questions, so I'm trying to
help on the jQuery part, mainly.
Try using Firebug for Firefox to debug the AJAX request, and determine
whether the
I'd like to be able to set the size of a jQuery dialog dynamically
when I call it based on the target to be shown. I was considering
adding invalid attributes like the following... where edit_width and
edit_height are parsed and passed right before opening the dialog.
a href=HTMLToOpenInDialog
I am experiencing unexpected behavior using $(document).ready() on a
page where I inject jQuery after the page has loaded and then attach
listeners to the ready event. The ready() event is never called using
Firefox and Safari however it is called using IE.
Is this a jQuery bug? Is it working as
Hi,
I posted a message a while back asking about this:
SWF animate() bug? Reloads swf. :(
http://snipurl.com/sdz0f
But for some reason I can only reply to myself for those messages...
Must be because the thread is old.
Anyway, someone has posted a hackish fix here:
Related to this topic -- I have a page that:
* Has a button whose background image will change upon rollover (done
in CSS, using :hover)
* Preloads the rollover image for the button above (done using a
simple jQuery script)
The page can be found at http://test.happypod.com/preloadimage/
The
Related to this topic -- I have a page that:
* Has a button whose background image will change upon rollover (done
in CSS, using :hover)
* Preloads the rollover image for the button above (done using a
simple jQuery script)
The page can be found at http://test.happypod.com/preloadimage/
The
I have a page that:
* Has a button whose background image will change upon rollover (done
in CSS, using :hover)
* Preloads the rollover image for the button above (done using a
simple jQuery script)
The page can be found at http://test.happypod.com/preloadimage/
The part that I don't quite
Yes, using a sprite can easily remedy the flickering problem during
rollover. Unfortunately, it won't work in IE6 if you try to position a
sprite PNG file that contains transparency -- this is a separate topic
but you generally need to hack the transparent png file in order to
keep the
Hello Miguel,
for part 3, you can use errorPlacement like this.
errorPlacement: function(error, element) {
if (element.attr('id') === yourItem.attr('id')) {
// insert the error after a given Item
error.insertAfter(givenItem);
While i don't know the answer to your strange issue... as
document.ready fires when, well, when the document is ready i
do wonder: why the complexity?
You aren't gaining anything except on the first load of the library
(and then the browser caches it), heck even that first load is
probably
I put together that example because it is the most simple piece of
code I could create to reproduce the problem. My real process is
actually more complicated and there are real gains to be had for using
document.ready() in this way. Consider the following two cases:
1. If instead of dynamically
You can use the metadata plugin (
http://plugins.jquery.com/project/metadata) to store and retreive the
values like so:
a href=http://some/url/to/open/in/dialog; class=DialogEdit
{width:500,height:250}link text/a
Then something like this should do:
$('.DialogEdit').click(function() {
var
Hi
Hoping someone can help me.
I have a class for my submit buttons.
.submit {
font-size:11px;
font-weight:bold;
color:#fff;
border:1px solid #878787;
background-color:#878787;
cursor:pointer;
}
.submitHover {
font-size:11px;
Sorry forgot to add
i also have this in my jquery which i don't think it would affect the
input as they are images.
$('input[type=image]').hover(
function () { $(this).attr(src, $(this).attr(src).split('-
off').join('-on')); },
function () {
Hi
Does anyone know of an easy lightbox i can add to my ecommerce site?
i'd liek to get rid of the prototype one and replace it with jquery.
Thanks
Jess
Is there such a thing as a jquery ui plugin for png?
Jess
I found the answer to my own question.
To overcome this problem, I have to use the .live method to bind
current and future elements on the page.
I made the following change to my function to use the .live method.:
jQuery.fn.checkmarkClickWithAjax = function(){
this.live(click,function(){
I am having a bit of trouble with this one. Thanks for your help. I
could get it working if the parent is a div but not if it's an li.
Here's my html:
ul class=member-table
li
divstrongWhy I am involved:/strong/div
div class=answer{tag_why are you involved?}/div
/li
You've got a super serious flaw in your logic
1) It appears you have this sitting on the page... no JS has been
loaded or executed at this point
input type=button onClick=loadjquery() value=Click to test/
2) someone clicks the button, you call loadjquery
3) in there, you seemingly want to
On Oct 8, 10:04 am, Ryan Crumley crum...@gmail.com wrote:
I am experiencing unexpected behavior using $(document).ready() on a
page where I inject jQuery after the page has loaded and then attach
listeners to the ready event. The ready() event is never called using
Firefox and Safari
83 matches
Mail list logo