[jQuery] Re: Trouble with $#next() and ':not()' selector

2008-11-18 Thread ricardobeat
Here's a quick function that walks forward one element at a time until one matches the selector: $.fn.nextOf = function(sel){ var next = this,n; do { next = next.next(); n = next.filter(sel); if (n.length) return n; } while(next.length); return this.filter(

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-18 Thread ricardobeat
Judging by this post by the sender of the letter I don't think you should take that argument seriously: http://www.nabble.com/Do-I-really-need-to-do-an-%27eval%27-in-JQuery--td9483409s27240.html I don't know IntelliSense, but debugging jQuery with firebug is really easy. And there's no reason to

[jQuery] Re: show/hide/toggle: suggestion to reduce show/hide code

2008-11-18 Thread Dylan Verheul
On Tue, Nov 18, 2008 at 19:58, Karl Swedberg <[EMAIL PROTECTED]> wrote: > On Nov 18, 2008, at 9:02 AM, Dylan Verheul wrote: > Hmm, I actually checked the docs for that because that would make > .toggle an unsuitable overloader. The docs said toggle doesn't take > arguments: > > Hmmm, indeed. :) No

[jQuery] Re: How do I reference PHP for an ID value?

2008-11-18 Thread propstm
SOLUTION: Because the PHP was in an iterative loop, I needed to have the script tags for the jQuery within the loop as well so that PHP ID reference would have a value. When the script tag was outside of the loop, no value was being returned by the PHP. -MP propstm wrote: > > **My apologie

[jQuery] Re: not a standard .attr task - needs a filter

2008-11-18 Thread daniel
Thanks for replying - as it turned out, in trying to go with what was suggested I realised I was doing it all wrong! It's my fault for not including the whole snippet I was working with (was trying to snip so I didn't confuse the issue) and I would have normally worked it out if it wasn't for the

[jQuery] How to position a footer always at bottom?

2008-11-18 Thread howa
Consider the code: http://www.w3.org/TR/html4/strict.dtd";> $(document).ready(function() { var footer = $('#footer'); var w = ( $(window).width() - footer.width() ) / 2; footer.css('left', w);

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-18 Thread Jeffrey Kretz
I wish I had some specific developer's blogs/resources to give you, but I can't think of any off the top of my head. However, for the last couple of years, all my software development has been C#/SQL backend with jQuery frontend, and it's been a perfect marriage as far as I'm concerned. If you h

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-18 Thread rolfsf
Thanks Jack Are there any asp.net + jquery blogs/resources/developer links that are particularly good? It's difficult for me to gauge how good (clean code, solid principles, brilliant thinking) some of the asp.net oriented jquery postings on the web are as I don't know it. Any recommendations I c

[jQuery] How do I reference PHP for an ID value?

2008-11-18 Thread propstm
In a simple world the function i'm trying to perform is: $(document).ready(function(){ $("button").click(function () { $('.cars>#seats').slideToggle("slow"); }); }); But I'm working in Wordpress. What I'm trying to do is for each entry be able to toggle the main content of th

