[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] 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 > > itemH

[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: 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(&qu

[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] 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("A

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

2008-09-25 Thread hubbs
> I might not be understanding clearly what you want, a test case or > explanation 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 app

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

2008-09-24 Thread hubbs
an't test anything 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

[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('Inserted from iFrame '); }); }); For some reason, the click event is not being bound, and the html

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

2008-09-23 Thread hubbs
]> 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 with the do with the $(document).ready > > function.  I

[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]>

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

2008-09-17 Thread hubbs
ng the iframe's jQuery object: > > $('.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. >

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

2008-09-17 Thread hubbs
ou > 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 Ricardo. > > > But what if I wanted to access the parent do

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

2008-09-17 Thread hubbs
ents 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 Ricardo. > > > B

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

2008-09-16 Thread hubbs
he parent window unless you > tell 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',

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

2008-09-16 Thread hubbs
methods within jQuery. Since within the frame > > you are using a new instance of jQuery, LiveQuery will not be monitoring its > > DOM methods. > > -- > > Brandon Aaron > > > On Sun, Sep 14, 2008 at 11:04 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 fram

[jQuery] Re: Nesting if statements not working

2008-09-02 Thread hubbs
s doing a string comparison, which will throw off 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

[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 ale

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

2008-08-31 Thread hubbs
7;s > what Firebug shows for one of your elements: > >     >         >             Item Name >             >                 Contents >             >         >         Link >     > > See how different that is from your original HTML? > > -Mike > > > From:

[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 t

[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 ne

[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: $("input:text").bind("keypre

[jQuery] Re: Understanding event delegation

2008-08-26 Thread hubbs
;   $(event.target).addClass("selected");} > > else if ($target.is('span')) { >   var $anchor = $target.parent('a'); >   $("a.selected").removeClass("selected"); >   $anchor.addClass("selected"); > > } > > Bria

[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 <[EM

[jQuery] Re: Understanding event delegation

2008-08-26 Thread hubbs
gation is surely the best 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 > > dele

[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 an

[jQuery] Re: Livequery and iFrames

2008-08-25 Thread hubbs
der 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

[jQuery] Re: Livequery and iFrames

2008-08-24 Thread hubbs
? It seems that this should work, as it is updating the DOM in the parent frame 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. >

[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 h

[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

[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 c

[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: 10, 14, 11 In this example, when the page loads, I need the checkboxes with id's 10, 14, and 11 to be checked, and the rest to remain unchecked. The values i

[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

[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 o

[jQuery] Re: $.ajax() timeout

2008-08-20 Thread hubbs
     $("#adminToolsListingA .ajaxLoading").hide(); >                        $("#adminEditListingA .scroll").html(html); >                     } >                 }); >             }, 5000 ); > > -- Josh > > - Original Message - > From: "hubbs" <[EMAIL PROTECTED]> > To: "jQue

[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 a

[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", >      "lastNam

[jQuery] Understanding JSON

2008-08-19 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 },

[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
part 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-

[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 e

[jQuery] Re: Firefox 3 and packed jQuery

2008-07-21 Thread hubbs
that best practice 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 > > jQue

[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: .slice() a specific number of characters?

2008-07-20 Thread hubbs
e(-6)}); > > --Karl > > Karl 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] .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: .click with confirm coming up multiple times

2008-07-19 Thread hubbs
var answer = confirm("Are you sure you want to delete 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

[jQuery] .click with confirm coming up multiple times

2008-07-18 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: 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 a

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

2008-07-18 Thread hubbs
y? On Jul 18, 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 a

[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 returni

[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 $("#calendar_event_718").keyup

[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(); $("#ajaxResult"

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

2008-07-16 Thread hubbs
7;/__data/assets/image/0018/24345/announce- loading.gif' }); }); }); 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 > aja

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

2008-07-16 Thread hubbs
ck', function() { > >   // anchors with a class of 'someLink' > >   // can now be dynamically inserted to the dom > >   // yet still have an 'onclick' event associated with them > >   // as compared to the event only being bound on document ready >

[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: Add events and functions to ajax content

2008-07-15 Thread hubbs
ay to do what I need, or are some 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 &g

[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 thi

[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 f

[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] Re: jScrollPanel not always initializing in Safari

2008-07-08 Thread hubbs
com > >Subject: [jQuery] Re: jScrollPanel not always initializing in Safari > > >i've had troubles too; 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 l

[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: Using "this" with jQuery

2008-06-27 Thread hubbs
ichard D. Worthhttp://rdworth.org/ > > [1] If you have a different structure, you might have to do something like > $(this).next(".seriesOverlay"), depending > > On Thu, Jun 26, 2008 at 1:02 AM, hubbs <[EMAIL PROTECTED]> wrote: > > > I have a listing of i

[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] 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 appli

[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 s

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

2008-06-24 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 > > pr

[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 vi

[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 a

[jQuery] Advice on ajax links

2008-06-17 Thread hubbs
I just wanted to get some advice, and maybe some best practices from those who have done this. I am wanting to use ajax, to load content into a div. I am wanting the link to be more than just a line of text. It will be a box with an image, and multiple lines of text in it. I had wished I could

[jQuery] Re: Expandable Div

2008-06-16 Thread hubbs
do what you want. > Ant. > > 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

[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, hubb

[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 this

[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? >

[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 > eac

[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 o

[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 ques

[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] Calculate time since post

2008-06-02 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 had

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

2008-05-30 Thread hubbs
s not have class 'fred' > > or > > hide DIV, H1 and H6 where first child is not (DIV.dynamo) > > or > > hide P, H1 thru H6 where next element is not (P.kiev) or is (P.kiev > having a child of A.hideme) > > Then we can stop trying to second guess what it i

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

2008-05-28 Thread hubbs
rget to check the jQuery 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').c

[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 fir

[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: > >

[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: 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 > pr

[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, and

[jQuery] Re: Convert special characters

2008-05-22 Thread hubbs
12 am, Bil 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

[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 idea

[jQuery] Re: Convert special characters

2008-05-22 Thread hubbs
pretty hard 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 op

[jQuery] Re: Convert special characters

2008-05-22 Thread hubbs
n question it's > pretty hard 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 > >

[jQuery] Re: Convert special characters

2008-05-21 Thread hubbs
your back end is also expecting that. > > Some useful links gleaned from a Google search of "javascript utf-8": > > http://www.meanfreepath.com/support/javascript_charsets.htmlhttp://www.dangrossman.info/2007/05/25/handling-utf-8-in-javascript-p... > > Karl Rudd > > O

[jQuery] Convert special characters

2008-05-21 Thread hubbs
I have a form, which sends text through .ajax(); using POST. But for some reason, it is making special characters into strange text. For example, when quotes are posted, ’ is received on the other end instead. Should I be using a special jquery function to convert special characters? As it s

[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, a

[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? Show another Content 1 Content 2 Content 3 Content 4 Content 5 Content 6 What I would like to do is reveal the next div in the list when the "Show another" link is clicked,

[jQuery] Re: Fake ajax load

2008-05-19 Thread hubbs
.synaptrixgroup.com/?p=6 > > 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 >

[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] 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 , so, if you wanted to use a inside, or a link this won't work. I am intereste

[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]

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

2008-05-16 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

  1   2   >