[jQuery] Re: $(document).ready() vs $(function () {});

2008-10-20 Thread Isaak Malik
Both are exactly the same, the first one is just a shorter way to write and one step further in fast development with jQuery On Tue, Oct 21, 2008 at 6:56 AM, Shawn <[EMAIL PROTECTED]> wrote: > > I am seeing more and more references to using the $(function() {}); format > for > the ready method.

[jQuery] $(document).ready() vs $(function () {});

2008-10-20 Thread Shawn
I am seeing more and more references to using the $(function() {}); format for the ready method. Is there a compelling reason for this? Or will $(document).ready() perform as well? Or perhaps I'm mis-understanding what the newer format is being used for? Thanks for any tips. Shawn

[jQuery] Help optimising jquery code - there must be a better way

2008-10-20 Thread Kent Humphrey
I am relatively new to jquery, but have managed to muddle my way through a complicated navigation design that has overlapping selected states, eg with menu items 1,2,3,4 and 5, when item 2 is selected, the images for items 1 and 3 also have to change. The code is long and convoluted, and I am s

[jQuery] Re: BUG: oversized overlay in IE web browsers ( demo included )

2008-10-20 Thread tallvanilla
Thanks for the reply, Josh... but that isn't the problem. To demonstrate, I updated my demo according to your suggestion: http://74.205.76.81/blockuitest/ Even if that WAS the solution, it would force people to zero out their body padding and margins. Not a problem for most, but inconvenient fo

[jQuery] Re: Only Fire Mouseover If Not Already Active

2008-10-20 Thread QuickScriptz
Thanks ricardo. It just got too "buggy" trying to do what I had original wanted so I ended up just using the "slide" effect to show it, and then the drop effect to hide it. It gives the same overall appeal but it avoids the hassle with the popup div being covered. Thanks again for your help! For

[jQuery] Treeview - close/hide list item when list item/submenu item is clicked

2008-10-20 Thread caydieu
Hi, I really enjoy this plugin, great job to all the folks who have made it possible. I'm using treeview to have as an FAQ page. Right now, to close out a submenu, the user has to reclick the parent menu. I would like to add a feature where the viewer can click the an li item/submenu (in this ca

[jQuery] Re: ANNOUNCE: Context Menu Plugin v1.0 - new plugin with themes, highly extensible

2008-10-20 Thread MindstormsKid
VERY nice! One thing... You might want to disable the normal browser context menu on the jquery context menu... (as in right-clicking one of the context menu options) Matt Kruse-3 wrote: > > > I've just released version 1.0 of my Context Menu plugin: > http://plugins.jquery.com/project/cmenu >

[jQuery] Re: Group validation - validate per page in one form.

