[jQuery] Stopping Multiple Clicks Triggering Animation

2009-06-18 Thread Peter
Hi all, I have built the following switcher using jQuery: http://pmck.net/jq-switcher/ It all works fine except for one small problem. If you click quickly on a few tabs, sometimes more than one of the tabs will show. The code for handling the click event is as follows: $('#tab-list li a').cli

[jQuery] ajax .load() function appends a 0 to returned values

2009-06-28 Thread Peter
I just can't figure this one out, and it's got to be something silly, since I can't find anyone else having the problem. My code looks like this: $('#edit' .postcontent').load('admin-ajax.php', {'action':'qe- getpost'}); Everything works great - the returned value is loaded into .postcontent pe

[jQuery] LavaLamp problem in IE

2009-10-11 Thread Peter
rubbish in FF. Any thoughts on how to fix this would be appreciated. site is: http://www.wilkinson-associates.co.uk/ Thanks. Peter

[jQuery] Re: jQuery and jCorner problems ($ is not a function)

2009-11-17 Thread Peter
$().ready << I think the problem is there, what selector you pass to the jquery? Nothing! $(document).ready(...); OR $(window).ready(...); maybe your choice. On Nov 17, 9:11 am, ReynierPM wrote: > Hi every: > I'm trying to use jCorner to get rounded effects in some of my DIV but > when I run t

[jQuery] Re: How can a get an image's dimension AFTER animation

2009-11-17 Thread Peter
I think you mean this, $(sth).animate({the css}, [duration], function(){ calcHere(); }) On Nov 17, 10:14 am, nabrown78 wrote: > I am animating an image's height. Afterwards, I want to know the > image's width. The following code gives the image's width prior to the > animation. > >         fu

[jQuery] Re: JQuery/Java script Help required

2009-11-17 Thread Peter
Did you ask in http://jquerybox.com/index.php/topic,760.0.html ??? I had just answered you there! I had tested in FF and IE7. here are the code I used. Since my english is not that good, I hope I got what you wanted. $(function(){ $('select').each(function(){ this.selectedInde

[jQuery] Re: XML Writing

2009-11-17 Thread Peter
$(function(){ $('settings').find('type').text("b"); }); a You mean that? where is your xml? get by ajax? inpage? On Nov 16, 3:39 pm, Shane wrote: > Hey guys, > > Is it possible to use jQuery to write to XML nodes for example I have: > >      a > > > I want to do something li

[jQuery] Re: newbie plugin question

2009-11-17 Thread Peter
$(document).ready() { should be $(document).ready(function(){ On Nov 17, 8:06 am, echobase wrote: > Hi- > > I'm just getting into jQuery plugins and I wanted to do a sort of > 'hello world' exercise with a barebones plugin template. My template > code is below but I can't get the console.log st

[jQuery] Re: jquery tabs and dynamic content

2009-11-18 Thread Peter
The link you gave, just fixed the height of the container. But if you want to do so, you can first: 1.) when document ready, show all tabs at first 2.) loop though and get the height of each to choose the max 3.) hide all tabs (left the default show) On Nov 18, 10:34 am, danito wrote: > Hello pe

[jQuery] Re: getjson request an unavailable page

2009-11-18 Thread Peter
use $.ajax() instead, you can define function when the ajax fails On Nov 18, 12:17 am, Humpty Dumpty wrote: > Hi guys, > I write a web page that retrieve the data from a JSON formatted file > but when this fiel doesn't exist I can't see any error; > how I can handle this situation > thanks

[jQuery] Re: how to parse xml with namespace ?????

2009-11-18 Thread Peter
Can you show the code you are using. On Nov 18, 1:18 pm, "g...@iec" wrote: > Can anybody provide me with some suggestions regarding above mentioned > issue > > On Nov 17, 7:15 pm, "g...@iec" wrote: > > > Hi all, > > > I have came across an issue related to xml parsing. > > > Here is code for

[jQuery] Re: FadeIn Text

2009-11-19 Thread Peter
It seems IE8 inherit the bug on opacity in IE7. Which remove the "Bold" On Nov 19, 5:21 am, Peter Crymble wrote: > Hey - hope you are all well. > > I have a simply Jquery script which acts as a rollover - on mouseover > if fades the opacity, and then back

