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
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({
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
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
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
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:
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(){
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
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
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
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({
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
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:
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
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?
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?
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,
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){
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
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
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) );
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
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
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
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
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(
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 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.
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
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
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 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
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;
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
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
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 =
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
Hello,
This one has been solved before. Here is the link to the thread:
http://icanhaz.com/superfish
Enjoy!
Joel Birch.
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
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...
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
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.
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:
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
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
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 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!
I changed the occurrences of @rel= to just rel= and that fixed most of
it except the next/prev buttons.
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
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
$('#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
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
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
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
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
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()
{
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
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
58 matches
Mail list logo