Re: [jQuery] FOUND THE SOLUTION FOR ROUNDIES FOR IE8 !!!!!!

2010-02-22 Thread brian
SPECTACULAR NEWS! So, um ... don't keep us in suspense. On Sun, Feb 21, 2010 at 2:45 PM, Erik wrote: > For months I couldn't figure this out and I found the answer > > dd_roundies can now work with IE8!!! > > Erik >

Re: [jQuery] DD_roundies

2010-02-07 Thread brian
Anchors are inline elements. Try giving it display: block (or inline-block). On Thu, Feb 4, 2010 at 7:12 PM, Erik wrote: > Hello everyone... > > I'm using DD_roundies for IE round corners and it works great.  BUT, I > can"t seen to figure out how to make the following work: > > > > .a2 {width: 1

[jQuery] Re: 1.4.1 bug? jwysiwyg uncaught exception

2010-01-30 Thread brian
My apologies. I meant to also say that I tried it using jquery-1.3.2 with the same bad result. So I have no clue where the trouble lies. On Sat, Jan 30, 2010 at 11:04 PM, brian wrote: > A little update to this. I tried a different approach, hiding the form > at the bottom of the pa

[jQuery] Re: 1.4.1 bug? jwysiwyg uncaught exception

2010-01-30 Thread brian
// some stuff here left out for clarity $(this).parent('.CommentMeta') .append($('#comment_form')) .hide() .slideDown('slow'); }); On Sat, Jan 30, 2010 at 9:53 PM, brian wrote: > jquery-1.4.1 &g

[jQuery] 1.4.1 bug? jwysiwyg uncaught exception

2010-01-30 Thread brian
jquery-1.4.1 Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5.7 Using Scott Storborg's fork of jwysiwyg [1], when loading a form through $.ajax() the editor area cannot get focus. If I open the "source" pane and type in there, once I then close

Re: [jQuery] Implementing JCrop in Ajax Upload

2010-01-28 Thread brian
What do you mean by, "the image selection doesnt work"? Can you give a clearer description o fwhere you think the problem lies? Are you certain that the path sent back from the server is correct? What does alert(data.path) show? On Wed, Jan 27, 2010 at 8:21 PM, adi sembiring wrote: > Hi , I'

Re: [jQuery] Using variable in animate()'s properties

