[jQuery] Re: A beautiful diagram

2009-01-01 Thread Alexandre Plennevaux
wow, that's an amazing library, some demos are really impressive! i like the polar clock for instance: http://raphaeljs.com/polar-clock.html thanks for the link ricardo ! On Wed, Dec 31, 2008 at 10:50 PM, Ricardo Tomasi ricardob...@gmail.com wrote: raphael js might be of help: raphaeljs.com

[jQuery] Unable to populate my div in Firefox

2009-01-01 Thread sho...@ckwi.net
i m getting strange problem. i m unable to pupulate my div in Firefox Mozilla. but in IE i m getting no problem. i m using following function. function doData(p_id,cat,cat_id,first,last){ document.getElementById(doContainer).innerHTML=; $.ajax({

[jQuery] How to get ClueTip to open in parent document?

2009-01-01 Thread C.Everson
First off - Happy New Year to everyone! I am trying to use the excellent Cluetip plugin from: http://plugins.learningjquery.com/cluetip to display some content in a hidden DIV on a page that is pulled into context of the main page with an I-frame. I can easily get the content to display in

[jQuery] Re: Unable to populate my div in Firefox

2009-01-01 Thread Alexandre Plennevaux
try this: function doData(p_id,cat,cat_id,first,last){ var url = doData.php?p_id=+ p_id +cat=+ cat +cat_id= + cat_id; $('#doContainer').empty().load(url,function(htmlData,result)); if(result==success){ $(this).html(htmlData); }else{ $(this).html(ERROR LOADING +url); } } On Thu, Jan 1, 2009 at

[jQuery] How to force a child page to open in iframe using jquery

2009-01-01 Thread AbhishEk
Hi, I have a WebPage on which i have an iframe inside which i open child pages . In one of the child pages following script is written script type=text/javascript if (self != top) { if (window.location.href.replace) top.location.replace(self.location.href); else

[jQuery] Re: checkboxes, array and $.post

2009-01-01 Thread jjshell
Hi Ricardo, thanks for your reply. I think I must be missing something when it comes to $.post a form in jQuery. It seems too complicated to have to do something like this: $.post(delete.php,{ field1: $(#field1).val(), field2: $(#field2).val(), field3:

[jQuery] setInterval(obj.method,200) problem: scoping?

2009-01-01 Thread Alexandre Plennevaux
Hello mates, i have an object datascape which among other things, contains a property storing the mouse position, and a function that uses that property. Inside another method i var datascape = { 'mouseX': 0, 'myInterval': 0, 'create': function(){

[jQuery] Re: setInterval(obj.method,200) problem: scoping?

2009-01-01 Thread donb
You should change 'move' to move (remove apostrophes). On Jan 1, 9:01 am, Alexandre Plennevaux aplennev...@gmail.com wrote: Hello mates, i have an object datascape which among other things, contains a property storing the mouse position, and a function that uses that property. Inside

[jQuery] Re: setInterval(obj.method,200) problem: scoping?

2009-01-01 Thread Alexandre Plennevaux
hi donb, according to a lengthy discussion we had on this mailinglist yesterday the quotes are good practice. see: http://groups.google.com/group/jquery-en/msg/821f4eb134c51d3d (is is just one message on a 31-long thread, if u have time ,read the whole thread it is interesting ) As for this

[jQuery] jqGrid with JSON - blank table?

2009-01-01 Thread MichaelW
Hi - New to JSON and new to jqGrid. I have successfully created a simple demo using XML. Took me about an hour (I'm slow). However, I struggled about 8 hrs to get the JSON version to work. In fact, I even removed the server-side JSON and used the embedded JSON string technique (as noted in the

[jQuery] Invalid Json Primitive

2009-01-01 Thread tep
Hello all, I am trying to create a widget within .NET that's why using JSONP. But when i run the code below, i get the error 'Invalid Json Primitive' on client side before calling web service , how can i handle that ? function test2() { var params = '{wdgtype:1}'; $.ajax({

[jQuery] Noob Q. Can't get jQuery working

2009-01-01 Thread spstieng
Ok, this is a noob questions. I'm using Wordpress and have the following code. In the header I add: script type=text/javascript src=?php bloginfo('template_url'); ?/ js/jquery-1.2.6.js/script script type=text/javascript src=?php bloginfo('template_url'); ?/ js/test.js/script The test

[jQuery] Re: jQuery UI 1.6rc3 is out

2009-01-01 Thread Nathan Maves
great job guys! is there going to be an easy way to view the source of the new functional demos? On Wed, Dec 31, 2008 at 8:03 PM, Richard D. Worth rdwo...@gmail.com wrote: jQuery UI 1.6 release candidate 3 is out. Blog post:

[jQuery] Re: TESTING: replicate event bubbling in tests

2009-01-01 Thread nachocab
Right, so how can I replicate clicking on the scan (as I would do in the browser). Is there a way to do something like $ (#myDiv).withTarget(#myScan)? On Dec 31 2008, 9:42 pm, Kean shenan...@gmail.com wrote: $('#myScan').click()  does not have event binded to it. It means fire myScan's click

[jQuery] Re: Noob Q. Can't get jQuery working

2009-01-01 Thread Matt Quackenbush
Probably because the path to jQuery is incorrect and therefore jQuery is not actually loaded. On Thu, Jan 1, 2009 at 5:26 AM, spstieng wrote: Now, clicking Test B links dislays the 'Hello World' alert. But nothing happends when I click Test A. Why is that?

[jQuery] Select a line inside a pre tag

2009-01-01 Thread Daniel
Hi, i'm working on some bookmarklets / greasemonke scripts to change some functionality in some websites. i got some code like this pre line 1 - aa line 2 - bb line 3 - cc /pre and i need to select all lines that contains aa and cc does anybody have an idea how to do this?

[jQuery] Function called from a link - likely super noob stuff

2009-01-01 Thread oswaldcobblepot
Hi everyone, As the subject states, I'm sure the answer to this is on a super noob level - I'm just not exactly sure what I should be looking for here. I'm trying to plot points on a Google map using hcard information in my html. This part is working very nicely thanks to Simon Willison,

[jQuery] Re: Event callback question

2009-01-01 Thread Cam Spiers
function closeMainPanels(callback){ var panels = jQuery('div.mainLiner div.panel'); var done = []; var length = panels.length; panels.each(function(){ var panel = jQuery(this); panel.slideUp(750, function(){ if (done.push(panel) == length){

[jQuery] Re: jQuery UI 1.6rc3 is out

2009-01-01 Thread Richard D. Worth
On Wed, Dec 31, 2008 at 10:30 PM, Nathan Maves nathan.ma...@gmail.comwrote: great job guys! is there going to be an easy way to view the source of the new functional demos? Yes, we're going to be adding that, as well as a way to open a demo in a new window. Just didn't want to hold up the

[jQuery] parsing xml

2009-01-01 Thread jhm
I'm new to jquery and I'm trying to do a simple xml parse. When I use the .each() to get the tags, if there is more than one tag in the file, nothing more in the script gets processed. In the code below, you'll see two alerts. If I comment out the .each() line I get both alerts. If I leave it

[jQuery] Re: Unable to populate my div in Firefox

2009-01-01 Thread Ricardo Tomasi
What is being returned? A html string? Parsing it with jQuery first might help, and you can simplify the function by passing a data object: function doData(_data){ $(#doContainer).empty(); $.get(doData.php, _data, function (response) { $(#doContainer).html( $(response) );

[jQuery] Re: checkboxes, array and $.post

2009-01-01 Thread Ricardo Tomasi
That's what serialize() is for: $(':submit').click(function(){ var data = $(this).parents('form:first').serialize(); // or $('#formID').serialize(); $.post(delete.php, data, function(){ ... }); }); On Jan 1, 8:48 am, jjshell blahblahcoui...@gmail.com wrote: Hi Ricardo, thanks for

[jQuery] Re: Fastest way to clear child elements from a div

2009-01-01 Thread Ricardo Tomasi
No it doesn't. There are other concerns other than speed of execution. I don't remember exactly, but with some of the replaceHTML implementations you lose all bound events and properties when moving an element, for example. On Dec 31 2008, 2:58 am, Kean shenan...@gmail.com wrote: If I read the

[jQuery] Re: Interesting on document ready question

2009-01-01 Thread Ricardo Tomasi
Thanks. If only I could use something this simple for my graduation thesis :D That was mr. Firefox 3.0.5 on a C2D 1.6ghz. Firebug's timing is said not to be reliable, but I don't think there's much distortion in that. For a comparison, simply looping over the creation of 5000 functions takes

[jQuery] Re: Noob Q. Can't get jQuery working

2009-01-01 Thread spstieng
Tha path is correct. I use FireBug to debug the javascript and I can see the jQuery script executing. I was executing this code inside Wordpress CMS and Drupal CMS. To test further, I created a test site tha only contains the index.php It worked perfectly. When debugging I see that it first

[jQuery] Re: .html() only works on original source?

2009-01-01 Thread Ricardo Tomasi
You could use custom events: $('#form').bind('hidden',function(){ $(this).children(':input').each(function(){ var t = $(this); t.data('value', t.val() ); }); }).bind('visible',function(){ $(this).children(':input').each(function(){ var t = $(this); t.val(

[jQuery] Superfish - Wordpress Multiple PathClass ???

2009-01-01 Thread Superfish - Wordpress
Wordpress broke my configuration with the Nav-Bar by adding .current_page_parent and .current_page_ancestor to just the .current_page_item css classes. This is great, however it has broken my superfish navbar where it won't show the second level list when you choose a link in the second level,

[jQuery] Re: TESTING: replicate event bubbling in tests

2009-01-01 Thread Dave Methvin
jQuery 1.3 supports event bubbling for trigger()ed events, give it the beta a try and see if it does what you want. There's a post here with the link.

[jQuery] jcarousel lite each li have own height

2009-01-01 Thread claudes
currently the plugin is set-up so that it calculates the height (offsetHeight) of the first li element and sets it as default height for the ol/ul and other li elements in carousel. each of my li is variable height and when i run the plugin it cuts of content. i'm wondering if anyone has a fix

[jQuery] jcarousel lite each li have own height

2009-01-01 Thread claudes
currently the plugin is set-up so that it calculates the height (offsetHeight) of the first li element and sets it as default height for the ol/ul and other li elements in carousel. each of my li is variable height and when i run the plugin it cuts of content. i'm wondering if anyone has a fix

[jQuery] Getting started with AJAX/Database multiple items per page

2009-01-01 Thread dwalls32
Hi All, I am new to jQuery, and I'm unsure where to get started with what I am working on. I've read AJAX tutorials but most deal with only 1 element per page. Here is what I want to accomplish. I've got a page which pulls records from a database and displays them all on one page. There is a

[jQuery] Re: setInterval(obj.method,200) problem: scoping?

2009-01-01 Thread Dave Methvin
jQuery works best when the DOM element is at the center of the logic. It seems like there are probably other parts to the code, but this would be another way to write what is there and have the data hooked to the datascape element. I've used plain properties on the DOM element but you might want

[jQuery] Re: setInterval(obj.method,200) problem: scoping?

2009-01-01 Thread Dave Methvin
Whoops, I missed the original issue, which was that setInterval needs to be told its this object. So change this: this.interval = setInterval(function(){ $.log('datascape.move : mouseX = ' + this.mouseX); }, 1000); to this: var self = this;

[jQuery] Re: How to force a child page to open in iframe using jquery

2009-01-01 Thread Ricardo Tomasi
If the iframe has access to the parent frame it's on the same domain, then you have access to it right? I think there's nothing you can do to stop that. On Jan 1, 8:24 am, AbhishEk mithuabh...@gmail.com wrote: Hi, I have a WebPage on which i have an iframe inside which i open child pages . In

[jQuery] Re: Noob Q. Can't get jQuery working

2009-01-01 Thread Ricardo Tomasi
I think Wordpress loads prototype.js as well, try protecting your jQuery script: jQuery.noConflict()(function(){ $('a').click(... }); On Jan 1, 7:29 pm, spstieng spsti...@hotmail.com wrote: Tha path is correct. I use FireBug to debug the javascript and I can see the jQuery script

[jQuery] Re: Event callback question

2009-01-01 Thread Ricardo Tomasi
If they are all sliding up at the same time, isn't it simpler to use function closeMainPanels(){ jQuery(div.mainLiner div.panel).slideUp(750, function(){ / *...callback...*/ }); } On Jan 1, 5:53 pm, Cam Spiers camspi...@gmail.com wrote: function closeMainPanels(callback){     var panels =

[jQuery] Re: parsing xml

2009-01-01 Thread Ricardo Tomasi
Try using a base element: items item sample one /item item sample two /item /items jQuery needs a context for find() to work. On Jan 1, 6:22 pm, jhm jmay...@gmail.com wrote: I'm new to jquery and I'm trying to do a simple xml parse. When I use the .each() to get the tags, if

[jQuery] Re: Superfish - Wordpress Multiple PathClass ???

2009-01-01 Thread Joel Birch
Hello, This one has been solved before. Here is the link to the thread: http://icanhaz.com/superfish Enjoy! Joel Birch.

[jQuery] form plugin and blockUI problems in IE7 with the ui not unblocking

2009-01-01 Thread tradeallday
I'm using the form plugin and the most recent version of blockUI. Here's my form initialization area: $(document).ready(function() { var options = { target:'#search_results', // target element(s) to be updated with server

[jQuery] jQuery 1.3b1 and the Galleria Plug-In

2009-01-01 Thread Nikola
Has anyone had any problems with Galleria and jQuery 1.3b1? Galleria seems to be incompatible with 1.3B1. I'll try to dig into later and see what I come up with...

[jQuery] Re: Getting started with AJAX/Database multiple items per page

2009-01-01 Thread donb
If you have a function that updates the single item, then add a css class to it (and all the others that will do the same function) and add a click event to that class: $('.myclassname').click( function() { do whatever your existing function does }); Every one of your links will now call the

[jQuery] jQuery Validate plugin with cake php form won't submit

2009-01-01 Thread nate
I am using the jQuery Validate plugin with a form in cakePHP. When I click submit the form is validated but not submitted to the server. When I change the form name From user to user1 it submits properly so it seems that once the form is bound to the javascript it stops submitting the data.

[jQuery] Avoiding Find

2009-01-01 Thread Maya
Hi guys, here is my case: I have a JQuery object named ObjectMaster representing html contents, inside this object there is a TD with id=FirstName that I want to populate its text, is there a way to reach FirstName tag from its parent (ObjectMaster) WITHOUT using:

[jQuery] Re: Event callback question

2009-01-01 Thread Cam Spiers
They are all sliding up at the same time, but I was under the impression that your code would call the callback function once for each div.panel that was found. Am I mistaken? (would be really awesome if it does only call once) And if I'm not, I reiterate that I only want the callback function

[jQuery] Re: form plugin and blockUI problems in IE7 with the ui not unblocking

2009-01-01 Thread Mike Alsup
I'm using the form plugin and the most recent version of blockUI. Here's my form initialization area:                 $(document).ready(function() {                     var options = {                         target:        '#search_results',   // target element(s) to be updated with

[jQuery] Re: Avoiding Find

2009-01-01 Thread Mike Alsup
Someone might say why not populating FirstName directly? I can't do that since I have other ObjectMasters containing identical TD with the same FirstName id, so I have to reach each TD through its parent, otherwise I would be populating the wrong TD's. You should not be using the same id

[jQuery] Re: parsing xml

2009-01-01 Thread jhm
jQuery needs a context for find() to work. That worked thanks! The xml file I was really using actually had a context similar. But it also had a header that was causing the problem. It was: ?xml version=1.0 encoding=UTF-8? Any idea why this would break it? Thanks!

[jQuery] Re: jQuery 1.3b1 and the Galleria Plug-In

2009-01-01 Thread Dave Methvin
I changed the occurrences of @rel= to just rel= and that fixed most of it except the next/prev buttons.

[jQuery] How to make a layout work with firefox and IE and look the same?

2009-01-01 Thread Aaron
Question is in the subject. I notice with jquery and also css, that the position is different on different internet browsers. I seek a solution that would make one layout to be the same with all browsers or at least the popular used ones. like firefox or IE. I want a solution that would make

[jQuery] Re: Hover and fade in and out jquery code....

2009-01-01 Thread Aaron
I still have the problem and been messing with the code to try and get a fix to it. I wonder if I can use a if statement on events something like if mouse is over image then appear a menu else if mouse is over menu keep menu showing else if mouse is not over the image or menu then fade out

[jQuery] Re: Avoiding Find

2009-01-01 Thread Ricardo Tomasi
$('#ObjectMaster #FirstName') should give you almost the exact same performance of $('#ObjectMaster').find('#FirstName'), as the exact same is happening internally. There is the option of using a context: $('#FirstName', ObjectMaster) but I'm not sure that would give you any performance

[jQuery] Re: How to make a layout work with firefox and IE and look the same?

2009-01-01 Thread Ricardo Tomasi
I wonder what do you mean by jquery looks fine. Presentation of a website is controlled by CSS and the mark-up it applies to, only. Javascript can only interact with those two, and any presentation issues you're running into have most certainly to do with stylesheets. The only way to achieve

[jQuery] firebug regression: console.log($('div')) less useful

2009-01-01 Thread Danny
Has anyone else noticed that Firebug before 1.2 would treat console.log ($('div')) as an array and list all the matched elements on the console, so you could mouse over the list and highlight the elements, or right-click and scroll into view etc., but now it just lists Object length=13 and you

[jQuery] Re: Event callback question

2009-01-01 Thread Ricardo Tomasi
You're right, that will run the callback once for each element. This is a bit hacky but is the shortest way I could think of: function closeMainPanels(){ jQuery(div.mainLiner div.panel).not(':last').slideUp(750).end() .filter(':last').slideUp(750, function(){ //callback

[jQuery] Re: How to make a layout work with firefox and IE and look the same?

2009-01-01 Thread brian
On Fri, Jan 2, 2009 at 12:28 AM, Aaron shyhockey...@aol.com wrote: Question is in the subject. I notice with jquery and also css, that the position is different on different internet browsers. ... So the layout is differnet between firefox and IE. so I wonder if there is any solution to

[jQuery] Re: Invalid Json Primitive

2009-01-01 Thread tep
Any comment, waiting your help tep wrote: Hello all, I am trying to create a widget within .NET that's why using JSONP. But when i run the code below, i get the error 'Invalid Json Primitive' on client side before calling web service , how can i handle that ? function test2() {

[jQuery] Re: Invalid Json Primitive

2009-01-01 Thread Michael Geary
Since you're not making a cross-domain request, why are you using JSONP instead of regular JSON? I would think you would just use JSON. JSONP uses a script element instead of XMLHttpRequest, so most of the Ajax parameters like the beforeSend and error functions don't apply. I don't know what

[jQuery] Re: setInterval(obj.method,200) problem: scoping?

2009-01-01 Thread Alexandre Plennevaux
hi Dave, thanks a lot for the feedback. The reason i'm not using the dom but rather more conceptual objects is because the application is quite complex, and its easier for my small brain to keep track of all variables as object properties. On Fri, Jan 2, 2009 at 2:02 AM, Dave Methvin