[jQuery] Remove JS if statement from other script

2008-10-17 Thread hubbs
How possible is it to remove ONLY part of a script, specifically an if statement from another script? We have a script that is in the header of our document, and it screws up a few of our pages, so I don't want to delete it, since it is needed for some pages, but for specific pages, I would like

[jQuery] Using .fadeOut() then .html()

2008-10-07 Thread hubbs
I have some text that is in a div that I would like to fade out, then I want to clear the HTML of that div. But, it seems that the fadeOut doesn't get run before the HTML gets cleared: setTimeout(function() { $(#ajaxResult).fadeOut(slow).html(); },

[jQuery] Re: Using .fadeOut() then .html()

2008-10-07 Thread hubbs
Perfect, thank you!! On Oct 7, 11:19 am, MorningZ [EMAIL PROTECTED] wrote: Use the callback of the fadeOut event http://docs.jquery.com/Effects/fadeOut#speedcallback $(#ajaxResult).fadeOut(slow, function() { $(this).html() }); On Oct 7, 2:08 pm, hubbs [EMAIL PROTECTED] wrote: I have

[jQuery] Is .prev() being used in the wrong way here?

2008-10-07 Thread hubbs
I have a function that filters a listed based on the value of an input field. The .each() function looks at inside each anchor tag, and adds a new class if there is a match. But, I want the class to be added to the parent, or prev element here, which is a holder div called itemHolder. For some

[jQuery] Re: Is .prev() being used in the wrong way here?

2008-10-07 Thread hubbs
The .itemHolder element should get the hidden class. I tried using .parent() instead, and it worked perfectly. Thanks! On Oct 7, 2:34 pm, Dave Methvin [EMAIL PROTECTED] wrote:  But, I want the class to be added to the parent, or prev element here, which is a holder div called itemHolder.

[jQuery] Confirm, then change back value

