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:

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

2010-02-23 Thread Peter Edwards
) 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, what is the right place to put: $(#elements

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

Re: [jQuery] google.load(jquery) and jquery plugins

2010-01-27 Thread Peter Edwards
Use google.setOnLoadCallback to add whatever plugins you need using jQuery's $.getScript function like this: google.load(jquery, 1); google.setOnLoadCallback(function() { $.getScript(http://inlinemultiselect.googlecode.com/files/jquery.inlinemultiselect-1.2.min.js;, function(){

Re: [jQuery] iPhone: split jquery script file

2010-01-14 Thread Peter Edwards
There is an interesting article about optimising YUI for Safari/iPhone at: http://tinyurl.com/y97karc (there was a problem with the blog's database connection, so this links to a cached version) With the following in it: Some examples of the kinds of things an iPhone-specific site doesn’t need:

Re: [jQuery] Re: iPhone: split jquery script file

2010-01-14 Thread Peter Edwards
requests sooner keep with the minified and gzipped version to keep the data sent across the connection to a minimum...ripping apart the library just doesn't seem worth the payoff, which isn't much anyways On Jan 14, 10:08 am, Peter Edwards p...@bjorsq.net wrote: There is an interesting

Re: [jQuery] any help on this!!!

2010-01-12 Thread Peter Edwards
You need a hash symbol for your button selector, and change the toggle to click: $(#dt-link1).click(function() { $('#jqdt').find('ol li:eq(0)').css(color,Blue); return false; }); on 11/01/2010 22:45 JQueryNewbie said:: I cant get my color change on my listitem. any help would be

Re: [jQuery] Custom animations

2010-01-10 Thread Peter Edwards
Hi there, I've put up a basic example of how you would do this at: http://jsbin.com/ahevu (to edit the code, go to http://jsbin.com/ahevu/edit) I've used mouseenter to demonstrate - if you need a hover effect, then you will need to save the original dimensions/position of the div you are

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(){

Re: [jQuery] Re: Jquery .submit not firing up!

2009-12-23 Thread Peter Laws
If there's an error, the dredded IE doesn't throw up any error, normally its on the ball in that department. And I can't post a link (unless I do it privately?) as its a pre-production site. FWIW, I copied the example from the JForm site letter by letter - still not firing; removed all other

Re: [jQuery] Re: Jquery .submit not firing up!

2009-12-22 Thread Peter Laws
But thats after the (test) alert box, and I'm not even getting that popping up. Surely I should be seeing the alert on submit? 2009/12/22 Stumps mkloub...@gmail.com: Use $(this).ajaxSubmit(options);  instead of $(this).ajaxForm (options); .ajaxForm will bind a form to automatically post back

Re: [jQuery] Re: Debuging AJAX

2009-11-25 Thread Peter Edwards
Hey, don't use document.write() or alert() to debug - either use console.log() or have a div in the document which can display debugging information and append any data to it. $('#testform').live('submit',function(){ var formData = $(this).serialize(); console.log(formData);

[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 peter.crym...@gmail.com 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 again. Heres the code

[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 juriy.b...@gmail.com wrote: Hi, I'm

[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

[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 ste...@gmail.com 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

[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 abhi.pur...@gmail.com wrote: Can anybody provide me with some suggestions regarding above mentioned issue On Nov 17, 7:15 pm, g...@iec abhi.pur...@gmail.com wrote: Hi all, I have came across an issue related to xml

[jQuery] FadeIn Text

2009-11-18 Thread Peter Crymble
at http://77.68.37.37/index.aspx 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 rper...@uci.cu wrote: Hi every: I'm trying to use jCorner to get rounded effects in some of my DIV but

[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 nabrow...@gmail.com 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

[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. script $(function(){ $('select').each(function(){

[jQuery] Re: XML Writing

2009-11-17 Thread Peter
script type=text/javascript $(function(){ $('settings').find('type').text(b); }); /script settings typea/type /settings You mean that? where is your xml? get by ajax? inpage? On Nov 16, 3:39 pm, Shane wishiwasmiss...@gmail.com wrote: Hey guys, Is it possible to use jQuery to

[jQuery] Re: newbie plugin question

2009-11-17 Thread Peter
$(document).ready() { should be $(document).ready(function(){ On Nov 17, 8:06 am, echobase bushbr...@gmail.com 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

[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: 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

[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 i...@hogsmill.com wrote: This may or may not be possible, but if anyone knows a way to do it, I'd love to hear

[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

[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:44 schrieb

[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] 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) {

[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 though! Peter on 19/08/2009

[jQuery] Re: Manipulate href

2009-08-17 Thread Peter Edwards
, #+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 looking for a correct way of manipulating a hrefs... The code looks like this: ul id=my_list lia href

[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 pauldcoll...@gmail.comwrote: Hi all, This is hopefully simple. I have a bunch of links with titles, like TITLE=Facebook and so on. I am

[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 once, I

[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 alerts. As the user

[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

[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 posting and what

[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

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

2009-07-13 Thread Peter Edwards
); } }); }); 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 not) and it does. Peter on 13/07/2009 14:49 Matt Zagrabelny said

[jQuery] Re: jQuery on IE

2009-07-09 Thread Peter Edwards
Why is the type attribute of the script tag set to application/x-javascript rather than text/javascript ? on 09/07/2009 21:40 Paulodemoc said:: the address to js is correct, it opens just fine. I created a new document: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://

[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

[jQuery] ajax load

2009-06-27 Thread Peter Marino
hi, when I use the $(.main_view).load( my.php ); all my danish letters are rendered wrong. is there something I need to do in the my.php to make sure it shows the danish characters correctly? anyone? Peter -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com

[jQuery] creating a visual frame using jquery

2009-06-23 Thread Peter Marino
to come when I put content inside my visual frame? Can someone point it out for me? another question is... is there any other method that can make the left and right sides get the correct length? or is jquery the only way to do that? regards, Peter -- Power Tumbling - http://www.powertumbling.dk OSG

[jQuery] Re: creating a visual frame using jquery

2009-06-23 Thread Peter Marino
100's of different combinations... any suggestion what to do to get less code would be super. peter On Tue, Jun 23, 2009 at 1:07 PM, Charlie charlie...@gmail.com wrote: you can accompish this 4 corner box with far less markup, standard css with no script there's lots of css tutorials

[jQuery] Re: creating a visual frame using jquery

2009-06-23 Thread Peter Marino
Hi Liam, your method isn't flexible enough, thanks for trying peter On Tue, Jun 23, 2009 at 4:04 PM, Liam Potter radioactiv...@gmail.comwrote: 3 images 1) the top bar, 2) the full width of the panel (including shadow) 3) bottom corners 3 divs div id=top/div div id=content content

[jQuery] when is what ready?

2009-06-22 Thread Peter Marino
does one do that? Peter -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com

[jQuery] Re: PDF + Jquery + thickbox is not suppoting to Mozilla

2009-06-22 Thread Peter Edwards
Hi Bharath, Your code would never work on my machine (even in IE) as I have set it up so PDFs display in a standalone reader (i.e. do NOT use the browser plug-in). Is the problem that the PDF does not download at all in Mozilla under some set of circumstances? Peter on 22/06/2009 11:10

[jQuery] Re: cloning ajax

2009-06-18 Thread Peter Marino
Hi, I have resolved the problem.. I did use the clone( true ) at first when I create a default template of what I want to clone then I clone() the template to be used by the user... and believe it or not I actually forgot to set the last clone to clone( true ) so this was my bad, sorry Peter

[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

[jQuery] cloning ajax

2009-06-17 Thread Peter Marino
Hi jQuery, when I clone a div that contains input fields with ajax then the cloned version will not do any ajaxing? is this normal? btw: I do use clone( true ) regards, 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

[jQuery] Re: ajax error handling

2009-06-14 Thread Peter Marino
that 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 morni...@gmail.com wrote: I also deal

[jQuery] ajax start stop of multiple animations

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

[jQuery] jquery ui Datepicker

2009-06-11 Thread Peter Marino
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] Re: simple(fy) data count

2009-06-06 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é gustavon...@gmail.comwrote: $count=$(.div_count); var clone_count =!$count.('data') ?1:$cont.data('clone_count')+1; $count.data('clone_count',clone_count); 2009/6/5 Peter Marino marino.pe

[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é gustavon...@gmail.comwrote: $count=$(.div_count); var clone_count =!$count.('data') ?1

[jQuery] simple(fy) data count

2009-06-05 Thread Peter Marino
this a little simplier (compact).. any suggestions? Peter -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com

[jQuery] Re: json indexing not working for me

2009-06-03 Thread Peter Marino
of working on it with no result). regards, Peter On Wed, Jun 3, 2009 at 8:39 AM, Dam jakob.a@gmail.com 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 object, so probably

[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, Jun 3, 2009

[jQuery] Re: json indexing not working for me

2009-06-02 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: ?php $arr = $_GET; $myjson = json_encode($arr);

[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 kenshin...@gmail.com 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

[jQuery] json format

2009-06-01 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, dataType: json, success: function(msg){ alert( msg

[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:

[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 jeroom...@gmail.com wrote: if you are using PHP

[jQuery] json indexing not working for me

2009-06-01 Thread Peter Marino
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] 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.dk OSG-Help

[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] find reverse

2009-05-27 Thread Peter Marino
Hi jQuery Group, is it possible find a node backwards instead of forwards. i.e. div id=test0 div id=findme / div 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 -- Power

[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 caire...@gmail.com wrote: Do you want to use parent? $(#findme).parent() http://docs.jquery.com/Traversing/parent#expr On Wed, May

[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. mario.maru...@gmail.com wrote: On May 27, 2:19 pm, Peter Marino marino.pe...@gmail.com wrote: Hi jQuery Group

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

2009-05-26 Thread Peter Marino
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 marino.pe...@gmail.comwrote: Hi all, I'm still

[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); } }); }); on

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

2009-05-25 Thread Peter Marino
not have this problem. any suggestions? regards, Crisium Peter Wraae Marino -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com

[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 p...@bjorsq.net wrote: $('#delete_item a').click(function

[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

[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

[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 craigco...@gmail.com 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: 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 deroacheee...@gmail.com wrote: hi, in firebug my callback data(object) is

[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 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

[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(iApproving.../i); var aObj = $(this); jQuery.ajax({ 'type':'POST', 'data':'id=205', 'dataType':'text', 'success':function(msg){

[jQuery] [beginner] passing variables to a Jquery function

2009-03-30 Thread Peter Van Dijck
=456 id=doit), but I can't seem to get it to work, and I'm not sure this is the right approach... What would be the jquery-like best way to do this? Thanks! Peter -- me: http://petervandijck.com blog: http://poorbuthappy.com/ease/ global UX consulting: http://290s.com free travel guides: http

[jQuery] Re: How to prevent loading jquery twice

2009-03-23 Thread Peter Edwards
Are you using joomla to load jQuery? or are you wringin script tags in some sort of template? I came across this: http://www.packtpub.com/article/using-javascript-effects-with-joomla which seems to imply joomla can handle you script inclusion. hope this helps on 23/03/2009 11:41 Andy789

[jQuery] [autocomplete] multiple items in input fails in Opera 9+

2009-03-22 Thread Peter Krantz
in an input field. Changing the field to textarea seems to solve the problem. [1]: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ Regards, Peter

[jQuery] Re: OnMouseDown = create draggable, OnMouseUp = create droppable

2009-03-09 Thread Peter Edwards
Have you tried the jQuery UI mailing list? Why not create draggable and droppable at the same time? The way I understand it, a draggable is created so it can be dropped on a droppable, so the two are linked and it makes sense to create them at the same time. Or do you need to create hundreds

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

2009-02-24 Thread Peter
Peter

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-24 Thread Peter Bengtsson
someone can explain that in better detail. Anyway, in modern browsers most of the work is being delegated to the native querySelectorAll function, as so selector performance will become more of a browser makers' concern. - ricardo On Feb 23, 1:08 pm, Peter Bengtsson pete...@gmail.com

[jQuery] $('#foo p') or $('p', $('#foo'))

2009-02-23 Thread Peter Bengtsson
I watched the John Resig presentation too and learned that CSS selectors always work from right to left. That would mean that doing this:: $('#foo p') Would extract all p tags and from that list subselect those who belong to #foo. Suppose you have 1000 p tags of them only 100 are inside #foo

[jQuery] Re: One page site multipage degradation

2009-02-13 Thread Peter Edwards
I don't know why IE does this but you shouldn't need to re-write the href attribute anyway - I'm assuming you attach a click event to the buttons to load content, so just return false from the click event handler and the link won't be followed - you can leave the href attribute intact.

[jQuery] Re: Is there a problem with Child selectors in Safari with 1.3?

2009-02-12 Thread Markus Peter
for me in Safari 3.2.1 with jQuery 1.3.1 (did not test 1.3.0) in my project, but other stuff which worked in 1.2.6 simply selects the wrong elements $(#id).find(.class) fails $(.class, DOMElement) fails The exact same code works in Firefox, though. -- Markus Peter - w...@spin.de - http://www.spin

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

2009-02-11 Thread Peter Edwards
the event order is mousedown-mouseup-click the 'dragend' event is triggered by mouseup, which happens before the click event, so if you put logic in your function dragged() to prevent clicked() from doing whatever it does, then the click event which is triggered at the end of a drag should be

[jQuery] Re: Hide specific characters

2009-01-23 Thread Peter Edwards
Try this: $(.cartSummaryItem).each(function(){ $(this).html($(this).html().replace(/,[^]*/, ' ')); }); It takes the html content of the cartSummaryItem table cell, and replaces everything from the comma to the start of the View Cart link with a space, then resets the contents of the table

[jQuery] Removing an Image from slide show

2009-01-13 Thread Peter Dillon
I need to remove the first image from my slide show when i use $ ('#overlay').remove(); the image is removed, but an empty space appears in the slideshow. Is there a removeSlide method or something similar? Peter

[jQuery] Re: AJAX and transforming proxies

2008-12-17 Thread Markus Peter
not always patch it myself, unfortunately it has been ignored so far. -- Markus Peter - w...@spin.de - http://www.spin-ag.de/ - http://www.spin.de/ SPiN AG, Bischof-von-Henle-Str. 2b, 93051 Regensburg, HRB 6295 Regensburg Aufsichtsratsvors.: Dr. Christian Kirnberger, Vorstände: F. Rott, P

[jQuery] Does jquery click() always prevent a click-through to the url?

2008-10-18 Thread Peter Barney
a pass-through... it seems to stop the click in its tracks. Is this so? Peter __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

[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] Re: Need some help with image map coding....

2008-09-19 Thread Peter Edwards
Hi Aaron, The following code should help: $(document).ready(function(){ $('area').each(function(){ $(this).attr(href, #); $(this).click(function(){ $('#ajaxresult').load('map.php', {'state':$(this).attr('alt')}); return false; }); }); });

[jQuery] Re: $.post callback problem

2008-09-12 Thread Peter Edwards
It looks like you have a rogue parenthesis to me - $.post($(this).attr(href)) - the last closing parenthesis completes the $.post call, so your callback function will not fire. on 11/09/2008 21:49 Tom Shafer said:: i am trying to use data i am getting back from $.post but I am not able to

[jQuery] Re: Can I use a variable to reference object properties?

2008-09-11 Thread Peter Higgins
just use data[myCategory] myCategory = cheese data.cheese = brie; data[myCategory] == brie Brad wrote: var myCategory; If (eating cheese) myCategory = data.cheese; If (eating bread) myCategory = data.bread; ... $.each(myCategory, function(i, item) { do a ton of

  1   2   >