[jQuery] Native offline jQuery docs for OS X

2009-02-11 Thread Mika Tuupola
I accidentaly posted this to jquery-ui group first. Now I am guilty of cross-posting too :) Ruthless self promotion and ask for help. I created OS X dictionary from jQuery docs. Basically it is native offline document format and integrates fully with operating system. You can search

[jQuery] Re: Cycle Plugin Adds Relative Position to Slideshow Container

2009-02-11 Thread Derek Perkins
All of my stylesheets are imported above my Cycle script, and all of my calls to JQuery are already running only after document.ready fires. Any other thoughts? My thought for a workaround is to add a little bit to my script that removes the position:absolute inline style, but that seems like an

[jQuery] Re: .hasClass() not behaving as expected.

2009-02-11 Thread MiD-AwE
Thanks for the reply. I eventually removed the -color and -image for the css background. mkmanning wrote: In your code you're attaching the hover event to the anchor tags; in the sample html none of the anchors has a class (the class is on the parent li element). On Feb 8, 4:24 pm,

[jQuery] any way to combine this with additional selectors?

2009-02-11 Thread lhwpa...@googlemail.com
hi i have the following problem: is there any way to combine this in a selector like $(this) with additional selectors like $(this+ span.hello) ? i tried this for a time but i everytime get an error. the only way i see is: $(#+$(this).attr(id)+ span.hello) is this the common way ? thanks for

[jQuery] Re: Delayed Checkboxes in IE

2009-02-11 Thread Stephan Veigl
Hi Karl, you are right. I just tested it on IE, FF, Opera and Chrome. click works fine on all 4 browsers for both mouse and keyboard. by(e) Stephan 2009/2/10 Karl Swedberg k...@englishrules.com: On Feb 10, 2009, at 9:45 AM, Stephan Veigl wrote: change your

[jQuery] Re: any way to combine this with additional selectors?

2009-02-11 Thread Tze Yang Ng
hi i have the following problem: is there any way to combine this in a selector like $(this) with additional selectors like $(this+ span.hello) ? Are u thinking abt applying context to the selector 'span.hello'? If that is the case, u can do something like this: $('span.hello',$(this))

[jQuery] Re: Only show 5 list item, hide the rest?

2009-02-11 Thread Stephan Veigl
Hi, ok, in this case it would be, IMHO, the easiest way to split the list in two uls and clue them together with CSS. ul id=myList style=margin-bottom: 0px liItem 1/li liItem 2/li liItem 3/li liItem 4/li liItem 5/li /ul ul id=myListExt style=margin-top:

[jQuery] Images not showing the first time (cache?)

2009-02-11 Thread tlob
http://www.vum.ch/thomas/meienberg/content3.php when you activate the navigation, images are cropped the first time. If I remove the css overflow:hidden; in #s1, my navigation for the images are behind the image. I have no idea why. Does it have something to do with the cache? How can I solve

[jQuery] Intercept links from flash

2009-02-11 Thread adexcube
Hi, I've got a flash object who loads pdf's and there's a lot of links on the pdf. Is there a way to catch or intercept all links with jquery? I want to stop the link redirection, I just want the link itself. I tried livequery with no result. :( Thanks

[jQuery] Re: Intercept links from flash

2009-02-11 Thread Liam Potter
in the flash rather then using getUrl, you could just send the url to a javascript var. adexcube wrote: Hi, I've got a flash object who loads pdf's and there's a lot of links on the pdf. Is there a way to catch or intercept all links with jquery? I want to stop the link redirection, I just

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-11 Thread Klaus Hartl
Thanks for this information. I'm about to rewrite this stuff a bit anyway due to some other bug, and I'll take your findings into account. Thanks again. What I really wonder about is, that this code used to work actually. This is why this whole logic with filtering an images in there... It

[jQuery] Re: Intercept links from flash

2009-02-11 Thread adexcube
Thanks for your response. have you got any example or link to check? Thanks On 11 Feb, 09:55, Liam Potter radioactiv...@gmail.com wrote: in the flash rather then using getUrl, you could just send the url to a javascript var. adexcube wrote: Hi, I've got a flash object who loads pdf's and

[jQuery] document.createComment usage - can be improved?

2009-02-11 Thread Marc Palmer
Hi, I'm new to jQuery. I had to use 1.3.1 with the HtmlUnit Java web testing library and we found that with publicly released versions of HtmlUnit it fails because the JS engine cannot find the function document.createComment Is this a standard DOM method or something widely supported

[jQuery] Re: Intercept links from flash

2009-02-11 Thread Liam Potter
no examples, but something like this should work. *flash:* on(release) { getUrl(javascript:var flashLink = 'http://google.com') } *jQuery:* $(function () { var jsLink = flashLink; }); then you can do what you want to the link in jQuery, as it is held as a string adexcube wrote:

[jQuery] Re: Only show 5 list item, hide the rest?

2009-02-11 Thread mofle
Hi, thank you for all your help ;) How can I have the list splitted automatically? Because the list is for a log, and the newest items are on the top, and as new items are added, the old ones are pushed down, and hidden. On Feb 11, 10:31 am, Stephan Veigl stephan.ve...@gmail.com wrote:

