[jQuery] Error in IE6 and 7, but not 8 (or FF, and Chrome) ...

2010-01-09 Thread youradds
Hi, Got a bit of a weird one here :/ http://ultradev.com.nmsrv.com/cgi-bin/dev/page.cgi?g=Detailed%2F337.html Line: 12 Char: 0 Error: Expected identifier, string or number Code: 0 The script its refering to (I assume!) is: http://ultradev.com.nmsrv.com/dev/static/ajax_rate.js Originally I

[jQuery] Re: looping through form elements.

2010-01-09 Thread Rick van Hoeij
Well if you just want the element, you don't even need the :. Just $ ('input') would do the trick. Greetz, Rick On Jan 8, 9:35 pm, rich dottedq...@gmail.com wrote: Rick,      Thank you for your response.   I was able to figure out $ (this).val() grabbed the value and you explained  

[jQuery] Extracting content from a div?

2010-01-09 Thread youradds
Hi, I need to try and extract the following from a STRING (not the current page); div class=error ul liGast Email der Rezension kann nicht den Wert 'undefined'

Re: [jQuery] Extracting content from a div?

2010-01-09 Thread Massimo Lombardo
If the string pattern is always the same -- i.e. nothing but the inner text changes -- then you can simply use a regular expression. I think this will help you: http://www.regular-expressions.info/examples.html -- Massimo Lombardo Linux user #437712

Re: [jQuery] Extracting content from a div?

2010-01-09 Thread Leonardo Balter
And you can simply use .text() method. This will return you only the text inside your selected element. Do you also need tips on getting the child elements on that div? -- At, Leo Balter http://leobalter.net Blog técnico: http://blog.leobalter.net

[jQuery] Re: Extracting content from a div?

2010-01-09 Thread youradds
Hi, Thanks. Ok, I have this string (for example): html head/head body bit of other junk here, and maybe other divs and stuff div class=error ul liGast Email der Rezension kann nicht den Wert

[jQuery] How to apply limits to an animation

2010-01-09 Thread JQNovice
I am very new to JQuery but so far very happy with ease of use. I have created a series of thumbnails that slide as the left, right buttons are clicked: http://www.lisaauer.com/jquery_imageslide/ I want the images to slide left or right only so far that there are always images filling the slide

[jQuery] how to do some animation when the page loads?

