I've worked through a sample using an indexing "hash" object. (is there
a better term for this sort of thing?). It seems this is working out
rather well.
Basically I have code that looks something like this:
var index = {};
for (var x=0; x < json.length; x++) {
var curItem = json[x];
i
just an update, managed to make it work, just changed the selectors to
the second tier child elements in line 51
hasUl = function(){ return $.superfish.op.oldJquery ? 'li
li[ul]' : 'li li:has(ul)'; };
I still have a problem with the position of the third tier drop downs
in Opera 9, but I have a
Please pardon my poor understanding of javascript basics:
I've been using the following method to create an object array of
variables:
$.searchfunction = {
searchbox: $('#searchinput'),
url: 'http://localhost',
targetdiv: $('#results'),
On Apr 3, 2008, at 5:04 PM, SnapShot wrote:
I'm using slideToggle to show and hide a list of images on my page.
When slideToggle gets called, if the browser window is scrolled down
at all it immediately scrolls back to the top of the page.
Any thoughts?
I'm guessing that you're clicking on
Perfect. Thank You!
On Apr 3, 4:52 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Kyle Holder schrieb:> Hi,
>
> > I have a page with about 30 instances of the tool tip object on them.
> > These are dynamically updated divs. In order to change the text
> > inside the tooltip, you need to re-ini
i tend to think it's one of these very application specific errors
that requires all the bizarre permutations, rather than just sample
code...
--adam
On Apr 3, 3:40 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> That's weird. I used almost exactly your code with the latest SVN and
> I get
i will give that a shot. thanks!
On Apr 3, 1:48 pm, "Rick Faircloth" <[EMAIL PROTECTED]> wrote:
> Don't know if this will help your situation or not, but I had some
> flickering problem with a simple slide toggle, which sounds similar
> to what you're describing.
>
> The solution was to set a mi
Hey all,
I've just released getPlugin, a plugin that aims to minimise loading/
rendering times by keeping unnecessary scripts and styles out of the
DOM.
What it does is basically check whether or not a specific plugin/
script/style should be imported, and then imports it. The concept is
similar t
That was just a simple example. Richard made a good point though. It's
also about having "unobtrusive javascript."
John Resig made the point that the doc ready is supposed to help the user
not experience weird display issues vs doing doc onload (things appearing on
load and then disappearing).
Sorry, nevermind about the metadata. I just noticed it is optional.
New questionis it possible to display the current value with split
stars but only allow whole star voting? In other words, show 3 and
3/4ths stars highlighted and the remainder portion grayed out but on
mouseover show a full
Hello,
So I have this table where the is initially blank. Then when
the document is ready I call a function that runs an AJAX query for
the table content.
The initial content is sorted awesomely! But when I call my function
again with different parameters to get new content, things start to g
I'm trying to do the following:
$(document).ready(function(){
$.fn.toggleCSS = function(property,value) {
return this.each(function(){
var p = $(this).css(property);
if(p) { $(this).css(property,""); } else { $
(this).css(pr
Kyle Holder schrieb:
Hi,
I have a page with about 30 instances of the tool tip object on them.
These are dynamically updated divs. In order to change the text
inside the tooltip, you need to re-initialize them by calling $
("#object").tooltip(). This works perfectly. However, when I do that
t
$("tr.rowData :text, tr.rowData textarea").blur(function(){
/* Callback goes here */
});
On Thu, Apr 3, 2008 at 4:58 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Within my TR of class "rowData", how do I write a jquery onblur
> handler for every input field of type = "text" o
I think it's:
$("input[type=input]", $(".rowData")).blur( ... )
In other words: within the context of the set of "rowData" element,
select the input of type "text".
On Apr 3, 4:58 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Within my TR of class "rowData", how do I write a jqu
I'm using slideToggle to show and hide a list of images on my page.
When slideToggle gets called, if the browser window is scrolled down
at all it immediately scrolls back to the top of the page.
Any thoughts?
Hi,
Within my TR of class "rowData", how do I write a jquery onblur
handler for every input field of type = "text" or every field that is
a TEXTAREA?
Thanks, - Dave
Don't know if this will help your situation or not, but I had some
flickering problem with a simple slide toggle, which sounds similar
to what you're describing.
The solution was to set a min-height for the container of the div's.
Give height declaration a try and see if that helps.
Rick
> ---
I'm trying to use jeditable in jqmodal box. When I load the box for
the first time everything works fine but if i close the box and open
it again jeditable not working I need to reload the page and open
jqmodal box again...
Hi,
I have a page with about 30 instances of the tool tip object on them.
These are dynamically updated divs. In order to change the text
inside the tooltip, you need to re-initialize them by calling $
("#object").tooltip(). This works perfectly. However, when I do that
too many times (the numb
Thanks, that's perfect.
On Apr 3, 9:10 am, Qutoz <[EMAIL PROTECTED]> wrote:
> Hi Pete,
> I made an example, please review it and tell me if it doesn't match
> your needs:
>
>
>
>
>
>
> $(document).ready(function() {
> var newtable = $("#mytable").clone(true);
> newtable.attr("id","mytable2"
That's weird. I used almost exactly your code with the latest SVN and
I get no errors. Could it be to do with what's in the loaded file?
Mine was just a simple php echo. Here's my code:
1
2
clickMe
function setupSortable() {
$('#myid').sortable();
}
$(function() {
So I have a field on the page that may or may not be required, depending on
what the user wants to do. Once I need the field to be required, I aplly
validate() on the form and its done. But, once I want to make the field
not-required again, I run into problems.
Here's some example code with mark
Check out the jquery.form plugin found here: http://malsup.com/jquery/form/.
It has form serialization methods built in. I think it may be exactly
what you need.
On Apr 3, 10:45 am, Matt Wilson <[EMAIL PROTECTED]> wrote:
> I have a form with a bunch of checkboxes. They all have the same
> na
Any way to get around the need for the metadata plugin? I am trying to
keep included scripts light.
On Mar 20, 3:23 pm, "Diego A." <[EMAIL PROTECTED]> wrote:
> For reference: The issue was relative positioning in IE.
> I worked around it with a negative margin.
>
> On Mar 20, 6:29 pm, "Diego A."
I finally got the superfish menu system for jQuery working in my
application (after some idiot moves on my part). The problem now is
that the menu system, which is located in my header, is not displaying
on top of the page but instead the content of my main content area.
On another note I'm usin
I am experiencing flickering side effect in IE 7 when running this
pretty simple show/hide div script. i'm hovering over an element and
moving the mouse into the div that expands during the show state. The
flicker side effect is noticed when the mouse moves from the navTabId
to the dropDownId di
thank you
On Apr 3, 4:22 pm, Jan Sorgalla <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On 3 Apr., 13:09, tetris <[EMAIL PROTECTED]> wrote:
>
> > i am experiencing this under safari: if i do resize my browser
> > window , the carousel gets some very weird behavior, anyone
> > experiencing this?
>
> yes, i
i know that theoretically i should be using .sortable("refresh") in
this scenario but
a) it's never worked for me, haven't tried changing it in a few weeks
though.
b) this same issue happens with other plugins too...tablesorter,
pretty much anything that happens in this sequence..
--adam
On Apr
> I have added a js file in my html file.
>
>
> I want to remove the script from my file using jQuery.
> I have tried using the following
> jQuery('script[src="test.js"]').remove();
> But the script is not getting removed.
Do you want to remove the script, or the functions and variables
Jason,
>I'm using jdMenu for a new project and came across a problem. Some of my
>menus are so long that they run off the page. Is there any way of making
>the menu spill over into a second column. If that can't be done, can it
>cut
>off and allow people to scroll through the listings?
>
>How
On Thu, Apr 3, 2008 at 12:09 PM, Jay Salvat <[EMAIL PROTECTED]> wrote:
>
> I was certainly trapped with a specific advanced need the day i
> decided switching the ID was necessary.
> Now, i can't really remember why it was so important at the time. I
> was certainly wrong on that one.
> I will run
Hi,
I'm using jdMenu for a new project and came across a problem. Some of my
menus are so long that they run off the page. Is there any way of making
the menu spill over into a second column. If that can't be done, can it cut
off and allow people to scroll through the listings?
How should I
Bumping this one back up...if any one has any input, or even an idea
of where to start, please jump in!
On Apr 2, 7:04 pm, OhNoMrBill <[EMAIL PROTECTED]> wrote:
> I have reduced the issue to a class named itemHeader. This class is
> assigned to the sortable's handle param.
>
> It is only this cla
this is a plea for help
I'm stuck... and it might be simple but... I'm stuck.
http://www.eastcoastgolfsales.com/products/ladies/productlistsgloves_mre.cfm?CategoryID=20
Love the pagination plugin, and thought I had it made, till the client
pointed out that the pagination is not creating more th
hmmm,
my problem isn't that bound events aren't there after elements are
ajaxed in - i understand that issue. mine is like this:
let's say i have the following
-
1
2
clickMe
function setupSortable() {
$('#myid').sortable();
});
$(function() {
setupSortable();
Hi Marc - I couldn't agree more, the functionality & range of options
for DatePicker is incredible, especially considering how complicated a
calendar app is. I should have mentioned that in my first post.
Ironically in looking around for other DatePicker styles, I ran across
your blog entry about
We'd really need to see your HTML code, but if you want to get the parent of
an object.
Let's say you have HTML code like this:
this is my paragraph
You want to get the immediate parent of all P tags:
$('p').parent();
or you want to get a div that is a par
I can't seem to find any talk/reference on this exact error, but in
the jQuery core file at line 1298 (inside the "attr" function)
the line
elem[ name ] = value;
was throwing an error in IE7, preventing some other script-
If you don't have any luck with jqModal, try the Impromptu plugin. I
believe it serves the same purpose as jqModal & rounded corners are
easy:
$.prompt( ).children('#jqi').corner();
or if you use the plugin's "prefix" parameter, change the ID selector
above to match your prefix, or use:
$.pr
Hi David,
Before letting markItUp! go in the wild as an opensource project, I
used it for monthes in my personnal needs.I have implemented it in
many projects and moving the ID to the container saved me lot of time
in some advanced implementations.
It's mostly matter of CSS styling/conflicts and
timothytoe schrieb:
I've been trying a few different versions of this plug-in. It's nice,
but the very first thing I have to do is override the colors.
.ac_over {
background-color: #fed;
What would the performance considerations be between:
showHide(".showhide");
function showHide(elem){}
and
$(".showhide").showHide();
$.fn.showHide= function(){}
Thanks,
Dan.
--
Daniel Eastwell
Portfolio and articles:
http://www.thoughtballoon.co.uk
Blog:
http://www.thoughtballoon.co.uk/bl
> I'm pulling the content for the cycle plugin dynamically. Frequently
> it will be rendered vertically, before constructing the actual
> horizontal carousel.
The vertical rendering is how things look on your page before Cycle
has a chance to do its thing. You can fix this by using css to hid
Hello, i've been writing javascript for a while now. So, as you can
imagine I am struggling just a bit. I browsed a few of the beginner
tutorials and didn't see what I was looking for. I understand that
methods like .is or .hide are special to the jquery library and you
can't access these using
Hi all,
Check out http://pricebeep.co.uk.
I'm pulling the content for the cycle plugin dynamically. Frequently
it will be rendered vertically, before constructing the actual
horizontal carousel.
I think I've worn my brain out over the last month or so getting the
site up and running, so can any
Tsk, I should also answer the question fully. The affected content is:
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of GianCarlo Mingati
Sent: 03 April 2008 14:02
To: jQuery (English)
Subject: [jQuery] Re: hide() and floating elements leaves whi
Here's the relevant snippet. It uses the value of a checkbox to show or
hide content based on the class name given to a div around said content.
iFilter is a numerical value based on bit addition. Or something.
iGroups is the number of filterable groups I have (in this case,
currently 2).
// perf
I am trying to run the following code
$("#facetpicker select").livequery('change',function() {
$("#solutions, #facetpicker").fadeOut("slow");
alert('go');
$.facetSelected(this.name,this.value,0,-1);
$("#solutions, #facetpicker").fadeI
Thanks Karl
So am I "storing" data wrongly - whats the easiest structure to
display things, be semantically correct, and search for name/value
pairs ? For me DL's seemed the natural way but perhaps I need to put
the name and value into attributes of something, then display them
separately ?
Kar
Hi Pete,
I made an example, please review it and tell me if it doesn't match
your needs:
$(document).ready(function() {
var newtable = $("#mytable").clone(true);
newtable.attr("id","mytable2");
newtable.insertAfter("#mytable");
$("#mytable2 > tbody > tr:not(#first)").remove();
});
Hi hedgomatic,
I just noticed something about your code,
in the highlighted line, I think it should be
elements.push(wordsSelected+',');
instead of
Array.push(wordsSelected+',');
I tried the code like that and it works for me.
Thanks
Qutoz.
$(".button").click(function() {
elements
Tsk, I should also answer the question fully. The affected content is:
Link
Richard
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of GianCarlo Mingati
Sent: 03 April 2008 14:02
To: jQuery (English)
Subject: [jQuery] Re: hide() and floating eleme
On Mar 26, 11:37 am, "Olivier Percebois-Garve" <[EMAIL PROTECTED]>
wrote:
> Maye you can use setInterval and periodically test if your elem is visible ?
>
Thanks! this is exactly what I did eventually.
Here's the code, I hope its sane:
http://cvs.drupal.org/viewvc.py/drupal/contributions/module
I have a form with a bunch of checkboxes. They all have the same
name and different values. This form posts to a page that does a bunch
a stuff based on the checked checkboxes.
I want to change the form to use AJAX to update a div on the page. I
need help figuring out how to post the form with
Hi!
I am trying to fade a background-image with jquery which works fine on
a fast computer. But since not everybody has a fast machine, I'm
searching for a way to improve the smoothness of my animation because
it buckles on slow computers. This is my code so far:
HTML:
jQuery:
$(document).rea
pfff. fixed :]
$(".button").click(function() {
var command = $(this).attr("ID");
elements = new Array();
$(".elementSelected").each(function() {
var wordsSelected = $(this).html();
elements.push(words
I've used an object to 'cache' jquery instances. Works great.
I've also used id strings to pack data. like where
the 'x' is because id's shouldn't be numeric. And the other numbers
might be your employee id or task id. I find this id method ugly, and
would rather use a javascript object (or "has
You're pushing the value from each div into a generic array instead of
the "elements" array, and adding a comma after each item as if you are
concatenating a string. Also, you have a dollar sign in front of your
alert().
Try something like this instead:
$('.button').click(function(){
var
Use either
.bind("click", function() { ...
http://docs.jquery.com/Events/bind#typedatafn
or
.click(function() { ...
http://docs.jquery.com/Events/click#fn
rather than setting the onclick attr
- Richard
Richard D. Worth
http://rdworth.org/
On Thu, Apr 3, 2008 at 7:36 AM, Bruce MacKay <[EMAIL
wick, I made that default skin and there is no offense taken. The
idea behind the default skin was to not use images, allowing people to
make up their own as easy as possible. I've seen some AMAZING styles
for UI Datepicker, but unfortunately they were proprietary (someone
paid them and owns rig
Hi,
On 3 Apr., 13:09, tetris <[EMAIL PROTECTED]> wrote:
> i am experiencing this under safari: if i do resize my browser
> window , the carousel gets some very weird behavior, anyone
> experiencing this?
yes, i'm also experiencing weird bahaviours in safari. I'm not sure if
thats a jquery.ready(
My guess would be Progressive Enhancement. If css were available, but not
javascript, the only way to get that element to show would be to turn off
css (and a user wouldn't know to do this). This way, the element is only
hidden (via javascript) if there's also a way to show it again (via
javascript
Jay,
I'd be interested to hear some specifics on why you found it necessary to
remove a unique identifier from an element, and put that on a different
element. That's changing the identity and type of that element. Quite
frankly, this is obtrusive, and surprising. Maybe there's an option you
haven
Hi Jay.
Am 03.04.2008 um 11:58 schrieb Jay Salvat:
[...]
I hope my explainations and my english will be clear enough to help
you.
Many thanks for your detail description! I will work on these
solutions and will post the result here.
Again, many thanks.
bye
Olaf
--
Olaf Gleba : creatic
Ciao Richard,
i'm glad you get the solution.
could you show us the piece of code you used?
i don't understand (and i'm always curious to 'see') what you click to
remove the LI.
Is it a LI with an A and an IMG?
If so, when you remove() an element don't you 'destroy' it? How do you
pass it back as t
Thanks all for your solution.
Just to wrap up the point that Karl raised about
the $(this).attr('checked', true) part - in my earlier attempts I
didn't have that in, but I found that clicking the check box wouldn't
check/uncheck it by default. The background colour change was fired,
but t
Hello all,
The following function forms the first part of a two step
confirmation sequence for deleting either a quiz or a slideshow.
The onclick element is correctly produced for the second step of confirmation.
Unfortunately, whereas FF fires the onclick event, IE7 does nothing, zip.
func
i am experiencing this under safari: if i do resize my browser
window , the carousel gets some very weird behavior, anyone
experiencing this?
I'm trying to reference an element in an each() that's inside an event
function.
scenario--
I have a div with a class of .button, several divs with the
class .elementSelected.
I click on the div with the .button class, and then...
$(".button").click(function() {
elements = new Ar
Why wouldn't you just start "mydiv" off as hidden (style= display:
none)?
I just thought I would let everyone know I recently finished up a
(rather lengthy) book review for jQuery in Action. You will probably
still have a hard time choosing between this book and Learning jQuery
as both are excellent resources. However, the review should help you
to make a more informed
Thanks Jörn, you've saved me again. Much appreciated.
This is all working now, the only issue I have left is how could I use
the Validation plugin with multiple forms? They would need different
ID's, which I can grab with a variable, but I can't seem to submit to
a specific form ID. Here is the l
Hi Olaf!
Yes, markItUp! moves the textarea's id to the main container. It might
seem strange but believe me, it's the best way to handle all the
instance and css easily. And agree it might also be unconfortable in
some applications.
If your libs are developped over jQuery, "just" replace your
te
I apologize if this is semi OT...
I have an odd performance problem that I can't see any clear logic
around. I was wondering if jQuery might be able to help me with this.
Situation.
1. I have a table of employees. Employees in the left column (one per
row), and days in the remaining columns.
Thanks, that prompted me to think correctly.
The solution is even simpler. The element I was show / hiding was within
an li element and it was this being left that led to space remaining on
removal of the contained element (in IE of course).
What I did instead was remove the li, i.e. the parent:
Like the doc said : "Only properties that take numeric values are
supported (e.g. backgroundColor is not supported by animate())."
So you cool use a plugin:
http://dev.jquery.com/~john/ticket/fx-rewrite2/ OR
http://www.happinessinmycheeks.com/colorBlend/
With the first plugin, I will wrote this:
Thanks! That made it work. In the same javascript I managed to create
a div tag in IE with
$("") but maybe there's some other subtlety behind that.
On Apr 2, 10:01 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote:
> Try making a full formed "a" element, $(''). IE is a bit fussy
> sometimes about what i
[Sorry if this is a dup, first one didn't seem to post.]
Assuming I have
1
2
is there a way with jQuery to select and then clone the following
(i.e. the table structure, but with just the first
1
Thanks for your help
Pete.
Assuming I have
1
2
is there a way with jQuery to select (and then clone) the following
(i.e. the table structure, but with just the first
1
Thanks for your help.
Pete.
I fixed the problem. Code works like a charm now.
I changed this line:
var radio = $this.siblings("[EMAIL PROTECTED]");
To this:
var radio = $this.siblings("[EMAIL PROTECTED]:eq(0)");
Hi,
I have a device status page that pulls some information directly form
a database and some other information from the device itself. The
database content is generated once by the server and displayed in the
static section of the web page. The information form the device itself
is generated by
Ok the code I posted below works great except for one issue. When the
text field is disabled, the code also disables the text field that is
right after it, which I don't want being disabled. The script sees
both as a sibling which I don't want.
So my question is; How can I make this,
"$this.sibli
83 matches
Mail list logo