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

2008-11-29 Thread Rodent of Unusual Size
On Nov 29, 1:26 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > Ha, there it is. Yes, I never use the 'application/xhtml+xml' mime, > because of this and other incompatibilities. Is there anything you can > do with it that you can't with text/html? Sure. Embedded SVG, math, et cetera.. and you're a

[jQuery] Re: jeditable tooltip for empty table cell becomes content

2008-11-29 Thread Rodent of Unusual Size
On Nov 29, 1:32 pm, Mika Tuupola <[EMAIL PROTECTED]> wrote: > > "Click to edit" is also default value for parameter "placeholder". > Jeditable inserts the placeholder to element if it is empty (otherwise > there is nothing to click). If you really want the empty you can do > something like. > > $(

[jQuery] nested sortable treeviews

2008-11-29 Thread Pedram
Dear folk , I was working with the tree view plugin which Jorn had developed it , is there any possibility for us to make it Drag and Drop Feature to it so we can drag the folders to put it into another folder

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread David Andrews
Thanks Mike - although it seems a little complicated to me at first sight (I'm not a java developer) - I'm sure I will get my head round it! One more cup of coffee! :) For those that are interested My XML was failing due to the content type of the document not being correctly set - added header(

[jQuery] Re: Problem with prev() in IE

2008-11-29 Thread Jeffrey Kretz
Okay, so I stepped through the code. I'm going to hazard a guess that you didn't want the previous element but the parent element. $('#LHNav ul').prev() returns an H1 and an array of A elements. This is because prev looks for the sibling element just in front of the current one. $('#LHNav ul')

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread Michael Geary
If the XML is really that simple, then the JSON format can be even simpler. Just use an array: [ "onr_fc2.jpg", "onr_fc2.jpg", "onr_fc2.jpg", "onr_fc2.jpg" ] Then your code looks like: success: function( files ) { for( var i = 0; i < files.length; ++i ) do_something( files[i] );

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread Jeffrey Kretz
I understand where you're coming from, but I need to support a broader user-base for my software. I have two virtual machines on my main PC with XP and Vista installed, and a separate Macbook Pro, so that I can cross-check compatibility between IE6 XP, IE7 XP, IE7 Vista, FF2, FF3, Opera, Safari W

[jQuery] Re: Problem with prev() in IE

2008-11-29 Thread flycast
Yes... http://www.trinityacademy.org/testNavigation/ On Nov 29, 6:22 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote: > I've used something very similar to that in IE6 without any problems. > > Could you post a demo page? > > JK > > -Original Message- > From: jquery-en@googlegroups.com [mai

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread Uwe C. Schroeder
On Saturday 29 November 2008, Jeffrey Kretz wrote: > This may be overkill for your needs, but it is free: > > http://www.microsoft.com/express/vwd/ > > It also has jQuery-aware intellisense. > > Whenever I need to debug an IE script page, I do ALT-V, U, O, pick the VS > Debugger and it opens righ

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread Jeffrey Kretz
This may be overkill for your needs, but it is free: http://www.microsoft.com/express/vwd/ It also has jQuery-aware intellisense. Whenever I need to debug an IE script page, I do ALT-V, U, O, pick the VS Debugger and it opens right up with all the scripts available, can set breakpoints, view va

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread David Andrews
Thanks JK, Sorry to push you through the min jquery but that was the version I have on my live server. Damn it - Embarrassed - I will check why my XML is bad. Sorry guys :( I will also get myself a decent IE js debugger :) Thanks again Dave -Original Message- From: jquery-en@google

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread Jeffrey Kretz
Well, it was a bit of a pain to step through, as it was minimized jquery -- the full uncompressed version is much better for debugging. But as I stepped through, the success method did actually fire. The problem was that $(xml).find('file') did not return any results. I've never used jQuery to

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread David Andrews
Thanks Mike and JK, A sample url is here.. www.foobar.me.uk/test/example.htm To answer your questions: 1. This does seem to be required as it loads the image names into an array which is then used to populate the image src in the DOM. If I leave async true then I get empty images for the fir

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread Michael Geary
Of course Ajax works in IE. IE is the browser that invented Ajax (XMLHttpRequest)! Troubleshooting a code snippet is a lost cause. ;-) Can you post a link to a test page? A couple of tips, not directly related to the IE problem... async: false is an extreme measure that should be avoided if pos

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread Jeffrey Kretz
Can you post a sample url? The code below looks fine, don't see why it would fail. It would be easy to step through it with an IE script debugger to see what's up. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Andrews Sent: Saturday

[jQuery] Re: How can JQuery trigger events in parent frame?

2008-11-29 Thread Dave Methvin
Do you actually want to blur the element, or are you just trying to call the blur handler you attached? If it's the later, try .triggerHandler() instead of .trigger() and see if that works.

[jQuery] .ajax and ie7?

2008-11-29 Thread David Andrews
Hello all, I am using .ajax to populate an array via a PHP generated XML file //snip $.ajax({ url : "readimages.php", async : false, data : "imagefolder=" + folderName + "&imagePrefix=" + imagePrefix, success : function(xml)

[jQuery] Re: jquery form plugin: fieldValue vs. val

2008-11-29 Thread Mike Alsup
> Greetings! > > I've > seenhttp://docs.jquery.com/JQuery_1.2_Roadmap#Form.2FField_Serializationhttp://docs.jquery.com/Release:jQuery_1.2/Attributes. > > Is fieldValue() still better then standard val()? The main difference is that fieldSerialize tests for "successful" elements and val does not

[jQuery] Re: Ajax Call on form submit

2008-11-29 Thread Mike Alsup
> I am sending user to different sites based on their attribute once > they log in. I added a ajax call to check the users attribute before > submitting login form. I am implementing this using ajax form plugin. > The ajax call  reside in beforeSubmit call back function, it seems > that the ajax c

[jQuery] Re: ajaxSubmit

2008-11-29 Thread Mike Alsup
> I am using ajax form plugin. After I defined the new value (different > with the attribute value of the form)  of url and type properties > within Option Object,  and pass options to ajaxSubmit. It didn't > override the form attribute value. Anyone knows why? Can you post your code or a link?

[jQuery] Newbie JQ image fadeout question

2008-11-29 Thread Phillyc
Hello, all! I have a few quick JQuery questions. I found JQuery to fade my 2 images out and I have the Code and script. But I have a few questions, because I could not get it work. I am a newbie to JQuery. I read over some tutorials and blogs and I can't get it work. I have DWCS3. 1) I placed the

[jQuery] Newbie JQ image fadeout question

2008-11-29 Thread Phillyc
Hello, all! I have a few quick JQuery questions. I found JQuery to fade my 2 images out and I have the Code and script. But I have a few questions, because I could not get it work. I am a newbie to JQuery. I read over some tutorials and blogs and I can't get it work. I have DWCS3. 1) I placed the

[jQuery] Re: Problem with prev() in IE

2008-11-29 Thread Jeffrey Kretz
I've used something very similar to that in IE6 without any problems. Could you post a demo page? JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flycast Sent: Saturday, November 29, 2008 3:57 PM To: jQuery (English) Subject: [jQuery] Probl

[jQuery] Problem with prev() in IE

2008-11-29 Thread flycast
This code works fine in FF and Safari but (surprise, surprise) not in IE6. $("#LHNav ul").prev('li').each(function(){ alert("Loop"); }); I have narrowed it down to giving prev() some value to filter by. IF I try it like this: (notice the missing "li") $("#LHNav ul").prev().each(function(){ aler

[jQuery] Re: [jCarousel]

2008-11-29 Thread brian
Something along these lines, perhaps: $(document).ready(function() { $('#gallery').jcarousel({ scroll: 1, visible: 1, itemVisibleInCallback: itemVisibleIn }); }); function itemVisibleIn(carousel, li, index, state) { $(li).contents('a').addClass('Current'); } Y

[jQuery] [validate] Allowing letters only in a text input?

2008-11-29 Thread deronsizemore
Hi, I'm using the jQuery Validate plugin with success in it's basic form. I'm looking to require ONLY letters in a field and I see that it's possible (I think) using the code in the additional-methods.js file which is included in the download package. The code is as follows: jQuery.validator

[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-29 Thread Karl Rudd
Oh and I because of the fact that a script tag is used the only arguments that can be passed in are "GET" type arguments in the actual URL. Karl Rudd On Sun, Nov 30, 2008 at 9:48 AM, Karl Rudd <[EMAIL PROTECTED]> wrote: > You can get around it by using a JSON (or JSONP) response. For > cross-dom

[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-29 Thread Karl Rudd
You can get around it by using a JSON (or JSONP) response. For cross-domain JSON calls a script tag is inserted and the content is "read" that way. Karl Rudd On Sat, Nov 29, 2008 at 11:17 PM, TheBlueSky <[EMAIL PROTECTED]> wrote: > > Oh, sorry, my mistake! Yes, it's on another domain and I've ju

[jQuery] Re: [jCarousel]

2008-11-29 Thread Alex Hempton-Smith
Thanks Brian, I've read through that documentation and I'm not sure how I would go about using that to add the 'current' class to the tag? Would you be able to post some code? I'm still a jQuery n00b! -- Alex On Sat, Nov 29, 2008 at 5:40 PM, brian <[EMAIL PROTECTED]> wrote: > Create an itemVis

[jQuery] Re: [treeview] Brief flash of expanded tree

2008-11-29 Thread Dirceu Barquette
Try my plugin. http://sourceforge.net/projects/jqtreevial/ 2008/11/29 Andrew <[EMAIL PROTECTED]> > > Hi > > I've got the treeview plugin set to be collapsed on load. This works > generally, but every now and then, the page loads and the tree appears > fully expanded, before shrinking back to it's

[jQuery] Offset() Shows Different Result On Page Load vs. On Page Resize? Online Demo Provided.

2008-11-29 Thread Vik
I'm using jQuery's offset() method. I have a function named ResizeContent that is called on page load, and then is called again whenever the window is resized. This function includes calls to offset (). Oddly, I find that offset() is giving me an incorrect value on page load - but then returns a

[jQuery] Re: jcarousel and ajax

2008-11-29 Thread matt
Ahhh ok this makes more sense. Now will this also solve the problem of the fact that it's storing the old carousel data? For example, I have a slideshow running, looping through each picture. I'm using this code: itemVisibleInCallback: {

[jQuery] Re: Double right-click, anyone?

2008-11-29 Thread ricardobeat
A quick implementation: $('body').unbind('mousedown').mousedown(function(e){ var rightclick = (e.which) ? (e.which == 3) : (e.button == 2); var t = $(this); if (rightclick) { console.log('rightclick'); if (t.data('rightclicked')) { console.log('doubl

[jQuery] Re: avoid inserting twice

2008-11-29 Thread seasoup
or you can test inside the bind function: if ($('#header').next().('attr','id') != "new") { $('#header').after('tester'); } On Nov 29, 7:34 am, Dave Methvin <[EMAIL PROTECTED]> wrote: > Do you only want the button to work once? If that is the case, use .one > () instead of .bind().

[jQuery] Re: jeditable tooltip for empty table cell becomes content

2008-11-29 Thread Mika Tuupola
On Nov 29, 2008, at 7:26 AM, Rodent of Unusual Size wrote: New demonstration case for another problem I've noticed with jeditable: http://apache.pastebin.ca/1270021 I'm making cells in a table editable, and passing jeditable a string for the hover tooltip. However, if the cell in question

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

2008-11-29 Thread ricardobeat
Ha, there it is. Yes, I never use the 'application/xhtml+xml' mime, because of this and other incompatibilities. Is there anything you can do with it that you can't with text/html? - ricardo On Nov 29, 2:37 am, Rodent of Unusual Size <[EMAIL PROTECTED]> wrote: > On Nov 25, 11:24 am, ricardobeat

[jQuery] Re: Error while printing the JSON content after evaluating!!!!

2008-11-29 Thread ricardobeat
you're evaluating this string "(req.responseText)". If I'm not mistaken eval happens on the global scope, so I assume the 'req' variable is not available globally. Anyway, why are you using eval? jQuery handles JSON responses by itself. - ricardo On Nov 28, 11:31 pm, aarti <[EMAIL PROTECTED]> w

[jQuery] [validate] Working with TinyMCE

2008-11-29 Thread I-CRE8
I am having problems getting my TinyMCE text areas content to be seen by the jQuery Validation routine, has anybody got or can point me at a simpletons guide to getting this work as everything I have found via Google so far either doesn't work, is incomplete or I simply don't understand ! Thanks,

[jQuery] Re: [jCarousel]

2008-11-29 Thread Willem
hi brian, can you help me with my problem? I have a total of 4 images which I want to appear one at a time. I changed the "scroll:3" in "scroll:1" in the jquery.jcarousel.js file and added my css to 212x130 in stead of 75x75. still it skips from the 1st image to the 4th, back to the 1st, and

[jQuery] Re: [jCarousel]

2008-11-29 Thread brian
Create an itemVisibleInCallback function. The second param is the list-item object, from which you can get the anchor. http://sorgalla.com/projects/jcarousel/#Configuration On Sat, Nov 29, 2008 at 10:38 AM, Alex <[EMAIL PROTECTED]> wrote: > > Using the example of external controls (http://sorgal

[jQuery] Re: IE Issue - Argument not valid - Creating a Jquery Magnifier

2008-11-29 Thread Rick Faircloth
What's the demo url for the magnifier? Rick Anyulled wrote: Thanks Dave, your suggestion worked pretty fine. Now i'm gonna try to change the magnifier windows and zoom ratio with hitting the arrow keys. does anyone know how to make IE not show the alt info when the mouse is over the image? i

[jQuery] Re: Repeated ajax calls (jheartbeat) but not always (depending on a CURL response)

2008-11-29 Thread Spike1
Totally changed the approach server side, so no more need to make what described. On 28 Nov, 10:29, Spike1 <[EMAIL PROTECTED]> wrote: > Sorry for the obscure subject, but english is not my language. > > Well, situation: > > server side language: php > > In a page, i need to call an url (on anothe

[jQuery] Re: Use of getBoxObjectFor() is deprecated. Try to use element.getBoundingClientRect() if possible.

2008-11-29 Thread Brandon Aaron
What plugins are you using? getBoxObjectFor is a XUL method but getBoundingClientRect isn't available for older version of Firefox. I'd just suggest using the .offset() method from jQuery core. At any rate it is just a deprecation warning. I imagine whatever plugin uses it checks to see if it exist

[jQuery] Re: jCarousel skips images after css edit

2008-11-29 Thread Willem
Can anyone help me out with this, please? On Nov 26, 2:01 pm, Willem <[EMAIL PROTECTED]> wrote: > I've had the same problem as bobh had some months ago. I have a total > of 4 images which I want to appear one at a time. > > I changed the "scroll:3" in "scroll:1" in the jquery.jcarousel.js file >

[jQuery] Re: CSS bug when combining Tabs and TableSorter

2008-11-29 Thread Dan Switzer
Kevin, > #sect1 a, #sect1 a span {background:none} > should solve your immediate problem The better fix is to remove this div: or, at the minimum give it a different class. The problem is by wrapping all your code in a div with a class name

[jQuery] [jCarousel]

2008-11-29 Thread Alex
Using the example of external controls (http://sorgalla.com/projects/ jcarousel/examples/static_controls.html). When a certain item is visible, how do I add a class such as 'current' to the for that item? Many thanks, Alex

[jQuery] Re: avoid inserting twice

2008-11-29 Thread Dave Methvin
Do you only want the button to work once? If that is the case, use .one () instead of .bind().

[jQuery] Re: load external html file using j query.

2008-11-29 Thread Charlie Griefer
On Sat, Nov 29, 2008 at 5:33 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > > Dear All, i kind new to j query, Ive been using gray box successfully > for a while but i think it time to find something better. > > ive been trying to figure out how to load a (by using a href ) > external html fi

[jQuery] load external html file using j query.

2008-11-29 Thread stephan...@gmail.com
Dear All, i kind new to j query, Ive been using gray box successfully for a while but i think it time to find something better. ive been trying to figure out how to load a (by using a href ) external html file from a text link or a image ... Im looking for a demo of this ... ?? thanks. Stephan

[jQuery] Re: code does not work if put after other codes

2008-11-29 Thread Prajwala Manchikatla
Normally this does not happened. need more code to find out what is the wrong. cheers, Prajwala On Fri, Nov 28, 2008 at 7:15 PM, Betty <[EMAIL PROTECTED]> wrote: > > Hi, I'm new. I've written two pieces of code with jQuery. Each of them > works well individually. However, if I put them one after

[jQuery] Re: Remove ellipsis from shortened title.

2008-11-29 Thread DemersDesigns
Thanks for your responses! I will give them a whirl and let you know what I find. -Paul On Nov 29, 12:43 am, "Michael Geary" <[EMAIL PROTECTED]> wrote: > Your code is using … as part of a selector, which won't do what you > want. It will probably end up selecting nothing. And jQuery's remove() >

[jQuery] Ajax, divs and links

2008-11-29 Thread Milena
Hello all ! So, I'm doing a site using jquery and what I have is this: I have 3 main divs. in the last one I have a form that sends the info to a servlet and this returns some html (links) and put via js in the second div. Then, when a user clicks in a link on the second div, I send the id of thi

[jQuery] jCarousel

2008-11-29 Thread Annand
Hello there, I have been testing out the jCarousel and I've found one minor issue with it: when I resize IE window the jCarousel shifts position. If I refresh the screen the page looks fine, but if I resize the browser window again it shifts once more. This is only happening in Internet Explore

[jQuery] [treeview] Brief flash of expanded tree

2008-11-29 Thread Andrew
Hi I've got the treeview plugin set to be collapsed on load. This works generally, but every now and then, the page loads and the tree appears fully expanded, before shrinking back to it's collapsed (or whatever cookie state). The page i'm working at is www.australian-postcodes.com. Try clicking

[jQuery] Re: IE Issue - Argument not valid - Creating a Jquery Magnifier

2008-11-29 Thread Anyulled
Thanks Dave, your suggestion worked pretty fine. Now i'm gonna try to change the magnifier windows and zoom ratio with hitting the arrow keys. does anyone know how to make IE not show the alt info when the mouse is over the image? i need to cancel this, but I don't know how. On 20 nov, 23:05, Da

[jQuery] Double right-click, anyone?

2008-11-29 Thread TheBlueSky
Hi everyone, Does anyone has code, implementation, plug-in or whatever to detect double right-click? I'm searching and trying for couple of days now without any result. Appreciate any help.

[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-29 Thread TheBlueSky
Oh, sorry, my mistake! Yes, it's on another domain and I've just noted that. By the way, there is no way around this, is there? On Nov 27, 3:40 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > Is the page/resource in another domain? That would obviously not work. > That's the only thing I can think

[jQuery] Re: Change overflow of div when element clicked

2008-11-29 Thread Jason Turcotte
I WAS missing the brackets...duh! Thanks, that solved the problem. On Nov 27, 1:24 am, ricardobeat <[EMAIL PROTECTED]> wrote: > Are you missing the brackets? > > $(document).ready(function(){ > > $("#test").click(function(){ $("#faq").css("overflow","auto") }; > > }); > > On Nov 26, 5:25 pm, Jas

[jQuery] How can JQuery trigger events in parent frame?

2008-11-29 Thread [EMAIL PROTECTED]
I have one html page with one iframe in parent frame, I have $('#x').bind('blur',function(){alert(1)}); in the iframe, I can use $('#x',parent.document.body).val(); to retrieve the parent element value, but I cannot use $('#x',parent.document.body).blur(); to

[jQuery] Re: animate problem with IE7

2008-11-29 Thread ^AndreA^
well, I did not think about that because the carousel is elastic... that's why I'm using the percentage. I could probably solve it calculating the width and therefore resizing the li elements as well and move them back and forth of the same pixels... It's just a bit more tricky for nothing... I

[jQuery] avoid inserting twice

2008-11-29 Thread takeshin
Hi, How do you avoid inserting twice the same element after another? $('#button').bind('click', function() { $('#header').after('tester');

[jQuery] Re: CSS bug when combining Tabs and TableSorter

2008-11-29 Thread ripcurlksm
thanks Ill give it a shot ripcurlksm wrote: > > I've got a weird bug in my CSS with using (jQuery Tabs and jQuery > TableSorter) where every time I have a link, or span on the page, it > prints a background image that is used for the jQuery tabs. > > Here is what the problem looks like: > ht

[jQuery] Re: CSS bug when combining Tabs and TableSorter

2008-11-29 Thread Giuliano Marcangelo
Kevin, #sect1 a, #sect1 a span {background:none} should solve your immediate problem :-) with problems like this, I would advise using Firebug, to see what is happening with your css 2008/11/29 ripcurlksm <[EMAIL PROTECTED]> > > > I've got a

[jQuery] CSS bug when combining Tabs and TableSorter

2008-11-29 Thread ripcurlksm
I've got a weird bug in my CSS with using (jQuery Tabs and jQuery TableSorter) where every time I have a link, or span on the page, it prints a background image that is used for the jQuery tabs. Here is what the problem looks like: http://www.nabble.com/file/p20745016/Untitled-1.gif Here is a

[jQuery] Re: Dynamic Event Handler

2008-11-29 Thread Balazs Endresz
It's much cleaner to use $.each (no new variables will be introduced in the current scope), also with that you can avoid things like this. The problem is that in categories[index] index will be a reference to the variable you use in the loop, so every time the value of index changes it will "chan

[jQuery] Re: code dosen't work if put after some other code

2008-11-29 Thread Betty
Thank you, ricardo. Thank you, brian. You're such great help! Initially I used hover because it was shorter than mouseover. -.- I didn't know they had such a difference. Now it works fine. :) On Nov 29, 2:02 pm, brian <[EMAIL PROTECTED]> wrote: > As Ricardo said, hover() expects a second function