[jQuery] Re: cache = true in $.ajax

2009-11-19 Thread Peter
add code error: function(e,e2,e3){alert(e2);}, before success (in fact you can add anywhere in the ajax object). i think you will got a alert "error". if so. that's mean your return is not a well format json. On Nov 19, 5:37 am, Juriy wrote: > Hi, > > I'm trying to use $.

[jQuery] Streaming information from a server

2007-05-21 Thread peter
the server to send the information without it being requested. Does anyone have a suggestion as to how I can do this? Thanks Peter

[jQuery] Comet

2007-05-24 Thread peter
I would like to try the jquery comet plugin, but where should I download it from? Thanks, Peter

[jQuery] Re: Comet

2007-05-24 Thread peter
suffering from this problem. Peter On May 24, 9:51 pm, "Sean Catchpole" <[EMAIL PROTECTED]> wrote: > I assume you are talking about this > plugin:http://empireenterprises.com/_comet.htm > Then you can download it > here:http://empireenterprises.com/_share/jquery.comet.js > > ~Sean

[jQuery] Comet and Taconite

2007-06-25 Thread peter
minimal comet example of both the html and server side which uses taconite and not json. I will be able to flesh it out from there. Thanks, Peter

[jQuery] Need a help to manipulate table that multiple rowspan

2009-02-24 Thread Peter
Hi All, How can I find rowspan attribute of parent TR when I am clicking on last indexed tr. DG 1 M1 M3 M4 M5 Here M5 is the last index row. from that i have to get rowspan (rowspan="4") attribute of first / nearest td. Please help. Thanks Peter

[jQuery] Jquery Ajax usage question

2008-08-25 Thread peter
Currently, I use jquery's ajax function to create dymanic pages. But I don;t think I understand to to correctly make jquery event listners respond to the the DOM elements that I added via ajax response. I'll give an abrevated example below The function of the below script is to pop an alert box

[jQuery] jCarousel

2008-09-21 Thread Peter
feed that you use in this example. I would like to hand craft a simple RSS file. Thanks for your help. Peter

[jQuery] jquery cycle works in FF but stretches to the bottom in IE

2008-02-07 Thread Peter
as if there is no js applied to it. Here you can see what I mean: http://afternine.be/development/htm/index8.html When you look at it you will see it works in FF but for some reason IE does not freakin render it :( any thoughts? thx in advance, Peter

[jQuery] A gotcha with attr(key,value)

2008-05-31 Thread Peter
;]='newaction.php'. But the value of elem[name] is the child element, not the action attribute. (I have an example) It is easily avoided but I thought it worth bringing up - and is there anywhere that I could post this and the example so people could find it? I am fairly new to jquery - which I'm preferring to prototype now. Peter

[jQuery] Re: Why is this simple thing not working..??

2008-06-01 Thread Peter
naries. Does the snippett below actually work? I had to replace Hovertest onmouseover="Hovertest.hover(); by hovertje? Cheers, Peter On May 31, 9:37 pm, Mark <[EMAIL PROTECTED]> wrote: > Got it working with this: > > function Hovertest() > { > thi

[jQuery] interview request from InfoWorld

2008-08-22 Thread peter
ng to spend a few minutes talking to me about the topic, please contact me? I'm trying to cast a wide net and curious to know your personal thoughts as well as the thoughts about how it might affect the direction of libraries like jquery. Thanks. -Peter Wayner [EMAIL PROTECTED] [EMAIL PROTECTED]

[jQuery] PerlJQuery

2007-04-02 Thread Peter Gordon
I have released PerlJQuery V1.02, a Perl interface to jQuery. It implements Accordion, ClickMenu, Forms, Pane Splitter, Tabs, Taconite (Ajax), TableSorter, and Treeview. More are on the way Find it on: http://search.cpan.org/~peterg Peter

[jQuery] Re: Web 2.0 is vulnerable to attack