2010-01-24 Thread brian
You're repeating a bunch of code here. It'd be better to assign a variable for the img at the beginning of the function. function() { var img = $(this).find('img'); var value = (direction =='top' || direction=='bottom') ? img.outerHeight() * -1

Re: [jQuery] JQuery Ajax serialize

2010-01-24 Thread brian
Use parse_str(). But beware that that string has a problem: val */ $pairs = explode('&', $str); foreach($pairs as $pair) { $parts = explode('=', $pair); echo "key: ${parts[0]} -- val: ${parts[1]}\n"; } echo "\n---\n"; /* better way: parse the string into variables */ pars

[jQuery] MarkItUp image upload

2010-01-23 Thread brian
I've just created an improved image widget for the MarkItUp editor[1]. Instead of being prompted for an existing URL for the src attribute, a file upload form is created. The form target a hidden iframe. An online script should return the URL, as well as the final width & height. When the iframe ha

Re: [jQuery] New Forums

2010-01-21 Thread brian
On Thu, Jan 21, 2010 at 7:28 PM, Shawn wrote: > My apologies to the list managers.  I did not mean to belittle their efforts > in any way.  I only meant to state that for me, personally, forums are not > the preferred tool. > > I am involved in a number of organizations where the main mantra is th

Re: [jQuery] Re: JQuery and AJAX Heartbeat question

2010-01-19 Thread brian
for your tips brian and scott. > >> set_time_limit(0); >> >> The expected value is integer seconds. A value of 0 disables the time >> limit altogether. > > If i try set_time_limit(20); it gives me an 500 error after 20 > seconds, but if i set the value to 60 seconds

Re: [jQuery] JQuery and AJAX Heartbeat question

2010-01-18 Thread brian
Put this near the top of your PHP script: set_time_limit(0); The expected value is integer seconds. A value of 0 disables the time limit altogether. On Mon, Jan 18, 2010 at 4:25 PM, mind01 wrote: > Hi there, > > I have a PHP script called zip.php to generate a zip file. This > requires more tha

Re: [jQuery] Jquery DOM

2010-01-17 Thread brian
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Sun, Jan 17, 2010 at 10:50 AM, Louie39 wrote: > I have a form that is using jqury to post data (ajax) to another page > and returns the result, but after the new content is loading, all > l

Re: [jQuery] Passing in a parameter

2010-01-17 Thread brian
Do you have some function inside of the ready() block that you could pass the data to instead? Could you post some of your code? On Sat, Jan 16, 2010 at 11:57 PM, Patrick wrote: > Hi all, > I have a newbie question. You know how you can pass a variable to a > JavaScript function like this: > > on

Re: [jQuery] ^=, $=: how to use?

2010-01-16 Thread brian
Like this, for example: $('input[id$=3]').change(function() { alert('foo'); }); But it really depends on what you want to do. With the above, you'd need to specify as many change() handlers as you have inputs. Another way would be to have a generic handler and, inside that function, have

Re: [jQuery] New Forums

2010-01-16 Thread brian
On Sat, Jan 16, 2010 at 6:51 PM, Matt Quackenbush wrote: > I concur regarding mailing list vs. forum.  Both have their positives and > negatives, but these days I definitely prefer a mailing list over forums. > Perhaps the jQuery team could not find another mailing list that would > import all of

Re: [jQuery] $("ul li a").hover

2010-01-14 Thread brian
On Thu, Jan 14, 2010 at 10:06 PM, brian wrote: > On Thu, Jan 14, 2010 at 9:53 PM, J wrote: >> Hi, >> >> Im new to jquery. >> >> I have a .hover that is applied to all ul li a >> $("ul li a").hover >> >> Question: How can I apply the .

Re: [jQuery] $("ul li a").hover

2010-01-14 Thread brian
On Thu, Jan 14, 2010 at 9:53 PM, J wrote: > Hi, > > Im new to jquery. > > I have a .hover that is applied to all ul li a > $("ul li a").hover > > Question: How can I apply the .hover to a specific class or id? > > I tried something like this but it didn't work for me: > $("#test ul li a").hover W

Re: [jQuery] Altering cloned HTML's ID values

2010-01-12 Thread brian
See this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/ce535e6bc3c8ef34 On Tue, Jan 12, 2010 at 10:15 AM, Sloan Thrasher wrote: > Hi, > > I've got a table where I'm adding rows using clone and appendTo. After > cloning, I need to change the ID of elements in the cloned HT

Re: [jQuery] added form elements not sent using Firefox

2010-01-12 Thread brian
If you have multiple inputs with the same name be sure to add square brackets to the name so that the browser sends an array of values. single: multiple: Also, fyi (and most likely unrelated), when copying DOM elements, make sure that you don't end up with multiple elements with the same ID (

Re: [jQuery] Find array key of value

2010-01-12 Thread brian
I'm not sure that I follow that but one thing that might help is to store JSON objects in the array instead of just the src: $( ".images img" ).each( function(i) { imgArray.push( src: $(this).attr( "src" ), key: i ); }); Then, when retrieving the new src you can also get the key/index

Re: [jQuery] [apycom Menu] Submenu items showing as top level items in IE

2010-01-10 Thread brian
W3.org's validator shows 163 errors and 46 warnings. Best you get the page to validate first as this may be caused by invalid/broken markup. On Sun, Jan 10, 2010 at 2:55 PM, speedpac...@gmail.com wrote: > Hi, > > I'm using the (paid) version of Apycom's jQuery menu; you can find it > at http://ap

Re: [jQuery] Accessing value of a dynamic added input

2010-01-09 Thread brian
$(this).val() should work just fine. There must be some other issue. Are you sure the HTML is correct (eg. options all have values)? On Sat, Jan 9, 2010 at 5:55 PM, -null- wrote: > I'm adding an input and select box to a div by setting the div's > html.  I then attach a change event to the select

Re: [jQuery] reference dynamically loaded form select

2010-01-09 Thread brian
Set the event handler on the select at the time it is added to the DOM. http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Fri, Jan 8, 2010 at 1:49 PM, sonicDivx wrote: > Been trying to find the best answer to a problem a co-worker is hav

Re: [jQuery] My table tags are getting stripped out.

2010-01-08 Thread brian
I can't see what might be causing that although you could change these 2 lines: $('#CalendarBody').children().remove(); $('#CalendarBody').append(response); ... to: $('#CalendarBody').html(response); That's if you're not using thead, tfoot, and tbody tags, of course. On Fri, Jan 8, 2010 at 12:

Re: [jQuery] :contains   in IE doesn't seem to work

2010-01-08 Thread brian
Do these cells contain *only* the nbsp? If so, you could go at it another way: $('td:last-child').each(function() { if ('' == $(this).text().trim()) { $(this).parent().addClass('markeme-sub'); } }); On Fri, Jan 8, 2010 at 7:41 AM, Jonatan wrote: > Hi, > >

Re: [jQuery] Replacing HTML Content for Elements of a Certain Class

2010-01-07 Thread brian
see here: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F http://docs.jquery.com/Plugins/livequery Essentially, you either need to deal with this in the load() success callback or use live(). However, i can't remember if live() works for the

Re: [jQuery] Re: highlighting

2010-01-07 Thread brian
var $target = $(this.hash); $target.addClass('SomeClassName'); ... On Thu, Jan 7, 2010 at 10:02 AM, metalmini wrote: > Euh... oke and in what way do i implement that? Can you give me a > example? > > Thanks for the reply btw :-) > > On Jan 7, 1:01 am, brian wrote: &g

