[jQuery] jQuery+Cycle+ How manage the padding, width, height, etc

2009-03-20 Thread Asinox
Hi, im trying to usin Cycle plugin, and i change the width and dont work, in the same way a need to know how manger padding and everything about customizer Cycle... the problem is that i need a plugin with preload of images... thanks

[jQuery] Re: access denied error in IE

2009-03-20 Thread Dhana
Boy, This has to be my "unlucky day". I downloaded Chrome to see that, but Chrome didn't show the security warnings. Changed some security settings in options to the most severe, yet nada. IE decides of all day to wreck my weekend. Thanks for all your help mkmanning. Appreciate it. On Mar 2

[jQuery] Re: Need example of dynamic validation

2009-03-20 Thread Loony2nz
yup works for me. just not sure if it's the "best" way. As with any language..there's more than one way to skin a cat. On Mar 14, 7:51 pm, "Rick Faircloth" wrote: > I'm not familiar enough with it to validate it for you, but > I'd like to know if it's working for you... > > Rick > > > -Ori

[jQuery] Re: access denied error in IE

2009-03-20 Thread mkmanning
Chrome's security warning (although FF should warn you depending upon your settings). On Mar 20, 8:59 pm, Dhana wrote: > Ha, > > That might be it - that was the original development site.  One more > question if you don't mind - how did you find out what the server > identifies itself as?  Any f

[jQuery] Re: access denied error in IE

2009-03-20 Thread Dhana
Ha, That might be it - that was the original development site. One more question if you don't mind - how did you find out what the server identifies itself as? Any firefox tool ? On Mar 20, 8:47 pm, mkmanning wrote: > Although not all the time :P I just tried your page again and didn't > get

[jQuery] Re: access denied error in IE

2009-03-20 Thread mkmanning
Although not all the time :P I just tried your page again and didn't get the error. Failed once in Chrome due to the error, worked after that in Chrome, FF3, IE7. On Mar 20, 8:40 pm, mkmanning wrote: > Ah, not a cross domain issue. It's an SSL error: it appears that your > iframe is referenced a

[jQuery] Re: access denied error in IE

2009-03-20 Thread mkmanning
Ah, not a cross domain issue. It's an SSL error: it appears that your iframe is referenced as batteryreplacement.brighthouse.com but the server identifies itself as mybrighthouse.msoservices.com On Mar 20, 8:32 pm, Dhana wrote: > An edit to the comment above, I am not trying to access or share d

[jQuery] Re: access denied error in IE

2009-03-20 Thread Dhana
An edit to the comment above, I am not trying to access or share data between the parent window and the iframe contained in it. (instead of "two iframes") On Mar 20, 8:30 pm, Dhana wrote: > Ok,  but the thing is, I am not accessing any content per se.  I am > simply displaying the iframe in the

[jQuery] Re: access denied error in IE

2009-03-20 Thread Dhana
Ok, but the thing is, I am not accessing any content per se. I am simply displaying the iframe in the main parent window without trying to share data across those two iframes. Would that still be affected? On Mar 20, 8:28 pm, mkmanning wrote: > You can't access the content of an iframe when

[jQuery] Re: access denied error in IE

2009-03-20 Thread mkmanning
You can't access the content of an iframe when it's in a different domain (different domain == subdomain). On Mar 20, 7:58 pm, Dhana wrote: > I know this message is not supposed to be here since it's not a jquery > issue, but I really need some in depth help on this. > > I have an iframe in a do

[jQuery] access denied error in IE

2009-03-20 Thread Dhana
I know this message is not supposed to be here since it's not a jquery issue, but I really need some in depth help on this. I have an iframe in a domain here http://www.brighthouse.com/products/home_phone/IND/battery.aspx. The iframe basically contains the shopping section of the site. The if

[jQuery] Re: IE7 (grrr) xml.each not working, help please?

2009-03-20 Thread James
Sorry, I made a mistake on the code. It's suppose to be: $.get("photos.xml", {}, function(xml) { xml = text2xml(xml); // do your stuff } On Mar 20, 4:44 pm, James wrote: > I've looked it up and it seems to be a bug with how IE works. > Apparently the XML file is not returning the corr

[jQuery] Re: IE7 (grrr) xml.each not working, help please?

