[jQuery] Re: Using jQuery to see if CSS is disabled.

2009-09-05 Thread Peter Edwards
You could try looping through the document.styleSheets collection and testing the disabled attribute: var styleSheetsDisabled = false; for (var i = 0; i document.styleSheets.length; i++) { if (document.styleSheets.item(i).disabled) { styleSheetsDisabled = true; } } Not sure if this

[jQuery] Re: Using jQuery to see if CSS is disabled.

2009-09-05 Thread ryan.j
off the top of my head, hide an element with css and then get :hidden elements with that id? something like html head script type=text/javascript src=http://www.google.com/jsapi;/script script type=text/javascript google.load(jquery, 1.3.2);

[jQuery] Re: Using jQuery to see if CSS is disabled.

2009-09-05 Thread ryan.j
obviously you'd probably want to set the display attrib in an external CSS file, and if that didn't work you could try to @import some style then check for that.

[jQuery] Re: Using jQuery to see if CSS is disabled.

2009-09-05 Thread ryan.j
although this does raise the question of what happens if css and javascript are disabled. what happens if try{ .. } to set a css attribute with css disabled? On Sep 5, 12:08 pm, ryan.j ryan.joyce...@googlemail.com wrote: obviously you'd probably want to set the display attrib in an external

[jQuery] Re: Proper way to detect webkit-based browsers?

2009-09-05 Thread ryan.j
it'd probably help if i included the link ;) http://www.quirksmode.org/js/detect.html On Sep 5, 1:15 pm, ryan.j ryan.joyce...@googlemail.com wrote: It would appear this is the inevitable result of us all using feature detection rather than browser sniffing - essentially we're still doing

[jQuery] Re: Proper way to detect webkit-based browsers?

2009-09-05 Thread ryan.j
It would appear this is the inevitable result of us all using feature detection rather than browser sniffing - essentially we're still doing all the same stuff as before, but in a more roundabout way because we need to test for features specific to a browser but - and this is the important bit -

[jQuery] Support for Mobile Browsers coming?