Re: [jQuery] Position div accounting for screen size/resize

2010-01-06 Thread brian
Bind a handler for the resize event like so: $(window).bind('resize', function() { ...}); Have a look at this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/4a00d513c63f5c00?pli=1 On Wed, Jan 6, 2010 at 11:08 AM, kevinkace wrote: > Can you change a position of a div, bas

Re: [jQuery] form validation

2010-01-06 Thread brian
Set up the handler when the form is created: $("#the_form_id").validate(); You might also want to have a look at the Jeditable plugin: http://www.appelsiini.net/projects/jeditable On Wed, Jan 6, 2010 at 10:25 AM, John Albright wrote: > Is it possible to use the jquery form validation plugin (

Re: [jQuery] Re: urgent help

2010-01-06 Thread brian
Or, at minimum, an example or two of the errors encountered. On Wed, Jan 6, 2010 at 7:13 AM, MOZ wrote: > link to demo? > > On Jan 6, 3:49 am, Sugi wrote: >> I am using Jquery plugins like flowplayer,fancy plugin for image and >> video stuffs...It creates lot of erros with IE 6. Can any one help

Re: [jQuery] highlighting

2010-01-06 Thread brian
$target.css('...') Or, better: $target.addClass('SomeClassName'); On Tue, Jan 5, 2010 at 10:35 AM, metalmini wrote: > Hi guys and galls, > > Im not really a jquery programmer but i build lots of sites and i love > the jquery plugins that i can easily copy and paste. So anyway im > building a ne

Re: [jQuery] Change opacity of item with class of selected

2010-01-05 Thread brian
Just put the class in the selector instead of testing for it first: $("#portfolio #thumbs li.selected").css('opacity','0.5'); If the class doesn't exist, jQuery will do nothing (instead of throwing an "undefined" error or similar). On Tue, Jan 5, 2010 at 12:45 PM, Paul Collins wrote: > Hi all >

Re: [jQuery] retrieving textnode?

2010-01-05 Thread brian
CSS only operates on tagged elements. You'll have to wrap the text node in a span (with a certain class, for example). On Tue, Jan 5, 2010 at 2:00 AM, bundy wrote: > Hi, I'm new to jQuery, finding feet. > > I want to be able to say, "if the text node of a certain child > consists of certain strin

Re: [jQuery] New to JS and jQuery

2010-01-05 Thread brian
That works for me but I do see how this can be refactored: My Account My Account More stuff Here is a menu item Here is a menu item Here is a menu item Here is a menu item Notice that I've changed the IDs so that the DIV has the link ID plus some

Re: [jQuery] How to append a to line of orphan text?

2010-01-05 Thread brian
On Tue, Jan 5, 2010 at 1:01 AM, Tong wrote: > Hi, > > I have the following HTML: > > >  Some Text Here: More Text Here >  Some Text Here: More Text Here >  Some Text Here: More Text Here > > > How could I use jQuery to wrap each line of text in a and remove > all the and finally wrap all the

[jQuery] Taconite eval blocks referencing other parts of XML document

2010-01-03 Thread Brian Moquin
Here's a trivial example of my solution: *Client Code* ... *var oxml;* $.post('ajaxresponder.cfm',{ action: 'dosomething', dataType: 'xml' },function (xml) { *oxml=xml;* }); *Server Return* 0 Brian ...

