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 wrote:
>
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
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(
On Fri, Jan 2, 2009 at 12:28 AM, Aaron 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 this???
We
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
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 n
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 pi
$('#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 increase
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
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 t
I changed the occurrences of @rel= to just rel= and that fixed most of
it except the next/prev buttons.
> 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:
Any idea why this would break it?
Thanks!
> Someone might say why not populating FirstName directly? I can't do
> that since I have other "ObjectMaster"s 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 i
> 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
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 cal
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:
$(ObjectMaster).find('#FirstNam
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. any
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() {
});
Every one of your links will now call the same function because they
all share the s
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...
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 res
Hello,
This one has been solved before. Here is the link to the thread:
http://icanhaz.com/superfish
Enjoy!
Joel Birch.
Try using a base element:
sample one
sample two
jQuery needs a context for find() to work.
On Jan 1, 6:22 pm, jhm 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 there is more than one tag
> in the file, no
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" wrote:
> function closeMainPanels(callback){
> var panels = jQuery('div.m
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 wrote:
> Tha path is correct. I use FireBug to debug the javascript and I can
> see the jQuery script executing.
> I was executi
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 wrote:
> Hi,
> I have a WebPage on which i have an iframe inside which i open child pages .
> In one of the child p
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;
this
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 t
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 fie
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
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.
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, the
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( t.data('va
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 call
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 mere
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 wrote:
> If I read the jQuery source code
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 wrote:
> Hi Ricardo, thanks for your reply.
> I think I
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) );
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 in,
On Wed, Dec 31, 2008 at 10:30 PM, Nathan Maves wrote:
> 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 release, but should b
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){
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,
howeve
Hi,
i'm working on some bookmarklets / greasemonke scripts to
change some functionality in some websites.
i got some code like this
line 1 - aa
line 2 - bb
line 3 - cc
and i need to select all lines that contains "aa" and "cc"
does anybody have an idea how to do this?
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?
>
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 wrote:
> $('#myScan').click() does not have event binded to it.
> It means fire myScan's click events, think v
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 wrote:
> jQuery UI 1.6 release candidate 3 is out.
>
> Blog post:
> http://blog.jquery.com/2008/12/31/jquery-ui-16rc3-its-getting-really-close/
>
> D
Ok, this is a noob questions. I'm using Wordpress and have the
following code.
In the header I add:
The test javascript contains:
$(document).ready(function() {
$("a").click(function() {
alert("Hello world!");
});
});
function msg(txt) {
alert(txt);
}
In my test php file I have:
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({
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 PDF
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 issu
You should change 'move' to move (remove apostrophes).
On Jan 1, 9:01 am, "Alexandre Plennevaux"
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 another method i
>
>
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(){
$('#datascape').bind('mousemove'
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(),
fiel
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
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
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 th
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({
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 wrote:
>
> raphael js might be of help: raphaeljs.com
>
> On Dec 31, 9:39 a
58 matches
Mail list logo