2007-04-03 Thread Markus Peter
do - I do not think this issue justifies any changes to the jQuery code itself as it's only an issue of most application developers not thinking about a certain type of attack. -- Markus Peter - [EMAIL PROTECTED] http://www.spin-ag.de/ SPiN AG, Bischof-von-Henle-Str. 2b, 93051 Regensburg, HRB 6295 Regensburg Aufsichtsratsvors.: Dr. Christian Kirnberger Vorstände: Fabian Rott, Paul Schmid

[jQuery] Re: Web 2.0 is vulnerable to attack

2007-04-04 Thread Markus Peter
E4X (http://en.wikipedia.org/wiki/E4X). It might well be possible, that E4X-capable browsers have the same problem with XML, depending on whether JavaScript constructors are called for E4X or not. -- Markus Peter - [EMAIL PROTECTED] http://www.spin-ag.de/ SPiN AG, Bischof-von-Hen

[jQuery] Re: Why pack jquery ?

2007-04-11 Thread Markus Peter
including IE7, get the gzipped 10KB version of jQuery. -- Markus Peter - [EMAIL PROTECTED] http://www.spin-ag.de/ SPiN AG, Bischof-von-Henle-Str. 2b, 93051 Regensburg, HRB 6295 Regensburg Aufsichtsratsvors.: Dr. Christian Kirnberger Vorstände: Fabian Rott, Paul Schmid

[jQuery] Re: JavaScript Hijacking - Jquery among the vulnerable ones

2007-04-16 Thread Markus Peter
from other sites, if users stay in a cookie-based session while surfing on other pages. There was at least one Gmail contact list exploit working similarly "in the wild" already. Don't deliver private data as JavaScript/JSON unless it's secured with secrets in the URL.

[jQuery] Re: JavaScript Hijacking - Jquery among the vulnerable ones

2007-04-16 Thread Markus Peter
On 16.04.2007, at 18:02, Jeffrey Kretz wrote: How would this work exactly? I thought that session cookies and file cookies are only passed by the browser in a request to a matching domain? Or would it be something like this: 1. Log into Washington Mutual Bank Account (20 minute se

[jQuery] Re: Injecting JavaScript and CSS - Optimization Technique

2007-04-17 Thread Markus Peter
a nice hack, but I'm unsure whether I would want to use such a hack. -- Markus Peter - [EMAIL PROTECTED] http://www.spin-ag.de/ SPiN AG, Bischof-von-Henle-Str. 2b, 93051 Regensburg, HRB 6295 Regensburg Aufsichtsratsvors.: Dr. Christian Kirnberger Vorstände: Fabian Rott, Paul Schmid

[jQuery] Re: Injecting JavaScript and CSS - Optimization Technique

2007-04-18 Thread Markus Peter
interesting topic, nevertheless. How did you reference them by name? Do you simply walk the frames from window.top by name then? -- Markus Peter - [EMAIL PROTECTED] http://www.spin-ag.de/ SPiN AG, Bischof-von-Henle-Str. 2b, 93051 Regensburg, HRB 6295 Regensburg

[jQuery] input type='radio' in a TD with onclick

2007-05-04 Thread Peter Bengtsson
This is the HTML I have to work with: My first attempt was this:: $('td.foo').click(function() { $(this).children()[0].checked = !$(this).children()[0].checked; }); That works fine when you press anywhere inside the TD and it

[jQuery] Re: .keyup + .html

2007-05-05 Thread Peter Dotinga
x27;value'); console.log("current: "+current); if (current){ jQuery('#clone').html('' + current + ''); } else { jQuery('#clone').html(''); } }) }); Grtz, Peter

[jQuery] Re: ANNOUNCE: jTagEditor 1.0 beta

2007-07-27 Thread Peter Bengtsson
ge and i'm sure the plugin's page is full of errors and nonsenses. Feel free to report them to me :) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com

[jQuery] Re: My calendar

2007-07-29 Thread Peter Klevže
Can you now check my code: -- http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Untitled Document td { font-align: right; padding: 2px; } .hour { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; color: #FF;

[jQuery] Tablesorter Questions

2007-08-27 Thread Peter Bell
I'm using tablesorter (http://tablesorter.com/docs/) with paging and have a couple of questions. 1. I'm using the fixedwidth and paging. The up/down arrows in the header are overlapping the header text in some cells when I look at this in FF2 on OSX although it looks OK on IE7 on a PC. ANyone els

[jQuery] Re: Tablesorter Questions

2007-08-27 Thread Peter Bell
@Josh, Worked perfectly - jQuery is great - even *I* can make sense of it! @Rey, The very same - thanks to your continued evangelism of jQuery I've finally caught the bug! Best Wishes, Peter On 8/27/07 2:36 PM, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > > Hi P

[jQuery] Re: NEWS: jQuery 1.2 Released

2007-09-11 Thread Peter Bengtsson
2 has been released! > > More information (and a jQuery UI sneak peek!): > http://jquery.com/blog/2007/09/10/jquery-12-jqueryextendawesome/ > > Full release notes and download information: > http://docs.jquery.com/Release:jQuery_1.2 > > Enjoy! > >

[jQuery] Re: Falling at the first hurdle

2007-09-18 Thread Peter Bell
In any site with pages in sub-directories, consider making all resource paths absolute rather than relative - replace with Best Wishes, Peter On 9/17/07 4:37 PM, "Jay" <[EMAIL PROTECTED]> wrote: > > Thanks, you are right. The runat server attribute meant the serv

[jQuery] Re: Multi-Lingual Methodology

2007-09-19 Thread Peter Bengtsson
is is not 100% jquery based, but once I determine what I want to do is possible. I plan to learn how to do it using my existing jQuery library in the web application. Advice appreciated. -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com

[jQuery] Re: get all checkboxes

2007-09-19 Thread Peter Bengtsson
want to get all checkboxes beginning on "my_" Virus checked by G DATA AntiVirusKit Version: AVK 17.7901 from 19.09.2007 Virus news: www.antiviruslab.com -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com

[jQuery] Re: $.getJSON and timeouts

2007-09-19 Thread Peter Bengtsson
? I tried to setup ajax "timeout" options to 2500 (2.5 sec), but as getJSON does not use a XHR, it seems not to work. Any help would be grately appreciated, thanks in advance, Matt -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com

[jQuery] Re: [SITE SUBMISSION] GAME.co.uk

2007-09-20 Thread Peter Bengtsson
of Singstar I need to buy Regards, Michael Price -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com

[jQuery] Re: $('#foo') failing

2007-09-20 Thread Peter Bengtsson
t would be helpful, I would be happy to > send you the source of the dummy version. The app is a java app that > runs under Tomcat or any other J2EE container. > > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com

[jQuery] Re: Avoid enter keypress to submit form

2007-09-25 Thread Peter Tung
Yes, I think you can do it in many ways... 1. remove button. Then the enter will not invoke form's submit. But you should add form submit function in somewhere. 2. You can catch the 13 keycode in any element's key event, not only window object. On 9月25日, 下午1时05分, "Fabien Meghazi" <[EMAIL PROTE

[jQuery] Re: Avoid enter keypress to submit form

2007-09-25 Thread Peter Tung
2ways. 1. remove the type=submit button. you need to also use javascript to submit form. 2. add key down, key up etc. on any elements you want to avoid enter, not only window. On 9月25日, 下午1时05分, "Fabien Meghazi" <[EMAIL PROTECTED]> wrote: > Hi, > > Is there an non javascript way to avoid "enter

Re: [jQuery] How to select every checkbox on my page inside a fieldset

2010-02-15 Thread Peter Edwards
You can use selectors to do this quite easily - I've posted an example at: http://jsbin.com/uwaxo/ This has: 1. a checkbox which will select/deselect all others in the page (no matter whether they are in different forms/fieldsets, 2. a checkbox which uses a descendant selector $('#fieldset1 in

Re: [jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread Peter Edwards
In your example, you have two calls to $('#elements').sortable(). The second one has the update event added, but the first (the one which creates the sortable) doesn't. If you add the update handler to the first call, it works OK. on 23/02/2010 08:26 rafald said:: Hi , please check this: http

Re: [jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread Peter Edwards
{}); block) was creating the sortable list - the second call (within $(document).ready) was ignored. Hope this helps, Peter on 23/02/2010 10:32 rafald said:: Hi Peter, Indeed! It works ;-) THANKS! It was enough to remove line with >> $("#elements").sortable(); << So

[jQuery] Re: Determine content type in $.post callback

2009-07-13 Thread Peter Edwards
Hi Dimitriy, To get the options used by the xhr request (including the ContentType header), use the this keyword in the callback function: $.post(url, data, function(){ /* the content of this from a typical $.post operation this[type]=POST this[url]=url this[data]=data this[succ

[jQuery] Re: both 'if' and 'else' blocks being executed

2009-07-13 Thread Peter Edwards
'#billable_hidden').removeAttr("disabled"); } }); }); The most important change is using the disabled attribute on the field rather than the javascript property. I've tried the above on a text input field to see if it worked (so I had a visual cue to whether the field was disabled or no

[jQuery] Re: URL generated by Ajax

2009-07-15 Thread Peter Edwards
Hi JD, In your success callback, you have access to ajax options through the this keyword, so you can get the full URL by doing this within the success callback: alert(this.url+'?'+this.data); peter on 15/07/2009 13:30 Mean Mike said:: if you just need to see what your postin

[jQuery] Re: Check if movie (.mp4) is finished

2009-07-26 Thread Peter Edwards
Hi Eswip, It is possible to use the getEndTime method of the quicktime movie, but I think only when the plugin/movie has loaded. Apple docs: http://developer.apple.com/documentation/QuickTime/REF/QT41_HTML/QT41WhatsNew-74.html Not sure how you would implement this though... bjorsq on 25/07

[jQuery] Re: More fun with decrementing on click

2009-08-03 Thread Peter Edwards
Hi Nick $(".number").html(count--); count-- decrements your count variable after it has passed its value to the $.html() function. use --count Peter on 03/08/2009 21:15 littlerobothead said:: I have a status area in an app I'm working on. It shows the number of unread aler

[jQuery] Re: jQuery toggle question

2009-08-06 Thread Peter Edwards
I've reworked your code a little with a working example at: http://jsbin.com/ecumi I have changed classes and ids in the document a little to make it easier to do the selectors, but I know it could probably be done more efficiently. Peter on 06/08/2009 01:13 ripcurlksm said:: For on

[jQuery] Re: Add extra content to the title attribute

2009-08-11 Thread Peter Edwards
try this: $("a.newWindow").attr("title", $("a.newWindow").attr("title")+" - This link will open in a new window"); On Tue, Aug 11, 2009 at 10:45 AM, Paul Collins wrote: > Hi all, > This is hopefully simple. I have a bunch of links with titles, like > TITLE="Facebook" and so on. I am adding JQuer

[jQuery] Re: Manipulate href

2009-08-17 Thread Peter Edwards
} /* now set the href to the anchor */ $(this).attr("href", "#"+anchorname); }); }); A regex would be more elegant if I had the time to write one and test it, but this should suffice for most situations. Peter on 17/08/2009 20:07 knal said:: Hi group, I'm l