[jQuery] Re: Another Slide Effect?

2009-02-11 Thread Richard D. Worth
The jQuery UI Slide Effect: Docs: http://docs.jquery.com/UI/Effects/Slide Demo: http://jqueryui.com/demos/effects_showhide/#slide - Richard On Tue, Feb 10, 2009 at 4:18 PM, Clemens K. c...@madison.at wrote: (hope this time the posting works) hi. recently i transfered to jQuery from

[jQuery] Re: Select all even row in table that are not with a specified class.

2009-02-11 Thread m.ugues
Is it possibile to add a condition in or to the not condition? jQuery(table.font_quotazioni tr:odd:not ('.highlight','.midlight')).addClass(even); Kind regards Massimo Ugues On Dec 23 2008, 10:04 pm, aquaone aqua...@gmail.com wrote: Sure. $(table.font_quotazioni

[jQuery] Re: $(element in other iframe)

2009-02-11 Thread Ami
Thank you. You write that I need to wait until the iframe has been loaded. So I can do this? var frame=$(#iframe)[0].contentdocument; $(frame).ready(function () { alert('Iframe has been loaded!'); }); Am I right? and Thank you again. On Feb 8, 6:07 pm, Stephan Veigl stephan.ve...@gmail.com

[jQuery] Re: Only show 5 list item, hide the rest?

2009-02-11 Thread Stephan Veigl
Hi, suppose you have everything in #myList, than you could use the following lines to split the list: // move overhang (index 5) to extended list and hide $('#myListExt').append($('#myList li').slice(5)) .hide(); Use this function to add a new list item:

[jQuery] Ajax TABS with IE6 problem

2009-02-11 Thread urukay
Hi, I have a problem with IE6 (IE7, Firefox, Chrome, etc there's everything ok ) and jquery tabs. It looks like that IE6 is cashing HTMLs loaded into tabs by ajax and i just can't figure out how to prevent it (option cache: false) doesn't work. Every tab is loaded only once. Tried almost every

[jQuery] IE7 and ajax isuses + ajax history issues

2009-02-11 Thread Omid S
Hi everyone, First of all, THANKS for jQuery -- it is the most amazing javascript tool I have ever used. I have two questions however. 1. I have an ajax application where breaks when forms are submitted on IE7 or IE6. I use IE8 and it works fine. My friends use IE7 and the behavior they get is

[jQuery] Problem in alerting the mouseover values

2009-02-11 Thread puneetpandey85
Hi all, I am playing around with jquery.autocomplete.js file since last couple of days. There is a function inside this file name function init(), inside this there is a function(event) which takes care of mouseover events. have a look: function init() { if (!needsInit)

[jQuery] typo in docs for post entry

2009-02-11 Thread humanclock
Hey, I couldn't tell if this should get posted here or in Trac, so I'm posting it here. I wanted to point out a bug in the docs: http://docs.jquery.com/Post function(returned_data) { alert(data); }); should be: function(returned_data) {

[jQuery] typo in docs for post entry

2009-02-11 Thread humanclock
Anyway, I wanted to point out a bug in the docs: alert(data);

[jQuery] Selecting value from html

2009-02-11 Thread r1u0...@gmail.com
Hello! I've got some question: I've got variable 'tr' which contains html from table row. How I can read text from second td tag. This tag contains _colid=2 attribute. I was trying to do something like that: $(tr ':'td:(eq(2))').text(); but it's not working.

[jQuery] $.ajax

2009-02-11 Thread SUHAS
$.ajax retriving data from old request. if I re-open the link then latest data is shown why it is happening function getTask(qry) { tline = qry; document.getElementById(tline).innerHTML = Fetching recs +tline; var dbcommand = datadbname+dbname+/dbnamedbquery![CDATA

[jQuery] JQuery Event Handler not Working

2009-02-11 Thread Jawed
Hi Friends, I am a newbie here, so I decided to follow a simple example mentioned in a tutorial, but I stuck here, $(a).click(function(event){ alert(Thanks for visiting!); event.preventDefault(); }); the expected behavior of this code should be whenever I click

[jQuery] IE7 Zoom and the cluetip plugin

2009-02-11 Thread astr
Hi, everybody, I have a problem with IE7/Cluetip plugin. IE7 Currupts the tooltips in the jQuery ClueTip plugin if you zoom the page. See, eg., the example on the Cluetip demo page plugins.learningjquery.com/cluetip/demo/ , default style, 9. mouse tracking. Zooming is a good property, though

[jQuery] : Selecting value from html

2009-02-11 Thread Radosław Lejsza
Hello! I've got some question: I've got variable 'tr' which contains html or text from table row. How I can read text from second td tag. This tag contains _colid=2 attribute. I was trying to do something like that: $(tr ':'td:(eq(2))').text(); but it's not working. Cheers Radek

[jQuery] Ie6 ajax tabs problem

2009-02-11 Thread urukay
Hi, I have a problem with IE6 (IE7, Firefox, Chrome, etc there's everything ok ) and jquery tabs. It looks like that IE6 is saving all in cashe and i just can't figure out how to prevent it (option cache: false) doesn't work. Every tab is loaded only once. Tried almost every release i found of

[jQuery] Problem in selectors

2009-02-11 Thread Cerdrifix
Hallo, I am experimenting jQuery 1.3.1. In one of my pages i have a simple table (id=tElenco) with different rows. Some of these rows have a class named disabled (tr class=disabled/tr). I wrote a script that toggle visibility to disabled rows, depending on a checkbox: function

[jQuery] JQuery Event Handler not Working

2009-02-11 Thread Jawed
Hi Friends, I am a newbie here, so I decided to follow a simple example mentioned in a tutorial, but I stuck here, $(a).click(function(event){ alert(Thanks for visiting!); event.preventDefault(); }); the expected behavior of this code should be whenever I click the link on my page,

[jQuery] Selecting value from html

2009-02-11 Thread r1u0...@gmail.com
Hello! I've got some question: I've got variable 'tr' which contains html or text from table row. How I can read text from second td tag. This tag contains _colid=2 attribute. I was trying to do something like that: $(tr ':'td:(eq(2))').text(); but it's not working. Cheers Radek

[jQuery] Re: $(element in other iframe)

2009-02-11 Thread Stephan Veigl
Hi Ami, you can bind the load event to your iframe, but I'm not sure if there are any browser quirks see also this plugin: http://ideamill.synaptrixgroup.com/?p=6 by(e) Stephan 2009/2/11 Ami aminad...@gmail.com: Thank you. You write that I need to wait until the iframe has been loaded.

[jQuery] [treeview] newbie question

2009-02-11 Thread heohni
Hi, I just got it done to implement my treeview menu: http://packpilot.s15312582.onlinehome-server.info/?f=packpilot I know, there are still some debug infos in the [ ] and the css is not right. But what I want to know today is, how can I setup my menu to show in general the first 2 levels

[jQuery] Re: Cycle Plugin Adds Relative Position to Slideshow Container

2009-02-11 Thread Mike Alsup
All of my stylesheets are imported above my Cycle script, and all of my calls to JQuery are already running only after document.ready fires. Any other thoughts?  My thought for a workaround is to add a little bit to my script that removes the position:absolute inline style, but that seems

[jQuery] Re: Safe Ajax Calls?

2009-02-11 Thread SoulRush
I though that it would be nice to make the links with a certain format like: a href=ajaxProcess.php?var1=var1valuevar2=var2value class=aj- link link/a And make a selection for that kind of links with jquery, that takes these data to make an ajax call with post... That selection should be in a

[jQuery] Image swap behaviour with fade in/out using hover()

2009-02-11 Thread CrisD
I have been trying to over 3 weeks to write this without success. So far I have found swapImage (http://code.google.com/p/jquery-swapimage) that works well to replace images, and bannerSwapper (http:// plugins.jquery.com/project/BannerSwapper) that pre-loads limited images and does the swap with

[jQuery] Expand and collapse a list

2009-02-11 Thread mofle
Hi, I'm trying to create a collapsible list, that only shows the first 5 items, and hides the rest. If click the link it will slide in the rest of the list items, and if I click the link again it will hide the expanded list items. How can I do that? and is there a better way to do this? head

[jQuery] Re: using :has with selector

2009-02-11 Thread Michael Lawson
If mytext is a string, make sure it's quoted as said before. Your jquery selector looks ok (I did something similar recently and it works great) cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline: 255-1568 E-mail: mjlaw...@us.ibm.com

[jQuery] Re: Intercept links from flash

2009-02-11 Thread Michael Lawson
You could also use the ExternalInterface package. There is a method in there called call() where you just pass in the name of the javascript function, followed by any pramaters. Easiest thing to do here would have some setter functions for the vars you want to set so function setLink(link) {

[jQuery] currying in jquery.

2009-02-11 Thread shiva
All, I have an object like: p = { .. click: function(target){ } }; function curry(fn,s) { var scope = s || window; var args = Array.prototype.slice.call(arguments, 2) || []; return function() { fn.apply(scope, args); }; } I

[jQuery] jQuery UI dialog simple question for a newbie

2009-02-11 Thread EJB
Hi all. A very simple jquery UI dialog question as I undertake learning this new tool: I have a button: asp:Button id=btnCancelMeeting Text=Cancel Event runat=server OnClientClick='javascript:return jsConfirmCancellation();' / that calls this function: function jsConfirmCancellation() {

[jQuery] Re: jQuery UI dialog simple question for a newbie

2009-02-11 Thread Richard D. Worth
For the benefit of others there, we'd be happy to answer your question over on the jQuery UI list: http://groups.google.com/group/jquery-ui Thanks. - Richard On Wed, Feb 11, 2009 at 8:48 AM, EJB e...@capestreetfarm.com wrote: Hi all. A very simple jquery UI dialog question as I undertake

[jQuery] Question about jQuery.load()

2009-02-11 Thread M.A.R.C.O
can anybody teach me how i can use jQuery.load() to attach javascript files. Thanks for your times.

[jQuery] onclick event on a href calls a function , where to return false to prevent redirection

2009-02-11 Thread goldy
function buildingedit(searchhtmlid, filename, editid, idnum, addnum, obj) { //closeinst(searchhtmlid); var params = $.evalJSON('{'+editid+':'+idnum+',add:'+addnum +',showhtml:2}'); var myelem = document.getElementById('lastid'); var lastid = myelem.value;

[jQuery] Re: Hiding Dialog 'x' button

2009-02-11 Thread Mike Alsup
I want to hide the 'x' button on the dialog dynamically. Is there a good way to do it? or is there a setting? i couldnt find one. All i can think of is doing something like $(.ui-dialog-titlebar-close).css(display, none); However I dont think this is a good way. And if i have more than one

[jQuery] Re: Only show 5 list item, hide the rest?

2009-02-11 Thread Liam Byrne
Just a quickie... $(document).ready(function() { numVisible=4; itemHeight=$(#myList li).height(); $(#myList).css({height:numVisible*itemHeight,overflow:hidden}); }); In IE, this loses the bullet points, but it's a start and maybe someone else has a solution for that. Liam mofle

[jQuery] Re: validation with jquery 1.3

2009-02-11 Thread goldy
oh, ye, stupid error my bad On Feb 10, 12:38 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: There is no maxlenght method, its maxlength. Jörn On Tue, Feb 10, 2009 at 10:51 AM, goldy zlati.pehliva...@gmail.com wrote: Hei there seems validation works only if all the fields are not

[jQuery] Re: Question about jQuery.load()

2009-02-11 Thread Michael Lawson
There is a jQuery function that works specifically on javascript files: jQuery.getScript( url, callback ) is that what you're looking for?) cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline: 255-1568 E-mail: mjlaw...@us.ibm.com 'Examine my

[jQuery] Hiding Dialog 'x' button

2009-02-11 Thread Steven Yang
Hi I want to hide the 'x' button on the dialog dynamically. Is there a good way to do it? or is there a setting? i couldnt find one. All i can think of is doing something like $(.ui-dialog-titlebar-close).css(display, none); However I dont think this is a good way. And if i have more than one

[jQuery] Re: combine slide and fade

2009-02-11 Thread Christopher
thx! both works nice! On Wed, Feb 11, 2009 at 4:08 AM, mkmanning michaell...@gmail.com wrote: You could try this: jQuery.fn.slideFadeToggle = function(speed, easing, callback) { return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback); }; On Feb 10,

[jQuery] Re: Using jQuery Validation with Dot Net

2009-02-11 Thread Aaron Gundel
After looking this over, I found that the validator wasn't picking up your submit button, which isn't really a button. It's the link you use to submit. the validation plugin won't catch this because it [your link] appears to do a straight up call to form.submit(). I popped a submit button in

[jQuery] Re: : Selecting value from html

2009-02-11 Thread Paul Mills
Try this $('tr td:eq(1)').text(); indexing starts from zero so second column is index=1. Paul On Feb 11, 8:43 am, Radosław Lejsza r1u0...@gmail.com wrote: Hello! I've got some question: I've got variable 'tr' which contains html or text from table row. How I can read text from second td

[jQuery] Search for plugin - 3 horizontal growing elements

2009-02-11 Thread Martin Hintzmann
Hi :D I am searching for a jQuery plugin that can put 3 elements side-by- side, when you move your mouse over one of the elements it grows horizontal and take space from the 2 other elements. A flash version of this can be seen at the following url: http://www.arken.dk/ Hope someone can help

[jQuery] Re: Is A Child Of?

2009-02-11 Thread Ami
The Best solution: I have writed a very small plugin (1 line) for that, by using the code of Richard jQuery.fn.childOf=function(a){var b=this;return ($(b).parents().filter (function() { return this === $(a)[0]; }).length )} For Example: $(div).childOf(document.body)

[jQuery] Re: Search for plugin - 3 horizontal growing elements

2009-02-11 Thread Martin Hintzmann
... sorry I should have google it a bit more before asking for help... What I was searching for is called a horizontal accordian. And I found a very good example right here http://designreviver.com/tutorials/jquery-examples-horizontal-accordion/

[jQuery] Re: $.post NOT_ENOUGH_ARGS

2009-02-11 Thread Tim Johnson
On Tuesday 10 February 2009, mkmanning wrote: For the second argument use $(form).serialize() You should also use onsubmit=return CheckForm0(this); although the best practice would be to remove the inline script and bind the submit event like this: $('form').submit(function(){ //do your

[jQuery] catch-all clicks

2009-02-11 Thread BrainBurner
Hello, is there a way to catch-all click on the page? I tried $(html).click(fn), but it doesn't work..

[jQuery] Re: Text append / replace not working in ffx 2.x and HtmlUnit

2009-02-11 Thread Marc Palmer
On 10 Feb 2009, at 22:51, Marc Palmer wrote: Hi, Forgive me as I'm a total jQuery n00b. However, I am rather confused. I have the following trivial code: html head script src=jquery-1.3.1.min.js type=text/javascript/ script type=text/javascript

[jQuery] Re: using :has with selector

2009-02-11 Thread SteelRing
contains will work with or without quote around 'mytext'. How do I know it works? because $(#tableid tbody tr td.someclass:contains (mytext)).dosomething(); is working just fine for selecting td (as well as with 'mytext' quoted) but as soon as the tr:has (td.comeclass:contains(mytext)) is added

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-11 Thread shapper
You mean the following: $index = $('#Index'); parseInt($index.val())--; This still gives me the same error. Could someone, please, tell me how to do this? Thanks, Miguel On Feb 11, 6:38 am, Ralph Whitbeck ralph.whitb...@gmail.com wrote: Karl is right, you need to convert it

[jQuery] Re: catch-all clicks

2009-02-11 Thread Stephan Veigl
Hi, $().click( function() {...}); should work by(e) Stephan 2009/2/11 BrainBurner brainbur...@gmail.com: Hello, is there a way to catch-all click on the page? I tried $(html).click(fn), but it doesn't work..

[jQuery] possible jQuery ui icon bug

2009-02-11 Thread jim
Run the jQuery UI Sortable - Portlets Demo and try swapping ui- icon-minusthick for ui-icon-plusthick, and you will notice that it only seems to see the ui-icon-minusthick part of the image. This appears to be the case for any pairing of icons where the second icon appears to the right of the

[jQuery] Animation effect fails to run on 'load'ed content

2009-02-11 Thread rymi...@gmail.com
Hi, I've seen this problem before, and I think I've seen the solution to it too, but I can't for the life of me find it again now. I have an empty, hidden div with a unique id. I'm loading some remote content into that using $('#ttAjax').load('whatever.something'); After this I want to show it

[jQuery] Having trouble using URL Parms with .load()....

2009-02-11 Thread webspee...@gmail.com
Hey all. I have a form with about 20 fields elements and I also have 4 hidden fields that I'm trying to send to the back end program. If I run the code as is but don't send any parameters in the URL, it returns the output from my back end program fine. If I send the URL parms, the back end code

[jQuery] Appending Results to p

2009-02-11 Thread Cyril
Hi, I posted the thread below in the wrong forum... im hoping to get a solution here.. hopefully.. Thanks Original Post: Hi I'm having problems appending my results to a paragraph without refreshing ... I've

[jQuery] Validate - submit confirmation message

2009-02-11 Thread Josephine
Hi. I have the form working properly with the Validate plugin, but when the massage is sent, I get a page showing the PHP code. How can I get a page with a confirmation that the message has been sent, instead? I'm not good at this, so I appreciate any help. Thank you very much.

[jQuery] Tutorials on jQuery

2009-02-11 Thread andy
A basic introduction to jQuery and the concepts that you need to know to use it. ^ http://coaxialcable.webs.com/ ^

[jQuery] Re: IE7 Zoom and the cluetip plugin

2009-02-11 Thread Karl Swedberg
On Feb 11, 2009, at 3:27 AM, astr wrote: Hi, everybody, I have a problem with IE7/Cluetip plugin. IE7 Currupts the tooltips in the jQuery ClueTip plugin if you zoom the page. See, eg., the example on the Cluetip demo page plugins.learningjquery.com/cluetip/demo/ , default style, 9. mouse

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-11 Thread brian
On Wed, Feb 11, 2009 at 5:16 AM, Klaus Hartl klaus.ha...@googlemail.com wrote: Thanks for this information. I'm about to rewrite this stuff a bit anyway due to some other bug, and I'll take your findings into account. Thanks again. No problem. I'll try again to get logged into Trac, create a

[jQuery] JQuery Animate Event

2009-02-11 Thread rene.olivo
Is there a way to execute a function while there's an even in transition? thanks

[jQuery] move table row based on a cell. Row filtering

2009-02-11 Thread jmbertucci
Hi all, I'm a little stuck. I have two tables. One has several rows of data with multiple columns. The other is empty. What I'm trying to do is filter out rows from the main table and place them into the trash can table based on the values of different table cells. As an example. The main

[jQuery] Gathering page elements when using .post()....

2009-02-11 Thread webspee...@gmail.com
Hey all. I need to gather the name/value of 25 elements. Is there a quick way of doing this with .post() rather than manually setting each one individually? I can do it with a URL, but I want to use POST, not GET. Any suggestions?

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-11 Thread ruizbennett
$index = $('#Index'); $val = parseInt($index.val()); $val--; $val should be the number you want.

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-11 Thread ruizbennett
$index = $('#Index'); $val = parseInt($index.val()); $val--; Use $val On Feb 11, 9:37 am, shapper mdmo...@gmail.com wrote: You mean the following:         $index = $('#Index');         parseInt($index.val())--; This still gives me the same error. Could someone, please, tell me how to

[jQuery] incomplete data receive with POST method

2009-02-11 Thread rocky
i m posting some data on url page but it displays incomplete.following is the code snippet,what thing i m doing wrong plz notify me so that i correct,thanks test.js var list=vc++; $.ajax({ type: POST, url: test.php, dataType: json, data: book=+list,

[jQuery] Re: Tutorials on jQuery

2009-02-11 Thread Karl Swedberg
spam. :( Sorry it got through. Just banned the email address. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 11, 2009, at 10:11 AM, andy wrote: A basic introduction to jQuery and the concepts that you need to know to use it.

[jQuery] jeditable addition of checkboxes, doubleclick to select.

2009-02-11 Thread Brian Loomis
I've added onto jeditable to make checkboxes work by combining several examples I've seen online. Unfortunately I am not able to get the checkbox to select without first selecting the containing element (which has the appearance of having to get the checkbox a double click to check it)

[jQuery] Re: Cannot Get JQuery Ajax to work in Google Chrome browser

2009-02-11 Thread Beres Botond
I believe that for POST the correct way to send parameters is like this: data: {pageScroll: maxScroll, pageTime: endTime, location: currentURL} However it is weird that it works for you in IE and Firefox, as you have it now. Worth a try anyway. On Feb 11, 3:09 am, Karl Rudd

[jQuery] add a child node using jQuery

2009-02-11 Thread Alain Roger
Hi, i have a table tage and i would like to add a thead node using jQuery. what is the best method in order to get tablethead.../thead/table ? thx -- Alain --- Windows XP x64 SP2 / Fedora 10 KDE 4.2 PostgreSQL 8.3.5 / MS SQL server 2005

[jQuery] how to include JQuery from a page loaded by AJAX?

2009-02-11 Thread Davis
Hello, I got a simple page ( html ) loaded by AJAX, but it seems JQuery inside that page didn't work, appreciate if anyone can give me some hints how to implement it. html content, just simply corners a DIV guestbook script type=text/javascript /* ![CDATA[ */ {literal}

[jQuery] Re: How to get the selected values in multi-select

2009-02-11 Thread Beres Botond
It seems to me, that just gets the first option value from the multiple select, and not necessarily a selected one. At least if #selection points to the selection widget. $('#selection option:selected').each(function() ( // this should loop through all the selected elements

[jQuery] Re: trigger click event of anchor endless recursion

2009-02-11 Thread mkmanning
Triggering the click on 'a' fires the click on the the 'td', which triggers the click on 'a', which fires the click on 'td', etc. :) On Feb 11, 9:40 am, johnallan jral...@hotmail.com wrote: jquery 1.3.1 jq(#miniCalendarTable td).hover(         function(){ jq(this).addClass(hover) },        

[jQuery] Re: caching getScript() :: ajax question

2009-02-11 Thread dirk w
any ideas? On 10 Feb., 17:31, dirk w dirkwendl...@googlemail.com wrote: hello, i am getting a script which calls back some json to my function showMyVideos. during my research in this group i read that getScript wouldn't cache. in my case i would like to add some cache (lazy loading) to my

[jQuery] Re: onclick event on a href calls a function , where to return false to prevent redirection

2009-02-11 Thread mkmanning
Inline JavaScript is generally frowned upon nowadays. A better approach, if you can do it, is to separate your behavior from your markup, the same as you separate your structure from your presentation. It makes for cleaner, more accessible, and more maintainable code. For the example above:

[jQuery] Re: onclick event on a href calls a function , where to return false to prevent redirection

2009-02-11 Thread brian
If you bind your event handlers using an element's onclick attribute (or onwhatever) you should write it like so: onclick=return myClickHandler(...); And return false from the function to avoid having the link followed. Note that the attribute should be all lowercase, btw. The camelcase

[jQuery] Re: Is A Child Of?

2009-02-11 Thread Ricardo Tomasi
You can shave a few ms off that by using the current object itself, and cacheing the other element: jQuery.fn.in = function(a){ var a = $(a)[0]; return !!this.parents().filter(function(){ return this === a;}).length; }; Also be aware that this actually checks if the element is a

[jQuery] trigger click event of anchor endless recursion

2009-02-11 Thread johnallan
jquery 1.3.1 jq(#miniCalendarTable td).hover( function(){ jq(this).addClass(hover) }, function(){ jq(this).removeClass(hover) } ).click(function(){ jq(this).children(a).trigger(click); }); this is my script.. i swear I have done this before but maybe not. the hover

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-11 Thread Ricardo Tomasi
Increment/decrement is for variables. You can't use it directly on a number. Try '3--'. Make it simple, if you use subtraction the type conversion is done for you: $index = $('#Index'); val = $index.val()-1; On Feb 11, 2:37 pm, shapper mdmo...@gmail.com wrote: You mean the following:        

[jQuery] Re: how to include JQuery from a page loaded by AJAX?

2009-02-11 Thread Donkeybob
and also . . .do you have the jquery.js file linked in the new page? On Feb 11, 1:22 pm, Donkeybob rip...@gmail.com wrote: when you say loaded by AJAX . . . .are you using another javascript framework to call this other page? if you have any other functions could something be conflicting with

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-11 Thread brian
On Wed, Feb 11, 2009 at 1:23 PM, Ricardo Tomasi ricardob...@gmail.com wrote: Increment/decrement is for variables. You can't use it directly on a number. Try '3--'. Make it simple, if you use subtraction the type conversion is done for you: $index = $('#Index'); val = $index.val()-1;

[jQuery] Re: incomplete data receive with POST method

2009-02-11 Thread James
I think the + character is being interpreted as a space in the URL. Try using encodeURI() on the variable like: data: book=+encodeURI(list) http://xkr.us/articles/javascript/encode-compare/ On Feb 11, 6:17 am, rocky guess.19812...@gmail.com wrote: i m posting some data on url page but it

[jQuery] how to differentiate between click and dragend events?

2009-02-11 Thread legofish
Hi, I am using the drag plugin (http://blog.threedubmedia.com/2008/08/ eventspecialdrag.html) to design some interactions for a UI element. The element foo, needs to respond to a click, as well as to a drag (different responses for each). The plugin gives you handy drag events to work with. So

[jQuery] Re: Safe Ajax Calls?

2009-02-11 Thread Ricardo Tomasi
*and don't forget to return false or do e.preventDefault() $('.aj-link').click(function(){ var page = $(this).attr('href'); $('#targetDIV').load('ajax/'+page+'nocache='+Math.random()); return false; }); On Feb 11, 4:57 pm, Ricardo Tomasi ricardob...@gmail.com wrote:

[jQuery] Re: how to include JQuery from a page loaded by AJAX?

2009-02-11 Thread Donkeybob
when you say loaded by AJAX . . . .are you using another javascript framework to call this other page? if you have any other functions could something be conflicting with the jquery? . . .could you post your code that calls the page? On Feb 11, 12:04 pm, Davis ywk...@gmail.com wrote: Hello, I

[jQuery] Re: New Plugin: jQuery Finder (Mac-style 'Treeview' with Columns)

2009-02-11 Thread Todd Parker
Hi Nicolas - I just wanted to say that you did a stellar job of using the new CSS framework. I'm the design lead for the jQuery UI team and was involved in the creation of the framework and this is the best example of leveraging the power of this system. Just curious, did you run into any issues

[jQuery] Re: document.createComment usage - can be improved?

2009-02-11 Thread Ricardo Tomasi
It's part of the DOM Level 1 specs, should be supported by all current browsers: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#method-createComment You can overwrite it though, document.createComment = null || anything; On Feb 11, 8:20 am, Marc Palmer wangjamm...@googlemail.com

[jQuery] Re: using :has with selector

2009-02-11 Thread Ricardo Tomasi
Try doing it in two steps: $(#tableid tbody tr:has(td.someclass)).filter(':contains (mytext)').doSomething() On Feb 10, 7:57 pm, SteelRing steelr...@gmail.com wrote: Anyone can think of a reason why this shouldn't work? I'm trying to select the Row (tr) where the cell of td with class

[jQuery] Re: Select all even row in table that are not with a specified class.

2009-02-11 Thread Ricardo Tomasi
Yes, you can. In doubt, just try it, it doesn't hurt :) $(table.font_quotazioni tr:odd:not(.highlight,.midlight)).addClass (even); $(table.font_quotazioni tr:odd:not(.highlight):not (.midlight)).addClass(even); $(table.font_quotazioni tr:odd).not(.highlight, .midlight).addClass (even); On Feb

  1   2   >