2010-01-09 Thread Oliur
when the DOM is ready you can write $(document).ready(function(){ $(#divname).hide(); }); Say now, you want to try and do some animation done by default, (in the below example I have done some animation only when the user do mouse over, how can i do that by default as in when the page loads)

[jQuery] Generating a CSV of values from a bunch of Checkboxes with same id

2010-01-09 Thread swfobject_fan
Hi, I'm using this piece of code to find a set of selected check boxes that are selected abd build a comma separated list from their values ('txt' custom attribute). Is this a jQuery standard method? e.g input type=checkbox id=chkGenre rel=genre value=12 txt=Rock / br / input type=checkbox

[jQuery] Selecting a value with up down keys

2010-01-09 Thread m.sirin
Hi, I'm trying to figure out how to select a value from a list that is filled dynamically using ajax (auto suggest). Take a look at the small code: when typing in a name by the keyboard this function is called: function lookup(inputString,a) { if(inputString.length == 0) {

[jQuery] Re: how to do some animation when the page loads?

2010-01-09 Thread Rick van Hoeij
Hey Oliur, You could just do that after the document ready: $(document).ready(function(){ $(.divname).animate({ opacity: 0.5, }, 300 ); }); That should do the trick, I think. Greetz, Rick On Jan 9, 2:53 pm, Oliur o.r.chowdh...@gmail.com wrote: when the DOM is ready you can

[jQuery] Download jQuery API docs

2010-01-09 Thread MISS_DUKE
Is it possible to download the jQuery API documentation to my local hard-drive? If so, I don't need to connect the Internet every time when I want to refer the API docs.

[jQuery] Re: Error in IE6 and 7, but not 8 (or FF, and Chrome) ...

2010-01-09 Thread youradds
Man this is driving me nuts - its fine in FF 3, Chrome, IE 8 - but just not IE 6 and 7 - WHAT! :@ Just downloaded a debugging tool, and even that can't find an error. At first I thought maybe the space: jQuery.post(/cgi-bin/dev/rate.cgi, { rate: Rating,

Re: [jQuery] Generating a CSV of values from a bunch of Checkboxes with same id

2010-01-09 Thread Peter Edwards
You could use the title attribute rather than your non-standard txt attribute, and achieve the same thing using: script type=text/javascript $(document).ready(function(){ $(#tryme).click( function(){ var checkedGenres = []; $(input[rel='genre']:checked).each(function(){

[jQuery] Re: superfish transparent PNG problem IE (8) when dropdown opens

2010-01-09 Thread eddybaby
Hiya, I had the same problem in IE8 - and have just this second found the fix. Just add a z-index to the 1st CSS section! I just added z-index:999 to the CSS style settings for '.sf-menu, .sf-menu * ' this. Worked for me and hope it fixes it for you too! Regards, Ed On Dec 16 2009, 12:48 pm,

[jQuery] Re: Error in IE6 and 7, but not 8 (or FF, and Chrome) ...

2010-01-09 Thread youradds
Man what a pile of poo IE is! Its moaning about this bit: jQuery.post(/cgi-bin/dev/rate.cgi, { the_rate: Rating, the_ID: LID, }, function(response) { jQuery('#ajax_rate_indicator' +

[jQuery] Re: Error in IE6 and 7, but not 8 (or FF, and Chrome) ...

2010-01-09 Thread youradds
If anyone has IE 6 or 7, please test this URL: http://ultradev.com.nmsrv.com/cgi-bin/dev/page.cgi?g=Detailed%2F337.html I'm wonderig if this is an issue with IETester (what I use to test different versions of IE) ... TIA Andy On Jan 9, 3:57 pm, youradds andy.ne...@gmail.com wrote: Man what a

[jQuery] Re: how to do some animation when the page loads?

2010-01-09 Thread Oliur
yes it did, thanks a lot :) It looks so simple :)

Re: [jQuery] superfish navbar submenu

2010-01-09 Thread Charlie
a link would help. There are likely some simple css solutions to your problem Anne wrote: Hi all, I am brand new to this. I have downloaded the sample files. I added the navbar css to the example.html file. Everything works. My problem is that the submenu is visible when I first load

Re: [jQuery] Download jQuery API docs

2010-01-09 Thread Charlie
not a full set of docs but this cheatsheet is pdf and can be very helpful http://www._javascript_toolbox.com/jquery/cheatsheet/JQueryCheatSheet-1.3.2.pdf MISS_DUKE wrote: Is it possible to download the jQuery API documentation to my local hard-drive? If so, I don't need to connect the

[jQuery] Re: Error in IE6 and 7, but not 8 (or FF, and Chrome) ...

2010-01-09 Thread Mike Alsup
the_ID: LID, remove the comma. On Jan 9, 11:09 am, youradds andy.ne...@gmail.com wrote: If anyone has IE 6 or 7, please test this URL: http://ultradev.com.nmsrv.com/cgi-bin/dev/page.cgi?g=Detailed%2F337.html I'm wonderig if this is an issue with IETester (what I use to test different

[jQuery] Re: Selecting a value with up down keys

2010-01-09 Thread Šime Vidas
Here ... http://vidasp.net/jquery-example8.html

[jQuery] Re: Selecting a value with up down keys

2010-01-09 Thread Šime Vidas
I forgot to mention: don't get freaked out by the code... basically what you need is: $().keydown(function(e) { if (e.keyCode === 40) { // down cursor key was pressed } else if (e.keyCode === 38) { // up cursor key was

[jQuery] Re: Selecting a value with up down keys

2010-01-09 Thread m.sirin
Okay, thank you. But I dont know how to iterate through the values of #autoSuggestionsList. They are like li a href=# onclick=myfunction(); Hello1 /li li a href=# onclick=myfunction(); Hello2 /li Like this? if (#autoSuggestionsList.next().is(li)) {

[jQuery] Re: Error in IE6 and 7, but not 8 (or FF, and Chrome) ...

2010-01-09 Thread youradds
OMG you lifesaver!!! HOW DID I MISS THAT! Just made the change, and works perfectly in IE 6 and 7 now - thanks so much! On Jan 9, 5:13 pm, Mike Alsup mal...@gmail.com wrote: the_ID:  LID, remove the comma. On Jan 9, 11:09 am, youradds andy.ne...@gmail.com wrote: If anyone has IE 6

Re: [jQuery] Jquery UI tabs lockable ?

2010-01-09 Thread Charlie
one method to consider is hide the tab(s), then show when conditions are correct URBY wrote: Hi i was wondering if it would be possible to lock out other tabs so the user is stuck on one ..until a user hits a button. For example an Admin is adding someone to a database- the Admin is on

[jQuery] Custom animations

2010-01-09 Thread Wroathe
Hi there! I was curious if there is a way to set up custom animations so that a div will expand from a specified corner to another specified corner? (Ex. If I have a div with a background color of #000 that is 200px by 200px and when I hover over it it expands to 500px by 500px from top left to

Re: [jQuery] reference dynamically loaded form select

2010-01-09 Thread brian
Set the event handler on the select at the time it is added to the DOM. http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Fri, Jan 8, 2010 at 1:49 PM, sonicDivx sonicd...@gmail.com wrote: Been trying to find the best answer to a problem

[jQuery] Re: Selecting a value with up down keys

2010-01-09 Thread m.sirin
the html section looks like: div id=suggestions style=display: none; div id=autoSuggestionsList li Hi1/li li Hi2/li li Hi3/li /div /div and then I added Sime Vidas code: $(document).ready(function() {

Re: [jQuery] Custom animations

2010-01-09 Thread John Arrowwood
Try animating the position at the same time. Or, position the element based on the corner that you want to remain fixed. Exactly how to do it depends on what other restrictions you have on what you are trying to do. Put together a sample page. On Sat, Jan 9, 2010 at 11:22 AM, Wroathe

Re: [jQuery] Re: Error in IE6 and 7, but not 8 (or FF, and Chrome) ...

2010-01-09 Thread Leonardo Balter
Sometimes we really need other people to look our codes or test our products. Or we need to first empty our cup to have it full again. 2010/1/9 youradds andy.ne...@gmail.com OMG you lifesaver!!! HOW DID I MISS THAT! Just made the change, and works perfectly in IE 6 and 7 now - thanks so

[jQuery] Accessing value of a dynamic added input

2010-01-09 Thread -null-
I'm adding an input and select box to a div by setting the div's html. I then attach a change event to the select which posts to a php page using ajax. I'm having a problem however accessing the value of the input from the change event. This is the event. $('#' + popup.popupId + '

Re: [jQuery] Re: Extracting content from a div?

2010-01-09 Thread Leonardo Balter
2010/1/9 youradds andy.ne...@gmail.com Hi, Thanks. Ok, I have this string (for example): html head/head body bit of other junk here, and maybe other divs and stuff div class=error ul liGast

Re: [jQuery] Accessing value of a dynamic added input

2010-01-09 Thread brian
$(this).val() should work just fine. There must be some other issue. Are you sure the HTML is correct (eg. options all have values)? On Sat, Jan 9, 2010 at 5:55 PM, -null- suzanne.bo...@gmail.com wrote: I'm adding an input and select box to a div by setting the div's html.  I then attach a

Re: [jQuery] Download jQuery API docs

2010-01-09 Thread Karl Swedberg
The new 1.4 documentation is available as a raw XML file: http://api.jquery.com/api/ That probably isn't what you want, though. Here is a page with links to alternative resources: http://docs.jquery.com/Alternative_Resources Also, you can download an Adobe Air app for jQuery 1.3 API:

Re: [jQuery] Re: Change opacity of item with class of selected

2010-01-09 Thread Karl Swedberg
If you're concerned about it validating, use a conditional comment to include an IE-only stylesheet with the filter in it. At least your non- IE stylesheets will validate. Also, note that for IE8, you'll need to use -ms-filter. So, in your IE stylesheet, you'll have this: #thumbs

[jQuery] XML print all nodes ( html() )

2010-01-09 Thread Shane
Is there a way to print out the structure of a jQuery xml element... heres some code $(xml).find(item).each(function(){ if(myid == $(this).find(id).text()){ itemsXML = $(this).html() -- trying to do something like this } } i would like itemsXML to contain

Re: [jQuery] XML print all nodes ( html() )

2010-01-09 Thread John Arrowwood
console.log( $('div/').append( $(itemsXML).clone() ).html() ) See if that works. On Sat, Jan 9, 2010 at 7:27 PM, Shane wishiwasmiss...@gmail.com wrote: Is there a way to print out the structure of a jQuery xml element... heres some code $(xml).find(item).each(function(){ if(myid ==

[jQuery] Re: XML print all nodes ( html() )

2010-01-09 Thread Shane
no go. On Jan 9, 10:56 pm, John Arrowwood jarro...@gmail.com wrote: console.log( $('div/').append( $(itemsXML).clone() ).html() ) See if that works. On Sat, Jan 9, 2010 at 7:27 PM, Shane wishiwasmiss...@gmail.com wrote: Is there a way to print out the structure of a jQuery xml element...

[jQuery] Re: Accessing value of a dynamic added input

2010-01-09 Thread -null-
The $(this).val() line does work, it's the line before I'm having trouble with. Before the select there is a hidden input that I also need the value of but no matter what selector I've tried matchup is always undefined.

[jQuery] Re: looping through form elements.

2010-01-09 Thread RobG
On Jan 8, 8:33 am, rich dottedq...@gmail.com wrote: Hello all, I'm relatively new to JavaScript.  I would like to loop through all the elements within a form and grab their values and what type of input they are.  So far I came up with: $(':input').each(function(idx, item) {      

Re: [jQuery] Extracting content from a div?

2010-01-09 Thread Andrei Eftimie
I'm suspecting youdo an ajax call, you get a page, but only need a part of it injected into your own. There might be a better solution, but this should work. data = '...div class=errorulliGast Email der Rezension kann nicht den Wert 'undefined'speichern./li/ul/div...'; data =