[jQuery] Re: form elements brainteaser

2009-08-19 Thread Peter Edwards
Hi Chris, I have a working example at: http://jsbin.com/udota/ I've made the number of second inputs configurable so you can test it. All you need now is a way of checking if they all add up to 100 if you make them "user configurable" - I'll leave that up to you thoug

[jQuery] Re: Getting XML info problem

2009-08-25 Thread Peter Edwards
Your code suffers from asynchronousitis. You call the ajax request, but alert the total before the response can alter the variable. Try doing it in the success callback as the previous poster suggested and you will get the correct value: var total = 0; function readXML(section) { $.ajax(

[jQuery] Re: search list in a div for attribute value

2009-08-29 Thread Peter Edwards
Try this - it may work for you: $(function(){ var srch = [ "foo", "bar" ] ; // make a Regex from the search terms var attr_regex = '('+srch.join('|')+')'; $('#gallery li').each(function(){ if ($(this).attr("title").match(attr_regex)) { $(this).css({background:'#f00'}); } }); });

[jQuery] Unsubscribe

2009-09-01 Thread Peter Stulzer
How do I unsubscribe this Newsgroup? Von meinem iPhone gesendet

[jQuery] Re: Unsubscribe

2009-09-01 Thread Peter Stulzer
Thank you amuhlou. That's what I tried first but I still get all the mails. Is there another way to unsubscribe or can some moderator just kick me out of all the jQuery groups I'm in right now maybe? Thanks for any help. Peter Von meinem iPhone gesendet Am 01.09.2009 um 22:

[jQuery] Re: Using jQuery to see if CSS is disabled.

2009-09-05 Thread Peter Edwards
You could try looping through the document.styleSheets collection and testing the disabled attribute: var styleSheetsDisabled = false; for (var i = 0; i < document.styleSheets.length; i++) { if (document.styleSheets.item(i).disabled) { styleSheetsDisabled = true; } } Not sure if this wou

[jQuery] Re: Ajax - Access data arguments in callback

2009-09-18 Thread Peter Edwards
Hi there, The only way I could find to do this with the $.get function was to parse out the query string - the success callback should get a copy of the options object which was used to set up the ajax request, but the data parameter is NULL in this object for GET requests (it is populated b

[jQuery] Re: Paste an image into a tag...

2009-09-18 Thread Peter Edwards
Have you thought of using a rich text editor to do this such as TinyMCE and FCKEditor - they both have paste from clipboard functionality On Fri, Sep 18, 2009 at 11:12 AM, Hogsmill wrote: > > This may or may not be possible, but if anyone knows a way to do it, > I'd love to hear from you. > > Ba

[jQuery] tooltip - jquery UI and tooltip not playing well

2009-10-05 Thread Peter Gibbons
I can't seem to see why. if you notice the first listing has no image and the 'inquire' link to the right works, the listings with images do not work tho. anyone run into any issues running jquery ui modal with tooltip? example: http://tinyurl.com/y9j9jvo thanks,

[jQuery] Re: jQuery Ajax SUCCESS: using 'THIS'?

2009-05-01 Thread Peter Edwards
Hi Roman, You need to copy the reference to your link to a variable like this: jQuery('#yt1').click(function(){ $(this).replaceWith("Approving..."); var aObj = $(this); jQuery.ajax({ 'type':'POST', 'data':'id=205', 'dataType':'text', 'success':function(msg){ alert(aObj.attr(

[jQuery] Re: How to parse?

2009-05-12 Thread Peter Warnock
$.get('/endpoint/', '', function (html) { $(html).find('.selector').appendTo('.target'); }), 'html'); On May 11, 3:23 pm, "cstolwor...@gmail.com" wrote: > I have an ajax call that will be returning a large chunk of HTML.  The > thing is that this HTML needs to go to several different places on

[jQuery] Re: dealing with a post (json) callback

2009-05-13 Thread Peter Warnock
[ ] is an array literal, like { } is an object literal. var obj = json[0]; You shouldn't use eval on JSON. If you specify 'json' as your return type, jQuery will safely eval valid JSON. - pw On May 12, 9:05 pm, sneaks wrote: > hi, in firebug my callback data(object) is like so: > > [{"produc

[jQuery] Re: declare variable

2009-05-14 Thread Peter Warnock
No. $thisCell is initialized with a null value in the current scope. - pw On May 13, 11:12 pm, runrunforest wrote: > Hi, > > I see this line in a plugin > > var $thisCell, $tgt = $(event.target); > > does that mean: > > var $thisCell = $(event.target); > var $tgt = $(event.target);

[jQuery] Re: Conflicts between scripts

2009-05-15 Thread Peter Edwards
You can avoid this conflict altogether (and reduce downloads considerably) using slimbox or thickbox http://www.digitalia.be/software/slimbox (lightbox clone for jQuery) http://jquery.com/demo/thickbox/ (can use to achieve lightbox effect, but much more versatile - can handle anything - not j

[jQuery] Re: how to uncheck the check box

2009-05-15 Thread Peter Edwards
There are a few ways to do this. You can select by class, in which case you give a group of checkboxes the same class $(function(){ // attach a click event to each checkbox whose class is 'onechecked' $(':checkbox.onechecked').click(function(){ // if the clicked checkbox is checked (no ne

[jQuery] Re: JQuery css selector

2009-05-18 Thread Peter Edwards
$('#delete_item a').click(function(){ return (confirm('Are you sure?')); }); This will only work if there is one item to delete on the page because it uses an ID selector. If you have multiple items, use a class selector instead. on 18/05/2009 08:43 ocptime said:: > Hi everyone, > > How

[jQuery] Re: JQuery css selector

2009-05-18 Thread Peter Edwards
Take a look at this example: http://bjorsq.net/selector.html on 18/05/2009 11:07 ocptime said:: Hi, It's not working :). How can i select using the jquery ul li selector? Thanks ocptime On 18 May, 13:39, Peter Edwards wrote: $('#delete_item a').click(functio

[jQuery] Re: scrollUp and scrollDown mis-aligning text on IE

2009-05-25 Thread Peter Marino
is with firefox and chrome and they do not have this > problem. > > any suggestions? > > regards, > Crisium > Peter Wraae Marino > -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com

[jQuery] Re: scrollUp and scrollDown mis-aligning text on IE

2009-05-25 Thread Peter Marino
ble to create extra contacts too. creating such a form has shown itself to be very complicated, perhaps there is something like this already created? can anyone point me in the right direction? regards, Peter On Mon, May 25, 2009 at 1:57 PM, Peter Marino wrote: > Hi all, > I'm st

[jQuery] Re: Autoselect a checkbox on user's input value

2009-05-26 Thread Peter Edwards
Try this: $(function(){ $('#DNnumber').keyup(function(){ if (parseInt($(this).val()) > 40) { $('#external').attr("checked", "checked"); $('#internal').attr("checked", ""); } else { $('#external').attr("checked", ""); $('#internal').attr("checked", "checked"); } });

[jQuery] find reverse

2009-05-27 Thread Peter Marino
Hi jQuery Group, is it possible find a node backwards instead of forwards. i.e. now I would like to do (remember find_reverse does not exist) $("#findme").find_reverse("#test0"); is there any method to do a find_reverse??? regards, Peter Wraae Marino -- P

[jQuery] Re: find reverse

2009-05-27 Thread Peter Marino
Hi Caires, something like that but it should continue up the parent until it finds it or return null peter On Wed, May 27, 2009 at 2:21 PM, Caires Vinicius wrote: > Do you want to use parent? > > $("#findme").parent() > > http://docs.jquery.com/Traversing/parent#expr

[jQuery] Re: find reverse

2009-05-27 Thread Peter Marino
hi, did not see the parents() method before now.. it does look this is what I need.. will check when I get home from work... thanks peter On Wed, May 27, 2009 at 4:49 PM, M.M. wrote: > > On May 27, 2:19 pm, Peter Marino wrote: > > Hi jQuery Group, > > is it possible fin

[jQuery] matching full names when querying

2009-05-28 Thread Peter Marino
instead of partials? regards, Peter -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com

[jQuery] problem displaying ajax data in Firefox (not IE, chrome)

2009-05-29 Thread peter websdell
Hi all. I'm pretty new to jquery and javascipt in general. I've had fun so far and I'm really enjoying using jquery. So far most compatability problems I've experienced have been down to IE (trailing commas in arrays, etc). This latest problem stops a page which works great in IE and chrome worki

[jQuery] Re: problem displaying ajax data in Firefox (not IE, chrome)

2009-05-30 Thread peter websdell
There could be many issues, but it's difficult to tell unless you >> could set up a test page, or provide more details of the issue. >> Thanks. >> >> On May 29, 4:21 am, peter websdell >> wrote: >> > Hi all. >> > >> > I'm pretty new

[jQuery] jquery json

2009-05-31 Thread Peter Marino
Hi jQuery, I've just found out the existence of json... and apparently there should be a jquery json script somewhere.. where? think it's called jquery.json.js I would like to download it from the site that created it. regards, Peter -- Power Tumbling - http://www.powertumbling.d

[jQuery] json format

2009-05-31 Thread Peter Marino
Hi jQuery, I'm very new to the json stuff (so warned)... when I try the following: var data = { "member" : { "name" : "Peter Wraae Marino" } } $.ajax({ url: "http://localhost/test/gui/ajax_member.php";, type: "GET", data: data, cache: false

[jQuery] json reading data on server

2009-06-01 Thread Peter Marino
Hi jQuery, I'm trying to learn the json and ajax I have with success sent data over to the server in json now my question is how does one process this data on the server side? client side: var data = { "member" : { "name" : "Donald Duck" } } $.ajax({ url: "http://localhost/test/gui/a

[jQuery] Re: json reading data on server

2009-06-01 Thread Peter Marino
hi, yes i'm using php... but the data is sent so the server side has to use $_GET but what do I get?? $_GET"??"] I assume you want me to $data = json_decode( $_GET["?"] ); * * *peter* On Mon, Jun 1, 2009 at 2:48 PM, geronimo3 wrote: > > if you are us

[jQuery] json indexing not working for me

2009-06-01 Thread Peter Marino
f I use json.mybutt I get what I expect.. why does the json.member.name not work? anyone... (been working 8 hours on this problem!) regards, Peter -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com

[jQuery] Re: json indexing not working for me

2009-06-01 Thread Peter Marino
I wish I could tell you.. I don't have any way of dumping the return json results.but I do know if I do a json.member I get a valid object but json.member.name is invalid? it would seem that this is the reason its not working but why? server side: On Tue, Jun 2, 2009 at 7:55 AM, Steven Yang wr

[jQuery] Re: json indexing not working for me

2009-06-02 Thread Peter Marino
:) yea. working on that now trying to create a way I can debug this on the server - peter On Tue, Jun 2, 2009 at 10:04 AM, Steven Yang wrote: > sorry i am not too familiar with phpput i guess $arr or $_GET is all the > parameters you get from the GET request. > can you simply prin

[jQuery] Re: json indexing not working for me

2009-06-03 Thread Peter Marino
working on it with no result). regards, Peter On Wed, Jun 3, 2009 at 8:39 AM, Dam wrote: > > Hi, > > It's kind of odd what you do: namely input nested JSON data as URI > parameters in a GET request. > It doesn't make sense to URL encode your data that has a nested > o

[jQuery] Re: json indexing not working for me

2009-06-03 Thread Peter Marino
Hi again, did some testing by creating a valid URL parameter string and use that in the data and that actually did work (too my surprise). if this is the case,.. then how does one transmit a json object?? and why is there a dataType = "json" in jQuery $.ajax?? regards, Peter On Wed, J

[jQuery] simple(fy) data count

2009-06-05 Thread Peter Marino
} var clone_count = $(".div_count").data( "clone_count" ); is there any method that can do this a little simplier (compact).. any suggestions? Peter -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com

[jQuery] Re: simple(fy) data count

2009-06-05 Thread Peter Marino
super.. that's a step in the right direction thank you On Fri, Jun 5, 2009 at 11:30 PM, Gustavo Salomé wrote: > $count=$(".div_count"); > var clone_count =!$count.('data') ?1:$cont.data('clone_count')+1; > $count.data('clone_count',clone_

[jQuery] Re: simple(fy) data count

2009-06-06 Thread Peter Marino
hi, ok... now I tried it.. but it seems that $count.('data') is not valid way of testing if data is there.. my javascript dies at that point. peter On Fri, Jun 5, 2009 at 11:30 PM, Gustavo Salomé wrote: > $count=$(".div_count"); > var clone_count =!$count.('da

[jQuery] jquery ui Datepicker

2009-06-11 Thread Peter Marino
sible when the user selects a date in the datepicker that it will automatically update the 3 input tags? anyone? Peter -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com

[jQuery] ajax start stop of multiple animations

2009-06-12 Thread Peter Marino
relates to that $.ajax any suggestions? Peter -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com

[jQuery] ajax error handling

2009-06-14 Thread Peter Marino
Hi jQuery, I'm using the $.ajax method and when this errors I react to the error event within and dump the XMLHttpRequest, textStatus, errorThrown to get an idea of what when wrong... but the most common message is "parse error" which doesn't help me that much. what is going wrong is that on the s

[jQuery] Re: ajax error handling

2009-06-14 Thread Peter Marino
t the server outputs.. and this is what I wanted because all the error information about the php is there. so basically just do an alert( XMLHttpRequest.responseText ) you will get a dump of what happend. thanks, Peter On Sun, Jun 14, 2009 at 8:05 PM, MorningZ wrote: > > I also deal with

  1   2   >