[jQuery] JQ freelance possible project('s)

2008-11-18 Thread anetz
Hi there, i just found you guys and happy I did. I am looking for a JQ programmer for possible freelance project('s) to give a major face lift to CRM and eCommerce systems GUI interface, for faster better web experience. (ASP/SQL, Part time as we go). Any recommendation?

[jQuery] Appending text works; appending element doesn't

2008-11-18 Thread Rodent of Unusual Size
Test case at http://apache.pastebin.ca/1261109 When the H1 is edited and the OK button clicked, the callback is invoked. It *should* add some plaintext to the end of the H1 content, and also a element. However, it doesn't add the . I have run through this with Firebug and set a breakpoint in

[jQuery] JS Inside of a Div loaded with $("#content").load("..")...

2008-11-18 Thread TI Wizard
Javascript and default JQuery (and UI) stuff works inside of a DIV which was loaded with the Ajax Load function.. However, plugins don't... How can I get the javascript to work inside of the div that was loaded? Tried multiple plugins and it gives me the error: Message: Object doesn't support th

[jQuery] Re: not a standard .attr task - needs a filter

2008-11-18 Thread CodingCyborg
I'm not really sure on this, but would there need to be quotes around the # in the filter? Actually its possible there would be more quotes? var link = $(this+"[href^='#']").val(); Just a guess, but worth a try. -CodingCyb.org On Nov 18, 7:57 pm, daniel <[EMAIL PROTECTED]> wrote: > Maybe it's t

[jQuery] Re: Jquery + Struts

2008-11-18 Thread George
I'll try to answer. I do not know what 'struts' is. but you have made major mistake in your wishes. AJAX submit the data to the server and gets server's response. It's your responsibility to collect data for AJAX call and parse out server's response. So you correctly put return false to prev

[jQuery] Re: flexbox - makes no mention of server-side coding

2008-11-18 Thread Jeffrey Kretz
I might be misunderstanding your question, but javascript plug-ins seldom describe the associated server-side code, as it really depends on your platform. PHP, ColdFusion, PERL/CGI, Java, .NET, all will have very different implementations of server-side solutions, along with their Database backen

[jQuery] not a standard .attr task - needs a filter

2008-11-18 Thread daniel
Maybe it's the really late night I had but I can't figure this one out. First the html: Internal Link http://external.com";>External Link Internal Link2 in order to do something on the page instead of going to the link I need to filter it based on if it cont

[jQuery] Re: How to prevent easing on .animate()

2008-11-18 Thread ricardobeat
You have to pass the parameters in a second object, like in: $('#gClone0').animate({top: -allH}, {easing: "linear",duration:3}) http://docs.jquery.com/Effects/animate - ricardo On Nov 18, 6:50 pm, jonatne <[EMAIL PROTECTED]> wrote: > Hey all, > > I would like like to make an element move.

[jQuery] Re: Previous TD

2008-11-18 Thread Randy Johnson
Thanks everyone for your suggestions, I tried the one below first and it worked. -Randy On Nov 18, 12:02 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > I would use jQuery#parents() for this. > $('#r2').parents('td').attr('rowspan', '1'); > > In case you are using nested tables, you may want t

[jQuery] flexbox - makes no mention of server-side coding

2008-11-18 Thread donb
While this plugin looks very nice, there not the slightest mention of what the server script is provided. It must convey something about the user input but this is totally undocument as far as I could tell. The one mention is 'The call to results.aspx is ajax, and should return a JSON string ' a

[jQuery] Re: Trouble with $#next() and ':not()' selector

2008-11-18 Thread Richard D. Worth
On Tue, Nov 18, 2008 at 7:57 PM, Hector Virgen <[EMAIL PROTECTED]> wrote: > > It seems to me that $#next() gets the very next element, then tries to > match it to the selector. Is this the intended behavior? > Yes, it gets the very next element and then applies the selector as a filter. For the o

[jQuery] Re: Trouble with $#next() and ':not()' selector

2008-11-18 Thread Richard D. Worth
On Tue, Nov 18, 2008 at 7:57 PM, Hector Virgen <[EMAIL PROTECTED]> wrote: > > It seems to me that $#next() gets the very next element, then tries to > match it to the selector. Is this the intended behavior? > Yes, it gets the very next element and then applies the selector as a filter. For the o

[jQuery] Re: Check if a variable is set?

2008-11-18 Thread Hector Virgen
Yes, that is much better. :) -Hector On Tue, Nov 18, 2008 at 4:49 PM, Karl Rudd <[EMAIL PROTECTED]> wrote: > > I think you mean: > > if (var === undefined) > > Note the === and no quotes around undefined. > > Karl Rudd > > On Wed, Nov 19, 2008 at 11:34 AM, Hector Virgen <[EMAIL PROTECTED]> > wro

[jQuery] Re: jQuery css opacity and 2nd level suckerfish menus...

2008-11-18 Thread Jeffrey Kretz
The problem you have is due to the terrible IE implementation of opacity. IE actually uses DirectX 2D filters to render opacity, along with a whole bevy of completely proprietary filters and transitions. See this page for reference: http://msdn.microsoft.com/en-us/library/ms532847(VS.85).aspx

[jQuery] Re: Trouble with $#next() and ':not()' selector

2008-11-18 Thread Hector Virgen
Correction: that last console.log does report "Third" as expected. -Hector On Tue, Nov 18, 2008 at 4:57 PM, Hector Virgen <[EMAIL PROTECTED]> wrote: > I have a simple list of items, and I am dynamically disabling them by > adding a class name of "disabled" to the . When I try to select the next

[jQuery] Trouble with $#next() and ':not()' selector

2008-11-18 Thread Hector Virgen
I have a simple list of items, and I am dynamically disabling them by adding a class name of "disabled" to the . When I try to select the next non-disabled item using $#next(), I am getting 'null'. But if I use $#nextAll() and add ':eq(0)' to the selector, it works. Here's is an example: HTML: F

[jQuery] Re: Check if a variable is set?

2008-11-18 Thread Karl Rudd
I think you mean: if (var === undefined) Note the === and no quotes around undefined. Karl Rudd On Wed, Nov 19, 2008 at 11:34 AM, Hector Virgen <[EMAIL PROTECTED]> wrote: > I usually check if the variable == 'undefined': > if (var == 'undefined') { > // var is not set > } > I don't know if

[jQuery] Jquery + Struts

2008-11-18 Thread Bhavin
Hi, I am using JQuery with Struts 1.1. I am using following code when user clicks on Save button: $('#save').click(function() { $.blockUI({ message: "Please wait..." }); $.ajax({ url: '/saveData.do?dispatch=save', type:'post',

[jQuery] Re: Check if a variable is set?

2008-11-18 Thread Hector Virgen
I usually check if the variable == 'undefined': if (var == 'undefined') { // var is not set } I don't know if jQuery has one but it'd be simple to write your own. This is untested but might work :) $.extend({ isset: function(var) { return (var != 'undefined'); } }); -Hector

[jQuery] Check if a variable is set?

2008-11-18 Thread yellow1912
I wonder if jquery supports something like this? (like php isset() function) I know I can certainly write a function for it, but I dont want to re- invent the wheel if jquery already supports it Regards

[jQuery] Re: jQuery css opacity and 2nd level suckerfish menus...

2008-11-18 Thread jaredh123
ok, i put up two fully functional, self-contained test pages that demonstrate the problem: http://netrivetsandbox.com/jquery/test.html (with jQuery opacity rule) http://netrivetsandbox.com/jquery/test2.html (without jQuery opacity rule) compare in non-IE and IE and see that the first doesn't

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-18 Thread Jack Killpatrick
We've done a number of asp.net projects that use jQuery heavily. We do not use the MS Ajax stuff, because it's not vendor neutral. Many of our apps use C# web services and js-based widgets rendered client-side via Trimpath _javascript_ Templates, with some tie-ins to the asp.net security model

[jQuery] Re: jQuery css opacity and 2nd level suckerfish menus...

2008-11-18 Thread jaredh123
just tried the filter trick, no dice. -- View this message in context: http://www.nabble.com/jQuery-css-opacity-and-2nd-level-suckerfish-menus...-tp20568430s27240p20570849.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] Re: Previous TD

2008-11-18 Thread RobG
On Nov 19, 3:02 am, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > I would use jQuery#parents() for this. > $('#r2').parents('td').attr('rowspan', '1'); > > In case you are using nested tables, you may want to limit it to the first > parent td found: > > $('#r2').parents('td:eq(0)').attr('rowspan'

[jQuery] ajaxsubmit with autosave feature

2008-11-18 Thread anny
Hi , I tried ajaxsubmit which works fine. I need to submit the entire form by POST automatically for every 60 seconds. What is the best way to do it? How do i use ajaxsubmit to submit form automatically for every 60 seconds. I did search & do see there are auto save plug-in... but not sure wh

[jQuery] Re: Jquery Countdown!!!

2008-11-18 Thread Mihai
I also tried to play around with this but still without success. Apparently you can initialize the date like this: var liftoffTime = new Date(); liftoffTime.setDate(2009,8,1,14,0,0); (year / month / day / hour / minute / seccond) but it keeps counting "65 months and down".. and starting o

[jQuery] Re: Jquery Countdown!!!

2008-11-18 Thread Mihai
I found out how (just a couple of minutes ago): You don't need to initialize a variable using the new Date, but do the initialization inside .countdown({ example: $('div#countdowntimer').countdown({until:new Date (2009,9,15,14,0,0),format:'odHMS'}); This will countdown to: September 15th 2009,

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-18 Thread Brian Cummiskey
rolfsf wrote: > A friend had sent this rant in to microsoft, regarding jquery, which > is published on their developer site. Not being an asp.net developer, > I don't know what to make of his points. I'd be interested to hear > from some asp.net developers who have embraced jquery - is it truly a

[jQuery] Re: slideToggle on checkbox

2008-11-18 Thread Travis Sanderson
"Honor Someone" doesn't stay checked when you refresh, but "Honor Someone Again" does because the markup includes checked="checked". Then the jQuery code runs and sees that it is checked and displays the honored box. If you are still seeing "Honor Someone" as checked after refreshing, I think tha

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-18 Thread rolfsf
Are any of these clashes with asp.net that you and c.barr refer to anything that could be remedied by the jQuery Core team if they know about it? Or are these due to deeper structural philosophies that are unlikely to be resolved any time soon? On Nov 18, 2:27 pm, "Armand Datema" <[EMAIL PROTECT

[jQuery] Crazy tables with checkboxes

2008-11-18 Thread c.barr
A while ago Karl Swedberg really helped me out to get what I needed working - tables with multiple columns of checkboxes, add a class to selected rows, support for the Shift key, and a header checkbox to check an entire column. That all works great, but now I've realized that I need multiple tab

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-18 Thread Armand Datema
mm Ive notices some clashes with asp.net but there is plenty info around ( from some of the top .net guys that realy take Jquery and asp.net combo to the edge.) how to make it deal wit this much better. Problem is that a lot of the ajax is hardwired into .net and therefore jquery alternatives take

[jQuery] Re: How do I write an expression to get all checked items of a certain class?

2008-11-18 Thread donb
Oops, overlooked the 'checked' requirement. The selectors can be 'stacked.' I just tried this and it works: $(".subscrCheckbox:checkbox:checked") inversely: $(":.subscrCheckbox:checkbox:not(:checked)") gets those that aren't On Nov 18, 5:26 pm, "c.barr" <[EMAIL PROTECTED]> wrote: > Also $(

[jQuery] Re: How do I write an expression to get all checked items of a certain class?

2008-11-18 Thread Hector Virgen
Nice! I didn't even notice the :checkedselector! :) -Hector On Tue, Nov 18, 2008 at 2:26 PM, c.barr <[EMAIL PROTECTED]> wrote: > > Also $(".subscrCheckbox").is(":checked"); and $ > (".subscrCheckbox:checked") should work as well I believe > > On Nov 18,

[jQuery] Re: How do I write an expression to get all checked items of a certain class?

2008-11-18 Thread c.barr
Also $(".subscrCheckbox").is(":checked"); and $ (".subscrCheckbox:checked") should work as well I believe On Nov 18, 3:45 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > $(".subscrCheckbox:checkbox") would return all checkboxes with the class > name of 'subscrCheckbox', including those that are

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-18 Thread c.barr
I can see some of his points, and there are some clashes with the asp.net ajax toolkit - but all the problems I've had have been with microsoft's javascript, not jQuery. the ajax toolkit is so hard wired into asp.net sometimes, it's hard to replace it with a better written and better looking jQue

[jQuery] Re: Executing Dynamic Javascript

2008-11-18 Thread Daniel
You can try jQuery.getScript(url, callback) http://docs.jquery.com/Ajax/jQuery.getScript#urlcallback On Nov 19, 4:25 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have an issue that I initially thought was a jQuery problem, but > after simplifying things in preparation for posting my q

[jQuery] Re: Image Roll Oover Script

2008-11-18 Thread Aaron Rosenthal
Thanks that worked, but say I want to have the scroll spring back on roll out how would I implement that? Scroll test #container { background-color: #000; white-space:

[jQuery] Re: slideToggle on checkbox

2008-11-18 Thread c.barr
That's just due to the browser cache, do the same (but opposite) with the other one. Uncheck it, and reload. it stays hidden. Do a force refresh (Ctrl+F5) and that will truly reload the page. Still, I'm not sure why that would happen, it seems to me that it should catch it - but are people rea

[jQuery] Re: jQuery css opacity and 2nd level suckerfish menus...

2008-11-18 Thread Hector Virgen
For IE, use "filter": .css_test{ opacity: 0.5; // for all browsers except IE filter: alpha(opacity = 50); // for IE } I found that here: http://joseph.randomnetworks.com/archives/2006/08/16/css-opacity-in-internet-explorer-ie/ Maybe this will help? -Hector On Tue, Nov 18, 2008 at 1:50 PM, jar

[jQuery] Re: has anyone come across a plugin like this ?

2008-11-18 Thread yvonney
Oh YES!!! that WOULD be fabulous I know how busy life gets of course... Jason! when you have time we'd all love to play with a plugin version I bet! best wishes On Nov 11, 2:32 pm, Andy Matthews <[EMAIL PROTECTED]> wrote: > I'd be interested in this as a plugin as well. > > On Nov 11, 4:21 p

[jQuery] asp.net and jquery - reactions to this letter

2008-11-18 Thread rolfsf
A friend had sent this rant in to microsoft, regarding jquery, which is published on their developer site. Not being an asp.net developer, I don't know what to make of his points. I'd be interested to hear from some asp.net developers who have embraced jquery - is it truly a monster? http://redde

[jQuery] Re: Image Roll Oover Script

2008-11-18 Thread donb
While the urge to editorialize on the design concept is almost unbearable, I will restrict my comment to only the question: http://plugins.jquery.com/project/autoscroll Probably you could simplify that considerably since the fundamental requirement is 'how many 1/6's (or other fraction) of the d

[jQuery] Re: jQuery css opacity and 2nd level suckerfish menus...

2008-11-18 Thread jaredh123
Hector, thanks for your response. But the reason I used jQuery is because IE won't respect opacity in the stylesheet. Would it help to set the opacity using a stylesheet instead of using javascript? -Hector -- View this message in context: http://www.nabble.com/jQuery-css-opacity-and-2nd

[jQuery] Re: How do I write an expression to get all checked items of a certain class?

2008-11-18 Thread Hector Virgen
$(".subscrCheckbox:checkbox") would return all checkboxes with the class name of 'subscrCheckbox', including those that are not checked. $(".subscrCheckbox:checkbox[checked]") is probably the shortest selector you could use that meets your requirements. -Hector On Tue, Nov 18, 2008 at 1:41 PM, d

[jQuery] Re: How do I write an expression to get all checked items of a certain class?

2008-11-18 Thread donb
$(".subscrCheckbox:checkbox") should also work. http://docs.jquery.com/Selectors On Nov 18, 4:36 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > I think this should work: > > $('input.subscrCheckbox[type=checkbox][checked]'); > -Hector > > On Tue, Nov 18, 2008 at 1:30 PM, [EMAIL PROTECTED] < >

[jQuery] Re: jQuery css opacity and 2nd level suckerfish menus...

2008-11-18 Thread Hector Virgen
Would it help to set the opacity using a stylesheet instead of using javascript? -Hector On Tue, Nov 18, 2008 at 1:19 PM, jaredh123 <[EMAIL PROTECTED]> wrote: > > > Hopefully this makes sense to someone: > > I'm working on a site that is using > http://htmldog.com/articles/suckerfish/ > son-of-s

[jQuery] Re: How do I write an expression to get all checked items of a certain class?

2008-11-18 Thread Hector Virgen
I think this should work: $('input.subscrCheckbox[type=checkbox][checked]'); -Hector On Tue, Nov 18, 2008 at 1:30 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hi, > > How do I write a JQuery expression that will give me all the elements > that are inputs of type=checkbox, that have cla

[jQuery] How do I write an expression to get all checked items of a certain class?

2008-11-18 Thread [EMAIL PROTECTED]
Hi, How do I write a JQuery expression that will give me all the elements that are inputs of type=checkbox, that have class="subscrCheckbox" and that are checked? Thanks, - Dave

[jQuery] How to prevent easing on .animate()

2008-11-18 Thread jonatne
Hey all, I would like like to make an element move. I want it to start moving at a certain speed and move at that current speed until it's reached it's destination. I'm using .animate() without any easing specified. It does seem to ease though. It starts slow, speeds up to full speed and then slo

[jQuery] Executing Dynamic Javascript

2008-11-18 Thread [EMAIL PROTECTED]
I have an issue that I initially thought was a jQuery problem, but after simplifying things in preparation for posting my question, I see that it's a fundamental javascript matter. I don't understand why this works: http://pastebin.com/m3a767745 but this doesn't: http://pastebin.com/m346451b4 Note

[jQuery] Re: Autocomplete: Show full list before start typing

2008-11-18 Thread Versluys Sander
I think you want someting like this: $('.ui-autocomplete-input').one('click', function() { $(this).focus().click().select(); $(this).one('click', arguments.callee); }); This will show the list when you click the input element on all the autocomplete input elements. On 27 okt, 16

[jQuery] Re: - IE 6 and IE 7 Scroll bar problem.

2008-11-18 Thread Akio
Just wondering if there is any activity on this issue. A hot fix would be greatly appreciated. I am no JavaScript guru and hence the handicap :( . -Akio. On Nov 12, 8:04 pm, Akio <[EMAIL PROTECTED]> wrote: > Jorn, > > I have opened a ticket for the issue. Ticket #3563 > > http://ui.jquery.com/bu

[jQuery] Image Roll Oover Script

2008-11-18 Thread idealer
I am trying to re-create this album thumbnail gallery roll over. http://gallery.me.com/idealer When the cursor rolls over the image it displays other images within the album. Is there a jquery script available that does this. I have not found one yet... -- View this message in context: http:/

[jQuery] Jquery with Struts

2008-11-18 Thread Bhavin
Hi, I am using JQuery with Struts 1.1. I am using following code when user clicks on Save button: $('#save').click(function() { $.blockUI({ message: "Please wait..." }); $.ajax({ url: '/saveData.do?dispatch=save', type:'post',

[jQuery] jQuery css opacity and 2nd level suckerfish menus...

2008-11-18 Thread jaredh123
Hopefully this makes sense to someone: I'm working on a site that is using http://htmldog.com/articles/suckerfish/ son-of-suckerfish dropdowns. I'm also using jQuery to make all the dropdowns slightly transparent (and work in IE), like so: jQuery('#topnav li ul').css('opacity', 0.93); works

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Hector Virgen
My bad, it turns out what is happening is that the submit event is fired on the form *after* the click event fires for the submit button. That's why event.target == the form. This should work, but it only works for submit buttons: $('#theForm input[type=submit]').click(function(event) { var el

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
Hey hector, first off thanks for all your help. So I have the following: $("#form").submit( function(event) { var element = event.target; alert( $(element).attr("id") ); return false; } ); I get "form" back instead of the id of my submi

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
Sweet thanks! That's pretty neat how you can wrap it again in jquery ... On Nov 18, 12:06 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > event.target returns a native dom element. You can then wrap that element > with $() to use all of jQuery's methods. > var element = event.target; > $(element

[jQuery] Re: ASP.NET C# jquery treeview

2008-11-18 Thread George
1. Check if you hit this URl with a browser what happens... 2. ASP.NET embeds securite measures into what can be POSTed to ASP.NET page. in web.config set 3. Please see my POST http://groups.google.com/group/jquery-en/browse_thread/thread/a2f65e23c7f60e06?hl=en# Your method might have problems

[jQuery] Dynamically Created TextArea

2008-11-18 Thread Seth - TA
I am creating a form to where a user will be able to create as many additional textareas as they would like. However, I need to add the ability to have them be able to click "remove" next to the added textareas so that that textarea will be removed. I would like the "remove" to be an option up unt

[jQuery] Re: text link to fire Jeditable

2008-11-18 Thread Mika Tuupola
On Nov 18, 2008, at 8:32 PM, RyOnLife wrote: One note for future readers... Though it seems clear to me now, took me a few minutes to realize that instead of trigger('edit'), use trigger('click') or trigger('dblclick')—whatever event you use in your editable() For people not to get confused.

[jQuery] Superfish menu stays under floating element

2008-11-18 Thread Uwe C. Schroeder
Hi, I've been googling and trying things, but I don't seem to find anything tangible. I'm using the latest version of superfish with jquery 1.2.6 Below the menu is an element (div with image) that floats left. FF and Safari display the menu properly. IE6 and IE7 push the menu below the floatin

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Hector Virgen
event.target returns a native dom element. You can then wrap that element with $() to use all of jQuery's methods. var element = event.target; $(element).attr('id'); // returns the id of the element element.getAttribute('id'); // also returns the id in native javascript, but does not work in IE (of

[jQuery] Re: has anyone come across a plugin like this ?

2008-11-18 Thread heysatan
Thanks Gildas, we are looking into a few MVC frameworks. I think the most interest has been in the soon to be released Microsoft version. I don't actually write a lot of the .NET/C# code, I work on the front end but I'll try and keep people updated with how it goes. I am interested in MonoRail t

[jQuery] Re: has anyone come across a plugin like this ?

2008-11-18 Thread heysatan
Pixelstuff - They are custom forums built in .NET, I don't think any plugins were used. We wrote them in house. Jason On Nov 15, 8:06 am, Pixelstuff <[EMAIL PROTECTED]> wrote: > I am curious about what is running the forums on Biocompare. Vanilla > maybe? It's so nice to see forums that are fu

[jQuery] Re: Ajax call with a Form button

2008-11-18 Thread Nathan
NETTUTS has a great tutorial on how to accomplish this. http://nettuts.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/ On Nov 18, 11:44 am, Shannon <[EMAIL PROTECTED]> wrote: > No one has had to do this? > > On Nov 18, 9:26 am, Shannon <[EMAIL PROTECTED]> wrote:

[jQuery] Re: Ajax call with a Form button

2008-11-18 Thread Daniel
Did you try to use the submit event ? For example: Javascript: $(document).ready(function(){ $('#formLoad').submit(function(){ $('#south').html("Loading ...").load("test.html"); return false; }); }); HTML: Load content into this div O

[jQuery] Re: slideToggle on checkbox

2008-11-18 Thread R3D
Thanks for your time Chris, please go to your example page, check "Honor Someone" and then reload: the checkmark stays checked, but the honorbox disappears... It does not do it on Honor Someone Again! - why? The code seems the same??? On 15 Nov., 00:56, "c.barr" <[EMAIL PROTECTED]> wrote: ..

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
Thanks that worked great. I don't have much experience working with events, and I'm having troubles finding out how to access various properties of the event.target, do you have suggestions/links? I guess I'd like to know the id and the name, thanks! On Nov 18, 10:53 am, "Hector Virgen" <[EMAIL P

[jQuery] Re: droppable getting position of dropped element relative to the dropped div

2008-11-18 Thread Richard D. Worth
There's a separate mailing list for jQuery UI questions: http://groups.google.com/group/jquery-ui Thanks. - Richard On Tue, Nov 18, 2008 at 2:42 PM, mark <[EMAIL PROTECTED]> wrote: > > hi > on the call back of drop function i get the ui element with which i > can get the following position.. >

[jQuery] Re: Ajax call with a Form button

2008-11-18 Thread Shannon
No one has had to do this? On Nov 18, 9:26 am, Shannon <[EMAIL PROTECTED]> wrote: > I take it back, the value comes back as UNDEFINED... > > Any advice? > > On Nov 18, 9:17 am, Shannon <[EMAIL PROTECTED]> wrote: > > > Nevermind, I got it. > > > On Nov 18, 9:14 am, Shannon <[EMAIL PROTECTED]> wrot

[jQuery] droppable getting position of dropped element relative to the dropped div

2008-11-18 Thread mark
hi on the call back of drop function i get the ui element with which i can get the following position.. # ui.position - current position of the draggable helper the above is relative to the div from which it was dragged # ui.absolutePosition - current absolute position of the draggable helper

[jQuery] Re: ASP.NET C# jquery treeview

2008-11-18 Thread mthakershi
Well.. I understand that. But it doesn't look that simple. I am not able to get the tree view example to work with ASP.NET. Here is the post I wrote in one other forum. Please see if you can help. Hello, I am not able to get this sample to work. It is driving me crazy. I think it is about setting

[jQuery] Re: show/hide/toggle: suggestion to reduce show/hide code

2008-11-18 Thread Karl Swedberg
On Nov 18, 2008, at 9:02 AM, Dylan Verheul wrote: On Tue, Nov 18, 2008 at 14:56, Karl Swedberg <[EMAIL PROTECTED]> wrote: Not sure if toggle(cond) is the best choice, though. It's already pretty overloaded as it is, and it can already take a string or numeric argument for speed (e.g. 'slo

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Hector Virgen
An event object is always passed as the first argument to the function, which contains the information you need. $('#form').submit(function(event) { // Get the element that fired the event var element = event.target; }); For more info check out the Events guide: http://docs.jquery.com/Even

[jQuery] Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
Hi I have a form that has two submit buttons I am utilizing the following ajaxSubmit code: $("#form").submit( function() { $(this).ajaxSubmit({ target: '#response' }); return false; } ); Inside the submit function is th

[jQuery] Re: strip out textarea 's HTML attribute

2008-11-18 Thread Richard D. Worth
On Tue, Nov 18, 2008 at 1:37 PM, cc96ai <[EMAIL PROTECTED]> wrote: > > Thanks it works fine, > > Can I know what is the different between > > var code = $("").html($("#content").val()); > In this one you're creating an empty div element (by providing an html string), returned as the only item

[jQuery] Re: strip out textarea 's HTML attribute

2008-11-18 Thread cc96ai
Thanks it works fine, Can I know what is the different between var code = $("").html($("#content").val()); and var code = $("" + $("#content").val() + ""); On Nov 18, 10:21 am, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > change > > var code = $("").html($("#content").val()); > > to >

[jQuery] Re: strip out textarea 's HTML attribute

2008-11-18 Thread Richard D. Worth
The difference between these two may be related to the following bugs: http://dev.jquery.com/ticket/3592 http://dev.jquery.com/ticket/2647 - Richard On Tue, Nov 18, 2008 at 1:21 PM, Richard D. Worth <[EMAIL PROTECTED]> wrote: > change > > var code = $("").html($("#content").val()); > > to > > v

[jQuery] Re: text link to fire Jeditable

2008-11-18 Thread RyOnLife
Thanks very much, Mika. I was able to adapt this to meet my needs. One note for future readers... Though it seems clear to me now, took me a few minutes to realize that instead of trigger('edit'), use trigger('click') or trigger('dblclick')—whatever event you use in your editable(). On Nov 10,

[jQuery] Re: strip out textarea 's HTML attribute

2008-11-18 Thread Richard D. Worth
change var code = $("").html($("#content").val()); to var code = $("" + $("#content").val() + ""); - Richard On Tue, Nov 18, 2008 at 1:14 PM, cc96ai <[EMAIL PROTECTED]> wrote: > > I still get the popup window, if the textarea contains javascript > popup > it seems the following code is still

[jQuery] Adding AutoHeight for Accordion SideBar

2008-11-18 Thread ehime
Here at work this morning with more complete source code. Here's a better description of what I'm trying to accomplish. The Height variable in my Javascript code is right now static and set at 320px vertical. [b]The problem [/b] is that since my height is predefined, yet my internals are dynamic b

[jQuery] Re: strip out textarea 's HTML attribute

2008-11-18 Thread cc96ai
I still get the popup window, if the textarea contains javascript popup it seems the following code is still executing. var code = $("").html($("#content").val()); http://www.google.ca"; target="_new" border="2">test link alert("popup"); On Nov 18, 7:49 am, Eric Martin <[EMAIL PROTECTED]>

[jQuery] Re: Previous TD

2008-11-18 Thread manuel muñoz solera
less code, better solution :) El 18/11/2008, a las 18:02, Hector Virgen escribió: I would use jQuery#parents() for this. $('#r2').parents('td').attr('rowspan', '1'); In case you are using nested tables, you may want to limit it to the first parent td found: $('#r2').parents('td:eq(0)').a

[jQuery] Re: Ajax call with a Form button

2008-11-18 Thread Shannon
I take it back, the value comes back as UNDEFINED... Any advice? On Nov 18, 9:17 am, Shannon <[EMAIL PROTECTED]> wrote: > Nevermind, I got it. > > On Nov 18, 9:14 am, Shannon <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > > I am attempting to fetch a page via ajax when a person submits a form

[jQuery] Re: Ajax call with a Form button

2008-11-18 Thread Shannon
Nevermind, I got it. On Nov 18, 9:14 am, Shannon <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I am attempting to fetch a page via ajax when a person submits a form > button. > > JAVASCRIPT: > function sEngFam(str) > { >   $('#south').html('Loading data, please wait...').load("select3.php? > q="+

[jQuery] Re: clueTip fade out

2008-11-18 Thread Karl Swedberg
Hi Adam, I tried to allow for animating out but wasn't able to pull it off, probably for reasons similar to those that Joel Birch ran across with his Superfish plugin. One of these days when I rewrite the plugin, I'm going to set it up to create a separate tooltip for each item so that th

[jQuery] Ajax call with a Form button

2008-11-18 Thread Shannon
Hi everyone, I am attempting to fetch a page via ajax when a person submits a form button. JAVASCRIPT: function sEngFam(str) { $('#south').html('Loading data, please wait...').load("select3.php? q="+str); } HTML: When I click the button I see the "Loading data, please wait..." but

[jQuery] Re: Validate. True and False

2008-11-18 Thread Jörn Zaefferer
The remote validation isn't customizable, so having two server methods is the easier way to go. You're welcome to file a ticket for this: http://dev.jquery.com/newticket (requires registration) Jörn On Tue, Nov 18, 2008 at 4:25 PM, shapper <[EMAIL PROTECTED]> wrote: > > Hello, > > On a Register f

[jQuery] Re: Get the content of an option element

2008-11-18 Thread Hector Virgen
Try this: $('#select option[selected]').html(); -Hector On Tue, Nov 18, 2008 at 8:42 AM, debussy007 <[EMAIL PROTECTED]> wrote: > > > Hi, > > to get the selection option value, I use > $('#select').val(); > But how do I get the content of the option ? > > In other words: > > world > > > $('#se

  1   2   >