2009-03-20 Thread James
I've looked it up and it seems to be a bug with how IE works. Apparently the XML file is not returning the correct XML header by default: http://dev.jquery.com/ticket/3598 If you can use server-side scripting, you can try to force the response header so it's XML. Another solution is posted here:

[jQuery] Re: Rotating CSS classes each 5 sec

2009-03-20 Thread mkmanning
Another alternative (no array needed, goes from img1 to img5 and starts over): $(document).ready(function(){ div = $('div.img1')[0], //get with whatever selector once swapDiv = setInterval(function(){ n = parseInt(div.className.substring(3)); div.cl

[jQuery] Re: IE7 (grrr) xml.each not working, help please?

2009-03-20 Thread eco...@googlemail.com
Sorry if I appear impatient, but I was wondering whether anyone had seen this post? Please can someone have a look at this problem for me, or tell me the best way to iterate through the XML file with jQuery? Thanks, Charlie On Mar 20, 12:54 pm, "eco...@googlemail.com" wrote: > Hi, > > I am fai

[jQuery] Re: JCarousel - set offset via class rather than number?

2009-03-20 Thread swortis
Ok, How about this? If each list item has a class which reflects its order in the list (, and so on..) and *one* of the list items also has an additional class , is there a way of using that number like this: jQuery(document).ready(function() { jQuery('#mycarousel').jcarousel({

[jQuery] Re: Preventing link clicks before document.ready();

2009-03-20 Thread mkmanning
You can hide the links from users with JavaScript enabled by placing this in the head of your page: document.documentElement.className = "js"; Then hide the links (by a, or #, or class) in your CSS: .js a {display: none;} Then display them on document.ready(). On Mar 20, 12:42 pm, Jo

[jQuery] Re: Can I change the URL address of my

2009-03-20 Thread James
The only thing you can change on a browser URL without sending a HTTP request is the hash (-> page.html#hashtext) location.hash = 'hashtext'; You can't change anything else, such as the domain name, or file directory/name, or add other query string parameters. On Mar 20, 2:07 pm, valpa wrote: >

[jQuery] Can I change the URL address of my

2009-03-20 Thread valpa
I searched google and jQuery site, but found nothing helpful. My requirements are: 1. When I do something in the page, the URL address of browser can be changed accordingly. 2. So, the user can copy & paste the URL for later usage. 3. No HTTP request send out because I don't want to reload the en

[jQuery] set, not just get offset

2009-03-20 Thread DanB
Currently you can't set the offset of jquery by passing in an object with left and top values. Some people set left and top with $(el).css ({left:px, top:px}, but that will not work if el is inside an element with position relative, because the left and top will be relative to that parent instead

[jQuery] Re: Regex Help for CSS Selector type deal

2009-03-20 Thread Karl Swedberg
Hi Eric, These should work: var classes = 'your .string'.match(/\.[a-zA-Z_-]+/g); var ids = 'your #string'.match(/#[a-zA-Z_-]+/g); var idsAndClasses = '#your .string'.match(/(\.|#)[a-zA-Z_-]+/g); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 20, 2009

[jQuery] Re: how to load("text with the + sign in it")

2009-03-20 Thread James
Could you post how you're doing the .load() jQuery part? It sounds like you're passing it through the url, like: $.load("page.php"+myVar); In this case, you should use some kind of Javascript function to encode the variable: $.load("page.php?q="+encodeURIComponent(myVar)); Else, it's recommended

[jQuery] Re: $(document).ready(function() is causing scripts to run twice!

2009-03-20 Thread James
Looking at your page source, it looks like you have in your HTML, hard- coded or something: http://derekperkins.com/seatability1/pattys-taking-over/"; title="Patty’s Taking Over">http://derekperkins.com/ seatability1/wp-content/uploads/2009/03/patty1.jpg" alt="Patty’s Taking Over" class="thumbnail

[jQuery] Re: chaining events from different sources

2009-03-20 Thread Steve
Not sure if this will work for you but it will let you set off a chain of effects: http://plugins.jquery.com/project/EffectChain On Mar 20, 4:39 pm, pedalpete wrote: > I've been trying to work with animation timing, and haven't been able > to get this to work properly. > > What I have is that

[jQuery] Re: sortable helper

2009-03-20 Thread Steve Vu
Not sure if this will work for you but it will let you set off a chain of effects: http://plugins.jquery.com/project/EffectChain richajax wrote: I am using jquery sortable in the latest version (1.7.1) , and found out helper and placeholder option is not quite working as I was expecting.

[jQuery] Re: jQuery and Prototype conflict

2009-03-20 Thread Josh Powell
In this: jQuery(document).ready(function($){ $("#example").autocomplete(options); }); this: function($) { }) is overwriting the $ for prototype. It should be: jQuery(document).ready(function(){ $("#example").autocomplete(options); }); without passing t

[jQuery] chaining events from different sources

2009-03-20 Thread pedalpete
I've been trying to work with animation timing, and haven't been able to get this to work properly. What I have is that I add a class to an element, and that element is transitioned via a css transition. I then want to hide a child element once the css transition is complete. I've tried to use a

[jQuery] sortable helper

2009-03-20 Thread richajax
I am using jquery sortable in the latest version (1.7.1) , and found out helper and placeholder option is not quite working as I was expecting. If I do something like below, when I move around each div's, original divs are the actually the one moving, not the clone. Any idea ? $(#col).sortable(

[jQuery] Re: $(document).ready(function() is causing scripts to run twice!

2009-03-20 Thread Derek Perkins
You can see where it is running twice here: http://derekperkins.com/seatability1/ Basically, in the middle box and in the right sidebar, I am dynamically loading images via Javascript, but they are being double loaded. In the middle of the page, you can see that the thumbnails are loaded twice.

[jQuery] Re: jQuery and Prototype conflict

2009-03-20 Thread MorningZ
One thing that stands out is $("#example").autocomplete(options); yet you don't have the autocomplete library included On Mar 20, 6:34 pm, K3V wrote: > I am trying to use both jQuery and Prototype at the same time. > > I've spent hours and hours searching solutions to fix this problem. > The

[jQuery] jQuery and Prototype conflict

2009-03-20 Thread K3V
I am trying to use both jQuery and Prototype at the same time. I've spent hours and hours searching solutions to fix this problem. The most common method I found is this http://docs.jquery.com/Using_jQuery_with_Other_Libraries. However, it didn't work no matter how I place the "jQuery.noConflict

[jQuery] Re: Move image on specified layer

2009-03-20 Thread Grom
Ok. My results: http://grom.jabbim.pl/furries/ works pretty good I think but I dont know how to improve speed of that :/ On 17 Mar, 17:32, Grom wrote: > Hello. > > I wrotehttp://grom.jabbim.pl/furries/test3.html... My mascot can > move to left and right but I dont know how to write algorithm to

[jQuery] Problem with jquery validate and remote function (@joern testcase for my problem)

2009-03-20 Thread steki
hi, i have build a small test case to reproduce this problem. the remote test seem to work the first time, but the second time i cant submit the form any more. see http://s219724521.online.de/test/validate/index.html for demo and description. maybe only my code ist broken and it is not a vali

[jQuery] Re: checkbox problem

2009-03-20 Thread omertacod...@gmail.com
I putted the whole thing in a div and now it seems to work : $(document).ready(function(){ $("form#chatform").submit(function(){ $test = ''; $("#messagewindow").prepend($test+""+$("#msg").val()+""); $("#TE").click(fun

[jQuery] Re: IE8 & BlockUI incompatible

2009-03-20 Thread Mike Alsup
> Click Page -> Compatibility View Settings > Uncheck the option "include updated websites from Microsoft" > Try this page, where I first noticed > it:http://corp.americanexpress.com/gcs/travel/service/personalservice.aspx > Click on the globe to trigger the popup. It bombs. Now go into IE7 > com

[jQuery] Re: IE8 & BlockUI incompatible

2009-03-20 Thread Josh Kewley
Mike, Click Page -> Compatibility View Settings Uncheck the option "include updated websites from Microsoft" Try this page, where I first noticed it: http://corp.americanexpress.com/gcs/travel/service/personalservice.aspx Click on the globe to trigger the popup. It bombs. Now go into IE7 compatib

[jQuery] Re: checkbox problem

2009-03-20 Thread omertacod...@gmail.com
Hey james, thanks for the help but using your code when i submit the checkbox and text appears and immediatly dissapears again ... On 20 mrt, 22:32, James wrote: > Sorry, I meant "bind submit to form", not checkbox. > > Your code would be more something like: > > $(document).ready(function(){ >

[jQuery] Re: checkbox problem

2009-03-20 Thread James
Sorry, I meant "bind submit to form", not checkbox. Your code would be more something like: $(document).ready(function(){ $("form#chatform").submit(function(){ $test = ''; $("#messagewindow").prepend($test+""+$("#msg").val()+""); $test.click(function() {

[jQuery] Re: checkbox problem

2009-03-20 Thread James
Well, it appears you are binding an event to something that doesn't exist. Here's what's happening with your code: == Page loads -> Bind click to checkbox (no checkbox exists so nothing happens) -> Bind submit to form to create a checkbox == User action -> User clicks submit, a checkbox is creat

[jQuery] Re: IE8 & BlockUI incompatible

2009-03-20 Thread Johannes Schill
On 20 Mar, 21:04, Mike Alsup wrote: > > There was a thread about this last month that identified a problem with the > > use of setExpression in BlockUI. IE8 throws a not implemented exception in > > this case. The author noted that the BlockUI demo page works fine in IE8, > > which it does. To b

[jQuery] checkbox problem

2009-03-20 Thread omertacod...@gmail.com
hi all, I have a problem, when the checkbox is clicked there is no reaction. here is the code: index.html test #messagewindow { height: 250px; border: 1px solid; padding:

[jQuery] Re: IE8 & BlockUI incompatible

2009-03-20 Thread Mike Alsup
> > This eliminates the exception, but the placement of the floating content is > > different, and it doesn't appear to adjust on window resize. Thanks for the > > update, and let me know if you need assistance in testing/debugging the new > > version. > > How about a test page.  One that is as si

[jQuery] [validate] Suggested new feature for validation.

2009-03-20 Thread Millman
I have a case where I'm setting up an ASP.NET MVC View that partially renders several Partial View Controls. Each of these controls will be wrapped by a element within the Form. This View will be used as a Wizard and we will be utilizing JavaScript to show and hide each various div element as t

[jQuery] Re: IE8 & BlockUI incompatible

2009-03-20 Thread Mike Alsup
> This eliminates the exception, but the placement of the floating content is > different, and it doesn't appear to adjust on window resize. Thanks for the > update, and let me know if you need assistance in testing/debugging the new > version. How about a test page. One that is as simple as pos

[jQuery] Re: Cycle breaks in IE7 when using list box

2009-03-20 Thread christopherious
Thanks! I'm not sure I'm quite getting it. Would you mind providing an example? On Mar 20, 12:16 pm, Mike Alsup wrote: > > document.write('Pick a section:<\/strong>  > id="goto1" value="Section 1">Section 1<\/option> > value="Section 2">Section 2<\/option>Section 3<\/option><\/select>'); > > d

[jQuery] Re: IE8 & BlockUI incompatible

2009-03-20 Thread Josh Kewley
Hey Mike, This eliminates the exception, but the placement of the floating content is different, and it doesn't appear to adjust on window resize. Thanks for the update, and let me know if you need assistance in testing/debugging the new version. -Josh -Original Message- From: jquery-en

[jQuery] Re: setExpression makes IE8 crash in blockUI plugin

2009-03-20 Thread Mike Alsup
> I'm seeing the same issue with IE8 and setExpression. From > MSDN:http://msdn.microsoft.com/en-us/library/ms537634.aspx Can you try v2.16? http://www.malsup.com/jquery/block/jquery.blockUI.js?v2.16 Mike

[jQuery] Re: IE8 & BlockUI incompatible

2009-03-20 Thread Mike Alsup
> There was a thread about this last month that identified a problem with the > use of setExpression in BlockUI. IE8 throws a not implemented exception in > this case. The author noted that the BlockUI demo page works fine in IE8, > which it does. To be honest, I'm not sure why. > > However, the p

[jQuery] Re: Preventing link clicks before document.ready();

2009-03-20 Thread Josh Powell
You could also put the .click events inside a document.ready(). Then they can click away, but no results until the event handler is set after document.ready. On Mar 20, 12:30 pm, James wrote: > That's the default of how web browsers. You can work around it such as > by setting the display of th

[jQuery] IE8 & BlockUI incompatible

2009-03-20 Thread Josh Kewley
There was a thread about this last month that identified a problem with the use of setExpression in BlockUI. IE8 throws a not implemented exception in this case. The author noted that the BlockUI demo page works fine in IE8, which it does. To be honest, I'm not sure why. However, the problem does

[jQuery] Re: Preventing link clicks before document.ready();

2009-03-20 Thread James
That's the default of how web browsers. You can work around it such as by setting the display of those to hidden in your CSS, and use Javascript to show it upon page ready. Depending on how your website works, this may mean your page would not work properly if users do not have Javascript enabled

[jQuery] Re: jQuery/Cycle: Binding Secondary Nav

2009-03-20 Thread Mike Alsup
> Hi, I'm working on a banner display, using Cycle.  The banner will use > the out-of-the-box Cycle numbered nav, but the client also wants text > links in the banner to page from slide to slide as well. > > How can I bind the pager functions to additional anchors? Cycle doesn't gracefully suppo

[jQuery] Re: Rotating CSS classes each 5 sec

2009-03-20 Thread Alexandru Dinulescu
Hello. Can i call this function normally like function imageSwap(){ function code goes in here } $(document).ready(imageSwap); ? And another question can i put in the array paramters and have variables declared at the top for ex is this correct? function imageSwap() { var img1 = classImg1 var i

[jQuery] Re: Cycle breaks in IE7 when using list box

2009-03-20 Thread Mike Alsup
> document.write('Pick a section:<\/strong>  id="goto1" value="Section 1">Section 1<\/option> value="Section 2">Section 2<\/option>Section 3<\/option><\/select>'); > document.close(); > You should be binding the 'change' event on the , not the 'click' event on the .

[jQuery] Re: Best way to iterate over a string (each character)

2009-03-20 Thread dimitre
Super! Sometimes I have to remember that JQuery is based in Javascript not the opposite. thank you

[jQuery] How to select nested tabs

2009-03-20 Thread randy...@gmail.com
I have created nested tabs using Tabs 3. Trying to select the second nested tab by default. Doing this does not work... $(document).ready(function() { $('#container ul').tabs(1); $('#container-2 ul').tabs(2); }) The second container is ignored and the first nested tab is selected

[jQuery] [Validation] How to get group key that the current invalidate element belong to?

2009-03-20 Thread doutu
If this feature exists now, tell me please. If not, just a feature request! What's my plan ? invalid error place holder //

[jQuery] jcarousel - use an image as an external control

2009-03-20 Thread djrein
Hello, I want to be able to use an image as an external control instead of text. I'm not familiar with jquery and need some help. Thanks in advance.

[jQuery] Preventing link clicks before document.ready();

2009-03-20 Thread HippieX
I have a problem I am sure others have encountered. I have .click() events attached to links in my web page, but the user is clicking the links before the document.ready(); fires causing unexpected results. Is there anyway to stop this from happening? Thanks, Jeff

[jQuery] Re: setExpression makes IE8 crash in blockUI plugin

2009-03-20 Thread JFK
I'm seeing the same issue with IE8 and setExpression. From MSDN: http://msdn.microsoft.com/en-us/library/ms537634.aspx "As of Windows Internet Explorer 8, dynamic properties have been deprecated and are only supported for Web pages displayed in IE5 mode or IE7 mode." it looks like they suggest r

[jQuery] Re: .ajax doesn't execute "success" handler in IE7

2009-03-20 Thread topherez
I had this trouble before, and after 2 hours, finally remembered what it was. IE needs to know that the xml returned is actually xml. It uses the header of the document to determine that, so you must set the header in the php/asp file to set it. For PHP, include this before passing back the respo

[jQuery] newbie question: how can i prevent this infinite loop scenario?

2009-03-20 Thread bobby burgess
Hi all, jQuery newbie here and this is my first post. I'm stuck on this conundrum: I have some images on a page and .hover() is bound to each. The "is hovering" function displays an absolute-positioned DIV on top of everything else (it contains a bigger version of the clicked-on image). The "is

[jQuery] Cycle breaks in IE7 when using list box

2009-03-20 Thread christopherious
I have an instance of Cycle 2.63 (jquery.cycle.all.min.js) that works great except for one thing. By using a list box for selection, it breaks under IE7 (content doesn't change upon user selection). I'm still pretty new to JS development. Haven't tried IE8 out just yet, but I'd like to get this

[jQuery] Validation: How to get group key that the current invalidate element belong to?

2009-03-20 Thread doutu
If this feature exists now, tell me please. If not, just a feature request! What's my plan ? invalid error place holder //

[jQuery] jQuery/Cycle: Binding Secondary Nav

2009-03-20 Thread studiobl
Hi, I'm working on a banner display, using Cycle. The banner will use the out-of-the-box Cycle numbered nav, but the client also wants text links in the banner to page from slide to slide as well. How can I bind the pager functions to additional anchors?

[jQuery] Re: Plugin or examples to filter display of table data?

2009-03-20 Thread Brad
Sorry for the noise, I should have looked at the jQuery plugins site first. There are a number of offerings there that may do what I want. DataTables looks very promising. On Mar 20, 12:44 pm, I wrote: > I searched this group and Googled for examples but haven't what I was > looking for. > > Cons

[jQuery] Plugin or examples to filter display of table data?

2009-03-20 Thread Brad
I searched this group and Googled for examples but haven't what I was looking for. Consider this use case: A database-driven backend presents a page with a table containing many rows (100's or more). Instead of having the user enter new search criteria and send another request to the backend, I'

[jQuery] Re: $(document).ready(function() is causing scripts to run twice!

2009-03-20 Thread James
Showing some code and html would definitely help. There's a possibility that you're loading a page that runs the code, and then dynamically loading another page immediately (e.g. through AJAX Tabs) that contains the piece of code again on that page and executing it. On Mar 20, 6:25 am, MorningZ

[jQuery] Re: Rotating CSS classes each 5 sec

2009-03-20 Thread Alexandru Dinulescu
Thank you. I will try that tomorrow morning and see if it works Cheers --- Alexandru Dinulescu Web Developer (X)HTML/CSS Specialist Expert Guarantee Certified Developer XHTML: http://www.expertrating.com/transcript.asp?transcriptid=1879053 CSS : http://www.expertrating.com/transc

[jQuery] Modal Window Background Fade/Disable

2009-03-20 Thread Desinger
Hi I have this Java sciprt code and jquery and this is a sliding window hide/open. The html is not in a seperate page its in the same page as the background of the page is. I would like to make the background fade or disable untill we close this window. I dont' think I can call it modal

[jQuery] Re: JQuery selectors and Umlaute

2009-03-20 Thread Klaus Hartl
Even if it would work I recommend to avoid Umlaute. They're invalid in ids. http://www.w3.org/TR/REC-html40/types.html#type-name --Klaus On 20 Mrz., 16:52, Karl Swedberg wrote: > Which version of jQuery are using? Are you seeing any JavaScript   > errors? I just tested this and it worked fi

[jQuery] Re: How do you iterate across elements with the same class name?

2009-03-20 Thread Eric Garside
Take a look at this page I threw up on jsbin: http://jsbin.com/uzecu/edit It uses a neat little random color generator I found years ago bound to an event. Seems pretty quick, too. The javascript: $(function(){ $('.colour') .bind('randomizeColor', function(){ this.style.background = (Math.

[jQuery] Re: How do you iterate across elements with the same class name?

2009-03-20 Thread Thierry L
Great, that helps but I think I'll do it from the server side code, the web page loads much faster when the operation is done on the server side. On Mar 20, 12:58 pm, Charlie Griefer wrote: > On Fri, Mar 20, 2009 at 9:48 AM, Thierry wrote: > > > I have a bunch of hyperlinks with class 'hello_wo

[jQuery] Tutorial for serialScroll?

2009-03-20 Thread Jack Killpatrick
Hi All, I did a nifty implementation using jquery serialScroll to scroll images inside an iphone image (to display screenshots: site isn't publicly available yet). I had to reverse-engineer my way through the demos and other people's implementations to figure out how to make it work. Main pr

[jQuery] Re: How do you iterate across elements with the same class name?

2009-03-20 Thread Charlie Griefer
On Fri, Mar 20, 2009 at 9:48 AM, Thierry wrote: > > I have a bunch of hyperlinks with class 'hello_world'. I want to > assign each one of them a random colour. I can set the colour for all > of them with the following: > > $("a[class=hello_world]").css("color", "red"); > > How can I iterate ove

[jQuery] Re: How do you iterate across elements with the same class name?

2009-03-20 Thread MorningZ
$("a.hello_world").each(function() { // $(this) = this current hyperlink }); On Mar 20, 12:48 pm, Thierry wrote: > I have a bunch of hyperlinks with class 'hello_world'.  I want to > assign each one of them a random colour.  I can set the colour for all > of them with the following: > > $

[jQuery] Re: How do you iterate across elements with the same class name?

2009-03-20 Thread Mike Fratto
I think you are looking for each( callback ) http://docs.jquery.com/Core/each#callback On Fri, Mar 20, 2009 at 12:48 PM, Thierry wrote: > > I have a bunch of hyperlinks with class 'hello_world'.  I want to > assign each one of them a random colour.  I can set the colour for all > of them with th

[jQuery] How do you iterate across elements with the same class name?

2009-03-20 Thread Thierry
I have a bunch of hyperlinks with class 'hello_world'. I want to assign each one of them a random colour. I can set the colour for all of them with the following: $("a[class=hello_world]").css("color", "red"); How can I iterate over every element with class name 'hello_world'?

[jQuery] Re: $(document).ready(function() is causing scripts to run twice!

2009-03-20 Thread MorningZ
If the code is running twice, then you don't have it wired in correctly showing the HTML and script would be a big help to getting others to help you On Mar 20, 11:38 am, Derek Perkins wrote: > I encase all of my functions inside of a jQuery(document).ready > (function() {} block, but I notice

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Adam Drew
Looks like it's due to the themeswitcher widget I setup yesterday. // jquery.themeswitcher.js //pane css switcherpane.css({ position: 'absolute', float: 'left', fontFamily: 'Trebuchet MS, Verdana, sans-serif', fontSize: '

[jQuery] Re: JQuery selectors and Umlaute

2009-03-20 Thread Karl Swedberg
Which version of jQuery are using? Are you seeing any JavaScript errors? I just tested this and it worked fine: result: http://jsbin.com/otaya/ code: http://jsbin.com/otaya/edit --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 20, 2009, at 5:57 AM, sru

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Martijn Houtman
On Mar 20, 2009, at 4:35 PM, Adam Drew wrote: name = "outline" value = "0 none !important" Those values breaks it every time it comes around.. I'm going to see what is setting these values.. http://www.w3schools.com/CSS/pr_outline.asp The value you are setting seems unsupported. Try either

[jQuery] Re: Best way to iterate over a string (each character)

2009-03-20 Thread MorningZ
Why not use simple JavaScript (which "under the hood" jQuery is using anyways)? for (var i=0; i < texto.length; i++) { console.log(texto.charAt(i)); } On Mar 20, 11:04 am, dimitre wrote: > Hello, I am trying to do a simple thing in JQuery, and found some > different ways to make it work.

[jQuery] $(document).ready(function() is causing scripts to run twice!

2009-03-20 Thread Derek Perkins
I encase all of my functions inside of a jQuery(document).ready (function() {} block, but I noticed recently that my scripts are running multiple times. After a lot of debugging, I realized that they only ran once after I deleted that segment of code. The first time it ran however, it wouldn't s

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Adam Drew
did a break point in the ie8 dev console on it and watched the following values break at that line a few times during the page load... name = "outline" value = "0 none !important" Those values breaks it every time it comes around.. I'm going to see what is setting these values.. On Mar 20, 10

[jQuery] Regex Help for CSS Selector type deal

2009-03-20 Thread Eric Garside
I need to come up with a regex, or find some way to leverage Sizzle (which I'm not familiar with) to do a pretty simple task. Given strings like: div#some-complex-id.myClass.ui-state-disabled or p.myClass#someId.otherClass or p .myClass .otherClass .ui-state-disabled #myId I'd like, through one

[jQuery] Re: how to load("text with the + sign in it")

2009-03-20 Thread Alexandre Plennevaux
Hello, i tried that, but htmlentities("A+") echos "A+", so it does not convert it. On Fri, Mar 20, 2009 at 4:06 PM, Martijn Houtman wrote: > > > On Mar 20, 2009, at 3:59 PM, Alexandre Plennevaux wrote: > >> i'm doing an ajax call via the load() function. The fetched string >> contains the "+" si

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Martijn Houtman
On Mar 20, 2009, at 4:02 PM, Adam Drew wrote: Thanks For your input Martijn, You're welcome. I just now remember when I got this error. It was when I was (accidentally) trying to set the CSS property "backgroundColor" to "none", rather than "transparent". This worked in FF/Safari (or a

[jQuery] Re: how to load("text with the + sign in it")

2009-03-20 Thread Martijn Houtman
On Mar 20, 2009, at 3:59 PM, Alexandre Plennevaux wrote: i'm doing an ajax call via the load() function. The fetched string contains the "+" sign, and it gets removed in the resulting html. Why is that? note: i'm using php. The only way i found to have the string shown, is to urlencode() it. B

[jQuery] Best way to iterate over a string (each character)

2009-03-20 Thread dimitre
Hello, I am trying to do a simple thing in JQuery, and found some different ways to make it work. Altough all of them behave identically and correct in Firefox & Safari, few works in IE. Which of them you consider the "correct way", OR Was ths supposed to work OK on IE too? Thank you PS: in the c

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Adam Drew
Thanks For your input Martijn, Unfortunately, I'm not sure where my culprit code is yet.. so I'm not sure what options are being passed. I'm looking now for typos, extra properties or invalid attr references..\ -Adam

[jQuery] how to load("text with the + sign in it")

2009-03-20 Thread Alexandre Plennevaux
friends, i'm doing an ajax call via the load() function. The fetched string contains the "+" sign, and it gets removed in the resulting html. Why is that? note: i'm using php. The only way i found to have the string shown, is to urlencode() it. But i don't want to urlencode() entire texts that sh

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Martijn Houtman
On Mar 20, 2009, at 3:22 PM, Adam Drew wrote: Using the dev version, I can break it down to this function.. line 1061 ch 4 I guess i should go track down anything that's playing with an elements opacity??? // from jquery.1.3.2.js // IE uses filters for opacity if ( !jQuer

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Martijn Houtman
On Mar 20, 2009, at 3:07 PM, Adam wrote: Message: Invalid argument. Line: 12 Char: 12949 Code: 0 URI: http://domain/shared/jquery/jquery-1.3.2.min.js Half of the time I get this error, it is because I have one comma too much in an array, such as: var foo { foo: "bar", bar

[jQuery] Re: Malsup's Cycle plugin exhibiting strange behavior

2009-03-20 Thread Asinox
Hi Mike, thanks for u great Plugin... now i need to know how ill change the width and height and the padding. Thanks u malsup wrote: > > >> The first issue is in FF 3.0.7 on Mac. Occasionally, the first image >> appears no problem, however the remaining images show up extremely >> small. I

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Adam Drew
Using the dev version, I can break it down to this function.. line 1061 ch 4 I guess i should go track down anything that's playing with an elements opacity??? // from jquery.1.3.2.js // IE uses filters for opacity if ( !jQuery.support.opacity && name == "opacity" ) {

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Adam Drew
FYI, all is well in Safari as well as Firefox... The main thing in IE that breaks down is my main Tabs setup... and the only javascript error indicated is that it " Could not get display title. Invalid Argument", but that's all I can see about this. On Mar 20, 10:07 am, Adam wrote: > Message:

[jQuery] Re: What does this do?

2009-03-20 Thread Danjojo
Ok.. I was missing the id="<%=intA%>" on the element. Thanks for the help. It's working in another site now. On Mar 20, 9:29 am, MorningZ wrote: > If you are getting "NaN" that means "not a number", probably meaning > your selector isn't valid > > On Mar 20, 9:07 am, Danjojo wrote: > > > For

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread MorningZ
Got any example code? You haven't provided even close to enough information to help also, use the full version of jQuery instead of the minified version, then you'll may get a more specific location of where this happens On Mar 20, 10:07 am, Adam wrote: > Message: Invalid argument. > Line: 12

[jQuery] Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Adam
Message: Invalid argument. Line: 12 Char: 12949 Code: 0 URI: http://domain/shared/jquery/jquery-1.3.2.min.js I keep getting the above error In IE but Not FF.. Everything works great in FF, and almost in IE.. But I am having a hard time tracking down the cause this issue in IE... any help apprec

  1   2   >