Hi,
I have a menu and a container. when the user clicks a menu item, new
content from another file is loaded into the container.
eg. [img]http://i36.tinypic.com/vjcsg.jpg[/img]
main.php
[code]
$(document).ready(function() {
$("#menuitem1").click(function() {
$("#Container").load("it
On Oct 6, 2:37 am, "m.ugues" wrote:
> HAllo all.
> This piece of code works fine in FIrefox but does not work in IE.
>
> http://pastie.org/642444
>
> The problem is on textContent attribute that in IE is undefined.
The textContent property is part of the W3C DOM 3 Core specification,
so likely
bump
On Oct 1, 10:43 am, Kevin Jones wrote:
> http://www.nd.edu/
>
> Their homepage has a carousel-ish type of feature. Does anyone know if
> this exists already with a jQuery plugin? I don't know if our project
> has the allotted time for me to make one from scratch, so I was
> curious if it ex
I create a lot of web-application list-screens with fixed-headers. I
prefer to *not* work with a THEAD for this purpose because it is too
limiting for complex page layouts. Instead, I create TWO tables - one
for the headers and one for the content. This works well as long as
you use table-layout:f
On Oct 5, 2009, at 11:43 AM, Jonathan Sharp wrote:
You can run a parseint on the number: var myInt =
parseInt( '15,000', 10);
Cheers,
- Jonathan
http://jqueryminute.com
Oops. that's not such a good idea. It'll return 15. ;-)
There are probably much better ways of doing this, but one way
Hi
I wanted to implement a checkout process inside a single page. In that
page, I show shipping information, payment information and a summary
of the order at the end.
I was hoping I could do a partial refresh of the order summary
information when the user entered a valid shipping destination (I
Hey all,
First post to the group! I am trying to display a spinner on images
that are loading, which works. I wanted the loader to be degrade
properly if javascript was disabled, which is why i replace the image
with the loading div and then reinsert the image.
The problem with that is that on
I am having an issue in firefox 3.5.3 I am using the following
selector
$("#arrivalAirport .arrival").hide('slow');
I have a set of radios wrapped in span tags with the class of arrival
as such
Fort Ware
Tsay Keh
Prince George
Smithers
Dease Lake
Bob Quinn
for some reason in Fi
pastebin: http://pastebin.ca/1595754
On Mon, Oct 5, 2009 at 5:04 PM, bryan wrote:
> Hey all,
>
> First post to the group! I am trying to display a spinner on images
> that are loading, which works. I wanted the loader to be degrade
> properly if javascript was disabled, which is why i replace
Hi,
I'm trying to figure out how to use the autocomplete jQuery plugin
best to my needs. I'm looking to replace a select box with the
Autocomplete plugin, but not quite sure how to accomplish this.
In my select box, I have the option that is displayed is not the same
as the data that is submitt
Still no luck with my validation.
Any help would be great.
$(function() {
$('#testForm').live("click", function(){
$('#testForm').bind('submit', function() {
$(this).validate(validation_options);
var valid
Try:
var $j = jQuery.noConflict();
Then you would use:
$j(document).ready(function() {
doSomething();
});
On Oct 5, 2:14 pm, Dennis Madsen wrote:
> I'm trying to use jQuery inside a CMS which use mootools - therefore I
> use noConflict.
> I have this sample code:
>
>
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' + faq_id).slideToggle("fast");
return false;
});
});
I would like to in
I'm trying to use jQuery inside a CMS which use mootools - therefore I
use noConflict.
I have this sample code:
jQuery.noConflict();
(function($) {
function doSomething() {
//some jQuery Stuff here..
alert("something
I'd suggest looking @ Mike Alsup's BlockUI plugin
http://www.malsup.com/jquery/block/jquery.blockUI.1.33.js
follow along with happens with $.blockUI.impl.boxCallback
On Oct 5, 4:10 pm, bittermonkey wrote:
> How do I add a callback function to a plugin so that i can execute
> another function a
$.fn.myPlugin = function(options) {options $.extend({ callback: null },
options);
// Your plugin
if ( $.isFunction(options.callback) ) {
options.callback.call();
}
};
$('div').myPlugin({
callback: function() {
// Your callback code
}
});
A better approach mig
How do I add a callback function to a plugin so that i can execute
another function after the plugin completes its own processes.
Thanks in advance.
Do you use and tags? If you do and can change it, this
will be a lot simpler as you would only select those in the tbody
tags:
tbody > tr
Otherwise, I'm not sure of a solution at this point without having to
loop through its children. Maybe you can mix the :not and :has
selection, but I've neve
I have reposted this in the DEV forum...
http://groups.google.com/group/jquery-dev/browse_thread/thread/16bd78710291bc93?hl=en#
I am using
http://sorgalla.com/projects/jcarousel/examples/dynamic_javascript.html,
I've gotten everything to work how I want except I can't seem to add
links to the images. Probably have to declare a varible for the a href
then write out a function? Words of wisdom anyone?
Thanks cMantilla
Hi,
I am trying to select the "except the - with ".
As per jquery book, I tried this.
but it is not working.
$('tr:not[th]:even').addClass('even');
can anybody tell me the solution ?
Thanks,
Bhavin.
Hey James,
Thanks for the advice. That's close, but not quite there. It does now
pull the height from the correct image, but there's a noticeable delay
that I've got to get around.
See example here: http://wilsonmcguire.com/eebuild/index.php?/work
Click on some of the options on the right, and
What are you trying to do?
On Mon, Oct 5, 2009 at 11:37 AM, m.ugues wrote:
>
> HAllo all.
> This piece of code works fine in FIrefox but does not work in IE.
>
> http://pastie.org/642444
>
> The problem is on textContent attribute that in IE is undefined.
>
> Any workaround?
>
> Kind regards
>
>
Try putting that part in fadeIn's second parameter, a callback
function that executes after the fadeIn is completed:
$("#list .item a").click(function() {
var imgPath = $(this).attr("href");
$("#left p img").hide().attr({ src: imgPath })
I can't seem to see why.
if you notice the first listing has no image and the 'inquire' link to
the right works, the listings with images do not work tho.
anyone run into any issues running jquery ui modal with tooltip?
example:
http://tinyurl.com/y9j9jvo
thanks,
Hi.
I have written a quick function to change the src attribute of an
image. I also need to set some CSS properties on that image's parent
to get it to stay centered in the containing div. Here is the code
I've written.
$("#list .item a").click(function() {
var imgPath =
Hi Donnie & Pirco,
You can use the .text() jQuery method to get at the CDATA.
The error though is coming from how you're selecting the ID:
Instead of:
html = $.trim($(xml).find("html").text());
alert($("#mydiv", html).attr("id"));
Try:
// XML is already a XML Document object
var cdata
Hello everyone,
I am involved in development of an inter-window communication library
called Pmrpc. Pmrpc is a HTML5 inter-window cross-domain JSON-RPC
based remote procedure call JavaScript library. The library provides a
simple API for exposing and calling procedures from windows or iFrames
on
Thanks for the info, I will look into that.
Cheers -
george
On Oct 5, 12:21 pm, amuhlou wrote:
> the .A1 within the #info divs does not exist when the document ready
> event fires, so the click event is not applied. try using the live
> method()
>
> http://docs.jquery.com/Events/live
>
> On
Instead of changing the background image to a different URL, you should
create a single image that has them tiled together, and change the div's
background-position style to select one or the other. That guarantees you an
instant transition between the two images.
If you have several images on you
Hi Nitin,
Something similar to the following should work:
$('div.modan > p > a').each(function() {
$(this).parent().after( $('').find('li').append( this
).end() ).remove();
});
Cheers,
- Jonathan
On Mon, Oct 5, 2009 at 10:19 AM, Nitin Gautam wrote:
>
> I have following code
>
>
> Center
>
HAllo all.
This piece of code works fine in FIrefox but does not work in IE.
http://pastie.org/642444
The problem is on textContent attribute that in IE is undefined.
Any workaround?
Kind regards
Massimo UGues
the .A1 within the #info divs does not exist when the document ready
event fires, so the click event is not applied. try using the live
method()
http://docs.jquery.com/Events/live
On Oct 5, 2:54 pm, GLSmyth wrote:
> I have some simple code:
>
> $(document).ready(
> function() {
> $('.A1'
$('.caption').each(function()
{
$this.width($this.find('img').width());
}
On Mon, Oct 5, 2009 at 11:52 AM, bombaru wrote:
>
> Can somebody help me out? I'm trying to set a width of a span class
> based on the width of the image inside of it. I've got a container
> that will also have a bunch
Can somebody help me out? I'm trying to set a width of a span class
based on the width of the image inside of it. I've got a container
that will also have a bunch of images... some of them will have
captions and will be wrapped in a class "caption"... some will not be
wrapped in the "caption" cl
You can run a parseint on the number: var myInt = parseInt( '15,000', 10);
Cheers,
- Jonathan
http://jqueryminute.com
On Sun, Oct 4, 2009 at 7:49 AM, runrunforest wrote:
>
> cool, but that leads to another problem
>
> The computer now thinks 15,000 is just 15 instead of fifteen thousands
Hi
I have the following animation
http://www.schwingsoft.com/Portfolio/tabid/62/Default.aspx
in firfox chrome etc you see a nice anmation with fading beams and a clip
style animation
However the animation doenst work as expected in ie8 and neither does the
transparency.
Is there somethign in i
Hi Eric,
The browser will replace the image first before loading it. What you can do
to preload the image is as follows:
var newBackgroundImage = '/new/image/url.png';
$('')
.attr('src', newBackgroundImage)
.bind('load', function() {
$('div').css('background-image', 'url(' + newBac
I have following code
Center
Keep a Long-Term Focus
My requirement is I have to remove the tag and insert
Center
Keep a Long-Term Focus
How Can I do this using JQueryAnchor link is getting generated
dyncamically
Tell me the way to make it wrkng in both FF and IE
I have some simple code:
$(document).ready(
function() {
$('.A1').click(
function() {
$('#Info').load('Test_A1.htm');
}
);
$('.A2').click(
function() {
$('#Info').load('Test_A2.htm');
}
);
}
);
followed in the body with:
A1
A2
I have some simple code:
[code]
$(document).ready(
function() {
$('.A1').click(
function() {
$('#Info').load('Test_A1.htm');
}
);
$('.A2').click(
function() {
$('#Info').load('Test_A2.htm');
}
);
}
);
[/code]
followed in the body with:
[c
Thanks so much now that works :)
Also... whatabout if i want to select gif and jpg files using the code
below? how do i add to it, the same? comma separated?
function getLeaf(url) {
var splited=url.split('?');// remove all the parameter from url
url=splited[0];
return url.substring(url.lastIndex
No, you can't postpone a DOM refresh as you describe. Your best bet
is probably to wrap the table in a div that has a constant height, so
the surrounding content remains in place as your table grows/shrinks.
On Sun, Oct 4, 2009 at 4:21 PM, Dennis Madsen wrote:
>
> I've created some jQuery which
Hello,
For a project I am working on I've successfully implemented the
autocompleter (http://docs.jquery.com/Plugins/Autocomplete) and
although it works like a charm, I would like to give the results a
different markup. Currently, all rows are displayed as LI elements
which makes perfect sense, b
Possible: absolutely
Already out there: perhaps, but who knows
It wouldn't be that hard to code:
- User clicks row
- Create a new row in a jQuery object, like: var $SortedRow = $("");
- Loop through columns of clicked row making a hash table of value /
index of column, sorted by value
- Create
Good Morning/Afternoon (depending where you are)
I would usually hate to post chunks of code like this, but I may be
about to break my monitor.
I've written a chunk of code, which on an address change, loads page
content either into a black, or white div. The address change event is
working, and
document.elementFromPoint has growing browser support and some
inconsistencies. See:
http://www.quirksmode.org/dom/w3c_cssom.html#t20
But it beats walking through every dom element and comparing its location,
size, and z-index, which is what you're left to do in older browsers.
- Richard
On Mon
How do I create a subclass ?
(function($) {
$.fn.myname = function(){
return this.each(function(){
});
}
})(jQuery);
(function($) {
$.fn.myname.subname = function(){
return this.each(function(){
});
}
})(jQuery);
$("#id1")
You can just do:
$("#nav td, .otherclass").enter();
On Mon, Oct 5, 2009 at 07:50, jessie wrote:
>
> Hi
>
> You posted a reply but there was nothing there! LOL i can't see what
> you wrote.
>
> Thanks
> Jess :)
>
> On Oct 5, 3:57 pm, Piyush Moradiya wrote:
> > On Sun, Oct 4, 2009 at 6:34 PM, je
Hi
You posted a reply but there was nothing there! LOL i can't see what
you wrote.
Thanks
Jess :)
On Oct 5, 3:57 pm, Piyush Moradiya wrote:
> On Sun, Oct 4, 2009 at 6:34 PM, jessie wrote:
>
> > Hi
>
> > I have implemented this jQuery for image rollover on href
>
> > The only problem is, is th
On Sun, Oct 4, 2009 at 6:34 PM, jessie wrote:
>
> Hi
>
> I have implemented this jQuery for image rollover on href
>
> The only problem is, is there a way to call more than one class for
> this particular function?
> $(function(){ // Document is ready
> $("#nav td").enter();// call the function
Hi All,
Can any one suggest me a best jQuery menu plug-in for the below
requirements:
1. It should support Internationalization.
2. It should support Hot Keys.
My question is, if I have one image as the background of a div, and I
set the background of that div to another image, will html load the
new image before replacing the old one or replace the old image with
something ugly (say just plain white) and then load it.
The reason I'm asking is, because
I'm using Treeview and I need to be able to tell it to collapse via
Javascript (as in, from another function outside of the Treeview
code). I have searced everywhere for a how-to and can't figure it out.
I'm hoping someone can suggest a way of doing it.
Hi
I have a main menu with submenu like this
Services
RTA
Auto
Service
and the jquery funtion
$(
function()
{
//hook up main menu l
Hi
Is there a way to get the element under mouse?
thx
sounds like you want to .filter() the results, but that will still
iterate. the thing is anything that grabs a bunch of elements and
picks certain ones out is going to loop through them at some point.
if you wanted to do it entirely via selectors (and depending on
whether there is a appropriate a
You could just check the length of the :contains string against
the .text() value in a .filter(function(){ ... })
On Oct 5, 9:20 am, Julijan Andjelic
wrote:
> Is there a way (selector) that would allow me to select an element by
> exact mach of containing text.
>
> example:
>
>
> This is so
Is there a way (selector) that would allow me to select an element by
exact mach of containing text.
example:
This is some text
This
Lets say i want to select only the second div
$("div:contains('This')")...
okay, it would select it, but...it would also select the first one.
I coul
Someone?
On 5 Okt., 01:21, Dennis Madsen wrote:
> I've created some jQuery which remove many tr rows from my table and
> inserts new via AJAX. This indicate that the page is scrolling because
> first the table increase after elements is removed and afterwards it
> grows when the new content is i
Guess you should start by using Firebug to see if you have any
colliding css rules.
On 4 Okt, 00:48, neridaj wrote:
> I'm trying to add the lightbox plugin to a page and when the image is
> clicked the overlay and corresponding image are pushed to the bottom
> of the page wit the image below the
On Oct 5, 12:13 am, Donny Kurnia wrote:
[...]
> 15,000 should only displayed to user. You should keep 15000 somewhere in
> the document. My favorite is using alt
>
> 15,000
alt is not a valid attribute for span elements.
--
Rob
62 matches
Mail list logo