2008-10-20 Thread ovalsquare
Perhaps I could use the depends parameter (http://dev.jquery.com/ ticket/2456) in order to check what page I'm on and therefore validate accordingly for only the visible page. There are several other options I've thought through (including actually going with the real estate example above, which

[jQuery] Web page navigation question....

2008-10-20 Thread Stever
Hello, I am new to Javascript and Jquery and I have a question on a web page I am building. I have an interactive form where I have two columns, one column holds the form the second holds the results. When the user comes to the page, the form and the result window are blank. The form allows th

[jQuery] Re: ui.tabs + cycle + WebKit = not working

2008-10-20 Thread Mike Alsup
> I guess this leads to the question... > > When the tabs load an external page as the tab content using ajax, > does the external page inherit all the js files from the tab page? Yes, but that's not what's happening on your site. Clicking on those links is navigating to a different page, not l

[jQuery] Re: JQuery Cycle + lazyload

2008-10-20 Thread Mike Alsup
> I am using cycle for a slideshow and it works great. The problem is > that I have a gallery with about 60 large images and it can be a real > pain for slow connections. I figured using lazyload would be a good > option so that the images only load as needed. I can't seem to get > cycle and lazyl

[jQuery] Atribute selector with squared brackets

2008-10-20 Thread Ariel Flesler
We got a ticket about how to select elements by an attribute with brackets. I replied with the common link to the FAQ and the reporter replied that the example in the docs doesn't work. I tried that myself, and indeed, that didn't work. http://dev.jquery.com/ticket/3443 $('[name=foo[bar]]'); //

[jQuery] Re: Help with Superfish

2008-10-20 Thread Joel Birch
Hello, >From a scan of your CSS it seems that you are applying the images to the anchor elements. However, when you are hovering within a submenu, the associated parent anchor is no longer being hovered, so the hover image is lost. Try applying the images to the li elements and leave the anchor b

[jQuery] Re: Good MVC tutorial?

2008-10-20 Thread Sam Sherlock
Assuming that you are using Cakephp (is there any other MVC framework - my personal bias coming to the fore) Some older cake/ajax tutorials are based on protoype but can easily be adapted Marc Grabanski (part of jQuery UI team) > The CakePHP core is moving to jQuery. I'll be helping on that effor

[jQuery] Re: ui.tabs + cycle + WebKit = not working

2008-10-20 Thread psurrena
I guess this leads to the question... When the tabs load an external page as the tab content using ajax, does the external page inherit all the js files from the tab page? On Oct 20, 7:22 pm, Mike Alsup <[EMAIL PROTECTED]> wrote: > >http://www.petersurrena.com/ > > > The first project that loads

[jQuery] Re: Hover not work properly when moving mouse fast...

2008-10-20 Thread MorningZ
I wouldn't put Flash as the single cause for this... I have a table of ~ 30 rows that i tried to wire in a hover event which colored/de-colored the row the user was over so it was obvious what row they were one moving the mouse in and out very quickly made the "out" event not fire resulting

[jQuery] Re: Hover not work properly when moving mouse fast...

2008-10-20 Thread Karl Rudd
Oh, you're working with Flash... hmmm that's probably the reason. Getting events from "object" or "embed" nodes can be... tricky, in my very limited experience. My suggestion is that you drop the SIFR menu items and use background images. Either that or you'll have to somehow tap into the "hover"

[jQuery] JQuery Cycle + lazyload

2008-10-20 Thread TResudek
I have a photo gallery using cycle and it works well. I am running into an issue with slow connections because I have a gallery with 60+ large images in it. I figured I could use lazyload to remedy the problem and have the images only load when they are called(or next to be called). I can't seem

[jQuery] JQuery Cycle + lazyload

2008-10-20 Thread TResudek
I am using cycle for a slideshow and it works great. The problem is that I have a gallery with about 60 large images and it can be a real pain for slow connections. I figured using lazyload would be a good option so that the images only load as needed. I can't seem to get cycle and lazyload to wor

[jQuery] Re: ui.tabs + cycle + WebKit = not working

2008-10-20 Thread Mike Alsup
> http://www.petersurrena.com/ > > The first project that loads is a great example of the problem. I have no idea what I'm looking for. All those links go to pages that don't load jQuery???

[jQuery] Improving a tooltip code

2008-10-20 Thread Gordi
Hi everyone, I'm trying to build a hoverable Jquery tooltip. This tooltip should appear when I hover over some element, and stay put if I choose to hover over the tooltip itself too. The tooltip should disappear only if I hover away from the original element or from the tooltip body. Based on an

[jQuery] Re: [tooltip] fixing the tooltip position relative to tooltipped element's position, not mouse position on event firing

2008-10-20 Thread RTW
Thanks Jorn, clueTip is flexible indeed. I'd like to mod my tooltip though, as I've put in a bit of effort in getting things right. Any ideas on how I can get the correct co-ordinates? Using current.offsetLeft for example just dumps the tooltip at same spot, not matter where the tooltipped eleme

[jQuery] Re: BUG: oversized overlay in IE web browsers ( demo included )

2008-10-20 Thread Josh Nathanson
This happens where there is some padding or margin on the body. If you set them to 0 via css it should take care of the problem. /* css */ body { padding: 0; margin: 0; } -- Josh - Original Message - From: "tallvanilla" <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Monday, Oc

[jQuery] jquery newbie help please!

2008-10-20 Thread Ben
Hi, I'm new to jquery and am having a couple issues on a site I've designed. I am using 2 jquery techniques: dd accordian and a animated image load i sorta hacked together. Both have slight glitches that I can's seem to figure out. Can someone please offer some guidance on either of the following

[jQuery] [validate] Group validation - validate per page in one form.

2008-10-20 Thread ovalsquare
I am attempting to paginate a form, and validate for each page (page navigation via accordion or simply .show()/.hide()). However, the only sample I've seen of this appears to be the Help me Buy and Sell a House demo at http://jquery.bassistance.de/validate/demo/multipart/. This sample requires th

[jQuery] addClass / removeClass Multiple Divs

2008-10-20 Thread betweenbrain
Hi all, First off, I am a bit new to jQuery so please excuse any newbie-ness. Thank you all for the great group. It is extremely informative and I hope to be able to give back soon. I have been working with multiple jQuery scripts at http://dev.betweenbrain.com/telos_systems/Support/supportRev3.

[jQuery] Good MVC tutorial?

2008-10-20 Thread greenie2600
Hi all - I'm looking for a good tutorial on the MVC pattern in the context of jQuery AJAX apps. (I'm using a PHP back-end, if that matters.) I understand basic design patterns such as the singleton, the strategy pattern, etc., but I've never really grokked MVC. From what I know of it, it seems l

