[jQuery] Re: Detecting variable passed by # in URL

2009-01-27 Thread Ami
Jquery History plugin can help you. The problem is that no event trigger when the user change the hash value. On Jan 28, 4:45 am, MorningZ wrote: > You can read the "hash" value by location.hash > > http://www.devguru.com/Technologies/ecmascript/quickref/location_hash... > > Not really sure whe

[jQuery] Sending Arguments to Event

2009-01-27 Thread Anjanesh
I understand jQuery has parameters stored in event.data.* But Is there a way to achieve this using jQuery ? var someVar = { init : function () { $('#someID').bind("click", ['arg1', 'arg2'], this.add); }, add : function(p1, p2) { alert(p1 + ' : ' + p2); // Doesnt show a

[jQuery] Re: Why the subsequent calls don't work on IE6?

2009-01-27 Thread mctpursuer
Found the cause. It's IE cache. Appending a time stamp, problem solved. On Jan 28, 2:29 pm, mctpursuer wrote: > Hi, I have the following function, I noticed the first time I pass a > different index, the $.get will generate a request to the server, > however if the function is being called with

[jQuery] Re: IE7 "dead pixels" in jpg with animation effect

2009-01-27 Thread lunaroja
Wow! you are up to very diligent about bugs and examples. (btw, I still have to isolate that bug for your on cycle I twitter). After many many google keywords, I came across this fix. http://www.alexjudd.com/?p=5 Look like if you are ok with not having any "pure" black in your image you can just

[jQuery] Why the subsequent calls don't work on IE6?

2009-01-27 Thread mctpursuer
Hi, I have the following function, I noticed the first time I pass a different index, the $.get will generate a request to the server, however if the function is being called with the same index again, there is no request being sent to the server. This strange problem happened only in IE (I am usi

[jQuery] Ajax Problem

2009-01-27 Thread saiful.ha...@gmail.com
hi all, I have 2 file rating.js $(document).ready(function() { var behav = function(){ $(".rating_class").hover(function(){ $("#tooltip_star").css({"visibility":"visible", "top":($ (this).offset().top - 60), "left":($(this).offset().left+$(this).width ()+ 2)}); $.ajax({

[jQuery] How to block the javascript engine when jQuery.ui.dialog is pop up?

2009-01-27 Thread mctpursuer
Hi, I am trying to replace javascript built-in alert & prompt with jQuery.ui.dialog, the problem is dialog won't block the javascript engine from excuting statements following the dialog("open"). Is there an elegant solution for this? Thanks.

[jQuery] Re: How save is Jquery with JSON

2009-01-27 Thread Mike Alsup
> iframes - set the src attribute on an iframe to the remote page, use JS > to extract the info you need from that frame FYI, it is not possible to access the DOM of an iframe that points to a different domain. This is part of the x-domain security enforced by the browser.

[jQuery] Re: Detecting variable passed by # in URL

2009-01-27 Thread MorningZ
You can read the "hash" value by location.hash http://www.devguru.com/Technologies/ecmascript/quickref/location_hash.html Not really sure where/how you feel jQuery would be involved, but ultimately jQuery would get that value via that JavaScript method On Jan 27, 4:37 pm, vdiddy wrote: > I've

[jQuery] Re: Clone not cloning HTML select options

2009-01-27 Thread Dave Methvin
> >  It varies depending on the browser. > Which ones? I was pretty sure that attachEvent was copied to a clone in IE, although the rules you mentioned above would seem to indicate that it shouldn't be. Cloning various form elements also varies, although perhaps those are attribute-vs-property is

[jQuery] Re: Clone not cloning HTML select options

2009-01-27 Thread RobG
On Jan 28, 10:20 am, Dave Methvin wrote: > There are the "static" properties and attributes that were defined in > the HTML itself, and then the "dynamic" ones that reflect the current > state of the element, including things like attached event handlers. > Unfortunately, the W3C doesn't make i

[jQuery] Re: How save is Jquery with JSON

2009-01-27 Thread Shawn Grover
Three options: jsonp - allows ajax type requests to other domains iframes - set the src attribute on an iframe to the remote page, use JS to extract the info you need from that frame server side - do an http request via your server side code, extract what you need there, and make it available

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-27 Thread Mike Alsup
> Hi Stefano, I think I found a solution. All you need to do is check if > the callback has been called after your specified timeout. If it has > not been called yet, overwrite it with an empty function, else do > nothing. That will mess up with any further usage of the callback, but > it works fo

[jQuery] Re: Alternate row colors using Ajax

2009-01-27 Thread donb
$("tr:odd","table.stripeme").addClass('altcolor'); is a way to stripe the rows. It is assumed there is a class 'altcolor' with a suitable background-color definition. On Jan 27, 4:43 pm, septemberbrain wrote: > I have some code that reads an xml file and outputs to a table.  I > would like the

[jQuery] AHAH- Working with return data.

2009-01-27 Thread zunama
What is the best way to work with HTML data returned on an AJAX call. Want to do something like this but I know it doesn't work. Do I need to stick the data into a temp div and then work with it? function (data) { $(data).find("."); } Thanks

[jQuery] Re: Unsetting variables

2009-01-27 Thread Hector Virgen
You can use delete for unsetting items in objects, but I'm not sure if it works with variables in general: var myObject = { foo: 'Foo', bar: 'Bar }; delete myObject['foo']; -Hector On Tue, Jan 27, 2009 at 2:33 PM, MorningZ wrote: > > x = null; > > > On Jan 27, 5:22 pm, "Chris J. Lee"

[jQuery] jQuery generated links are printing out the whole URL when user tries to print their info

2009-01-27 Thread Dean Farrell
We're having a problem with jQuery generated links appearing normally on screen, but printing out the whole URL in print view. Any suggestions? Thanks, Dean Farrell

[jQuery] Alternate row colors using Ajax

2009-01-27 Thread septemberbrain
I have some code that reads an xml file and outputs to a table. I would like the rows to have alternate colors but cannot get it to work properly. Below is my code. Hope someone can help. Thanks! tr.alt td {background:#e1e7e8;} tr.over td {background::#99a4a4;}

[jQuery] How to use one button to toggle multiple panels in succession

2009-01-27 Thread webopolis
I want to have 1 "+" with x number of slide panels set to display: none; under it . When a user clicks the "+" a panel is revealed. Each time the "+" is clicked, the next panel is revealed, and so on. Each panel will have a "x" that can be clicked to close itself. I figure I would have to create

[jQuery] Examples of Plug-in for scripted tutorial in application?

2009-01-27 Thread wakasm2
I am trying to convince my boss, who is oldschool and very unfamiliar with javascript/jquery, that there is a better way to approach a problem than using Flash but can't seem to find any really good real world examples to show him. Thanks ahead of time. I know I have seen something like this

[jQuery] Broken selector in jQuery 1.3

2009-01-27 Thread Hector Virgen
Hello, I just updated to jQuery 1.3 and I am having trouble with the following selector: var options = $('option[value=""]'); Firebug says: [Exception... "'Syntax error, unrecognized expression: value=""]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR

[jQuery] Examples of Plug-in for scripted tutorial in application?

2009-01-27 Thread wakasm
I know I have seen something like this before but I just cannot for the life of me remember what sites I may have seen it on. What I am looking for is a real-world example of any PLUG-IN/SITES that uses Jquery (or any javascript framework) to show a scripted tutorial on-top of a working applic

[jQuery] [jquery.form] How to structure url parameter ?

2009-01-27 Thread phicarre
jquery.form.js v2.18 How to structure the url parameter in order to use a function localized in a php file ? include ('myPHP_file.php'); $('#form1').ajaxSubmit( {target:'#output', type: 'post', url:'myFunction', success: showResponse }); myPHP_file.php:

[jQuery] Issues with getting local copy of jquery 1.3.1 to build from fresh SVN checkout

2009-01-27 Thread Fritz
I checked out the branch http://jqueryjs.googlecode.com/svn/tags/1.3.1 I don't have "svn" on my machine (I use TortioseSVN instead) so the build.xml lines that run svn to check the version of SVN crashed on my machine. A simple commenting out fixed this. I noticed that the version.txt file had

[jQuery] Re: Broken selector in jQuery 1.3

2009-01-27 Thread Hector Virgen
Nevermind, I just found the bug report for this: http://dev.jquery.com/ticket/3933 -Hector On Tue, Jan 27, 2009 at 2:04 PM, Hector Virgen wrote: > Hello, > > I just updated to jQuery 1.3 and I am having trouble with the following > selector: > > var options = $('option[value=""]'); > > Firebu

[jQuery] Detecting variable passed by # in URL

2009-01-27 Thread vdiddy
I've seen Flash be able to be triggered by passing a variable or sectionname through the URL after the #. For example, if I go to http://www.site.com/#about it would trigger flash movie for about section, and http://www.site.com/#contact would trigger the contact section of the flash. My question

[jQuery] Re: Clone not cloning HTML select options

2009-01-27 Thread Dave Methvin
There are the "static" properties and attributes that were defined in the HTML itself, and then the "dynamic" ones that reflect the current state of the element, including things like attached event handlers. Unfortunately, the W3C doesn't make it totally clear what is supposed to be copied on a c

[jQuery] How to pass parameter to the "close" event handler of the jQuery.ui.dialog?

2009-01-27 Thread mctpursuer
The following codes won't work. If you call rPrompt twice with different index value, the second index value won't be passed to the "close" event handler. I can work around this issue by using a global var like gIndex to store the index value, but I would like to know if there is a more elegent so

[jQuery] Re: Another question on how to passing parameters to event handler

2009-01-27 Thread mctpursuer
Thanks. But how to you pass the "index" in the following case? function rPrompt(index, msg) { alert(index); if($("#prompt").length == 0){ $("").appendTo("body"); $("#prompt").dialog({ title: "Test", m

[jQuery] Formatting Anomaly in IE7 after Fadein? (with demo page)

2009-01-27 Thread Vik
I have a page with a 3-column layout. When a link is clicked, the middle column is supposed to slide up, have it's text replaced, and then fade in. This works perfectly in Safari, Firefox 2 and Firefox 3, but on IE7, the middle column fades in with a width that is less than half of what its CSS s

[jQuery] Re: How save is Jquery with JSON

2009-01-27 Thread Trend-King
ok i understand but how does plugins like thickbox or some balloon tips handle the get from other domains. in that plugins you can say get me the content from for example google. do they all manage this via iframe? William schrieb: > You just described a basic XSS attack, browsers generally do

[jQuery] Re: How save is Jquery with JSON

2009-01-27 Thread William
You just described a basic XSS attack, browsers generally do not allow cross-domain XHR because of that. You can get around it by using your own domain as a proxy for JSONP. On Jan 27, 2:43 pm, Trend-King wrote: > hello i havea question about how saveis jquery and JSON. > > i use $ajax({url:url,

[jQuery] Re: Unsetting variables

2009-01-27 Thread William
To completely remove a variable: delete x; On Jan 27, 2:22 pm, "Chris J. Lee" wrote: > There a function to delete variables for jquery? > > x = undefined; // would that work?

[jQuery] [validate] Jquery validation plugin isn't working in IE

2009-01-27 Thread whtthehecker
Hi, This is my first time using the validation plugin for jquery and i've got it working in firefox but when i test in IE it's not working. Here is the page: http://rickhecker.com/test/login-sign-up/index.html I'm sure it's something stupid that I'm doing because I don't see anyone else having t

[jQuery] How save is Jquery with JSON

2009-01-27 Thread Trend-King
hello i havea question about how saveis jquery and JSON. i use $ajax({url:url,datatype:json...}) to get a markup of JSON items that updates the dom of my page via the success function passing the response to an function. and $.each the items to update the html of the element. in that funktion th

[jQuery] Re: Unsetting variables

2009-01-27 Thread MorningZ
x = null; On Jan 27, 5:22 pm, "Chris J. Lee" wrote: > There a function to delete variables for jquery? > > x = undefined; // would that work?

[jQuery] Unsetting variables

2009-01-27 Thread Chris J. Lee
There a function to delete variables for jquery? x = undefined; // would that work?

[jQuery] Re: what would be the opposite of top.frames as a jquery selector context?

2009-01-27 Thread jay
This seemed to work on FF and IE: $('#myiframe')[0].onload=function(){ $("body",frames.frmName.document).html('test') } On Jan 27, 3:36 pm, jquertil wrote: > If i want to do something in a parent frame, I would do this: > > $('#myDiv', top.document).hide(); > > but what about this following

[jQuery] slideViewer v1.1 + Tooltip v1.3 + jQuery v1.3.1 = tooltips fail

2009-01-27 Thread Matt
Hi all, I'm having trouble getting the nice tooltips to show up on my slideViewer gallery when using jQuery 1.3.1. I need some guidance in debugging the problem Here's what I've found so far: 1. When using jQuery 1.2.6 (with slideViewer 1.1 and Tooltip 1.3) the tooltips show up UNDER the naviga

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-27 Thread Ricardo Tomasi
Hi Stefano, I think I found a solution. All you need to do is check if the callback has been called after your specified timeout. If it has not been called yet, overwrite it with an empty function, else do nothing. That will mess up with any further usage of the callback, but it works for this cas

[jQuery] Re: How can I fix the mcDropdown plugin to jQuery 1.3.1?

2009-01-27 Thread Alexsandro_xpt
Problem solved. The problem is with Selector [attribute=value] sintax which this empty comparison don't work. On 27 jan, 18:23, Alexsandro_xpt wrote: > I using the at mcDropdown  (http://www.givainc.com/labs/ > mcdropdown_jquery_plugin.htm) but it don't work in jQuery 1.3.1. > > Firebug show m

[jQuery] Re: Encoding characters using load("some_file.html")

2009-01-27 Thread Maujor
Maujor wrote: > > > How to encode special caracters when requesting a **HTML > fragments** using the jQuery AJAX method load() ? > > There are tons of discussions on this subject but I didn't realize the > right > (best) way to go. Or how many ways ("bullet proof") are there? > > Please ha

[jQuery] Re: what would be the opposite of top.frames as a jquery selector context?

2009-01-27 Thread jay
the $(frames.frameName.document).ready is not actually working on firefox.. you would probably have to put $(document).ready in the src page and poll it to see if the document is actually ready On Jan 27, 4:27 pm, jay wrote: > Look at the test case I made here and let me know if it helps: > > ht

[jQuery] Re: what would be the opposite of top.frames as a jquery selector context?

2009-01-27 Thread jay
Look at the test case I made here and let me know if it helps: http://jquery.nodnod.net/cases/73 On Jan 27, 3:36 pm, jquertil wrote: > If i want to do something in a parent frame, I would do this: > > $('#myDiv', top.document).hide(); > > but what about this following scenario? I'm inside a fra

[jQuery] Re: Exclude checkbox

2009-01-27 Thread Karl Swedberg
On Jan 27, 2009, at 2:34 PM, Ricardo Tomasi wrote: That way you're adding a property to a DOM Element and exposing your page to possible memory leak. All you have to do is enforce the event target. Also you can skip each (), the bind/click methods will handle multiple elements: $("tr.Order")

[jQuery] Re: what would be the opposite of top.frames as a jquery selector context?

2009-01-27 Thread maggus.st...@googlemail.com
maybe the parent of your documentElement? On 27 Jan., 21:36, jquertil wrote: > If i want to do something in a parent frame, I would do this: > > $('#myDiv', top.document).hide(); > > but what about this following scenario? I'm inside a frame that was > created like so: > > $('body', top.document

[jQuery] Re: This code, no response...will this work, if modified?

2009-01-27 Thread Rick Faircloth
Thanks for the feedback, MorningZ and Eric. I've tried both your suggested changes for this line: I tried: $(this).find('option:selected').each(function() { and $('option:selected', this).each(function() { but nothing's working. I also tried re-writing it according to your suggestion, Eric, (

[jQuery] Clone not cloning HTML select options

2009-01-27 Thread Collin Allen
Hi all, I'm running into a small problem with .clone() on select elements. If I create a simple HTML select with, say, 3 options, choose the middle one, then clone the select, the resulting clone does not have the middle option selected. Yet, with other form elements, the various chosen/selecte

[jQuery] onblur Firing Ahead Of onclick

2009-01-27 Thread bob
jQuery('form[name=myForm]').bind('submit', validateForm); jQuery('#login').bind('focus', validateForm); jQuery('#blur').bind('blur', validateForm); Problem: when I click "login" text field and then "Submit" button what happens is that instead of alert('submit'); I get alert('blur'); What can I

[jQuery] what would be the opposite of top.frames as a jquery selector context?

2009-01-27 Thread jquertil
If i want to do something in a parent frame, I would do this: $('#myDiv', top.document).hide(); but what about this following scenario? I'm inside a frame that was created like so: $('body', top.document).append(''); inside myiframe, I now want to know the id of my iframe, because I would not

[jQuery] Re: cluetip plugin crashing Firefox with external style sheet

2009-01-27 Thread Adam
I figured out a workaround by using a hidden div, and loading the external website content in the hidden div. However, now that it's working, I've noticed that the cluetip seems to shift its location after I load the content into the div. Maybe it's the way I'm doing it? I'd like to be able to

[jQuery] Re: This code, no response...will this work, if modified?

2009-01-27 Thread Eric Garside
$('this option:selected').each(function() { Should be changed to $('option:selected', this).each(function() { That's the only glaring error I saw with it. Though you could probably clean it up a bit: $(function(){ var agent_data = {dsn: '#application.dsn#', method: 'get_new_agent', returnFo

[jQuery] [mcDropdown] How can I fix the mcDropdown plugin to jQuery 1.3.1?

2009-01-27 Thread Alexsandro_xpt
I using the at mcDropdown (http://www.givainc.com/labs/ mcdropdown_jquery_plugin.htm) but it don't work in jQuery 1.3.1. Firebug show me error at this line: thismenu.closeMenu(); And this is reference to: $.mcDropDownMenu = function(el, list, options){ var $self, thismenu = thi

[jQuery] Re: This code, no response...will this work, if modified?

2009-01-27 Thread MorningZ
$('this option:selected') is looking for a DOM element of it needs to be $(this).find('option:selected') On Jan 27, 3:12 pm, "Rick Faircloth" wrote: > Hi, all... > > Are the first three lines of code below legitimate? > I've got a page full of dropdowns (.agents) and when > a user uses o

[jQuery] This code, no response...will this work, if modified?

2009-01-27 Thread Rick Faircloth
Hi, all... Are the first three lines of code below legitimate? I've got a page full of dropdowns (.agents) and when a user uses one to change the agent, I want to send the choice to my processing page via ajax. I want to trigger the ajax function when the user changes the selection and I saw in

SV: [jQuery] Re: [Autocomplet] Submit with tab: Answer

2009-01-27 Thread Perra - Sandstream.se
So sorry, rookie misstake! :-( mvh Perra Sandström - pe...@sandstream.se Webmaster - www.sandstream.se -Ursprungligt meddelande- Från: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] För Ricardo Tomasi Skickat: den 27 januari 2009 20:39 Till: jQuery (English) Ämne:

[jQuery] Re: $("button").click(function () {$("p").toggle("slow"); for sevoral items.

2009-01-27 Thread Ricardo Tomasi
Or simply use the inner text, but that will cause issues if you have spaces in it. $('button').click(function () { var data = $(this).text().toLowerCase(); $('p.'+data).toggle('slow'); }); On Jan 27, 3:29 pm, Mike Alsup wrote: > > Is it possible to add : > >   > >   $(document).re

[jQuery] Re: [Autocomplet] Submit with tab: Answer

2009-01-27 Thread Ricardo Tomasi
Hi Perra, Thanks for sharing your solution, but please avoiding posting new subjects by replying to another group message, as in the groups website the responses will all appear under the same thread: http://groups.google.com/group/jquery-en/browse_thread/thread/257e93ae03bfc876 cheers, - ricard

[jQuery] Re: Exclude checkbox

2009-01-27 Thread Ricardo Tomasi
That way you're adding a property to a DOM Element and exposing your page to possible memory leak. All you have to do is enforce the event target. Also you can skip each (), the bind/click methods will handle multiple elements: $("tr.Order").click(function(event){ if (event.target == this)

[jQuery] Re: closure inside ajax method

2009-01-27 Thread Andrew Hedges
The order of elements in a simple array like this is guaranteed. Looping over an object with a for in loop, the order is not guaranteed, though by convention most browsers honor the order in which the elements were added. jQuery would have to go out of its way to return the elements from your arra

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-27 Thread Ricardo Tomasi
Unless you remove the script tag after the 'timeout', of couse. On Jan 27, 9:59 am, Mike Alsup wrote: > > ah and there is no way to simulate that? > > You can simulate a timeout in your code by using setTimeout, but it's > not the same as when the XHR is used for the request.  With XHR jQue

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Ricardo Tomasi
It seems like a bug, as 1.3.1 is behaving differently from 1.2.6. I posted errant's example to jquery-dev, let's see what they have to say. http://groups.google.com/group/jquery-dev/t/f18e4a06e11fdb87 On Jan 27, 4:01 pm, Eric Garside wrote: > I don't think it's a bug. I think it's just another

[jQuery] [jQuery][Autocomplet] Submit with tab: Answer

2009-01-27 Thread Perra - Sandstream.se
Hi! I submitted a question yesterday about the possibility to submit a form when the user had selected an item in the result list from the Autocomplete plug-in and left using the TAB-key. I found the answer today on a site: $(document).ready(function() { // #id_query is the id of your text in

[jQuery] Re: Seeking div hide/show plugin with access by URL

2009-01-27 Thread Jonny Stephens
My oversight. Looking at the comments more closely shows Tabs 2 provides options for separation of navigation and content markup (assigning navClass and containerClass classes respectively). Thanks again. Jonny On Jan 27, 4:58 pm, Jonny Stephens wrote: > Thanks for your suggestions Ricardo. >

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
Some may see the fact that future handlers are automatically assigned based on a given selector as a side-effect if it were incorporated this way on a set of DOM elements (though using live()/die() makes more sense). All I'm saying is that if append is going to automatically clone a DOM element i

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Eric Garside
I don't think it's a bug. I think it's just another example of IE's lack of standard compliance. On Jan 27, 12:53 pm, errant wrote: > jQuery provides many ways to achieve similar results, sometimes > decision which way to use is up to developer. Personally, in first > example i like to have refe

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread errant
jQuery provides many ways to achieve similar results, sometimes decision which way to use is up to developer. Personally, in first example i like to have reference to span element with attached event handlers without extra code. Maybe i'll use it in some other way later in code. Anyway, append() g

[jQuery] Re: disable submit not working in IE7

2009-01-27 Thread GBartels
Thanks Mike! Your script mostly works in IE once appended with }); The message displays and the form submits which is what it needs to do. IE still has a little weird behavior in that it takes two clicks to submit the form. On the first click, the form "jumps" a bit. It's then necessary to repos

[jQuery] Re: Event delegation and hover(over, out)

2009-01-27 Thread Steffen Wenzel
Hi Shane, thanks for the reply! What you recommend seems to be rebinding the functionality to the latest appended list-item. Which of course would work just fine, but the question is, how can I do this with event delegation (which watches for new elements within the ul)? And it's also the hover

[jQuery] Re: auto refresh after x seconds ???

2009-01-27 Thread Omid
Any idea !? On Jan 27, 3:11 pm, Omid wrote: > It seems my link is broken , please try this one > :http://www.savefile.com/files/1983422 > > TNX > > On Jan 27, 2:35 pm, Omid wrote: > > > I have created one sample file with above code , but it doesn`t work ! > > > You can download my sample file

[jQuery] Re: $("button").click(function () {$("p").toggle("slow"); for sevoral items.

2009-01-27 Thread Mike Alsup
> Is it possible to add : >   >   $(document).ready(function(){ > >     $("button").click(function () { >       $("p").toggle("slow"); >     }); > >   }); >   > > that works for sevoral items, example, this is my menu : > > News button> > > Contact > > Staff button> > > Join button> > Forum

[jQuery] $("button").click(function () {$("p").toggle("slow"); for sevoral items.

2009-01-27 Thread Razze
Is it possible to add : $(document).ready(function(){ $("button").click(function () { $("p").toggle("slow"); }); }); that works for sevoral items, example, this is my menu : News Contact Staff Join Forum Status i want each button to open a different paragraph,

[jQuery] Re: IE7 "dead pixels" in jpg with animation effect

2009-01-27 Thread Mike Alsup
> http://lunaroja.net/upload/files/dead-pixel1.jpghttp://lunaroja.net/upload/files/dead-pixel2.jpg > > Please view files. This issues is only happening on IE7 (not even ie6) > when these images (set as bg to a div) they have an animation opacity > from 1-0 for transitioning the images for a slide

[jQuery] Re: how to use focus in a form?

2009-01-27 Thread Mike Alsup
> well my problem is: I have n forms on the website that I working, then > I need one script on jQuery that's work in all using the focus to the > first element onf the form (excluding the firt hidden input), can > someone help me???, my starting code is here: > $(document).ready(function(){ >    

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Eric Garside
Honestly, I'm at a loss why I'd want that kind of temporary cloned functionality when you could just use live to achieve the same functionality with nowhere near the limitations of the implementation you've described here. It's also nice to be able to excise my event declarations from my dom manip

[jQuery] Re: IE7 "dead pixels" in jpg with animation effect

2009-01-27 Thread Liam Potter
try saving the images in a different format. lunaroja wrote: http://lunaroja.net/upload/files/dead-pixel1.jpg http://lunaroja.net/upload/files/dead-pixel2.jpg Please view files. This issues is only happening on IE7 (not even ie6) when these images (set as bg to a div) they have an animation op

[jQuery] Re: closure inside ajax method

2009-01-27 Thread Mike Alsup
> Can't closure be achieved with for loop? > for(var i=0; i Does $.each process the "scripts" array items in the exact order they are in > the > array? Yes.

[jQuery] IE7 "dead pixels" in jpg with animation effect

2009-01-27 Thread lunaroja
http://lunaroja.net/upload/files/dead-pixel1.jpg http://lunaroja.net/upload/files/dead-pixel2.jpg Please view files. This issues is only happening on IE7 (not even ie6) when these images (set as bg to a div) they have an animation opacity from 1-0 for transitioning the images for a slide show. I

[jQuery] Re: Seeking div hide/show plugin with access by URL

2009-01-27 Thread Jonny Stephens
Thanks for your suggestions Ricardo. Tabs 2 fails in requiring the trigger links to be located within the same div as the content. Otherwise it fits well. UI Tabs lacks the back button capability of Tabs 2 and doesn't play with Safari 2, which (for better or worse) I'm required to support at pre

[jQuery] Re: Exclude checkbox

2009-01-27 Thread Liam Potter
$("tr.Order input[type='checkbox']").unbind("click", showOrderDetails) I don't know where those asterisks came from o_o Liam Potter wrote: try this $("tr.Order input[type='checkbox']*").unbind(*"click", showOrderDetails) chrille112 wrote: I have a table, and I want a click on each row to t

[jQuery] Re: Exclude checkbox

2009-01-27 Thread Benjamin Sterling
I would probably do something like: $("tr.Order").each(function(){ this.isover = false; $(this).bind("click", function() { if( !this.isover ){ showOrderDetails($(this).attr("id")); } }); $('input:checkbox', this) .hover( function(){$(this).parents('tr').get(0).isover = true;}, function(){$(this).pa

[jQuery] Re: Exclude checkbox

2009-01-27 Thread Liam Potter
try this $("tr.Order input[type='checkbox']*").unbind*("click", showOrderDetails) chrille112 wrote: I have a table, and I want a click on each row to trigger a function. This is my code: $("tr.Order").each(function() { $(this).bind("click", function() { showO

[jQuery] Re: closure inside ajax method

2009-01-27 Thread bob
Thanks, Can't closure be achieved with for loop? for(var i=0; i

[jQuery] Re: how to use focus in a form?

2009-01-27 Thread Benjamin Sterling
Instead of doing: $('select:first').focus(); do: $('select:first').get(0).focus(); On Tue, Jan 27, 2009 at 8:40 AM, ƝƟƧǷƕƩŘąŦƱƧ Ɵ MƩƧŦŘƩ wrote: > > well my problem is: I have n forms on the website that I working, then > I need one script on jQuery that's work in all using the focus to the >

[jQuery] validate input type=hidden and number of errors

2009-01-27 Thread kat...@googlemail.com
1. I have a form which is validating quite nicely, using the validation plugin. On the form, a user enters a postcode, a googlemap pops up, user drags the marker and saves it and the lat/lng of the marker is copied back to hidden input fields in the parent form. I want the form to validate that t

[jQuery] Re: .append() into style element causes error in IE only

2009-01-27 Thread Spot
Hi, I found this thread when searching on this subject. I have an app here where we let the user customize almost every single piece of the UI. This requires that we dynamically generate the CSS off a tagged template. What I want to be able to do is completely scrap the current style data and

[jQuery] how to get div content with frame?

2009-01-27 Thread salsa
Hi guys, i have a frame; - myframe.html - main.html - top.html in top.html i have a div; my teste work! and in main.html i try to get a div content of top.html using; alert($('#topFrame').contents().find('#myDiv').html()); but i only got null return... anybody knows how i can get a div co

[jQuery] syntax issue w/ tablesorter

2009-01-27 Thread philliptackett
Can any1 help me? I've just downloaded tablesorter and jquery and included them in my cold fusion project at the root. I'm not very good at javascript syntax.. and I'm getting an error, but I don't know why. Here's a chunk of code from my section: $(document).ready(function()

[jQuery] Exclude checkbox

2009-01-27 Thread chrille112
I have a table, and I want a click on each row to trigger a function. This is my code: $("tr.Order").each(function() { $(this).bind("click", function() { showOrderDetails($(this).attr("id")); }); }); This works perfect! My problem is that I also have a c

[jQuery] how to use focus in a form?

2009-01-27 Thread ƝƟƧǷƕƩŘąŦƱƧ Ɵ MƩƧŦŘƩ
well my problem is: I have n forms on the website that I working, then I need one script on jQuery that's work in all using the focus to the first element onf the form (excluding the firt hidden input), can someone help me???, my starting code is here: $(document).ready(function(){ if('form:fir

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
of course if there are other things that may need to be customized about the event(s) in question it might make more sense to pass in an options object. On Jan 27, 11:30 am, jay wrote: > I thought the point was to avoid the each()?  What's wrong with: > > $('ul li').append($('Click me!').click(f

[jQuery] Re: Can JQuery solve the iframe height=100% problem?

2009-01-27 Thread laredotorn...@zipmail.com
Hi Kevin, How do I apply this expansion to the iframe specifically? I included this on my page ... $(document).ready(function() { $("body").layout({ closable: false , resizable: false , spacing_

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
I thought the point was to avoid the each()? What's wrong with: $('ul li').append($('Click me!').click(function(){}, true); and doing $('ul li').append($('Click me!').click(function (){}); defaults the second argument to false. Or you could default it to true and it may stay more backwards- c

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Eric Garside
You can already do that using clone. I can't see a need to rewrite in new code when the ability already exists in the current code. If you want to clone around your elements around and not apply new styles, just: $('ul li').each(function(){ $(this).append($('Click me!').click(function(){})) })

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
It's not that I prefer it. I think live()/die() makes sense because the event "lives on" for all matching selectors. What the true arguement would do it give a way to clone the element and it's handler just that one time. On Jan 27, 10:50 am, Eric Garside wrote: > Give them a different selecto

[jQuery] jtemplates & null data

2009-01-27 Thread David Meiser
I've got a page that I'm converting over to use jTemplates, but the data it's returning contains null data (eg - missing email address or people who are retired and have no work address/phone). When I was processing the JSON manually and spitting out HTML, I wrote a function that returned an empty

[jQuery] Re: Resizable() work incorrectly with Iframe

2009-01-27 Thread Aleks Dorohovich
in this case will be $('.resizeDiv').mousedown(function(){ $('.block-iframe').addClass('iframe-fix'); }).mouseup(function(){ $('.block-iframe').removeClass('iframe-fix'); });

[jQuery] Re: Resizable() work incorrectly with Iframe

2009-01-27 Thread Aleks Dorohovich
I found how fix this bug Just needed create block, expamle and create css: .iframe-fix { background: transparent; width: 100%; height: 100%; z-index: 1; position: absolute; top: 0; l

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Eric Garside
Give them a different selector? $('.click1').live('click', function(){}); $('.click2').live('click', function(){}); Would handle the problem easily. Remember, you can always add extra, non-style based classes which you can use as selectors for events or effects. Also, I'm not sure I understand

[jQuery] Re: UI Dialog Position Based on Link Position

2009-01-27 Thread jay
Also will want to compare position of mouse to width of window and if the difference is less than the width of the dialog then position tooltip to right, else to the left Here is the link for the width() property: http://docs.jquery.com/CSS/width On Jan 27, 9:45 am, Adam wrote: > I'd like to op

  1   2   >