Re: [jQuery] Re: simplemodal next/back functionality

2009-12-31 Thread brian
On Thu, Dec 31, 2009 at 2:13 AM, nevgenevich wrote: > > it generates the link properly, when clicking on it: it closes the > modal but does nothing else. i can verify with a console.log that it > gets to after the call to open the previous modal, but it doesnt open > anything. checked to make

Re: [jQuery] jquery.js and jquery-1.2.6.pack.js conflict

2009-12-31 Thread brian
You should only load one of those files. The version included with jCarousel is there as a convenience. It's not necessary to use it if you already are loading jQuery. It's likely the unpacked version is newer, anyway. On Thu, Dec 31, 2009 at 7:21 AM, Mr.Aaqib wrote: > Hi, > > Recently i created

Re: [jQuery] jquery and tomcat

2009-12-30 Thread brian
jQuery is a client-side framework. Your host provider should not be at all an issue. Perhaps you're confusing Java with Javascript. They are completely separate things. On Wed, Dec 30, 2009 at 1:07 PM, jason wrote: > hello, > i am looking to begin web development after a bit of experience with >

[jQuery] animate() not working for opacity in IE

2009-12-30 Thread Brian
I'm trying to animate a div from 100% opacity to 40% opacity WITHOUT using fadeTo(). I need to use animate(). It works fine in chrome/FF/safari, but in IE, the opacity doesn't animate, it simply changes to that after the animation is done. Happens in IE 7 and 8. I'm doing this:

Re: [jQuery] simplemodal next/back functionality

2009-12-30 Thread brian
Given the following HTML: one two three four five Modal one Modal two Modal three Modal four Modal five $(function() { $('a.Foo').each(function() { $(this).click(function() {

Re: [jQuery] If radio button checked - do stuff

2009-12-30 Thread brian
You have some redundancy there. Selecting on ':radio' is unnecessary because you're also selecting for the element name. And the ':checked' is no good because that limits this to elements that have already been checked. That's likely not the desired behaviour. Try: $('form input[name=setting1]').c

Re: [jQuery] Re: Help on Independent DIV's that toggle!!

2009-12-30 Thread brian
On Tue, Dec 29, 2009 at 11:11 PM, Erik wrote: > Brian, > > It looks like you just added  $(this).next > That, and used class names in the selector, rather than a unique ID, so that it operates on a set of elements. Using next() assumes that each link comes just before the div th

Re: [jQuery] Help on Independent DIV's that toggle!!

2009-12-29 Thread brian
Use classes: http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js";> $(document).ready(function() { $('.SomeOtherClass').hide(); $('a.SomeClass').click(function() { $(this).next('div.SomeOtherClass').slideToggle(400); $(this).text(

Re: [jQuery] Multifile - help

2009-12-29 Thread brian
* as the particular group */ alert(this.id + ': ' + $('.MultiFile', this).length); }); return false; }); }); Please specify a file, or a set of files:

Re: [jQuery] Multifile - help

2009-12-29 Thread brian
You shouldn't need more than one file element to begin with. The plugin takes care of creating new ones. Or, perhaps I don't understand what it is you're trying to do. On Tue, Dec 29, 2009 at 1:27 PM, jayakumar ala wrote: > Anyone can help me on this.. > > On Mon, Dec 28, 2009 at 10:39 AM, ja

Re: [jQuery] Re: sorting columns using jquery. noob with html and java. built custom php using snmp

2009-12-29 Thread brian
Leave it in the PHP file. The tablesorter file should be left clean. Think of it as a library that you include. The snippet of code you referred to is something that makes use of that library. Don't be fooled by the script tags. While the file is a PHP script, any PHP code is parsed on the server.

Re: [jQuery] Finding next element

2009-12-27 Thread brian
Use prev() and next(). Look at the "traversing" section of the docs: http://docs.jquery.com/Traversing On Sun, Dec 27, 2009 at 7:30 PM, Toaster wrote: > Hello. > > Example: > > >       >       >       > > > How would I be able to get find the next or previous in relation > to the ? > > I'd app

Re: [jQuery] Jquery + ie7 spans

2009-12-24 Thread brian
Does it work if the span does not have linebreak before it? On Wed, Dec 23, 2009 at 6:05 AM, Alex Mcauley wrote: > Morning and happy holidays!.. > > I am having some trouble with jQuery and IE7 quirks (suprise > suprise).. > > Basically i wrote a script that truncates some text and when "More > D