[jQuery] Help with Superfish

2008-10-20 Thread sireb
Hello, As suggested on the superfish homepage (http://users.tpg.com.au/ j_birch/plugins/superfish/#download) i am posting here with a problem i am experiencing its probably user error, but i cant seem to get it to work properly. The problem is that when users hover of the menu "buttons" and

[jQuery] BUG: oversized overlay in IE web browsers ( demo included )

2008-10-20 Thread tallvanilla
Hello. I found a minor bug that affects overlay in IE web browsers (at least in IE6). Please take a look at this very simple demo: http://74.205.76.81/blockuitest/ In IE(6), the overlay is a bit taller than the browser window, so a scrollbar appears on the right whenever the overlay is present.

[jQuery] load dynamic content into myobj

2008-10-20 Thread Flavio333
Hello, what I am trying to do is this... I have a link on a page when i click the link i want it to load "Page2.php?+..." into "myobj". here is some of the code i was working with... hope someone can help... Thank you. $(document).ready(function(){ $("#generate2").click(function(){

[jQuery] Re: ANNOUNCE: Context Menu Plugin v1.0 - new plugin with themes, highly extensible

2008-10-20 Thread Alexandre Plennevaux
Matt, you rule ! On Mon, Oct 20, 2008 at 6:11 PM, Matt Kruse <[EMAIL PROTECTED]> wrote: > > I've just released version 1.0 of my Context Menu plugin: > http://plugins.jquery.com/project/cmenu > ( plugin home: http://www.javascripttoolbox.com/lib/contextmenu/ ) > > Here is the description from the

[jQuery] Re: Plugins website in IE7

2008-10-20 Thread PatricioTarantino
I have the same problem, I have a div that shows with show() and the links inside are unclickable in IE7 On Oct 20, 6:51 am, Adam Frame <[EMAIL PROTECTED]> wrote: > Is it just me or is the plugins page (plugins.jquery.com) a little broke > in IE7? The footer appears to ride up the page and makes

[jQuery] Re: pngFix and display:none

2008-10-20 Thread Isaak Malik
I've had a look at the Fancy Box and it seems the pngfix seems to do its job. It would be helpful if you provided us with a demo where it's not working. Also, you might want to give this pngfix hack a try: http://jquery.khurshid.com/ifixpng.php On Mon, Oct 20, 2008 at 10:37 PM, yabdab <[EMAIL PR

[jQuery] Re: [validate] Validation max number of checkboxes

2008-10-20 Thread [EMAIL PROTECTED]
Works beautifully -- Thanks!

[jQuery] Re: How to address JSON data once returned with getJSON ?

2008-10-20 Thread smallcog
Absolutely Mike, thats the problem, a really newbie mistake. Thanks / Colm

[jQuery] Re: pngFix and display:none

2008-10-20 Thread yabdab
The problem is, they are never "shown". Fancy Box takes the html from the original hidden div, then presents that to the user. I cannot figure out a way to apply the fix to this png on-the-fly??? :-( On Oct 20, 1:22 pm, "Isaak Malik" <[EMAIL PROTECTED]> wrote: > You just need to apply the pngfi

[jQuery] Re: Combining jQuery and jQuery UI

2008-10-20 Thread c.barr
They already have the semicolons straight from jQuery, so no changes were needed. Any other suggestions? On Oct 16, 5:16 pm, Mike Alsup <[EMAIL PROTECTED]> wrote: > > I'd like to combine and compress my jQuery and jQuery UI files into a > > single minified file, but I've noticed that every time I

[jQuery] Re: How To Create Array(s) in jQuery?

2008-10-20 Thread loveprone
Thank you all for your quick support. The error was caused due to incorrect markup in the user script jQuery file and now it's working fine. enjoy :)

[jQuery] Re: jcarousellite vertical issues

2008-10-20 Thread 700lbGorilla
Just trying to bump this thread a little, see if anyone can help, still having problems

[jQuery] Re: Disabling jQuery on printing?

2008-10-20 Thread iantresman
http://www.hiya4kids.co.uk/girls.htm This page shows the maphilighting in action. When I click Print Preview, the large page images (showing the toys) disappears showing just the super-imposed text. If I rem out the $('.map').maphilight(); statement, and then print preview, the images appear O

[jQuery] Re: Faceted navigation Solution Ideas

2008-10-20 Thread Mauricio (Maujor) Samy Silva
Have a look at: http://jquery.bassistance.de/accordion/demo/ Mauricio I want a starting point for a faceted navigation system, using jquery, similar to that at http://www.indeed.com/jobs?q=programmer&l= for example Can someone please point me in the right direction ... Thanks for any help

[jQuery] Re: Disabling Textarea, Select

2008-10-20 Thread Justin Kozuch
Nevermind I figured it out. - Justin On Oct 20, 2:20 pm, Justin Kozuch <[EMAIL PROTECTED]> wrote: > Hi, > > I've hit a bit of a snag in some code I've repurposed for a form I'm > creating: > > $(document).ready(function() { > var termsagree = $("#termsagree"); > var inital = termsagree.i

[jQuery] Re: Linkselect Plug-in Released...

2008-10-20 Thread Dan Switzer
On Mon, Oct 20, 2008 at 11:22 AM, Ca-Phun Ung <[EMAIL PROTECTED]> wrote: > Very cool! Excellent work! I like how you are able to change the entire > look purely through CSS. It also looks very adaptable. Thanks for sharing. > :) > Thanks!

[jQuery] Faceted navigation Solution Ideas

2008-10-20 Thread zartoop
I want a starting point for a faceted navigation system, using jquery, similar to that at http://www.indeed.com/jobs?q=programmer&l= for example Can someone please point me in the right direction ... Thanks for any help

[jQuery] Nested GetJson Requests

2008-10-20 Thread Nightcrawler
Is there a plugin or some documentation as to how I can make say 10 async GetJson requests in a neat and managed way? By that I mean I fire off 10 async requests and as soon as I get the data back I want to display it on the page (order is not important, whatever finishes first gets displayed firs

[jQuery] Re: [validate] Trouble using rules( "add", rules ) as well as setting attribute for range validations

2008-10-20 Thread lightglitch
I have made a patch for my app to the rules function to support custom messages: This is the new function, would be nice to have something similar to this. rules: function(command, argument) { var element = this[0]; if (command) {

[jQuery] Disabling Textarea, Select

2008-10-20 Thread Justin Kozuch
Hi, I've hit a bit of a snag in some code I've repurposed for a form I'm creating: $(document).ready(function() { var termsagree = $("#termsagree"); var inital = termsagree.is(":checked"); var terms = $("#contractualreqs")[inital ? "removeClass" : "addClass"]("gray"); var termsIn

[jQuery] Table Sorter - Freeze Panes (like Excel)

2008-10-20 Thread Devin
Hi. I know there are solutions that work for freezing the TH or first row of a table. However I can't seem to find one that also has been tested with table sorter. Suggestions? Thanks, D.

[jQuery] Re: How To Create Array(s) in jQuery?

2008-10-20 Thread Michael Geary
> > What makes you say that?  An array is an array is an array.  jQuery > > doesn't change how they work or how you create them. > Yep. An array is an Array. But in my case while working with > jQuery the array data is not executing properly and the same > is working fine in typical javascript

[jQuery] jQuery Uploader Flash player 10 fix

2008-10-20 Thread Gilles (Webunity)
Guys; A lot (8) people have allready asked me if i was going to fix the mess Adobe made and my answer is yes, i am working on it. This post is to assure you that the jQuery Flash based uploader i wrote in 2006 has been revived. The project will no longer be based on swfupload, since i added way

[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-20 Thread leveille
Do you have a link so that we can take a closer look at the response headers associated with file requests? In the past on shared hosts I had to go the route of ob_start and ob_end_flush. This isn't terrible if you are using includes for your header and footer. At this point, assuming you have

[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-20 Thread Sridhar Kuppalli
Hi, My php_info(); shows these things _ENV["HTTP_ACCEPT_ENCODING"] ==> gzip,deflate HTTP_ACCEPT_ENCODING ==> gzip,deflate _SERVER["HTTP_ACCEPT_ENCODING"] ==> gzip,deflate Now i am adding headers to js file by inlcuding it in my php file. Then i am including uitabs.php in my index.php file. Now

[jQuery] Re: pngFix and display:none

2008-10-20 Thread Isaak Malik
You just need to apply the pngfix to those elements as soon as they are shown. Nothing more, nothing less.. On Mon, Oct 20, 2008 at 5:59 PM, yabdab <[EMAIL PROTECTED]> wrote: > > I am seeing an issue in that POS browser IE6 that goes like this... > > pngFix() works only on images that are display

[jQuery] Re: jQuery can't work if sending http header with text/xml

2008-10-20 Thread ricardobeat
Have you tried using an 'application/xhtml+xml' header? You could also put the MathML stuff inside an iframe in a XHTML page. On Oct 20, 12:05 pm, jockey <[EMAIL PROTECTED]> wrote: > I use perl as server-side language to generate pages dynamically. > The problem is: if I use ==> $q->header(-type

[jQuery] Re: Mouse-responsive scrolling content within a container, with mouse position and easing

2008-10-20 Thread ricardobeat
It's quite a heavy page for this kind of effect, Flash would look much smoother in most computers. This looks a little better, but is still rough: (caching the objects avoids looking up the DOM for each mousemove, checking for a distance greater than 10 saves 9 unnecessary function calls) var $

[jQuery] Re: using jquery to get at the img data???

2008-10-20 Thread Ca-Phun Ung
Yes, Firefox supports canvas. Unfortunately IE does not... but I found this - http://ajaxian.com/archives/canvas-in-ie. I have not tried this so do not know whether it will work for you. Won't hurt to try though. :) On Tue, Oct 21, 2008 at 12:14 AM, whitewaterbug <[EMAIL PROTECTED]>wrote: > Canvas

[jQuery] Re: using jquery to get at the img data???

2008-10-20 Thread whitewaterbug
Canvas sounds like it might do the trick. Is canvas supported on IE and firefox? I looked into dataurl and the other limitation is also the size of the image must be small, which doesn't work for my purposes either. On Mon, Oct 20, 2008 at 11:55 AM, Ca-Phun Ung <[EMAIL PROTECTED]> wrote: > On

[jQuery] ANNOUNCE: Context Menu Plugin v1.0 - new plugin with themes, highly extensible

2008-10-20 Thread Matt Kruse
I've just released version 1.0 of my Context Menu plugin: http://plugins.jquery.com/project/cmenu ( plugin home: http://www.javascripttoolbox.com/lib/contextmenu/ ) Here is the description from the plugin page: This plugin enables you to display a custom context menu on right click in browsers t

[jQuery] pngFix and display:none

2008-10-20 Thread yabdab
I am seeing an issue in that POS browser IE6 that goes like this... pngFix() works only on images that are displayed. I have some hidden divs (display:none) that contain png files that are reveled when needed. But they are missing when I show() them. Any ideas what is happening to them?

[jQuery] Re: using jquery to get at the img data???

2008-10-20 Thread Ca-Phun Ung
On Mon, Oct 20, 2008 at 6:19 AM, whitewaterbug <[EMAIL PROTECTED]>wrote: > > I believe this would require a 2nd download of the image so that it is > within the applet. I am trying to get the actual image data into the > applet through javascript to applet communication or having the applet > acc

[jQuery] validate plugin and radio button

2008-10-20 Thread hcvitto
hi another little issue in my long form:) i got 5 couples of radio button: The validation rule against them must be: - at least one radiobutton with value 'si' must be checked. I added a classRule but apparently this doesn't work for radiobuttons. $.validator.addClassRules({ c

[jQuery] Re: JQuery Selector and Java Script Variable

2008-10-20 Thread RotinPain
@ricardobeat: Great! thank you for your help. I see that there are plenty of manners that can be used to retrieve the type of an element, now it's to choose the good one ;) . I'll use the ternary one for my code but I will also keep in mind the other functions you gave here for using them in my ne

[jQuery] Re: Disabling jQuery on printing?

2008-10-20 Thread Ca-Phun Ung
To be more constructive lets analyse what we're trying to do in the first place. Based on the code posted am I right to assume that the maphilight() method applied to $('.map') writes inline css / markup to highlight the map? If so there are a few ways to remove these highlights for print. First cr

[jQuery] Re: ui.tabs + cycle + WebKit = not working

2008-10-20 Thread psurrena
http://www.petersurrena.com/ The first project that loads is a great example of the problem. On Oct 20, 11:16 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > > This is ideal but does not work with webkit...ie and mozzila work > > fine. > > > >         > > > > <-- Cycle Div --> > >         <-- T

[jQuery] Re: ui.tabs + cycle + WebKit = not working

2008-10-20 Thread Mike Alsup
> This is ideal but does not work with webkit...ie and mozzila work > fine. > >         > > <-- Cycle Div --> >         <-- Tab Div --> >                                         include_once("portfolio/wrt.php"); >                 ?> >         > > > here's the js >         >              

[jQuery] Re: Linkselect Plug-in Released...

2008-10-20 Thread Ca-Phun Ung
Very cool! Excellent work! I like how you are able to change the entire look purely through CSS. It also looks very adaptable. Thanks for sharing. :) On Mon, Oct 20, 2008 at 9:57 PM, Dan G. Switzer, II <[EMAIL PROTECTED] > wrote: > > My current employer has released another jQuery plug-in: the Lin

[jQuery] jQuery can't work if sending http header with text/xml

2008-10-20 Thread jockey
I use perl as server-side language to generate pages dynamically. The problem is: if I use ==> $q->header(-type=>'text/html', - charset=>'utf-8'); <== jQuery works fluently. But if I use ==> $q->header(-type=>'text/xml', -charset=>'utf-8'); <== jQuery fail to do the job. I use MathML in my pages,

[jQuery] Edit table

2008-10-20 Thread Olle Asplund
Hello. I was wondering if you guys knew how to edit a table cell with JQuery and update it? I'm currently using JAVA/Spring for my webapp but I can't seem to figure out how to update a table cell within my jsp-page in the database. I have tried the plugin UITableEdit and tableEditor but the late

[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-20 Thread leveille
Are you certain that you have enabled/loaded the deflate module on your server? Add a phpinfo() page (I'm assuming you are writing a PHP app based on earlier comments) and look for the section labeled "Loaded Modules". In that section, look for "mod_deflate" as a loaded module. On Oct 19, 2:08

[jQuery] ui.tabs + cycle + WebKit = not working

2008-10-20 Thread psurrena
Hello, I am running into a problem on my website when the jQuery cycle plugin is used with ui.tabs. When a portfolio item has multiple images, the Cycle plugin is used for pagination. I chose this plugin since it's easy to add a description / file links / web address and, I didn't want image thum

[jQuery] Can't get it work...-_-

2008-10-20 Thread jockey
I use perl as server-side language to generate webpages dynamically. The generated html page is as following: ### html Hello World How are you ### html the jquery file: ### jquery $(document)

[jQuery] multi column Sort with pagination and filtering

2008-10-20 Thread jbird
Hi all, I am faily new to jquery and love it. I am in need of the ability to sort across multiple columns, filtering and pagination. I have tried the DATATABLES plugin which has everything I need except the multi-column sort. I have tried to modify the sort function to make it multi-column and

[jQuery] Re: Printing this page button

2008-10-20 Thread gemmes
Hmm... window.print() does not work on my IE6 browser but seems to work for other people. thanks for your help gemmes On Oct 20, 3:54 pm, tlphipps <[EMAIL PROTECTED]> wrote: > That javascript method is fully supported in IE6.  We use it all the > time. > > On Oct 20, 9:26 am, gemmes <[EMAIL

[jQuery] Re: How To Create Array(s) in jQuery?

2008-10-20 Thread ricardobeat
The jQuery functionality available through $() only works for DOM elements, including an array of them. Other JS objects will fail. Anyway, like Stefan said, an example would be very helpful. - ricardo On Oct 20, 11:29 am, aj is in <[EMAIL PROTECTED]> wrote: > > What makes you say that?  An arr

[jQuery] Re: Activate checkbox from URL

2008-10-20 Thread Dan Switzer
Alex, On Mon, Oct 20, 2008 at 3:38 AM, Alex Hempton-Smith < [EMAIL PROTECTED]> wrote: > I'm using the Flot graphing plugin and I'd like to be able to have a > specific series highlighted depending on the URL, as I want to link to it. > > This will mean activating a checkbox depending on the URL,

[jQuery] Re: JQuery Selector and Java Script Variable

2008-10-20 Thread ricardobeat
You can use this syntax: if ( $('#elementToBeUpdated').is('input,textarea') ) { // use val(); } else { // use text(); } or you can take advantage of the empty return object (only one will execute): $('#element').filter('input,textarea').val(new); $('#element').not('input,textarea').text(new);

[jQuery] Re: Way to use a Multi-Line Example Prompt in a Single-line Text Input Field

2008-10-20 Thread Dan Switzer
Wayne: > I'm trying to prompt for input within the field using the Example > plugin (http://plugins.jquery.com/project/example). The idea is that > I'm styling my input field to be unsually large when the user types > (it will be no more than a 4 or 5 digits), so I can use closer to > normal size

[jQuery] Re: Printing this page button

2008-10-20 Thread tlphipps
That javascript method is fully supported in IE6. We use it all the time. On Oct 20, 9:26 am, gemmes <[EMAIL PROTECTED]> wrote: > This does not work in IE6 for me. > > IE7 FF fine. I have not tried Opera, Safari yet. > > thanks anyway > > On Oct 20, 3:03 pm, tlphipps <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: Disabling jQuery on printing?

2008-10-20 Thread ricardobeat
In-line CSS modifications will remain. When you send the window.print() command, the page is printed *as it is* at the moment, including styling via Javascript. If something is affecting your print output, it is happening before you press 'print'. - ricardo On Oct 20, 6:39 am, "Ca-Phun Ung" <[EM

[jQuery] Re: Only Fire Mouseover If Not Already Active

2008-10-20 Thread ricardobeat
This helps a bit, but there are still many problems.. your best bet is to avoid covering the button with the popup: // Make icon fade $(nowIcon).mouseover(function(){ if ( !$(nowPopup).is(':visible') ) {

[jQuery] Re: Way to use a Multi-Line Example Prompt in a Single-line Text Input Field

2008-10-20 Thread Wayne
By way of example, here's what I'm currently using. I'm not happy with the textarea actions, though. http://dev.ficclaims.com/test/textbox.php Would it be smarter to use a textarea and switch it to an input[type=text] on click? Thanks, -Wayne On Oct 17, 1:16 pm, Wayne <[EMAIL PROTECTED]> wrote

[jQuery] Re: Calling seperate function in each()

2008-10-20 Thread XeroXer
I have returned with yet another question. If I want to collapse all the other menu items before expanding the clicked one I tried using this: ... .bind('showme', function() { $("a.Category").trigger("showme"); $(this).data("hidden", false).parent("li") .css({background: "#00ff00"}).children("ul")

[jQuery] Re: Printing this page button

2008-10-20 Thread gemmes
This does not work in IE6 for me. IE7 FF fine. I have not tried Opera, Safari yet. thanks anyway On Oct 20, 3:03 pm, tlphipps <[EMAIL PROTECTED]> wrote: > window.print(); > > Just standard javascript. > > On Oct 20, 7:39 am, gemmes <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I have a print.c

[jQuery] Re: Simple AJAX Question

2008-10-20 Thread ricardobeat
Ajax calls don't reload the page. The easiest way is to use JSON: $('li').click(function(){ var _name = $(this).text(); $.getJSON("getdata.php",{ name: _name }, function(data) { alert('name is: '+ data.name) }); }); Then your server script must return a Javascript object: { name: 'Doll

[jQuery] Re: Printing this page button

2008-10-20 Thread tlphipps
window.print(); Just standard javascript. On Oct 20, 7:39 am, gemmes <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a print.css stylesheet attached to a page on my site. When I > click on my print icon I want to go to the Print Properties window. I > need this to work in all browsers. > > Is th

[jQuery] Linkselect Plug-in Released...

2008-10-20 Thread Dan G. Switzer, II
My current employer has released another jQuery plug-in: the Linkselect jQuery Plug-in. This plug-in converts a normal element into a component that can be highly stylized via CSS. While there are a number of similar plug-ins already, there are a several of key differences which we think make thi

[jQuery] Re: using jquery to get at the img data???

2008-10-20 Thread ricardobeat
You can't get the image data directly, just as you can't get a script's content. Would be nice being able to clone them, but unfortunately that's currently impossible. - ricardo On Oct 19, 8:19 pm, whitewaterbug <[EMAIL PROTECTED]> wrote: > I believe this would require a 2nd download of the imag

[jQuery] Re: some doubt

2008-10-20 Thread ricardobeat
hmm. That is not on the list of supported selectors, but you can use these: $('.test ~ div > div') or $('.test ~ div').children('div') - ricardo On Oct 20, 12:17 am, "汪杰" <[EMAIL PROTECTED]> wrote: > when you test $(".test ~ div div") , you'll see what i mean

[jQuery] Re: How To Create Array(s) in jQuery?

2008-10-20 Thread Stefan Sturm
Perhaps you should give us an example... 2008/10/20 aj is in <[EMAIL PROTECTED]>: > >> What makes you say that? An array is an array is an array. jQuery >> doesn't change how they work or how you create them. > > Yep. An array is an Array. But in my case while working with jQuery > the array da

[jQuery] Re: How To Create Array(s) in jQuery?

2008-10-20 Thread aj is in
> What makes you say that?  An array is an array is an array.  jQuery > doesn't change how they work or how you create them. Yep. An array is an Array. But in my case while working with jQuery the array data is not executing properly and the same is working fine in typical javascript. :|

[jQuery] Printing this page button

2008-10-20 Thread gemmes
Hi all, I have a print.css stylesheet attached to a page on my site. When I click on my print icon I want to go to the Print Properties window. I need this to work in all browsers. Is there a way to do this with jQuery? Is there a plugin? etc. pls help gemmes

[jQuery] Re: JQuery not working for dynamic content

2008-10-20 Thread Mike Alsup
> i am loading xml data via ajax and using it to append rows in an html > table. each table row (TR) has a class and an event is supposed to > fire whenever the row is clicked. but it seems my jquery events are > not aware of the new content. how do i sort this one out? http://docs.jquery.com/Fre

[jQuery] Re: How To Create Array(s) in jQuery?

2008-10-20 Thread Mike Alsup
> It seems that the default format for creating Arrays in JavaScript is > not compatible with jQuery. What makes you say that? An array is an array is an array. jQuery doesn't change how they work or how you create them.

[jQuery] Re: Charset with data loaded through ajax

2008-10-20 Thread Bil Corry
XeroXer wrote on 10/20/2008 3:39 AM: > It seems that all the data I load through ajax is sent using utf-8 > instead of iso-8859-1 witch all my files is. > Is this a known problem and does anyone have a solution? Are you setting the charset to ISO-8859-1 in the response header? - Bil

[jQuery] Plugins website in IE7

2008-10-20 Thread Adam Frame
Is it just me or is the plugins page (plugins.jquery.com) a little broke in IE7? The footer appears to ride up the page and makes all category links unclickable. Looks fine in firefox 3. I think a little float clearing at the bottom of the category list should fix it, but I'm no expert. Maybe

[jQuery] Re: Ajax Request - Success and Failure Events

2008-10-20 Thread Mike Alsup
> I was reading the jQuery help docs (in the Ajax Events section), and I > came across this statement: > > "you can never have both an error and a success callback with a > request" > > Does anyone know why you can't do this? I can think of a number of > situations where you would need to cater fo

[jQuery] Re: Redirect browser to separate page after animation

2008-10-20 Thread BB
Try: $(".blah").click(function () { $(".block").fadeIn("slow", function() { window.location.href = "foo.html"; }); }); On 20 Okt., 11:03, Awesome <[EMAIL PROTECTED]> wrote: > Is it possible to redirect the browser to a separate page after a > jQuery function? > > For example: > > $(".bla

[jQuery] Re: set dom id

2008-10-20 Thread Isaak Malik
$('.class-name').attr('id', 'newid'); On Mon, Oct 20, 2008 at 8:55 AM, sqad <[EMAIL PROTECTED]> wrote: > > I need to dynamically set the DOM 'id' attritube for elements using > jQuery notation. Is that possible, if so, can I get an example please? > > $('element-id')[id] = newid > > doesn't quite

[jQuery] set dom id

2008-10-20 Thread sqad
I need to dynamically set the DOM 'id' attritube for elements using jQuery notation. Is that possible, if so, can I get an example please? $('element-id')[id] = newid doesn't quite work. :-) Thanks!

[jQuery] ScrollBar issue with Tab key in input controls

2008-10-20 Thread csplrj
In this http://tradeera.com/contact.html When the user tabs through all the controls the ScrollBar does not goes down instead the whole div goes down and so the whole scrollbar gets invisible till the time we get to the last i.e. When we click the first textbox and then click Tab then the scrollb

  1   2   >