[jQuery] CSS not loading when I $("#ID").load("file.php")?

2009-10-05 Thread IsenGrim
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

[jQuery] Re: textContent attribute problem with ie

2009-10-05 Thread RobG
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

[jQuery] Re: Notre Dame Inspired Jquery -- Exists?

2009-10-05 Thread Kevin Jones
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

[jQuery] Re: keeping table header fix

2009-10-05 Thread Kevin Dalman
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

[jQuery] Re: format number

2009-10-05 Thread Karl Swedberg
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

[jQuery] (validate) how can I get informed that a div is valid?

2009-10-05 Thread Philosophil
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

[jQuery] Question using .load event

2009-10-05 Thread bryan
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

[jQuery] Firefox only selecting first element with given class

2009-10-05 Thread Phil
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

[jQuery] Re: Question using .load event

2009-10-05 Thread Bryan Ruiz
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

[jQuery] Autocomplete - How to simulate a select box, where displayed value is one thing and submitted value is another

2009-10-05 Thread benze
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

[jQuery] Re: validate

2009-10-05 Thread Dave Maharaj :: WidePixels.com
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

[jQuery] Re: jQuery: noConflict

2009-10-05 Thread Gremlyn1
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: > >        

[jQuery] Re: Switch image source during toggle

2009-10-05 Thread Gremlyn1
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

[jQuery] jQuery: noConflict

2009-10-05 Thread Dennis Madsen
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

[jQuery] Re: How to Add A Callback Function to a plugin

2009-10-05 Thread MorningZ
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

[jQuery] Re: How to Add A Callback Function to a plugin

2009-10-05 Thread Jonathan Sharp
$.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

[jQuery] How to Add A Callback Function to a plugin

2009-10-05 Thread bittermonkey
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.

[jQuery] Re: Problem while using 'Selector - dom traversal'

2009-10-05 Thread James
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

[jQuery] Re: LI.offset and LI.position() gives erratic results

2009-10-05 Thread Kevin Dalman
I have reposted this in the DEV forum... http://groups.google.com/group/jquery-dev/browse_thread/thread/16bd78710291bc93?hl=en#

[jQuery] Easy one, I think.

2009-10-05 Thread cMantilla
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

[jQuery] Problem while using 'Selector - dom traversal'

2009-10-05 Thread Bhavin
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.

[jQuery] Re: Changing image src and css properties of new image

2009-10-05 Thread poundcommapo...@gmail.com
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

[jQuery] Re: textContent attribute problem with ie

2009-10-05 Thread Jonathan Sharp
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 > >

[jQuery] Re: Changing image src and css properties of new image

2009-10-05 Thread James
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 })

[jQuery] tooltip - jquery UI and tooltip not playing well

2009-10-05 Thread Peter Gibbons
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,

[jQuery] Changing image src and css properties of new image

2009-10-05 Thread poundcommapo...@gmail.com
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 =

[jQuery] Re: selectors with xml cdata, parse html string

2009-10-05 Thread Jonathan Sharp
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

[jQuery] Inter-window cross-domain frame communication plugin

2009-10-05 Thread Marko Ivankovic
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

[jQuery] Re: Ajax Not Working A Second Time

2009-10-05 Thread GLSmyth
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

[jQuery] Re: Quick question on image loading

2009-10-05 Thread Michael Geary
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

[jQuery] Re: Modify Dom Element using JQuery

2009-10-05 Thread Jonathan Sharp
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 >

[jQuery] textContent attribute problem with ie

2009-10-05 Thread m.ugues
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

[jQuery] Re: Ajax Not Working A Second Time

2009-10-05 Thread amuhlou
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'

[jQuery] Re: Set property based on sibling width()

2009-10-05 Thread brian
$('.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

[jQuery] Set property based on sibling width()

2009-10-05 Thread bombaru
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

[jQuery] Re: format number

2009-10-05 Thread Jonathan Sharp
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

[jQuery] Why doenst this animation work in ie8

2009-10-05 Thread Armand Datema
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

[jQuery] Re: Quick question on image loading

2009-10-05 Thread Jonathan Sharp
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

[jQuery] Modify Dom Element using JQuery

2009-10-05 Thread Nitin Gautam
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

[jQuery] Ajax Not Working A Second Time

2009-10-05 Thread GLSmyth
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

[jQuery] Ajax Not Working A Second Time

2009-10-05 Thread GLSmyth
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

[jQuery] Re: image rollover

2009-10-05 Thread jessie
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

[jQuery] Re: AJAX load: scrolling

2009-10-05 Thread Nathan Bubna
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

[jQuery] Autocomplete plugin: results as table?

2009-10-05 Thread Maarten
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

[jQuery] Re: Is it possible to sort columns by a row using jQuery

2009-10-05 Thread MorningZ
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

[jQuery] A seemingly simple .load

2009-10-05 Thread Fluffica
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

[jQuery] Re: get element under mouse

2009-10-05 Thread Richard D. Worth
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

[jQuery] subclass

2009-10-05 Thread Anjanesh
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")

[jQuery] Re: image rollover

2009-10-05 Thread Leonardo K
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

[jQuery] Re: image rollover

2009-10-05 Thread jessie
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

[jQuery] Re: image rollover

2009-10-05 Thread Piyush Moradiya
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

[jQuery] jQuery Menu

2009-10-05 Thread DineshRao
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.

[jQuery] Quick question on image loading

2009-10-05 Thread Erock
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

[jQuery] Jquery Treeview - trigger a collapse programatically

2009-10-05 Thread bj
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.

[jQuery] hover over and out

2009-10-05 Thread samjesse
Hi I have a main menu with submenu like this Services RTA Auto Service and the jquery funtion $( function() { //hook up main menu l

[jQuery] get element under mouse

2009-10-05 Thread samjesse
Hi Is there a way to get the element under mouse? thx

[jQuery] Re: Select by containing text

2009-10-05 Thread ryan.j
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

[jQuery] Re: Select by containing text

2009-10-05 Thread ryan.j
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

[jQuery] Select by containing text

2009-10-05 Thread Julijan Andjelic
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

[jQuery] Re: AJAX load: scrolling

2009-10-05 Thread Dennis Madsen
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

[jQuery] Re: lightbox overlay pushed to bottom of page

2009-10-05 Thread Chrazy
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

[jQuery] Re: format number

2009-10-05 Thread RobG
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