Re: [jQuery] SimpleModal overlay does not cover entire screen

2009-12-24 Thread brian
Your CSS is my first guess. I'm thinking that you've given your BODY (or HTML) element a set width and margins. Try using a wrapper element instead to create the content area. On Thu, Dec 24, 2009 at 8:36 AM, JavaEsse wrote: > Hello, > > I am using SimpleModal 1.3.3.  In IE6, the overlay does not

Re: [jQuery] toLowerCase method works in Google Chrome but not IE

2009-12-24 Thread brian
The first thing I would do is inspect cookieMood. Obviously, it exists, or the code wouldn't reach that line. But, perhaps it isn't a string, as you expect. On Wed, Dec 23, 2009 at 9:50 PM, ArnieML wrote: > Hi, > > Code snippet is as follows: > > function setStartMood(cookiemood) { > >          

Re: [jQuery] window.parent.document.getElementById('msgAlert').innerHTML

2009-12-24 Thread brian
Try this: $('#msgAlert').html() On Tue, Dec 22, 2009 at 9:13 PM, ajijogja wrote: > hi... im aji > n im newbie in jQ > . > . > i want to know how use jQ with this : > window.parent.document.getElementById('msgAlert').innerHTML > . > . > thx be4 >

Re: [jQuery] Can't get onClick on appended elements

2009-12-22 Thread brian
See here: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Tue, Dec 22, 2009 at 1:37 PM, Diego wrote: > I have the following snippet of code: > > This is where I'll place the 'li' elements. > > > After processing the file upload I add t

Re: [jQuery] Re: jquery.cycle /// Next function in the next button and in the pictures

2009-12-21 Thread brian
2009/12/21 Pedro Gonçalves : > If I assign the "next" id to another element function only works once. > > check it out: > http://www.pvxg.net/unplanned/ > > What I want to do is for the user to be able to cycle through the > pictures by clicking on them. > This is what Charlie was trying to explai

Re: [jQuery] unable to focus on textboxes - update panel - jqmodal - asp.net

2009-12-21 Thread brian
I don't have anything handy to test this with but I believe you could handle this with the onHide callback. Check that the text element isn't empty. If it is, return false to keep the dialog open (and display a msg, etc.) On Sun, Dec 20, 2009 at 10:38 PM, Dexter wrote: >  0  vote down  star > > >

Re: [jQuery] question about width from li in

2009-12-21 Thread brian
Check the options page. Does the 'nowrap' option help? http://jquery.malsup.com/cycle/options.html On Mon, Dec 21, 2009 at 6:50 AM, Lijn wrote: > I use this jquery-plugin: http://jquery.malsup.com/cycle/ > Each li-tag gets a calculated width allowing the contents to 2 lines, > but line 1 is suf

Re: [jQuery] Easy Fade in Problem...

2009-12-20 Thread brian
Try putting the fadeIn() where the elements are being appended. Also, use hide() just before that. function addPerson() { //current keeps track of how many people we have. var strToAdd = ''; $('#all-inputs').append(strToAdd).hide().fadeIn('slow'); }; $(document).ready(function() {

Re: [jQuery] Re: Can Tooltip return a jsp page?

2009-12-20 Thread brian
On Sun, Dec 20, 2009 at 1:15 AM, HenryRock wrote: > Hi Brian, > > I get this > >  return ""; > > How come? > How to fix that? Like I said, your file is not being parsed correctly. JSP is a server-side technology. Any JSP code must be evaluated on the server. If

Re: [jQuery] Re: Change Window Location, and Send REQUEST or POST Info?

2009-12-19 Thread brian
has not yet logged in. There is no > way to write the requested URL to a hidden input in the login form, > because the login form isn''t up yet - the user is visiting some other > page. > > On Dec 19, 3:58 pm, brian wrote: >> I would do all of this server-side. Hav

Re: [jQuery] Re: Can Tooltip return a jsp page?

2009-12-19 Thread brian
ree > WhiteCloud > "; >    } > }); > > I not sure why when I code it as > > $('#tonus').tooltip({ >    delay: 0, >    showURL: false, >    bodyHandler: function() { >        return "" >    } > }); > > It not working... Any Idea

Re: [jQuery] Change Window Location, and Send REQUEST or POST Info?

2009-12-19 Thread brian
I would do all of this server-side. Have your PHP script save the requested page in the session before redirecting to the login page. Or, write the requested URL to a hidden input in the login form. On Sat, Dec 19, 2009 at 6:16 PM, Vik wrote: > Let's say a user visits my site, and takes an action

Re: [jQuery] Can Tooltip return a jsp page?

2009-12-19 Thread brian
It's been awhile since i used JSP but the first thing I'd check is if the content was parsed correctly. When you view source, do you see the content in the JS code or do you see the JSP tag? If the latter, your JSP code isn't being parsed on the server. On Sat, Dec 19, 2009 at 10:31 AM, HenryRock

Re: [jQuery] Re: Generate and submit file upload form with jQuery

2009-12-19 Thread brian
ds inside the "form" element > (which actually isn't a ) to the generated one. > > The thing is, that I have a table and need a for every row (but > not in a single column). or aren't valid. > So I'm looking for all input fields inside the and generate a new >

Re: [jQuery] Generate and submit file upload form with jQuery

2009-12-19 Thread brian
Why don't you simply submit the form you are cloning from? It doesn't appear to me that you're adding anything to the new form. On Sat, Dec 19, 2009 at 10:57 AM, oli wrote: > Hi, > > I want to collect some input fields that are already present in my > DOM, generate a form with jQuery and submit i

Re: [jQuery] Re: SlickGrid updates!

2009-12-17 Thread brian
This is very impressive. One might even call it ... slick. Very slick, indeed. I really like "show tasks" percentage slider. And the SparkLines example. Well done! On Thu, Dec 17, 2009 at 6:41 PM, Tin wrote: > The SlickGrid source code has been migrated to GitHub: > http://github.com/mleibman/Sli

Re: [jQuery] Urgent help with the validation plugin: no reaction onSubmit

2009-12-16 Thread brian
You might need to post some code. Are you using the submitHandler option at all? On Wed, Dec 16, 2009 at 7:06 AM, Andre Polykanine wrote: > Hello everyone, > > There's a form I try to validate. > As there is a Nickname field, I check with the Remote method if it's > already used or not. I use a p

Re: [jQuery] Call from Javascript to jQuery javascript function

2009-12-16 Thread brian
On Wed, Dec 16, 2009 at 11:14 AM, Michael Geary wrote: > In fact, within a single

Re: [jQuery] Call from Javascript to jQuery javascript function

2009-12-16 Thread brian
On Wed, Dec 16, 2009 at 9:17 AM, Richard D. Worth wrote: > > No need to add another block. As you pointed out earlier, the document ready > won't run until later. By the time it does, the callit function will have > been defined: > That's true, but I left it as 2 blocks because Wendi pointed out

Re: [jQuery] Call from Javascript to jQuery javascript function

2009-12-15 Thread brian
You have the order of things backward. As the page loads, any bare JS function calls will be run as soon as they are reached. So, when the line with callit() is reached, the JS engine will attempt to run the function immediately. However, the function has yet to be defined. That's because you have

Re: [jQuery] How to programmatically ad a div element and animate it

2009-12-15 Thread brian
Try this: function CreateNewElement() { $('test content') .appendTo('#contentContainer') .hide() .toggle('slow'); } You'll likely want to change the ID and, obviously, the content. But the principal i the same--jQuery can take the string mar

Re: [jQuery] Viewport Scroll

2009-12-15 Thread brian
There are probably more than one way to do this with jQuery but a straight JS way would be to do: document.location = '#id_of_your_element'; On Tue, Dec 15, 2009 at 2:42 PM, Wroathe wrote: > Hi there! > > I'm using jQuery to load in some content from a separate page and I > was wondering if ther

Re: [jQuery] [ASK] jquery remove

2009-12-15 Thread brian
On Mon, Dec 14, 2009 at 11:08 PM, water [bro] mm wrote: > > and if click remove, jquery just remove a link remove not tag > please help me. > That is because the "this" inside your click handler function refers to the link (because the handler is onclick for the link) even though, outside of tha

Re: [jQuery] delete / remove $.ajax() object ???

2009-12-14 Thread brian
Put your $.ajax() call inside a function and call that on load and whatever other event. On Mon, Dec 14, 2009 at 8:18 PM, Wendi Turner wrote: > Thank you Mike ! > > Repost Question: "How can you remove/delete the active $(document).ready() > script, re-write and re-register then re-trigger the re

Re: [jQuery] Can't get a block of HTML added to the DOM

2009-12-14 Thread brian
$('#somediv').append(html); You're appending to the div with ID 'someDiv'. But you say that this is the content: Name: Note the class="somediv". I'm wondering if that's a typo and it's actually id="somediv", in which case y

Re: [jQuery] FadeOut > Ajax Post > FadeIn problem

2009-12-12 Thread brian
I believe the sudden appearance is due to the fact that the new div was not hidden. But, a better approach would be to not replace the #pageArticle div. Instead, replace its contents, then fade it in. On Fri, Dec 11, 2009 at 5:02 PM, S9DD wrote: > Hi Folks > > This script fades out a div tag with

Re: [jQuery] Re: Help... anyone!

2009-12-08 Thread brian
On Tue, Dec 8, 2009 at 1:48 PM, Mike wrote: > > Thanks for the response.  I was unable to find where to set firefox to > clear cache automatically.   I went to "about:config" ... found some > cache settings, but not clear settings. Edit > Preferences > Advanced > Network > "Clear Now" > I can d

Re: [jQuery] Having issues with selecthing $(this).find('.classname') with webkit browsers (Chrome/Safari)

2009-12-08 Thread brian
How about this? $('.secondlevelcontainer', $(this)).fadeIn(500); On Mon, Dec 7, 2009 at 3:34 PM, Leonard Teo wrote: > Hi guys, > > I'm looking for a workaround... I'm having some issues with the > following code: > >        //Navbar hover >        $('.toplevel').hover( >                function(

Re: [jQuery] Problem with images loaded dynamically

2009-12-08 Thread brian
Can you see the images ok if you type in the direct URL for each one? On Mon, Dec 7, 2009 at 2:35 PM, jlee wrote: > Hi, > I'm stuck here - I'm trying to load images dynamically on my website, > but for some reason the method I use works on a server on my local > computer, but behaves very strang

Re: [jQuery] : FileUpload Problem

2009-12-08 Thread brian
See here: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F And you're loading the MultiFile plugin twice. You need either MultFile.js or MultiFile.pack.js, but not both. Also, keep in mind that you're cloning an element with an ID, which mu

Re: [jQuery] Selector fails and works

2009-12-08 Thread brian
I believe this is the problem: input[type="radio"][checked=true] The correct value for the "checked" attribute is "checked", not "true" (don't ask me why; I think it's a stinker), so jQuery comes up empty-handed. Whereas the other way you're approaching this: if (this.checked) ... works becaus

Re: [jQuery] Help... anyone!

2009-12-08 Thread brian
I'm not sure I understand in what sense the page is freezing sometimes. I've had a look in FF (Linux) and haven't seen anything untoward. It could be that you've specified that the page never be cached. Try removing that, clear your cache, and click around some. You do have a fair number of JS fil

Re: [jQuery] Filtering table cell values

2009-12-06 Thread brian
Try this: jQuery('#Directorships tbody tr').each(function() { if (jQuery('td:nth-child(7)', $(this)).text().toLowerCase() == 'retired') { var td12th = jQuery('td:nth-child(12)', $(this));

Re: [jQuery] Script stops working

2009-12-06 Thread brian
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Sun, Dec 6, 2009 at 3:00 PM, factoringcompare.com wrote: > Hi, > > The below script collects a links ID when clicked and then posts via > ajax. Works fine on plan page. When I dynamically l

Re: [jQuery] jquery addClass does not work in ajax call

2009-12-06 Thread brian
Please see: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F You could simply create a function that takes a jquery object (or the selector) as a param and does the striping. That way, you could call the function whenever necessary. Note, t

Re: [jQuery] Specify CSS Path

2009-12-06 Thread brian
JQuery doesn't need to read your CSS files. That's the job of the browser engine. What's the problem you're trying to solve? On Sat, Dec 5, 2009 at 8:28 PM, Juan B wrote: > Hi, > > My JQuery scripts and CSS files are placed in different folders. Is it > possible to specify the paths to my CSS fil

Re: [jQuery] IF and NULL. Please, could someone help me out?

2009-12-03 Thread brian
Does this work? $("#JPlayer").jPlayer({ ready: function() { var cookie = $.cookies.get("AlliedSkills.Player"); $(this).setFile($('#MusicPath').attr("value")) if (cookie == "Play") { $(t

[jQuery] IE javascript error "Expected identifier, string or number" but works as intended in FireFox

2009-12-03 Thread Brian Yanosik
I have the following code that works fine in FireFox but throws an error that prevents it from working in IE. The area that is throwing the error is bolded below. I am assuming is something small I am missing. Thanks for your help in advance. $(document).ready(function () { $("a.triggoverla

[jQuery] jquery [multi] overlay plugin and identifiers

2009-12-03 Thread Brian Yanosik
as just using the onclick even in jquey (it would be as simple as $(this) but that doesnt seem to be the case with the overlay script. Returns an "object" as the value of $(this). Thanks Brian

Re: [jQuery] contact form not sending mail

2009-12-02 Thread brian
Javascript doesn't send email. You'll have to investigate this server-side. On Wed, Dec 2, 2009 at 1:52 PM, wig1176 wrote: > hi folks. > I have a site using jquery utilizing a slider ( scroll.to) and form > validater (validate) > the form on my page isn't sending the emails to me though. > here's

Re: [jQuery] Ajax response back question

2009-12-01 Thread brian
I'm not sure if you're trying to send back the image or just the src but, either way: $(function() { $('li').each(function() { var self = this; $.post('getImg.php', {id: $(self).attr('id')}, function($data) { // ${self} refers to the li el

Re: [jQuery] get random record?

2009-12-01 Thread brian
On Tue, Dec 1, 2009 at 4:33 AM, Michel Belleville wrote: > If I were you I wouldn't let JavaScript do the randomizing, I would do it > server-side instead, providing a request that returns a random record and > pinging it with a simple AJAX query ; this way, JavaScript doesn't need to > be aware o

Re: Re[jQuery] move appended element

2009-11-28 Thread brian
On Sat, Nov 28, 2009 at 2:11 PM, coldwired wrote: > > The reason is because I need the exact clone of the highlighted tags before > the selected class is supplied to it. Sorry, that doesn't answer my question. In what way is having an element with an attribute class="" causing you trouble? Are so

Re: [jQuery] jquery-1.3.2.min.js causing 400 bad request

2009-11-28 Thread brian
On Thu, Nov 26, 2009 at 2:16 PM, rbishop wrote: > Hi there, hoping someone can help a strange intermittent problem. > Occasionally, I am experiencing 400 bad request errors when trying to > load jquery-1.3.2.min.js. I have taken the request and response > headers from firebug during a failure and

Re: Re[jQuery] move appended element

2009-11-28 Thread brian
uot;. is there > anything I can do to make the removeClass function restore the attribute to > it's original state? > > Thanks, > Colin. > > > brian ally-3 wrote: >> >> Perhaps it's a problem with your CSS rules. Is the style not removed? >> >>

Re: [jQuery] Get value from hidden input and use it in string

2009-11-27 Thread brian
Give the input element an ID and use that in the selector: > $(this).setFile('http://domain.com/asset/get/' + $('#music_id').attr('id')).play(); On Fri, Nov 27, 2009 at 11:48 AM, shapper wrote: > Hello, > > I am using JPlayer to play a sound on a page: > http://www.happyworm.com/jquery/jplayer

Re: Re[jQuery] move appended element

2009-11-27 Thread brian
Perhaps it's a problem with your CSS rules. Is the style not removed? On Fri, Nov 27, 2009 at 4:39 AM, coldwired wrote: > > Hi, > > Sorry, that was a slight typo on my part, it should be class "selected". The > problem I have with just appending using addClass is that when the class is > removed

Re: [jQuery] disable links in a class set dynamically

2009-11-26 Thread brian
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F http://docs.jquery.com/Events/live Please see my response to the recent "jquery uploadify question" msg. On Thu, Nov 26, 2009 at 12:09 PM, Keysher wrote: > Hi! > > I have a problem. > > I wan

Re: Re[jQuery] move appended element

2009-11-26 Thread brian
You have 2 separate classnames there--'selected' and 'insense-selected'. Anyway, why don't you just add the class to the hovered element and save yourself some trouble? Because wrapping a strong or dd element with a div is certainly asking for a lot of trouble. On Thu, Nov 26, 2009 at 3:50 PM, co

Re: [jQuery] jquery uploadify question

2009-11-26 Thread brian
See: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F In a nutshell, you're declaring a click handler for all elements with class 'img_del' *when the page loads*. But your element is being added during the onComplete callback of uploadify()

  1   2   3   4   5   6   7   8   >