2008-09-29 Thread hubbs
I am trying to change a select list, and if the user sets it to No, then a confirm dialog comes up, if they hit cancel, the value will get set back to Yes. For some reason it is not working: $(#metadata_field_text_33100_value).change(function() { var confirmWeb = confirm(Are

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-25 Thread hubbs
of the functionality you are looking for might help. cheers, - ricardo On Sep 24, 1:27 pm, hubbs [EMAIL PROTECTED] wrote: Hi Ricardo, I am not appending an iframe, it is hardcoded.  I am trying to append to the parent document from within the iframe, and have the event in the parent bound

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-24 Thread hubbs
right now, but are you setting up the ready() function after appending the iframe? On Sep 23, 9:11 pm, hubbs [EMAIL PROTECTED] wrote: Yeah, this really is not working.  Could someone please help me to understand how to make multiple frames use the same jquery instance so I can resolve

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-23 Thread hubbs
: Not sure but $(frames['frame'].document).ready() should work (from the parent window). On Sep 17, 8:21 pm, hubbs [EMAIL PROTECTED] wrote: Ok, I am realizing it has to do with the do with the $(document).ready function.  If I just use: $ = window.parent.$;  $(#hold).append('a href

[jQuery] ready() function different when inside a frame?

2008-09-23 Thread hubbs
I have a frame that I want to use the same instance of jquery as in the parent window. Here is what I did: $ = window.parent.$; $(function() { $(#test).click(function() { $(#hold).append('a href=#Inserted from iFrame/a br /'); }); }); For some reason, the click event is not being bound,

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-22 Thread hubbs
So, would this be in addition to my normal document ready? On Sep 17, 7:12 pm, ricardobeat [EMAIL PROTECTED] wrote: Not sure but $(frames['frame'].document).ready() should work (from the parent window). On Sep 17, 8:21 pm, hubbs [EMAIL PROTECTED] wrote: Ok, I am realizing it has to do

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-17 Thread hubbs
only one instance of jQuery on the parent window and do all your stuff from it, it's simpler to debug also. On Sep 16, 10:29 pm, hubbs [EMAIL PROTECTED] wrote: Thanks Ricardo. But what if I wanted to access the parent document from WITHIN the iframe? On Sep 16, 12:27 pm, ricardobeat

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-17 Thread hubbs
and do all your stuff from it, it's simpler to debug also. On Sep 16, 10:29 pm, hubbs [EMAIL PROTECTED] wrote: Thanks Ricardo. But what if I wanted to access the parent document from WITHIN the iframe? On Sep 16, 12:27 pm, ricardobeat [EMAIL PROTECTED] wrote: You need to understand

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-17 Thread hubbs
: $('.classinparentframe', parent.window.document) Ideally if the contents of the iframe are always known to you, you should use only one instance of jQuery on the parent window and do all your stuff from it, it's simpler to debug also. On Sep 16, 10:29 pm, hubbs [EMAIL PROTECTED] wrote: Thanks

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-16 Thread hubbs
will not be monitoring its DOM methods. -- Brandon Aaron On Sun, Sep 14, 2008 at 11:04 PM, hubbs [EMAIL PROTECTED] wrote: I can confirm that using event delegation will fix this problem.  I guess that it is just a problem with the LiveQuery plugin.  Brandon, if you are where around here, could you

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-16 Thread hubbs
it to. So the '$' object you use in firebug console is always the one from the parent window. If i'm not mistaken you can acess frame content with the parent window's jQuery object using $('.classinsidetheframe', frames['name'].document).css(); On Sep 16, 1:48 pm, hubbs [EMAIL PROTECTED] wrote

[jQuery] Bind events on DOM elements inserted from other frame

2008-09-12 Thread hubbs
I have been experiencing strangeness with trying to bind events to DOM elements that have been inserted from a different frame using .get(). For some reason the elements don't be binded with the events if they are inserted from other frame. In testing, if I try the same thing within the SAME

[jQuery] Re: Nesting if statements not working

2008-09-02 Thread hubbs
your results. - jason On Sep 1, 9:25 pm, hubbs [EMAIL PROTECTED] wrote: For some reason, when I am nesting if statements, it seems to bypass the first if, and go right to the second one, even if the value of #duplicateInput is more than 10.  I want the statement to check to see

[jQuery] Nesting if statements not working

2008-09-01 Thread hubbs
For some reason, when I am nesting if statements, it seems to bypass the first if, and go right to the second one, even if the value of #duplicateInput is more than 10. I want the statement to check to see if the input field has a number that is equal or less than 10, then, if it is, throw an

[jQuery] Using each() to check for content

2008-08-31 Thread hubbs
I have a listing of links that are titles for items in my database. Each item might have a description in the database as well, so I was wanting to print the description, then replace it with a * if there is any text for the description. The descriptions contain HTML such as links, so inserting

[jQuery] Re: Using each() to check for content

2008-08-31 Thread hubbs
            span class=test                 pContents /p             /span         /a         a href=#Link/a     /div See how different that is from your original HTML? -Mike From: hubbs I have a listing of links that are titles for items in my database. Each item might have a description

[jQuery] keypress event using $(this)

2008-08-27 Thread hubbs
I have a simple keypress event that throws an alert when you press a or s. Is it possible to bind this event to specific elements, so that it is not a global keypress, but only fired if the test link is first clicked. Then, $(this) would be used to get attributes of the clicked element if

[jQuery] Re: Livequery and iFrames

2008-08-26 Thread hubbs
a).draggable({ helper: 'clone', appendTo: 'body', cursor: 'move' }); How could I rebind this, and hopefully fix the cross frame problem? On Aug 24, 6:25 pm, hubbs [EMAIL PROTECTED] wrote: I worked on another, simpler example of reloading the listing

[jQuery] Understanding event delegation

2008-08-26 Thread hubbs
I am working to replace all of my uses of livequery with event delegation (is this even a good idea?) and have a few questions. I have a simple script that will add a selected class to a link when it is clicked. It does work using event delegation, but it seems that it is not limiting it to

[jQuery] Re: Understanding event delegation

2008-08-26 Thread hubbs
approach, if you can live with its difficulties. -- Ariel Fleslerhttp://flesler.blogspot.com On Aug 26, 2:31 pm, hubbs [EMAIL PROTECTED] wrote: I am working to replace all of my uses of livequery with event delegation (is this even a good idea?) and have a few questions. I have a simple

[jQuery] Re: Understanding event delegation

2008-08-26 Thread hubbs
Hmmm, I take that back. It still seems like the is() is able to select child elements of the anchor, so when you have an anchor set as block, with a few spans to style text, it is hard to click on the actual anchor to give it the class. Is this normal? On Aug 26, 11:37 am, hubbs [EMAIL

[jQuery] Re: Understanding event delegation

2008-08-26 Thread hubbs
).removeClass(selected);   $anchor.addClass(selected); } Brian On Aug 26, 4:22 pm, hubbs [EMAIL PROTECTED] wrote: Hmmm, I take that back.  It still seems like the is() is able to select child elements of the anchor, so when you have an anchor set as block, with a few spans to style text

[jQuery] Using keypress for key combination

2008-08-26 Thread hubbs
I have been looking for a way to have a key combination fire an alert, but searching the group I have not really found what I was looking for. There are some plugins that I have found, but I would rather just use jQuery without anything additional. So, I found this:

[jQuery] Livequery and iFrames

2008-08-24 Thread hubbs
I am trying to track down a problem, and I am wondering if it has to do with iFrames. I use livequery to rebind some the jQuery UI draggable event to a list of links. I have an ajax refresh button, which refreshes the list, and livequery rebinds the draggable events, which works great. But, I

[jQuery] Re: Livequery and iFrames

2008-08-24 Thread hubbs
correctly, and I would expect Livequery to see that, and rebind. On Aug 24, 4:02 pm, hubbs [EMAIL PROTECTED] wrote: I am trying to track down a problem, and I am wondering if it has to do with iFrames. I use livequery to rebind some the jQuery UI draggable event to a list of links.  I have

[jQuery] Check checkbox based on ID list

2008-08-22 Thread hubbs
I am looking for ideas on how to check some checkboxes based on a list of id's that match the id's of the checkboxes. Example: div id=checkedValues 10, 14, 11 /div div id=checkBoxes input type=checkbox value=1 id=10 name=10 / input type=checkbox value=1 id=11 name=11 / input type=checkbox

[jQuery] Re: Check checkbox based on ID list

2008-08-22 Thread hubbs
There is also the option of me putting the checked values into an array if that would help with this... On Aug 22, 11:27 am, hubbs [EMAIL PROTECTED] wrote: I am looking for ideas on how to check some checkboxes based on a list of id's that match the id's of the checkboxes. Example: div id

[jQuery] Re: Check checkbox based on ID list

2008-08-22 Thread hubbs
I figured it out, I just had my server write the jQuery attributes: $(#12).attr(checked, checked); On Aug 22, 11:58 am, hubbs [EMAIL PROTECTED] wrote: There is also the option of me putting the checked values into an array if that would help with this... On Aug 22, 11:27 am, hubbs [EMAIL

[jQuery] Understanding JSON

2008-08-20 Thread hubbs
I am trying to understand JSON, and could use a little help. So, if I have something like: { firstName: John, lastName: Smith, address: { streetAddress: 21 2nd Street, city: New York, state: NY, postalCode: 10021 }, phoneNumbers: [

[jQuery] Re: Understanding JSON

2008-08-20 Thread hubbs
[EMAIL PROTECTED] wrote: hubbs ha scritto: I am trying to understand JSON, and could use a little help. How would I use jQuery to write the values onto a page? user = {      firstName: John,      lastName: Smith,      address: {          streetAddress: 21 2nd Street,          city

[jQuery] $.ajax() timeout

2008-08-20 Thread hubbs
I seem to not be understanding how the ajax timeout works, because it does not seem to work how I thought. I was hope it would delay the ajax request, for the number of miliseconds that is specified, but that does not seem to be working. Is the timeout used for something different? Or is there

[jQuery] Re: $.ajax() timeout

2008-08-20 Thread hubbs
- Original Message - From: hubbs [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, August 20, 2008 11:25 AM Subject: [jQuery] $.ajax() timeout I seem to not be understanding how the ajax timeout works, because it does not seem to work how I thought. I

[jQuery] Re: Understanding JSON

2008-08-20 Thread hubbs
Yes it does. Thanks for the explanation. On Aug 20, 12:34 pm, ak732 [EMAIL PROTECTED] wrote: What you're describing is more of a general AJAX thing.  JSON is just an optional part of the whole AJAX mechanism.  It's the data *format*, not the page update architecture.  You could use XML or

[jQuery] Re: Show loading gif onclick, hide when iframe is loaded

2008-08-20 Thread hubbs
Anyone know if there is a way to know when an iframe is finished loading? On Aug 19, 10:26 am, hubbs [EMAIL PROTECTED] wrote: I know how to show a loading gif when a link is clicked, but is it possible to know when the page is finished loading inside of an iframe, so that I can then hide

[jQuery] Show loading gif onclick, hide when iframe is loaded

2008-08-19 Thread hubbs
I know how to show a loading gif when a link is clicked, but is it possible to know when the page is finished loading inside of an iframe, so that I can then hide the loading gif?

[jQuery] Re: Var and a child

2008-08-18 Thread hubbs
of a variable name, so it's perfectly legal. From: ripple You can not declare a javascript var with a # as first char.   try:   var myVar = testDiv; $('#'+myVar+' .statusColor).css(background-color,#DBF18A); Other than that it should work. --- On Sun, 8/17/08, hubbs [EMAIL PROTECTED

[jQuery] Re: Create array from checkbox id's

2008-07-25 Thread hubbs
Still trying to get this to work, but it does not seem to. Will this work getting the id attribute? This was my goal. On Jul 23, 10:53 pm, Ca Phun Ung [EMAIL PROTECTED] wrote: hubbs wrote: Ariel, I tried this but the alert just says object Object, I was expecting it to alert me of each

[jQuery] Firefox 3 and packed jQuery

2008-07-21 Thread hubbs
Anyone else having problems with Firefox 3 and the packed version of jQuery? It seems that it is not loading when I have an iframe in which the jQuery script is called. It seems to not load it for some reason, and fire bug is confused about the $ symbol. Anyone experienced this?

[jQuery] Re: Firefox 3 and packed jQuery

2008-07-21 Thread hubbs
is to use the minified version instead of the packed one and enable gzip compression on the server. On Jul 21, 5:51 am, hubbs [EMAIL PROTECTED] wrote: Anyone else having problems with Firefox 3 and the packed version of jQuery?  It seems that it is not loading when I have an iframe in which

[jQuery] .slice() a specific number of characters?

2008-07-20 Thread hubbs
I am wondering if it is possible to use the .slice() method to keep 6 characters on the end of a URL in a href attribute, then append a new URL to the beginning? Or is there a better method to do this?

[jQuery] Re: .slice() a specific number of characters?

2008-07-20 Thread hubbs
Swedbergwww.englishrules.comwww.learningjquery.com On Jul 20, 2008, at 7:52 PM, hubbs wrote: I am wondering if it is possible to use the .slice() method to keep 6 characters on the end of a URL in a href attribute, then append a new URL to the beginning? Or is there a better method to do this?

[jQuery] .click with confirm coming up multiple times

2008-07-19 Thread hubbs
I have been working on a script, that will put a URL into a var when a link is clicked. Then, when a second link is clicked a confirm dialog appears, if you click ok, that var is printed. Problem is, it works only the first time you click one of the first links. If you click a second link, and

[jQuery] Re: .click with confirm coming up multiple times

2008-07-19 Thread hubbs
this asset?); if (answer) { $(#textTest).text(location); } }); }); It seems to work how I want, is this the best method? On Jul 18, 11:09 pm, hubbs [EMAIL PROTECTED] wrote: I have been working on a script, that will put a URL into a var when a link is clicked.  Then, when

[jQuery] Getting this to work with my function and jquery

2008-07-18 Thread hubbs
I might be getting confused about the proper use of this. I thought I understood how this worked, and that since I am triggering the onclick even on an anchor, that the this would be in the context of that anchor tag, so that I could grab its href. Here is what I have done, but it is returning

[jQuery] Re: Getting this to work with my function and jquery

2008-07-18 Thread hubbs
, 10:14 am, Mike Alsup [EMAIL PROTECTED] wrote: On Jul 18, 12:58 pm, hubbs [EMAIL PROTECTED] wrote: I might be getting confused about the proper use of this.  I thought I understood how this worked, and that since I am triggering the onclick even on an anchor, that the this would

[jQuery] Re: Getting this to work with my function and jquery

2008-07-18 Thread hubbs
Sorry for not clarifying. action=delete is just something that I want sent through in the query string, it has nothing to do with javascript. Let me explain why I am needing this function: I have a large listing of assets that are in my system. I have created a generic delete button bellow

[jQuery] Form plugin, add loading gif

2008-07-17 Thread hubbs
I am trying to add a loading gif to the form plugin, but each time I do, it breaks. I am using: $(document).ready(function() { //Create function for ajax asset builder $('#page_asset_builder_28031').ajaxForm({ iframe: true, success: function(html) { $(#loading).show();

[jQuery] Copy text onkeyup locking up browser

2008-07-17 Thread hubbs
I am having a strange problem, where a function is freezing the browser. I have an iframe, which has an input field, and I want the text from this, to update some inner html in its parent frame. Have I don't something totally wrong here? //Add update name function

[jQuery] Re: Add events and functions to ajax content

2008-07-16 Thread hubbs
of the other options better for this, such as livequery? On Jul 15, 5:06 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Jul 15, 2008, at 6:47 PM, hubbs wrote: I have some html that is brought in through ajax which itself has some jquery functions attached to it.  These are not working unless I

[jQuery] Livequery add class to new DOM elements

2008-07-16 Thread hubbs
I am trying to get live query to work, so that it will add a new class to links that have just been added to the DOM through ajax. Something is not right though: $('a.calendarNavLink').livequery(function(){ $(this).addClass('ajax'); }); Have I done something wrong here?

[jQuery] Re: Livequery add class to new DOM elements

2008-07-16 Thread hubbs
an 'onclick' event associated with them   // as compared to the event only being bound on document ready }); On Jul 16, 2:05 pm, hubbs [EMAIL PROTECTED] wrote: I am trying to get live query to work, so that it will add a new class to links that have just been added to the DOM through

[jQuery] Re: Livequery add class to new DOM elements

2008-07-16 Thread hubbs
' }); }); }); On Jul 16, 1:29 pm, hubbs [EMAIL PROTECTED] wrote: Ok, I realize it is working.  But, for some reason it is not working with the ajaxload script.  I have a feeling I have to somehow call the ajaxload from within livequery. $('a.ajax').ajaxContent({         target:'#adminToolsListing

[jQuery] Add events and functions to ajax content

2008-07-15 Thread hubbs
I have some html that is brought in through ajax which itself has some jquery functions attached to it. These are not working unless I include a document ready in the content that is pulled through with ajax. This in turn conflicts with my pages jquery document load. Is there a way to avoid

[jQuery] Using jQuery Form Plugin - submitting special characters

2008-07-11 Thread hubbs
I am trying to send special characters through my form, using the form plugin, but they keep on getting converted to strange characters. e.g. Smart quotes from MS Word, etc. So, what I am wondering is, what do I need to do to fix this? I thought that submitting the form into an iframe with the

[jQuery] Filter list, not table

2008-07-09 Thread hubbs
I have found many nice filter plugins, that let you filter a table, and hide the rest of the items, and only show the item that matches what was entered into an input dialog. What I would like to do, is use an unordered list instead. Is there any plugins that support this? I have not been able

[jQuery] jScrollPanel not always initializing in Safari

2008-07-08 Thread hubbs
I am using jScrollPanel, and I have noticed that it does not always get initialized when the page first loads in Safari. If I refresh the page, it correctly loads up jScrollPanel. Any ideas why this might be happening? http://www.puc.edu/ Thanks!

[jQuery] Re: jScrollPanel not always initializing in Safari

2008-07-08 Thread hubbs
; I've tried $(window).ready and also tried calling it twice. with a bit of tweaking and tinkering I thought I found a solution - but then lost it 2008/7/8 hubbs [EMAIL PROTECTED]:    I am using jScrollPanel, and I have noticed that it does not always    get initialized when the page

[jQuery] Re: Add class on click, then remove when click another, and add to that.

2008-06-27 Thread hubbs
Thank you! This will work perfectly. Yes, I need the link to be followed, because it loads content into a div using ajax, so, removing return false; will be what i need. Any thank you for commenting the code! That really helps for beginners! On Jun 26, 1:15 am, sheshnjak [EMAIL PROTECTED]

[jQuery] Re: Using this with jQuery

2008-06-27 Thread hubbs
On Thu, Jun 26, 2008 at 1:02 AM, hubbs [EMAIL PROTECTED] wrote: I have a listing of items, each of which has a transparent cover over each item, but when you mouse over the item, the transparency hides, and shows full color item, then on mouseout the cover is added again. This works fine

[jQuery] Re: jQuery upload progress bar, maybe for form plugin

2008-06-25 Thread hubbs
When will jquploader2 be done? On Jun 24, 10:54 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: On Wed, Jun 25, 2008 at 7:25 AM, hubbs [EMAIL PROTECTED] wrote: I have been reading different posts that talk about a jquery upload progress bar, but none of them gave a good solution

[jQuery] Using this with jQuery

2008-06-25 Thread hubbs
I have a listing of items, each of which has a transparent cover over each item, but when you mouse over the item, the transparency hides, and shows full color item, then on mouseout the cover is added again. This works fine if I use IDs, but I want to get away from this, as I am not always sure

[jQuery] Add class on click, then remove when click another, and add to that.

2008-06-25 Thread hubbs
I have a list of links, and when one is clicked, I would like a class to be added. I understand how to do this, but when you click another link, I would like the class removed from the first click and added to the second click, and so on, so that there is always only one link with the class

[jQuery] jQuery upload progress bar, maybe for form plugin

2008-06-24 Thread hubbs
I have been reading different posts that talk about a jquery upload progress bar, but none of them gave a good solution. Is there a good solution for a upload progress bar, that can accurately progress, for file/image uploads, so that the user can see how long it is taking? Also, is there a way

[jQuery] Resizing two divs proportionally

2008-06-20 Thread hubbs
I would like to know how I could resize two divs proportionally to each other. I have the resize UI plugin working to resize the top div, but I would like the bottom div to resize as well, depending on the resizing of the top div. (Similar to how many mail programs manage the list of mail, and

[jQuery] Access multiple URLs with ajax

2008-06-18 Thread hubbs
I am wondering if it is possible to use the jQuery .ajax() call to access multiple URLs right after another. When I am wanting to do, is have a list of items, each of which has a check box which is an option to delete the item. If the box is checked, and the submit button clicked, I would like

[jQuery] Expandable Div

2008-06-16 Thread hubbs
I am wanting to have a div that you can click your mouse on the edge of it, and then drag the bottom of the div up to make it smaller, or drag it down to make it larger. Obviously I would set it to overflow:auto so that my scroll bar would appear when needed. Does jQuery have something like

[jQuery] Re: Expandable Div

2008-06-16 Thread hubbs
Perfect! Thank you! On Jun 16, 4:20 pm, anthonyd [EMAIL PROTECTED] wrote: You should check out jQuery UI -http://ui.jquery.comhttp://ui.jquery.com/functional_demos/#ui.resizablelooks like it should do what you want. Ant. On Jun 17, 12:09 am, hubbs [EMAIL PROTECTED] wrote: I am

[jQuery] Re: Expandable Div

2008-06-16 Thread hubbs
. On Jun 17, 12:09 am, hubbs [EMAIL PROTECTED] wrote: I am wanting to have a div that you can click your mouse on the edge of it, and then drag the bottom of the div up to make it smaller, or drag it down to make it larger.  Obviously I would set it to overflow:auto so that my scroll bar would

[jQuery] Re: jScrollPane - White space at bottom of scrolling div

2008-06-11 Thread hubbs
Anyone? On Jun 10, 9:51 am, hubbs [EMAIL PROTECTED] wrote: I am using jScrollPane to have a scrollable calendar.  It is made up of list items, and the height of each list item depends on how long the name of the calendar event is, so I cannot define a height for each list item.  This seems

[jQuery] Re: jScrollPane - White space at bottom of scrolling div

2008-06-11 Thread hubbs
I figured it out. I was converting an ISO date after the scrollers were added, so the height was calculated with the long iso date, making the div higher. So, moving the convert date script before jScrollPane worked! On Jun 11, 12:20 pm, hubbs [EMAIL PROTECTED] wrote: Anyone? On Jun 10, 9

[jQuery] jScrollPane - White space at bottom of scrolling div

2008-06-10 Thread hubbs
I am using jScrollPane to have a scrollable calendar. It is made up of list items, and the height of each list item depends on how long the name of the calendar event is, so I cannot define a height for each list item. This seems to cause a problem for jScrollPane, and it leaves a large amount

[jQuery] Making normal functions work with jQuery

2008-06-05 Thread hubbs
I have two functions that convert an ISO date into whatever date format I want. Currently I am using a document.write statement to write out each date, but I don't want to do that anymore. I want to make it unobtrusive, and have jquery find a class selector, and replace the content. So, my

[jQuery] Calculate time since post

2008-06-03 Thread hubbs
I am wondering if jQuery has any solutions to calculate the time since a post was made. Say it was created on June 2, at 11:30pm, I would like to have the display continue to change as the days go on. So, tomorrow, it would read, posted 1 day 20 hours ago, or something like that. Has anyone

[jQuery] Re: Calculate time since post

2008-06-03 Thread hubbs
Perfect!! Just what I was looking for! On Jun 2, 11:55 pm, tazman [EMAIL PROTECTED] wrote: Check this:http://ejohn.org/blog/javascript-pretty-date/

[jQuery] Re: Do something, ONLY if parent has children

2008-05-30 Thread hubbs
:37 am, hubbs [EMAIL PROTECTED] wrote: Thank you. So, if I wanted to check to see if there even were any p tags after an h1 tag, and I wanted to hide the h1 tag, I would do the following? $('h1 + p:not(:has(*))').hide(); On May 28, 7:22 pm, Hamish Campbell [EMAIL PROTECTED] wrote

[jQuery] Do something, ONLY if parent has children

2008-05-28 Thread hubbs
I am wondering how I could check if a parent element has children, and it it does not, I would like to hide the parent. I was looking at something like the following, but I am not sure how to get it to work how I want: $(#main *).hide;

[jQuery] Re: Do something, ONLY if parent has children

2008-05-28 Thread hubbs
Thanks Mike, Could you explain your if statement for me, what does the do? I am still learning js and jQuery. :) On May 28, 5:10 pm, Michael Geary [EMAIL PROTECTED] wrote: I would do it by checking the DOM directly, just because it's reasonably straightforward and very efficient:     var

[jQuery] Re: Do something, ONLY if parent has children

2008-05-28 Thread hubbs
Hey guys, I realized that I misstated my problem. I realized that the item I want to check for is NOT a child, but the element that comes AFTER a specific element. So, I have a list of specific elements, and if an element with a specific class does not come after the first element, hide the

[jQuery] Re: Do something, ONLY if parent has children

2008-05-28 Thread hubbs
documentation:http://docs.jquery.com/ The selector you want is 'prev + next':http://docs.jquery.com/Selectors/next#prevnext Eg, if I wanted to highlight in blue every paragraph object that comes after a h1 heading: $('h1 + p').css('color', 'blue'); On May 29, 2:06 pm, hubbs [EMAIL PROTECTED] wrote: Hey

[jQuery] Accordion issues: Closes when clicking link

2008-05-27 Thread hubbs
I am using the jQuery Accordion plugin (http://bassistance.de/jquery- plugins/jquery-plugin-accordion/) which is great. I have one problem. Inside of some of my accordion divs I have links to pdf files, external pages, etc. When you click on any of these links, it just closes the accordion,

[jQuery] Re: Accordion issues: Closes when clicking link

2008-05-27 Thread hubbs
I figured it out. I needed to specify a header (header: 'a.accordTitle',) On May 27, 10:04 am, hubbs [EMAIL PROTECTED] wrote: I am using the jQuery Accordion plugin (http://bassistance.de/jquery- plugins/jquery-plugin-accordion/) which is great.  I have one problem.  Inside of some of my

[jQuery] Re: Convert special characters

2008-05-22 Thread hubbs
to diagnose where exactly it's going wrong. Karl Rudd On Thu, May 22, 2008 at 3:18 PM, hubbs [EMAIL PROTECTED] wrote: Karl, So, potentially, javascript is using a different character set when posting with ajax, as opposed to a normal form post? On May 21, 6:38 pm, Karl Rudd [EMAIL

[jQuery] Re: Convert special characters

2008-05-22 Thread hubbs
going wrong. Karl Rudd On Thu, May 22, 2008 at 3:18 PM, hubbs [EMAIL PROTECTED] wrote: Karl, So, potentially, javascript is using a different character set when posting with ajax, as opposed to a normal form post? On May 21, 6:38 pm, Karl Rudd [EMAIL PROTECTED] wrote: JavaScript uses

[jQuery] Cluetip not working because of other javascript

2008-05-22 Thread hubbs
I was frustrated because I could not figure out why cluetip was not working. I figured out it was conflicting with another script, which makes a div scrollable, and I had the cluetip links inside of this. If I move the clue tip links, outside of the scrollable div, it works as expected. any

[jQuery] Re: Convert special characters

2008-05-22 Thread hubbs
Corry [EMAIL PROTECTED] wrote: hubbs wrote on 5/22/2008 12:23 PM: Karl, it seems to be the biggest problem when text is copied from MS Word, then sent through ajax.  The quotes don't play nice. The curly quotes from MS Word are in the Windows-1252 character set.  You're using ISO-8859-1

[jQuery] Scrolling div with image scroller?

2008-05-21 Thread hubbs
I have a very old javascript implementation of a scrolling div, that has an image as the scroller, so that I can scroll a div filled with content. Here is the original script: http://meddle.dzygn.com/eng/weblog/scroller.mod/ I would really like to find a new, clean and simple jQuery solution,

[jQuery] Show element onclick

2008-05-20 Thread hubbs
I have a list of divs that I would like to display one at a time when a link is clicked. How would I do this with jQuery? a href=#Show another/a divContent 1/div div style=display:none;Content 2/div div style=display:none;Content 3/div div style=display:none;Content 4/div div

[jQuery] Re: Easy way to filter and sort a list

2008-05-19 Thread hubbs
Ongerth [EMAIL PROTECTED] wrote: Have you looked athttp://plugins.jquery.com/project/autocompletex? On May 16, 11:09 pm, hubbs [EMAIL PROTECTED] wrote: Would i use .filter() for this? On May 16, 11:42 am, hubbs [EMAIL PROTECTED] wrote: I am looking for a way to easily filter, and short

[jQuery] jQuery Column Filters Plugin Help

2008-05-19 Thread hubbs
I just found the really great Column Filters Plugin: http://plugins.jquery.com/project/ColumnFilters Right now, you can only use it with tables, and, the tern you are filter with, has to be the first thing within the td, so, if you wanted to use a span inside, or a link this won't work. I am

[jQuery] Fake ajax load

2008-05-19 Thread hubbs
I need to load a page into an iframe, but I would like to have jquery show a loading gif while the data is loading into the iframe. Is it possible, similar to loading ajax, that I can load the gif, only until the page is loaded, then hide it?

[jQuery] Re: Fake ajax load

2008-05-19 Thread hubbs
Karl Rudd On Tue, May 20, 2008 at 1:32 PM, hubbs [EMAIL PROTECTED] wrote: I need to load a page into an iframe, but I would like to have jquery show a loading gif while the data is loading into the iframe.  Is it possible, similar to loading ajax, that I can load the gif, only until the page

[jQuery] Re: Easy way to filter and sort a list

2008-05-17 Thread hubbs
Would i use .filter() for this? On May 16, 11:42 am, hubbs [EMAIL PROTECTED] wrote: I am looking for a way to easily filter, and short a list.  I found the tableFilter plugin, but it is an overkill for what I need, and I don't want to use tables.  I want to be able to filter a list of items

[jQuery] Easy way to filter and sort a list

2008-05-16 Thread hubbs
I am looking for a way to easily filter, and short a list. I found the tableFilter plugin, but it is an overkill for what I need, and I don't want to use tables. I want to be able to filter a list of items, and also sort this list by ABC. I love the idea of the filtering being linked to an

[jQuery] Highlight code WITHIN a textarea?

2008-05-16 Thread hubbs
Is there a way to highlight code within a textarea block? It would be nice to be able to color code the text, as we have a large textarea that html and javascript is added to. I was looking at using Chili, but it does not seem this would work.

[jQuery] Re: Var in through ajax, then copy to field

2008-05-15 Thread hubbs
)     $(#create_image_location).val( imageLoc[0] );   // ... }); I'm assuming, based on your other emails, that you're using the Form Plugin. Karl Rudd On Thu, May 15, 2008 at 3:18 PM, hubbs [EMAIL PROTECTED] wrote: Karl, this isn't possible, as it is part of an Administration Interface that I am building

  1   2   >