2009-09-05 Thread Will
Hi, Just wondering if jQuery has plans to support mobile browsers (iPhone, BB, G1, Palm Pre, WindowsMobile 6.5 in particular). This page (http:// docs.jquery.com/Browser_Compatibility) only lists PC browsers. Thanks! Will

[jQuery] getJSON

2009-09-05 Thread NipunAmbastha
Hi Guys, I m trying my hand on getJSON I am able to see response through fiddler Please let me know what i am missing This is my function $(document).ready(function() { $.getJSON(http://127.0.0.1:8001/category/1? format=jsoncallback=?, function(json) {

[jQuery] Problems with ajax and encoding

2009-09-05 Thread xaviergxf
Hi, I´m using ajax(xml) to load one piece of php code, a template code stored on the database(Latin1). I´m having problems with accentuation when this piece of php code has accentuation. I´ve tryed almost everything, but i had no sucess at all. My code its like that: js: $.ajax({ url:

[jQuery] Know which form was submitted in a page with multiple forms

2009-09-05 Thread Chamila
I have a page which displays a list of resources in the database. For each of these resources I have a comment form. I am using jQuery form plugin to submit the form through ajax. After submitting I want to display the comment which was just submitted w/o reloading the page. But how do I know

[jQuery] Autocomplete + JSON + 's.toLowerCase is not a function': FIXED!

2009-09-05 Thread Ash
A little bug I ran into, and the fix for it that I found, in case anyone else has similar issues: I'm using the jQuery Autocomplete plugin, with a JSON data source. This is done by adding a custom parse method to the initialization, as such: input.autocomplete(ac_url, { limit: 10,

[jQuery] jQuery UI open URL in new window

2009-09-05 Thread Solidex
All, I am very new to this! I have a menu and want to open all URLs in a new window. Could someone help me with the code and where to place it in the js file Thanks

[jQuery] JQuery append problem in IE7/8 but not in other browsers!

2009-09-05 Thread notreadbyhumans
I have what I believe is quite a simple piece of code that works in every other browser except IE: $.post(/here, { this: this_value },function(data){ $(# + this_ID).append(data); }, text); It simply sends a post to the server and appends the result to a div with the

[jQuery] Re: How to Reading tooltip Contents from .txt or .js file

2009-09-05 Thread Deeps
is there any tootip plugin which reads the content from .txt or .js file??? On Aug 31, 9:32 am, Deeps msdee...@gmail.com wrote: Hi,    is it possible to get the contents from .js or .txt file. I wish to store all the tool tip content in a txt or js file, pass the parameter to get the msg

[jQuery] Re: Know which form was submitted in a page with multiple forms

2009-09-05 Thread Patrick
I have not used it yet, but there is a plugin called dirtyform that would most likely do what you are wanting to do. It looks very nice. p On Sep 5, 5:23 am, Chamila cs2resp...@gmail.com wrote: I have a page which displays a list of resources in the database. For each of these resources I

[jQuery] Re: TableSorter and colspans

2009-09-05 Thread Mike Alsup
Ive used the tablesorter alot in my projects, and Ive had the need for this as well. I found a DataTables plugin which looks like it can do colspans, but I havent tried it. I actually looked after reading your post to see if it supported the colspans now, as earlier versions didnt and I see

[jQuery] Re: Know which form was submitted in a page with multiple forms

2009-09-05 Thread Mike Alsup
I have a page which displays a list of resources in the database. For each of these resources I have a comment form. I am using jQuery form plugin to submit the form through ajax. After submitting I want to display the comment which was just submitted w/o reloading the page. But how do I

[jQuery] Re: Proper way to detect webkit-based browsers?

2009-09-05 Thread Mike Alsup
Now that we're switching to feature detection rather than browser detection, how does/should one detect for a webkit browser? Is there a known feature that we can check for that would Identify Safari and Chrome? We're running into some (rather minor) layout issues with some jquery plug-in

[jQuery] No Response Using getJSON

2009-09-05 Thread Tony
I am using the getJSON command and using firebug for debugging, if I go to this server i setup with this url: http://url/all_data.json?callback=getdata It returns json data warped with getdata({data}). I have validated the json part using jsonlint, so from firebug's net tab I get a param

[jQuery] droppable limit

2009-09-05 Thread pEeLL
Hi i use for drag and drop this easy code $(function() { $(.ui-draggable).draggable({ revert: 'invalid' }); $(.ui-droppable).droppable({ accept: '.ui-draggable', drop: function(event, ui) {

[jQuery] Problem with for loop and click funtion.

2009-09-05 Thread Matt_pl
Hi, I wrote simple click function to load big images from thumbs and it works properly. I put this into for loop because i need to make few galleries on one page. The point is to connect right thumbnails set with right .big-img div. Here is the code http://paste.pocoo.org/show/138171/. Maybe

[jQuery] Re: Know which form was submitted in a page with multiple forms

2009-09-05 Thread chamila de alwis
I think this is the answer. Thanks Mike patrick. I'll try and get back. On Sat, Sep 5, 2009 at 7:45 PM, Mike Alsup mal...@gmail.com wrote: I have a page which displays a list of resources in the database. For each of these resources I have a comment form. I am using jQuery form plugin to

[jQuery] Re: New iPhone-style button plug-in released...

2009-09-05 Thread Diego Desani
Great work! =) On Sep 4, 11:05 am, Dan G. Switzer, II dswit...@pengoworks.com wrote: We've just released another jQuery plug-in which emulates the iPhone-style button used to toggle settings on/off. The plug-in works with both checkbox and radio button groups and we've worked hard to make

[jQuery] remove() and empy() not work for xml

2009-09-05 Thread g...@iec
Hi All, I got stuck in a situation. I have to remove a node from XML using jquery but remove() and empty() is not working. var xmlData = {xml document}; $(xmlData).find({node}).each(function(){ $(this).remove(); or $(this).parent().empty(); }) This work fine for firefox but not work in

[jQuery] Re: Problem with for loop and click funtion.

2009-09-05 Thread Mike McNally
I suspect that your problem is pretty much a classic one. The problem is that each of the function objects you create will share the single loop variable i between them. In other words, your functions are written as if they each get a distinct copy of i, but in fact they do not. Thus each one

[jQuery] Re: No Response Using getJSON

2009-09-05 Thread Steven Yang
try $.getJSON(http://130.216.208.254:10001/all_data.jsonhttp://130.216.208.254:10001/all_data.json? callback=getdata, getdata); i think you might have confused getJSON with the JSONP result On Sat, Sep 5, 2009 at 9:50 PM, Tony e.sen...@gmail.com wrote: I am using the getJSON command and

[jQuery] jQuery.support : Test if browser return nodes of type Text_Node

2009-09-05 Thread jeanph01
Using jQuery.support and without using jQuery.browser how would I know if the browser would return nodes of Type of Text_Node ? IE do not return text nodes. My only idea would be to create on the fly some structure in memory with text nodes and test with $(this).contents() if there is text nodes

[jQuery] Re: jQuery Superfish Problem

2009-09-05 Thread Lexmarketing
Click on the button Leistungen and hava a look on the sourcecode!! On 4 Sep., 14:35, TheoSoft cjcommunicati...@gmail.com wrote: You don't have any submenus. On Sep 4, 3:48 am,Lexmarketinggmt...@gmail.com wrote: Hello, iam a new here. I will creat a jQuery menu on my typo3 site but

[jQuery] SuperFish Menu CSS

2009-09-05 Thread gBurgur
I have played around with some of SuperFish's CSS but I can't really do much to it. (I'm a newbie.) Everything is in the default Blue color which is fine, but the menu looks too basic. I am using a horizontal menu. There are 3 CSS files: superfish.css superfish-navbar.css

[jQuery] Replacing entire page.

2009-09-05 Thread tom
Hello, I am trying to replace the entire page when the user selects a different option in a combo box. The code I have works for the first iteration. However, It fails everytime there after. I went through firebug and it appears after the first refresh it never triggers the ready() method. Any

[jQuery] update input value onblur

2009-09-05 Thread Marco
I'm learning JQuery and building a page with a table. The table contains multiple tr's andd the tr's contains multiple td's. The td's contain a input element. The first td of a row contains a select element and the others a text element. Now I want to fire a AJAX when the onblur event is fired

[jQuery] Re: SuperFish Menu CSS

2009-09-05 Thread Lexmarketing
You need //link to the CSS files for this menu type link rel=stylesheet type=text/css media=screen href=superfish.css / // link to the JavaScript files (hoverIntent is optional) script type=text/javascript src=hoverIntent.js/script script type=text/javascript src=superfish.js/script //

[jQuery] Re: jQuery Superfish Problem

2009-09-05 Thread Lexmarketing
here is the source code of my menu when you click the button Leistungen under http://typo3.lexmarketing.eu/ ul class=sf-menulia href=index.php?id=startseite title=Startseite Startseite/a/lilia href=index.php? id=news title=News News/a/lilia href=index.php? id=wirueberuns title=Wir über uns

[jQuery] Re: SuperFish Menu CSS

2009-09-05 Thread gBurgur
Thanks. The menu is actually up and running it is just any changes I have tried to make to it (sizes, colors, etc) have been useless. I do have the ul class=sf-menu in the code though. I wish I could let you go to site but it is not up and running on the web yet. (It is on my laptop.) I

[jQuery] Re: SuperFish Menu CSS

2009-09-05 Thread gBurgur
Would it make a difference that I have: jQuery('ul.sf-menu').superfish(); instead of: $(ul.sf-menu).superfish(); On Sep 5, 3:01 pm, Lexmarketing gmt...@gmail.com wrote: You need //link to the CSS files for this menu type link rel=stylesheet type=text/css media=screen href=superfish.css /

[jQuery] Re: Replacing entire page.

2009-09-05 Thread brian
See here: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F But, if you're replacing the entire page, why not simply load it normally (without AJAX)? On Sat, Sep 5, 2009 at 11:07 AM, tomtom.s.macken...@gmail.com wrote: Hello, I am

[jQuery] Code evaluation

2009-09-05 Thread Calvin
I have some jquery code that does what I want it to do but I was wondering if I could get some input/ suggestions/ opinions on how it could be better. Thanks for your time! here is the code: jQuery.fn.swapFade = function() { if (this.is(':hidden')) {

[jQuery] Re: Code evaluation

2009-09-05 Thread Mike McNally
You probably don't want to fadeOut() and then fadeIn() like that. Instead, you probably want to fadeIn() in the completion callback from fadeOut(). On Sat, Sep 5, 2009 at 4:46 PM, Calvincstephe...@gmail.com wrote: I have some jquery code that does what I want it to do but I was wondering if

[jQuery] Printing contents of a tab within a lightbox-clone

2009-09-05 Thread Bruce MacKay
Hello folks, I'm having difficulty getting the contents of a particular tab within a jquery-ui Tabs collection that is present in a lightbox (Fancybox) My print.css sheet is: html, body { display:block; } body * { display:none; } #printresults { display:block!important;

[jQuery] $.getScript()

2009-09-05 Thread rosshadden
Is it a known issue that $.getScript() does not work in Chrome, or could I be doing something wrong? I am able to load scripts using this function in any browser, but in order for me to be able to use their contents in Chrome I need to put blocks of code in the callback of $.getScript. While it

[jQuery] Extending objects with internal objects

2009-09-05 Thread roydukkey
Is there a better way to extend object with internal objects? $.fn.bestShow = function(s) { var d = { width: 0, height: 0, order: numeric, orderBy: , animation: { type: fade,

[jQuery] Overlaying an element

2009-09-05 Thread Steffan A. Cline
I have a form where check boxes are working like radio dials. I have that working fine. I even have it where text is appended to the unchecked check boxes to show it's selected elsewhere in the BIG form. I was asked if I could overlay a graphic over the unchecked checkboxes essentially hiding

[jQuery] Re: SuperFish Menu CSS

2009-09-05 Thread Charlie
"$" is shorthand for "jQuery". Script is fine. The width you need to adjust is .sf-menu ul. If you have multiple widths required try the supersubs.js plugin. gBurgur wrote: Would it make a difference that I have: jQuery('ul.sf-menu').superfish(); instead of:

[jQuery] Re: jQuery Superfish Problem

2009-09-05 Thread Charlie
that isn't same code as in linkthere are no sub UL's in link. To fix code you posted in message need put an a tag in the li that has sub UL. lia ul///sub menu here. /ul /li Lexmarketing wrote: here is the source code of my menu when you click the button "Leistungen" under

[jQuery] Re: jcarousel

2009-09-05 Thread Charlie
using CSS make it any size you want ORY wrote: Hello, i tought of using your slider on my website, but is there anyway to make the slider larger and were in the code would i do that? thx for a creat slider!

[jQuery] Re: No Response Using getJSON

2009-09-05 Thread Tony
I tried changing the getJSON to your code, it still isn't working, all it does is changes the request from the server, still no response in the firebug tab. I tried just leaving ?callback=? and the response is shown in firebug, but the problem is my server can't parse an url with that long of a

[jQuery] Re: Auto play Accessible News Slider

2009-09-05 Thread Charlie
looking at script there is no auto play feature. There are lots of other sliders with auto play, suggest switching it out if it's a feature you need j...@orango.nu wrote: Can anybody tell me how i Make the Accessible News Slider from

[jQuery] Re: Image Resize onload - works 50% of the time : help?

2009-09-05 Thread Charlie
document.ready doesn't mean images are loaded you need load handlers in order to do what you want. A quick google search found this fairly good explanation and a plugin to help http://enhance.qd-creative.co.uk/2008/12/06/the-magic-of-onload-revealed/ Roboto wrote: Hey everyone, Still

[jQuery] Re: Preventing browser scrollbars from bumping content in slideDown()

2009-09-05 Thread Karl Swedberg
A not-so-pretty way would be to set body { overflow-y: scroll; } in your stylesheet. I suppose another would be to set a min-height on the body. For IE6, you could just set the body's height, since it treats height as min- height. --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: No Response Using getJSON

2009-09-05 Thread Tony
I have since made some small changes to the source code instead to shorten the callback instead of specifying one In line 3421: //jsonp = jsonp + jsc++; jsonp = json; // Change #1 and line 3450: var ts = now().toString();

[jQuery] Re: No Response Using getJSON

2009-09-05 Thread Tony
I have since made some small changes to the source code instead to shorten the callback instead of specifying one In line 3421: //jsonp = jsonp + jsc++; jsonp = json; // Change #1 and line 3450: var ts = now().toString();

[jQuery] About jquery append and automatic deleting

2009-09-05 Thread lovespring
when you append by using an existing content, jquery will delete the orignal: $(new).append($('#ori')); then the orignal $('#ori') in the document will be deleted, is this by design?