[jQuery] Re: Slidedown menu works in FF and IE but not Chrome, Safari & Opera

2009-08-12 Thread Abi Fadeyi
any solutions for this? On Jul 28, 2:27 pm, healthyaddiction wrote: > I created a drop down menu (i think i followed a tutorial but it was > so long ago i can't remember) which works 100% perfectly in firefox > and internet explorer but not opera, safari andchrome.  I really want > to get it wor

[jQuery] my jquery form plugin not works

2009-08-12 Thread sunny
this is the code Edit Organization Department Category // wait for the DOM to be loaded $(document).ready(function() { // bind 'myForm' and provide a simple callback function $('#orgdepartmentcategory').ajaxForm(function() { //

[jQuery] jQuery Scrollable Plugin - Removing specific Carousel Panes

2009-08-12 Thread tfat
Hi, Can anyone who may have used this plugin at: http://flowplayer.org/tools/scrollable.html know how to go about actaully removing a carousel pane from the carousel group. As an example, if I have 5 carousel windows - how can I programmatically remove the carouosel window 2? Any help would b

[jQuery] How to hide pop is blur

2009-08-12 Thread David .Wu
There is a button control a div show or not, I want when you click other things then the div will disappear too exclude div itself and also the show button, how to do that? [html] . .. [JavaScript] $('#show').click(function(){ $('#popup').toggle(); });

[jQuery] Add / Remove Class help

2009-08-12 Thread Dave Maharaj :: WidePixels.com
I have 2 class options .bookmarked and .not Or My js looks like $(".bookmarked,.bookmarked not").click(function() { var url_id = $(this).attr('id').split('_'); var status = $(this).attr('class'); //alert(status);

[jQuery] Listmenu - tips for making it faster in IE

2009-08-12 Thread Anoop kumar V
I am using listmenu and it works fantastically well... except only on firefox. On IE 7 it is quite slow, the lag is very noticeable - the menu appears after about 6-7 seconds and the counts come much later after about 8-10 seconds. Since this is an intranet app, I need to ensure that IE 7 works ve

[jQuery] Re: Refresh DIV with full page refresh

2009-08-12 Thread bharani kumar
How the snippet work..there is simply html ...can u plz explain... On Thu, Aug 13, 2009 at 5:00 AM, Justin Volpato wrote: > > Assuming you are looking to simply reset div1 to its original > contents, you would save the contents of it to a variable on page load > and then load it into the div agai

[jQuery] Drag and Drop in Tabs

2009-08-12 Thread lionel28
Hi, I am using jQuery Tabs to make an ajax call for each tab when clicked. The ajax that displays is like inettuts. 3 or 4 columns of widgets that can be dragged and dropped. The problem that I am having, when I put the html of the result directly in the main page, it works as designed. When I

[jQuery] Drag and Drop in Tabs

2009-08-12 Thread lionel28
Hi, I am using jQuery Tabs to make an ajax call for each tab when clicked. The ajax that displays is like inettuts. 3 or 4 columns of widgets that can be dragged and dropped. The problem that I am having, when I put the html of the result directly in the main page, it works as designed. When I

[jQuery] Using jQuery Validation (validate), are there any events when a remote validation call is made

2009-08-12 Thread andypike
Hi all, I am preparing a form and would like to mimic the functionality of the Twitter sign up form here: https://twitter.com/signup Here are my basic requirements, is this possible with the jQuery validation plugin (http://docs.jquery.com/Plugins/Validation): 1. When an input has focus, displa

[jQuery] Different Transition FX for Autoplay vs. Pager

2009-08-12 Thread KevinGoldman
Hi All, I'm new to this group - hope I'm posting in the correct place. Is it possible to use one transition effect for the auto playing transitions, but use a different transition effect when using the pager? For example, I want the "fade" effect used as the default transition effect, but I wan

[jQuery] Re: Table sorter

2009-08-12 Thread Bob Woodard
On Aug 6, 8:56 am, mila wrote: >         $("#myTable").tablesorter(); >         $("#myTable").tablesorter();  // had to do that twice for column > sorting to work in both directions Thanks for mentioning this! I was going crazy seeing this behavior and couldn't figure it out.

[jQuery] Re: Can I select and/or ?

2009-08-12 Thread Richard D. Worth
Cool. Nice to see it supports colspan and rowspan well. That's fun stuff. - Richard On Wed, Aug 12, 2009 at 9:28 PM, rolfsf wrote: > > Thanks for the reply Richard! > This is a quick prototype, so for the moment I'm using the > ColumnManager plugin - > http://p.sohei.org/stuff/jquery/columnmanag

[jQuery] Re: Can I select and/or ?

2009-08-12 Thread rolfsf
Thanks for the reply Richard! This is a quick prototype, so for the moment I'm using the ColumnManager plugin - http://p.sohei.org/stuff/jquery/columnmanager/demo/demo.html It seems to simplify the process a bit, though it's not exactly what I'm looking for -rolfsf On Aug 12, 6:21 pm, "Richard

[jQuery] Re: Can I select and/or ?

2009-08-12 Thread Richard D. Worth
Unfortunately you have to get the columns by selecting the n-th cell in each row. If you're going to be doing lots of toggling, would be best to add a class to each, like col1, col2, col3; either in the generated html, or on document.ready, so you're not searching over and over, especially if it's

[jQuery] Script No Longer Work After JSON loads

2009-08-12 Thread SHiDi
Hi all, I'm trying to load a content and list of images together with pagination using jQuery live. Images and loads are successfully loaded but when I click on list of numbers to view each image, nothing happen. As for the images, all being listed but only one being display at the front end. H

[jQuery] Toggle Help

2009-08-12 Thread Dave Maharaj :: WidePixels.com
I want to build add a "favourites" type widget into my site. Just so a user can bookmark a post they like. So I have my standard paginated view with various posts and a star beside each post. Solid star = bookmarked, empty star = not bookmarked I have the save/delete bookmark working the star on

[jQuery] Re: jQueryUI datepicker, select multiple non-contiguous dates?

2009-08-12 Thread Sean McKenna
I needed this type of continguous and non-contiguous date selection and for this one case I went with the jQuery plugin Datepicker (jquery.datepick.js) instead of the jQueryUI Datepicker which I use elsewhere. It has a multiSelect option that works great. Hopefully this functionality may be inc

[jQuery] Re: Get vars from one event function to another

2009-08-12 Thread Jeffrey Kretz
If both events are bound to the same object, you can use the .data method: var obj = $('#element') .data('info',val) .bind('click',do_something) .bind('blur',something_else); function do_something(e) { var el = $(this); var info = el.data('info'); ... el.data('results',val2)

[jQuery] Re: Get vars from one event function to another

2009-08-12 Thread James
You'd have to set a variable with a scope that both functions can access. For your case, you probably just set a global variable. 'var' sets a variable. var my_val = ''; $('select').change(function() { $('select option:selected').each(function() { my_val = $(this).val()

[jQuery] Re: Get vars from one event function to another

2009-08-12 Thread Nic Hubbard
Thanks James for that tip. Still looking for how to pass a var from one event function to another... On Aug 12, 4:28 pm, James wrote: > I'm not sure I understand what you're trying to do with the change() > function... > You know you can get the value of a select just with val(). You don't > ha

[jQuery] Re: Problem with js redirect when using getJSON

2009-08-12 Thread James
Have you tried: window.location = 'http://site2.example.com/'; On Aug 12, 1:36 pm, Grimori wrote: > The problem only exists in firefox. Has anyone had this problem > before? > > Thanks. > > On Aug 12, 9:14 pm, Grimori wrote: > > > Hi everyone, > > > The problem I'm facing is as follows. I'm usi

[jQuery] Re: Problem with js redirect when using getJSON

2009-08-12 Thread Grimori
The problem only exists in firefox. Has anyone had this problem before? Thanks. On Aug 12, 9:14 pm, Grimori wrote: > Hi everyone, > > The problem I'm facing is as follows. I'm using a JSON call to check > some data before doing a JS redirect to a different page. The redirect > works but it's im

[jQuery] Re: Post variable array

2009-08-12 Thread James
I believe what you're trying to do is what serializeArray() function in jQuery already does: http://docs.jquery.com/Ajax/serializeArray $("button.save").click(function(){ var action = $(this).parent("form").attr("action"); var postThis = $(this).parent("form").serializeArray(); $.pos

[jQuery] Re: Refresh DIV with full page refresh

2009-08-12 Thread Justin Volpato
Assuming you are looking to simply reset div1 to its original contents, you would save the contents of it to a variable on page load and then load it into the div again when you 'refresh' it. $(function(){ var div1 = $("#div1").html(); $("#refreshButton").click(function(){

[jQuery] Re: Get vars from one event function to another

2009-08-12 Thread James
I'm not sure I understand what you're trying to do with the change() function... You know you can get the value of a select just with val(). You don't have to loop through each option to find which is selected. 1 2 var myVal = $("#mySelect").val(); // 1 or 2 On Aug 12, 1:18 pm, Nic Hu

[jQuery] Re: Post variable array

2009-08-12 Thread cz231
Yeah sure...here's the code: $("button.save").click(function(){ var action = $(this).parent("form").attr("action"); var i = 0; var size = $(this).siblings("input, select").size(); var nameArray = []; var valueArray =

[jQuery] Get vars from one event function to another

2009-08-12 Thread Nic Hubbard
I am confused about how to do this the right way. I have a change event which grabs the value of the selected option list and sets that as a var. But, I would like to add that to the end of my post string when I submit the form, how would I do this? $('select').change(function() { $('s

[jQuery] Re: Menu and sub Menu

2009-08-12 Thread bhu Boue vidya
i like superfish http://users.tpg.com.au/j_birch/plugins/superfish/ On Aug 12, 8:22 pm, bharani kumar wrote: > Hi All. > > Am looking very simple menu and sub menu jquery plugin , > > I looked some plugins , that are lot of JS include files are used , > > So i dont want lot js includes , > > th

[jQuery] Re: jquery password compare....URGENT HELP!!

2009-08-12 Thread Joel Polsky
Any one have an answer On Wed, Aug 12, 2009 at 9:49 AM, PictureMan wrote: > Can anyone see what's wrong with this: > The behavior that is happening is that it does validate and > compare..but DOESN'T CHECK FOR LENGTH. > > Password: {required: true, minlength: 6}, >re

[jQuery] Re: IE8 Selector Bug?

2009-08-12 Thread gentry
I must have something screwy with my page (it has a lot going on), as I'm unable to reproduce this on a test page. I'll dig some more and see if I can figure what's causing the issue before filing a bug report. On Aug 12, 2:28 pm, John Resig wrote: > gentry - > > Yes please! > > --John > > On We

[jQuery] Re: jQuery.ready after document has loaded

2009-08-12 Thread John Resig
We just landed some code in the latest nightly versions of jQuery to auto-detect if the page has already loaded. You can try it here: http://code.jquery.com/jquery-nightly.js --John On Wed, Aug 12, 2009 at 5:14 PM, ujamu wrote: > > I have developed a FF extension that loads a few JavaScript fi

[jQuery] Re: Post variable array

2009-08-12 Thread James
It's probably possible to not need to use it. But you're not revealing much code to us it's difficult to help. Can you show us how what you put in your variable 'postThis'? How do you create this? If you have postThis as a JSON object to begin with, you don't need the json2.js file. On Aug 12, 11

[jQuery] Re: Post variable array

2009-08-12 Thread cz231
And there's no way to do it without adding another js file? I ask because for this project is pretty important to keep the number of requests down. On Aug 12, 3:43 pm, James wrote: > The type you want is JSON (an object). > > Include this Javascript file here:http://www.json.org/json2.js > > Th

[jQuery] Re: IE8 Selector Bug?

2009-08-12 Thread John Resig
gentry - Yes please! --John On Wed, Aug 12, 2009 at 5:15 PM, gentry wrote: > > I got it to work by changing to this: > > $('#Row_1>td>input[type=text]').each(function() { >$(this).val(''); > }); > > John - Still want a bug filed for this? > > Thanks, > Shane > > On Aug 12, 11:50 am,

[jQuery] Re: IE8 Selector Bug?

2009-08-12 Thread gentry
I got it to work by changing to this: $('#Row_1>td>input[type=text]').each(function() { $(this).val(''); }); John - Still want a bug filed for this? Thanks, Shane On Aug 12, 11:50 am, John Resig wrote: > It looks similar to the one above, but different. I'll try and check in to > the

[jQuery] jQuery.ready after document has loaded

2009-08-12 Thread ujamu
I have developed a FF extension that loads a few JavaScript files (one of which is jQuery) and attaches them to any given page being viewed by the user. The loading of the js files can ether happen during or after the web page had been loaded into the browser. Obviously, once the js files get load

[jQuery] Re: Dropdown menu Issue

2009-08-12 Thread amuhlou
perhaps something like unbinding the hover would work http://docs.jquery.com/Events/unbind On Aug 12, 12:29 pm, Xenongasman wrote: > Any ideas? > > On Aug 8, 2:18 pm, Xenongasman wrote: > > > Yes it does work fine, except that the animations will repeat > > themselves if you move on and off ag

[jQuery] Re: Transforming input as it's typed

2009-08-12 Thread Richard D. Worth
jQuery UI widgets have built-in support for the metadata plugin. It part of the jQuery UI Core and "just works" :). That said, I haven't tested this with this plugin. - Richard On Wed, Aug 12, 2009 at 4:25 PM, Brett Ritter wrote: > > On Wed, Aug 12, 2009 at 4:14 PM, Richard D. Worth > wrote: > >

[jQuery] Re: live() or click

2009-08-12 Thread jlcox
Use "live" if you have to bind events to elements that don't necessarily exist at the completion of document.load, e.g., you're loading ajax content and want to bind to elements that are dynamically added to your document. If the elements exist at the completion of document.load, then just use "cl

[jQuery] Re: Post variable array

2009-08-12 Thread James
The type you want is JSON (an object). Include this Javascript file here: http://www.json.org/json2.js Then use the JSON.parse() function which will convert a String to a JSON object. The String has to have a format like a JSON object for it to work properly. var postData = JSON.parse(postThis)

[jQuery] Re: html in xml tag

2009-08-12 Thread Seth
no and i did not see it on jquery docs .. i will search on it now :) On Aug 12, 11:18 pm, Michael Lawson wrote: > Just leave the html in there as it is > > have you tried the contents() function yet? > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone:  1-276-206-

[jQuery] Re: Transforming input as it's typed

2009-08-12 Thread Brett Ritter
On Wed, Aug 12, 2009 at 4:14 PM, Richard D. Worth wrote: > You might take a look at the mask plugin by Andrew Powell in the jQuery UI > Labs > http://wiki.jqueryui.com/mask Indeed I might! This looks very interesting. The only feature that calls to me that I don't see supported is metadata in t

[jQuery] Re: html in xml tag

2009-08-12 Thread Michael Lawson
Just leave the html in there as it is have you tried the contents() function yet? cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Whether one believes in a religion or not, and whether one believes in rebirth or not, there

[jQuery] Re: Transforming input as it's typed

2009-08-12 Thread Richard D. Worth
You might take a look at the mask plugin by Andrew Powell in the jQuery UI Labs http://wiki.jqueryui.com/mask Demo: http://jquery-ui.googlecode.com/svn/branches/labs/mask/demos/mask/default.html Source: http://jquery-ui.googlecode.com/svn/branches/labs/mask/ui/ui.m

[jQuery] Re: html in xml tag

2009-08-12 Thread Seth
yes basicaly i want to read the content of description but to keep the formatting elements from htmletc On Aug 12, 11:03 pm, Michael Lawson wrote: > Scratch that, my bad.  On closer look its not RSS :)  (its the first thing > that comes to mind when i see followed by ) > > My previous quest

[jQuery] Re: html in xml tag

2009-08-12 Thread Seth
sorry you are right :) not knowing everything is not very helpful, well i'm playing a bit with jquery and i made 1 page and 1 file with xml data .. the xml you have seen it above now i try to read the data from xml and insert it in to the html page, i will have a name witch will be the title of th

[jQuery] Transforming input as it's typed

2009-08-12 Thread Brett Ritter
My workplace has a lot of people doing manual entry. I'm looking to provide some friendly automatic formatting of data as they type it. I have working code (thus far) but I want to ensure I'm doing things in a sane way (there's a surprising amount you can do insanely that still works :) ). Here

[jQuery] Re: html in xml tag

2009-08-12 Thread Michael Lawson
Scratch that, my bad. On closer look its not RSS :) (its the first thing that comes to mind when i see followed by ) My previous question still stands though, are you just wanting to read the contents of the description field? cheers Michael Lawson Development Lead, Global Solutions, ibm.com

[jQuery] Re: html in xml tag

2009-08-12 Thread Michael Lawson
It looks like you're using an RSS feed given the xml format, so you probably want to use the CDATA sections anyways so that RSS readers don't get confused by the HTML tags. Now, maybe I just don't understand exactly what you're trying to accomplish? Are you saying you want to just read the conte

[jQuery] Re: html in xml tag

2009-08-12 Thread Seth
Thank you Michael for your reply however wrapping the data intro wrote: > Try wrapping your html text in a CDATA section so that the xml parser > doesn't strip them out > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone:  1-276-206-8393 > E-mail:  mjlaw...@us.ibm.

[jQuery] Re: Post variable array

2009-08-12 Thread cz231
I think I know the problem...My postThis variable ends up being just one big string. How do I convert it to the correct type? (I'm not even sure what type is correct) On Aug 12, 2:00 pm, James wrote: > I don't see the problem... > > Something like this should work: > > var action = 'somepage.php

[jQuery] Re: JSON how to transform an object into an array?

2009-08-12 Thread Stephan Beal
On Aug 12, 8:22 pm, "Michael Geary" wrote: > > on the server side, i personally recommend using the json2.js > > API (i.e. JSON.parse() and JSON.stringify()) over > > $.getJSON(). getJSON uses an HTTP GET, which is very rude > > vis-a-vis Apache logs (because all your JSON gets logged > > there i

[jQuery] Can I select and/or ?

2009-08-12 Thread rolfsf
I've got a table in which I've set up some column groups. ... Ideally, I'd like to be able to toggle the visibility of the - can I select them as cols in jquery, or do I need to get at them via the rows? Thanks!

[jQuery] Re: FadeOut - Pause - FadeIn (Force jQuery to wait for fade event to complete before continuing)

2009-08-12 Thread webhead81
Cheesy or not, that's a really clever solution, and I like it! Unfortunately, since I'm not acting on the same element, but rather, a different element that changes over time, I modified your (excellently cheesy) example: // The below function repeatedly gets called, to do the rotating function

[jQuery] Re: Post variable array

2009-08-12 Thread James
I don't see the problem... Something like this should work: var action = 'somepage.php'; var postThis = {Name:"Jimmy", Username:"Something", Password:"something", Email:"someth...@someplace.com"}; $.post(action, postThis, function(data) { alert('done'); }); Otherwise, post your real code fo

[jQuery] Re: AJAX and JSON

2009-08-12 Thread Joey Derrico
Actually I am sending data to the server from a form so post is needed. But I do agree that normally get is teh better method if you don't need to send data to a server. Joey On Wed, Aug 12, 2009 at 2:27 PM, Michael Geary wrote: > > > > From: Michael Geary > > > Just use $.getJSON() or $.ajax()

[jQuery] Re: Post variable array

2009-08-12 Thread cz231
Oops. I'm sorry. action is the url to be posted to, and postThis is equal to: Name: "Jimmy", Username: "Something", Password: "something", Email: "someth...@someplace.com" On Aug 12, 12:51 pm, Jörn Zaefferer wrote: > What values do the variables "action"  and postThis contain? You > describe th

[jQuery] Re: IE8 Selector Bug?

2009-08-12 Thread John Resig
It looks similar to the one above, but different. I'll try and check in to them both. gentry - can you file a bug for the issue you found, preferably with a full test case? --John On Wed, Aug 12, 2009 at 2:21 PM, Jeffrey Kretz wrote: > > My guess is its related to a problem I ran into with the

[jQuery] Re: Bind Validate to button click event

2009-08-12 Thread Rockinelle
That did the trick, thank you. -Eric On Aug 12, 11:31 am, Jörn Zaefferer wrote: > Try this: > >  $('#searchButton').click(function(){ >           if ($('#testBlog').valid()) >                formDoAjaxSubmit(); >        }); > > Jörn > > > > On Wed, Aug 12, 2009 at 8:04 PM, Rockinelle wrote: > >

[jQuery] Re: Bind Validate to button click event

2009-08-12 Thread Jörn Zaefferer
Try this: $('#searchButton').click(function(){ if ($('#testBlog').valid()) formDoAjaxSubmit(); }); Jörn On Wed, Aug 12, 2009 at 8:04 PM, Rockinelle wrote: > > I am walking into an existing form that uses a custom ajax request to > display search results at the b

[jQuery] Re: IE8 Selector Bug?

2009-08-12 Thread amuhlou
Not confirming or disconfirming that it is a bug, but using the attr() method worked for me $('#Row_1 input[type=text]').each(function() { $(this).attr('value',''); }); On Aug 12, 1:25 pm, gentry wrote: > Anybody know why this doesn't work in IE8 with jQuery version 1.2.6? > It works i

[jQuery] Re: AJAX and JSON

2009-08-12 Thread Michael Geary
> > From: Michael Geary > > Just use $.getJSON() or $.ajax() with the 'json' or 'jsonp' > > dataType as needed. > From: Stephan Beal > Speaking of: i recommend AGAINST using getJSON() because it > muddles up my Apache logs horribly (the JSON gets encoded in > the request, which gets logged as

[jQuery] Re: JSON how to transform an object into an array?

2009-08-12 Thread Michael Geary
> > From: Mark > > $event = json_encode($super_array); > From: Stephan Beal > How about simply: > $event = '['.$event.']'; If $event contains the JSON encoded object from the previous message, then this code would not convert that object into a JSON array. It would simply create an array of one

[jQuery] Re: IE8 Selector Bug?

2009-08-12 Thread Jeffrey Kretz
My guess is its related to a problem I ran into with the Sizzle child selectors in 1.3.x I opened a ticket about a month ago http://dev.jquery.com/ticket/4917 But it hasn't been reviewed yet. JK -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] O

[jQuery] Trigger validate on button click event

2009-08-12 Thread Rockinelle
I am trying to trigger validation on a form that is using custom ajax request that is processed when a button is clicked. I have scoured the docs and I'm not clear how I can trigger validation on this click. The form is using basic validation at the moment. $(document).ready(function(){ $

[jQuery] Hooking up click() callbacks in IE with an 'each' loop

2009-08-12 Thread Greg Johnston
Hi all, I've been working on a project using jQuery that runs just fine in FF, Safari, Chrome, Opera...you know the deal. IE is patchy at best. One of my central problems is this bit of code: $(".item").each(function() { $(this).find(".openlink").click(bodyCallback); }); As you can ima

[jQuery] Problem with js redirect when using getJSON

2009-08-12 Thread Grimori
Hi everyone, The problem I'm facing is as follows. I'm using a JSON call to check some data before doing a JS redirect to a different page. The redirect works but it's impossible to get back to the initial page using the browser's back button. The initial location is not being stored in the brows

[jQuery] jCarousel - Accordian clash

2009-08-12 Thread andy marshall
Hi there. Hoping this is the right place to be asking this. I'm developing a website using an accordian and a carousel (http:// sorgalla.com/projects/jcarousel/). The accordian has 2-4 items in it, one of which is a vertically carouselled list of comments. If I've set the accordian to start on a

[jQuery] IE8 Selector Bug?

2009-08-12 Thread gentry
Anybody know why this doesn't work in IE8 with jQuery version 1.2.6? It works in the latest jQuery version but I can't move to it yet because of some other issues. I'm trying to clear all the textboxes in a table row but only the 1st textbox gets cleared in IE8. $('#Row_1 input[type=text]').each(

[jQuery] Bind Validate to button click event

2009-08-12 Thread Rockinelle
I am walking into an existing form that uses a custom ajax request to display search results at the button of the page. This is triggered by clicking a form button. I want to trigger the validation on this same click event rather than a submit event. I am just using basic validation at the moment.

[jQuery] Re: FadeOut - Pause - FadeIn (Force jQuery to wait for fade event to complete before continuing)

2009-08-12 Thread Karl Swedberg
If you're acting on the same element, you can just chain the effects: jQuery(t).fadeOut(2000).fadeIn(1000); That should fade out the element(s) represented by variable t and then fade them back in. If you need to pause in between the fadeOut and the fadeIn, a cheesy but effective way to do

[jQuery] Re: JSON how to transform an object into an array?

2009-08-12 Thread Michael Geary
You don't need to eval the JSON data. Let jQuery do it for you. Simply change $.get to $.getJSON. Or, if you prefer, use $.ajax with dataType:'json' for more flexibility (such as the ability to have an error callback). Regarding the array vs. object coming from the server, that would be a questio

[jQuery] Re: Post variable array

2009-08-12 Thread Jörn Zaefferer
What values do the variables "action" and postThis contain? You describe them as "actions", isn't telling me anything. Jörn On Wed, Aug 12, 2009 at 7:40 PM, cz231 wrote: > > Hi, > > I'm using AJAX to submit a form. I'm using the POST method. Example: > > $.post(action, postThis); > > Both actio

[jQuery] Re: Error when trying to download jquery

2009-08-12 Thread Brett Ritter
On Wed, Aug 12, 2009 at 1:43 PM, mrbutler wrote: > Sorry, shouldn't have said 'run'.  After I save jquery-1.3.2.min.js, I > right click on it, select open, > then the error pops up. That's running :) Jquery is a javascript library, meaning that it's a plain text file that can't be executed. If i

[jQuery] Re: form plugin not working

2009-08-12 Thread Scott Grizzard
- Scott Grizzard sc...@scottgrizzard.com http://www.scottgrizzard.com/ -Original Message- From: sunny Date: Wed, 12 Aug 2009 07:04:01 To: jQuery (English) Subject: [jQuery] form plugin not working New Organization Building Floor //wait for the DOM to be loaded $(document).ready(

[jQuery] Re: Old cookie data sent in AJAX request?

2009-08-12 Thread Stephan Beal
On Aug 12, 5:41 pm, "Michael Price" wrote: > If, however, I submit an AJAX post request to add a product to the shopping > cart on this site, it doesn't work. Investigating the AJAX behind this shows > that two copies of every cookie named above is being sent - the first copies > have older and n

[jQuery] Re: Error when trying to download jquery

2009-08-12 Thread mrbutler
Sorry, shouldn't have said 'run'. After I save jquery-1.3.2.min.js, I right click on it, select open, then the error pops up. On Aug 12, 10:23 am, Liam Potter wrote: > you don't open and run jquery...what are you attempting here? > > > > mrbutler wrote: > > IE7  version 7.0.5730.11 > > > Open

[jQuery] Post variable array

2009-08-12 Thread cz231
Hi, I'm using AJAX to submit a form. I'm using the POST method. Example: $.post(action, postThis); Both action and postThis are actions. Action is the URL and postThis is the data to be submitted. Right now, this isn't working. I know I can pass the action variable because that has always been

[jQuery] Re: Citation for jQuery

2009-08-12 Thread Jörn Zaefferer
Hi Nathaniel, what exactly do you want to cite? Its not clear from your question. Regards Jörn On Tue, Aug 11, 2009 at 9:15 PM, Nathaniel wrote: > > Hello Devs: > > I'm preparing an academic paper in which I want to cite jQuery and > jQuery UI.  Is there a specific publication you would recomme

[jQuery] Re: Dropdown menu Issue

2009-08-12 Thread Xenongasman
Any ideas? On Aug 8, 2:18 pm, Xenongasman wrote: > Yes it does work fine, except that the animations will repeat > themselves if you move on and off again quickly. > So to remedy that I changed the script to: > >         $(function(){ >                 $('#menu li').hover( >             functio

[jQuery] Re: html in xml tag

2009-08-12 Thread Michael Lawson
Try wrapping your html text in a CDATA section so that the xml parser doesn't strip them out cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Whether one believes in a religion or not, and whether one believes in rebirth or no

[jQuery] Old cookie data sent in AJAX request?

2009-08-12 Thread Michael Price
Hi all, Having a bit of a strange problem and I'm not altogether sure whether it's jQuery related or something to do with the awful, awful code it's part of, but I thought I'd post up here to see if I could get some help figuring that out J I've got a webpage which has three cookies on it, car

[jQuery] html in xml tag

2009-08-12 Thread Seth
Hi guys, I have an XML file like this Lorem ipsum Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut ali

[jQuery] form plugin not working

2009-08-12 Thread sunny
New Organization Building Floor //wait for the DOM to be loaded $(document).ready(function() { // bind 'myForm' and provide a simple callback function $('#orgbuildfloor').ajaxForm(function() { alert("Organization Building Floor saved!"); // document.getElementById('o

[jQuery] Bind window events to iframes problem/bug

2009-08-12 Thread Henrik Tengelin
Hi! First post here and I am sorry if it's a bit long... I am using jQuery 1.3.2 and for some reason I am trying to add event listeners to windows/documents in iframes from the parent window and I have run into some problems... Does anyone know why it's possible to bind a listener to the click ev

[jQuery] Re: How to POST using jQuery?

2009-08-12 Thread Mark Smith
Thanks for the ideas. Looks like it's not supported, which might be a symptom of bad design on my part. I just have lots of different actions, having a form for each one seemed messy. Maybe a suitable workaround would be to have a hidden form on the page, attach input elements to it as I need th

[jQuery] Re: add class and remove class from perspective element

2009-08-12 Thread Liam Potter
$(function(){ $("img.images").click(function(){ $("img.images").css({border:'none'}); $(this).css({border:'1px solid #f00'}); }); }); runrunforest wrote: Hi, I have 3 image, in turn called img1, img2, img3. I need a code snippet that will

[jQuery] Re: Error when trying to download jquery

2009-08-12 Thread Liam Potter
you don't open and run jquery...what are you attempting here? mrbutler wrote: IE7 version 7.0.5730.11 Open and run jquery-1.3.2.min.js Error pops up: --- Windows Script Host --- Script: C:\Documents and Settings\it.mjb\Local Settings\Tempor

[jQuery] Re: Error when trying to download jquery

2009-08-12 Thread mrbutler
IE7 version 7.0.5730.11 Open and run jquery-1.3.2.min.js Error pops up: --- Windows Script Host --- Script: C:\Documents and Settings\it.mjb\Local Settings\Temporary Internet Files\Content.IE5\F59KSW92\jquery-1.3.2.min[1].js Line: 12 Char:

[jQuery] add class and remove class from perspective element

2009-08-12 Thread runrunforest
Hi, I have 3 image, in turn called img1, img2, img3. I need a code snippet that will add a border to the image when it is clicked, and if I click the other image, the border will disappear, the newly clicked image will have a border. For short, only image has border at a time and only the image

[jQuery] Re: validation - multiple errorPlacements

2009-08-12 Thread nouky
I did not understand this Jörn Zaefferer wrote: > > > seedy schrieb: >> Is it possible to use errorPlacement with the validation plugin to have a >> different placement for each field validated? >> >> ie. >> $('#testForm').validate({ >> rules:{ >> firstname:{required:true}, >

[jQuery] Re: How to POST using jQuery?

2009-08-12 Thread Liam Potter
He's not using a form at all in this, I don't know why. Michael Price wrote: Is there any particular reason you HAVE to use Javascript to handle the form submission? If you want to redirect the user to another page after the form submission you may as well submit the form the normal way and use

[jQuery] Re: How to POST using jQuery?

2009-08-12 Thread Michael Price
Is there any particular reason you HAVE to use Javascript to handle the form submission? If you want to redirect the user to another page after the form submission you may as well submit the form the normal way and use a server side redirect to send them on to the next page. Failing that, you cou

[jQuery] Re: How to POST using jQuery?

2009-08-12 Thread Mark Smith
But then the page that gets served to the user with have no parameters posted to it. On Aug 12, 3:50 pm, Liam Potter wrote: > well, on the post callback, forward the browser to the page? > > window.location="/page.php" > > Mark Smith wrote: > > Hi, > > > I know you can use jquery to post data fr

[jQuery] Re: How to POST using jQuery?

2009-08-12 Thread Liam Potter
well, on the post callback, forward the browser to the page? window.location="/page.php" Mark Smith wrote: Hi, I know you can use jquery to post data from a json object ajaxly. However I want to redirect the browser to the new page (like submitting a form) only passing the values explicitly

[jQuery] How to POST using jQuery?

2009-08-12 Thread Mark Smith
Hi, I know you can use jquery to post data from a json object ajaxly. However I want to redirect the browser to the new page (like submitting a form) only passing the values explicitly from javascript rather than actually submitting a form. Is this possible using jquery? Thanks

[jQuery] Re: toggle and logic confusion

2009-08-12 Thread Anoop kumar V
Where are you capturing the click event? You may want to do something like this: $(function(){ $('').click(function(event){ $('.hideme').hide(); $(this).find('a.showme').show() } } If you post your actual html and your click event code if you have one, then I may be able to help you

[jQuery] Re: Malsup FormPlugin - doesn't Ajax!

2009-08-12 Thread Anxiro
No, I also tried that. I've just found a solution to the problem; http://freecss.info/free-css-tutorials/jquery-ajax-contact-form-in-facebox/ It shows how to fix/mod the FaceBox to get it to work with the Form Plugin. Thanks for your suggestion, Liam. I appreciate! On 12 aug, 15:54, Liam Potter

[jQuery] Re: How to access the member of $.each() when Key has space?

2009-08-12 Thread RobG
On Aug 12, 2:23 pm, Ming wrote: [...] > For example: > > $.each(eval(response),function(key, item) { >     alert(item.Account); //Work >     alert(item.Amount); //Work >     alert(item.Reference Date); //Fail > > }); > > I have try > alert(item('Reference Date')); > alert(item['Reference Date']

  1   2   >