[jQuery] Re: Cross-site ajax file uploading

2009-06-14 Thread waseem sabjee
A possible issue might be a security certificate. On Sat, Jun 13, 2009 at 1:57 PM, Fall-From-Grace vizakenj...@gmail.comwrote: I'm using http://valums.com/ajax-upload/ plugin to upload a file to another domain It works fine, but i cannot get domain's response. Plugin makes an hidden iframe

[jQuery] Re: anonymous function and code reusing

2009-06-14 Thread waseem sabjee
function reuse(param) { $(#moon).click(function(){ if(param == 1) { alert(do something); } else { alert(Access Denied); } }); } On Sat, Jun 13, 2009 at 6:53 PM, jwc droghe.digit...@gmail.com wrote: Hi guys, apologize for posting again the same topic. I

[jQuery] jqGrid: jQuery(#list).jqGrid is not a function

2009-06-14 Thread efet
I did not make any changes with directories or codes. I thought I must be missing an include but I have been looking into my codes for hours already but still cant find what causes the error. Please advise! http://refinethetaste.com/html/cp/orders.asp

[jQuery] Re: anonymous function and code reusing

2009-06-14 Thread Mirko Galassi
$(document).ready(function(){ $("#moon").click(function() { myFunction("param"); }); $("#earth").click(function() { myFunction("param2"); }); }); It works perfectly! Thanks MorningZ ha scritto: "I thought it should have worked but it doesn't" You cannot pass params like that in a

[jQuery] Re: anonymous function and code reusing

2009-06-14 Thread Mirko Galassi
Interesting someone has suggested it $("#moon").click(myFunction("param")); $("#earth").click(myFunction("param2")); it involves less code, and it is probably faster because doesn't have condition statements that need to be executed. Do you agree? waseem sabjee ha scritto: function

[jQuery] Superfish pathClass

2009-06-14 Thread Touran
I really need a way to change the pathclass based on selecting a item in the menu without going back to the server. Any ideas. Thanks

[jQuery] Re: Hide/show divs based on form parameters

2009-06-14 Thread Mark
Ah, I actually came across this page, but assumed it was built into jQuery and didn't notice it was a plug-in. It works now, thanks for making me read it properly :P On Jun 14, 3:37 am, Nitin Sawant nitin.jays...@gmail.com wrote: http://www.mathias-bank.de/2006/10/28/jquery-plugin-geturlparam/

[jQuery] Re: Autocomplete - Holding down key

2009-06-14 Thread Rune
BTW this seems to be a problem with Firefox (not IE7 at least). On Jun 14, 1:44 am, Rune a...@rdfined.dk wrote: Hi there I have implemented the very nice autocomplete plugin. Had to fight a couple of hours though because the thing just wouldn't show anything when I used an external data

[jQuery] Re: DivMenu

2009-06-14 Thread Glazz
Ok thanks for your sugestions, i'm going to implement those when i get back home. Thanks again. On Jun 14, 5:51 am, Charlie charlie...@gmail.com wrote: there are several reasons this isn't working , the main reason  is everything you click on is in the body,including the div you want to stay

[jQuery] Re: Autocomplete - Holding down key

2009-06-14 Thread waseem sabjee
hmm i'm not too clued up on the auto complete plug in. but i have made my own autocomplete script usualy i would create a global variable. here's an example var keylog = 0; // on my key press event i would log the key like so keylog = 1; // on my key up i would set it back to 0 lkeylog = 0;

[jQuery] how to catch the value of div container

2009-06-14 Thread Antonio
Hi All, In HTML code: div id=DIV_01 ul lia href=#list_01/a ul lia href=#LIST_01_00/a/li . /ul /li /ul /div When I click in list element (ese. LIST_01_00) In jQuery code, I

[jQuery] Re: Regular Expressions and jQuery

2009-06-14 Thread MorningZ
I think you're looking for a test() method instead! match() is used to extract substrings from a given string and will still evaluate to true in an if statement that's not the issue On Jun 13, 11:44 pm, Orkan ork...@gmail.com wrote: PS. the correct phone number for your regex is, for

[jQuery] Re: how to catch the value of div container

2009-06-14 Thread Antonio
Hi all, I try to rephrase... I want to get the value from the id attribute from a parent element I try in this way... $('div').parent().attr(id) but it returns only blank value although the html code is: div id=DIV_01 any ideas? thanks Antonio On Jun 14, 1:35 pm, Antonio

[jQuery] Need help cuz I don't get 'this'

2009-06-14 Thread Logictrap
I need to get the src attribute of an img element that is a sub- element of 'this' but I can't figure out how to traverse 'this' to get there. The contents of 'this' are: div id=test1img src=images/beach1.jpg width=200 height=200 alt=beach //div this works: $('#output').html(ID: +

[jQuery] Re: Need help cuz I don't get 'this'

2009-06-14 Thread MorningZ
Can you show more code around the .html statement? this will help others better help you understand what this is in that context On Jun 14, 10:02 am, Logictrap dlyck...@gmail.com wrote: I need to get the src attribute of an img element that is a sub- element of 'this' but I can't figure out

[jQuery] Re: Need help cuz I don't get 'this'

2009-06-14 Thread Erik Beeson
Like MorningZ said, more info would be helpful, but this should work: $('#output').html('SRC: ' + $(this).children('img').attr('src')); --Erik On Sun, Jun 14, 2009 at 7:02 AM, Logictrap dlyck...@gmail.com wrote: I need to get the src attribute of an img element that is a sub- element of

[jQuery] [validate] Form submission problem

2009-06-14 Thread rigo
Hi, I've got a form with a button-element as submit-button. form id=newadForm name=newadForm action=form.php method=post ... button type=button class=form-button name=submitSend/button /form At the top of the page I've got this: jQuery.noConflict(); jQuery(document).ready(function($){

[jQuery] Re: Form submission problem

2009-06-14 Thread rigo
Got it! The name of the button was the problem. It shouldn't be submit, I use submit-button now and it works fine. cu rigo

[jQuery] Re: Autocomplete - Holding down key

2009-06-14 Thread Jörn Zaefferer
You get that for free depending on the event you use. The jQuery UI autocomplete has this: // only opera doesn't trigger keydown multiple times while pressed, others don't work with keypress at all $input.bind(($.browser.opera ? keypress : keydown) + .autocomplete, function(event) { [...] Jörn

[jQuery] Re: Cross-site ajax file uploading

2009-06-14 Thread Harry Bailey
Hi Fall From Grace, I have done something similar in the past, and to send the response I use code along the lines of: html head script type=text/javascript function init() { window.top.function_defined_in_parent_window_javascript({ key1:'value1', key2:'value2', etc:'etc'

[jQuery] IE8, $.load and relative URLs

2009-06-14 Thread Schoenobates
Not sure if this is common knowledge or not, but, when developing under FF, I was using a relative URL to perform ajax loads: pre $('container').load('images?pidx=1'); /pre When I moved to IE8, found that this didn't work and had to use an absolute: pre

[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] How to show the methods and attributes of any jQuery object

2009-06-14 Thread Antonio
Hi folks, In python we can use dir() to show the methods and attributes of any python object. Since it is possible to extend the jQuery object itself is there a similar method in jQuery to show the methods and attributes of a particular object? thanks, Antonio

[jQuery] Enable Submit button

2009-06-14 Thread bharani kumar
Hi All , This is my form ,When user click the *YES and checked the check *box then only i want to enable the Prepay by Card button , For this situation , what is the jquery snippet , i have tried somthing like $(#SubmitCard).attr(disabled, disabled); But the thing is , i want to put the AND

[jQuery] Re: Trouble constructing selector string.

2009-06-14 Thread Ricardo
Doesn't make any sense! Are you sure the strings are equal? Can you put a working sample of this issue online (jsbin.com)? There's something missing. On Jun 12, 10:09 am, rinse_my_phonebook hugo.lee...@gmail.com wrote: Hi there, I'm having a bad time trying to work out what is wrong with my

[jQuery] Re: ajax error handling

2009-06-14 Thread MorningZ
I also deal with JSON almost exclusively (albiet in .NET, but getting the server side error would be the same) since $.getJSON doesn't handle error events, I wrote this simple wrapper around the $.ajax function GetAjax = function(url, params, success, error) { var CallParams = {};

[jQuery] RSS Manager - Dynamic variables

2009-06-14 Thread Felipe
Hey guys. I'm building up a RSS reader. In this app, the user will have the option to add and remove urls in a list. What I need is to create a new variable, everytime the user submit the form with the url. The varible must contain the url. Can anybody help me? Thanks for your time.

[jQuery] [validate] Question

2009-06-14 Thread Alexander Gornik
Hi there. Is there an option if i want required fields to be highligted on blur? I think it's an obvious requirenment: when user is tabbing through a large form it's good to validate / highlight required fields on blur, even if the form wasn't submitted yet. Can i archive such an behavior?

[jQuery] Re: Question

2009-06-14 Thread MorningZ
You may want to make your post subjects actually mean something rather than the vague Question so that the right person sees it to help you... for example hightlight required fields in validate On Jun 14, 1:45 pm, Alexander Gornik agor...@gmail.com wrote: Hi there. Is there an option if

[jQuery] Re: DivMenu

2009-06-14 Thread Glazz
Hi, its working almost like i want, know it the divs stay's opened if i open another one, i tryed using find(yourDivClass:visible).hide(); without success. Here's a screenshot of what is happening: http://i40.tinypic.com/14916wg.png The javascript that i edited: /**

[jQuery] Re: ajax error handling

2009-06-14 Thread Peter Marino
Hi, I'll just followup on my own statement.. I found the solution I was looking for. when calling $.ajax it has an event called error you can act on. error: function( XMLHttpRequest, textStatus, errorThrown ) the XMLHttpRequest has a method called responseText which is the actually text that the

[jQuery] Re: how to catch the value of div container

2009-06-14 Thread Paul Mills
Hi, Try this: $(this).parents('div').attr('id') Paul On Jun 14, 2:47 pm, Antonio antonio.pie...@gmail.com wrote: Hi all, I try to rephrase... I want to get the value from the id attribute from a parent element I try in this way... $('div').parent().attr(id) but it returns only blank

[jQuery] Re: Autocomplete - Holding down key

2009-06-14 Thread Rune
So is the answer, that this is a jQuery issue?

[jQuery] Re: Trouble constructing selector string.

2009-06-14 Thread Karl Swedberg
Maybe $(this).attr('class') != 'Value' ? Sorry, what I meant was that maybe $(this).attr('class') does not equal Value. And that I wouldn't use $(this).attr('class') ... --Karl On Jun 13, 2009, at 8:53 PM, Karl Swedberg wrote: Maybe $(this).attr('class') != 'Value' ? I wouldn't

[jQuery] Re: anonymous function and code reusing

2009-06-14 Thread Kelly
Mirko, You were missing a small but significant point. The function you call must return a function. $('#moon').click(myFunction('param')); $('#earth').click(myFunction('param2')); function myFunction(param) { return function() { alert(param); }; } I suggest studying this pattern closely;

[jQuery] Re: DivMenu

2009-06-14 Thread Glazz
I figured that out, just needed to put this: $(.divmenu-dados).hide(); in here $(element).click(function(){ $(.divmenu-dados).hide(); $('#' + divDados).show(); return false; }); On 14 Jun, 19:30, Glazz brunofgas...@live.com.pt wrote: Hi, its working almost like i want, know it the divs

[jQuery] Re: anonymous function and code reusing

2009-06-14 Thread Mirko
Thanks Kelly for the suggestion But using a return param in a function doesn't work completely because the function has a problem in another case that I didn't mentioned before. I have already solve with this sintax that allow me to use the same function once.

[jQuery] Re: Autocomplete - Holding down key

2009-06-14 Thread waseem sabjee
there should be a work around ok this is untested but this should give you a starting point. might be a messy workaround. this may not be a solution but a step to identifying one. try something like this var keyhit = new Array(); // hold an array of keyvalue var lastkeyhit = new Array(); //

[jQuery] Re: vertically scroll text

2009-06-14 Thread amuhlou
You could probably use SerialScroll: http://demos.flesler.com/jquery/serialScroll/ if you scroll down to the bottom of that page, it has an example of a vertically scrolling div. On Jun 12, 4:39 pm, -Dman100- dwaynee...@gmail.com wrote: Is there a jquery plugin that can scroll text in a div

[jQuery] Re: Autocomplete - Holding down key

2009-06-14 Thread Jörn Zaefferer
No, that isn't a jQuery issue. You're most likely doing it wrong, post some code! Jörn On Sun, Jun 14, 2009 at 9:27 PM, Runea...@rdfined.dk wrote: So is the answer, that this is a jQuery issue?

[jQuery] When using append() , appended content is not treated by jquery

2009-06-14 Thread Eric-Sebastien Lachance
Sorry if the subject is somewhat hard to understand, but if I had the proper terminology, I probably would have found an answer through google. So here's the problem. Within my HTML I have the following div: div id=InvoiceList p class=triggera href=#Test

[jQuery] Re: When using append() , appended content is not treated by jquery

2009-06-14 Thread Charlie
problem is events won't trigger on new element introduced to DOM after document ready has fired unless you use live() or livequery(), these allow to bind to elements before they enter DOM read up on it, will be an easy fix Eric-Sebastien Lachance wrote: Sorry if the subject is somewhat

[jQuery] switching two table rows

2009-06-14 Thread theprodigy
I am creating an admin section for a site I'm building. One of the options is to change the sort order of a list of items. I have all the backend (PHP) code running properly, but having a little issue with the jQuery. When the user clicks the Move Up link, how can I switch the table row

[jQuery] get email and send email?

2009-06-14 Thread inkexit
Looking for a good tutorial on how to use jQuery to read email sent to my site's email address, and how to send email through my site's email. Basically, how to construct the server email portion of Twitter. Thanks all.

[jQuery] Re: When using append() , appended content is not treated by jquery

2009-06-14 Thread Eric-Sebastien Lachance
Thanks a lot Charlie, livequery() is precisely what I needed, it works great this way! Cheers, Eric. On Jun 14, 7:22 pm, Charlie charlie...@gmail.com wrote: problem is events won't trigger on new element introduced to DOM after document ready has fired  unless you use live()  or livequery(),

[jQuery] Ajax Edit in Place

2009-06-14 Thread Jennifer Roberts
Hi everyone! What I'd like to build is a page which displays a list of people. Next to each person is an edit button. Clicking the edit button will replace the person's information with an edit form where the user can change information about the person. The edit form has a save and cancel

[jQuery] jQuery xml2json problems when siblings of the same tagname only have a textNode as a child

2009-06-14 Thread mwolfe
I found this plugin for converting xml to json which I need for my application at least temporarily until the server can get me JSON directly. The jQuery Plugin to convert xml to json works pretty good it seems but i've found a bug. I have a structure that looks like something this: EventLog

[jQuery] Re: switching two table rows

2009-06-14 Thread Karl Swedberg
Assuming that the Move Up link is within the table row and that the link has a class of moveup, you could do something like this: $('a.moveup').click(function() { var $thisRow = $(this).parents('tr:first'); $thisRow.insertBefore( $thisRow.prev() ); return false; }); --Karl

[jQuery] Re: switching two table rows

2009-06-14 Thread Paul Witschger
Thank you, Karl!! Works excellent. Exactly what I needed! Karl Swedberg wrote: Assuming that the Move Up link is within the table row and that the link has a class of moveup, you could do something like this: $('a.moveup').click(function() { var $thisRow = $(this).parents('tr:first');

[jQuery] Issue with Cycle Plugin

2009-06-14 Thread vintom
I am not great with jquery (yet), but I have used a few plugins with me newest site. I am using the cycle plugin and it works great, but I am having one issue. When I load the page initially (http://vintom.com/ gfc) it stacks the images on top of each other until the plugin kicks in (which is

[jQuery] Re: switching two table rows

2009-06-14 Thread John Bill
good job! 2009/6/15 Paul Witschger tigerseyet...@gmail.com Thank you, Karl!! Works excellent. Exactly what I needed! Karl Swedberg wrote: Assuming that the Move Up link is within the table row and that the link has a class of moveup, you could do something like this:

[jQuery] Re: Issue with Cycle Plugin

2009-06-14 Thread John Bill
great job! 2009/6/15 vintom v...@vintom.com I am not great with jquery (yet), but I have used a few plugins with me newest site. I am using the cycle plugin and it works great, but I am having one issue. When I load the page initially (http://vintom.com/ gfc) it stacks the images on top of

[jQuery] Re: switching two table rows

2009-06-14 Thread Paul Witschger
actually, there is one problem. I guess what I need is something a little different. Basically the same, but I need to know if the row is at the end or beginning of the list. If a row is moving into the first spot, I need to remove the Move Up link. Same with the row moving down (removing

[jQuery] Re: Ajax Edit in Place

2009-06-14 Thread John Bill
I think if somebody edit one person , u can make the page can't click again ,and show a message :waiting... 2009/6/15 Jennifer Roberts jenmorrowrobe...@gmail.com Hi everyone! What I'd like to build is a page which displays a list of people. Next to each person is an edit button. Clicking

[jQuery] Re: get email and send email?

2009-06-14 Thread John Bill
make up ! 2009/6/15 inkexit createmod...@gmail.com Looking for a good tutorial on how to use jQuery to read email sent to my site's email address, and how to send email through my site's email. Basically, how to construct the server email portion of Twitter. Thanks all.

[jQuery] Autocomplete + type:post not working - still receiving $_GET data

2009-06-14 Thread mikeyhell
I'm trying to implement the autocomplete and everything has worked fine up to switching from $_GET to $_POST. The framework i'm using does not work well with $_GET data. I've tried the following: 1. - in jquery.autocomplete.js I added type:post 2. - in my view I've added the same:

[jQuery] Re: vertically scroll text

2009-06-14 Thread Jack Killpatrick
If you just want a vertical scrollbar to appear, try css overflow:auto on the div. - Jack -Dman100- wrote: Is there a jquery plugin that can scroll text in a div vertically? I have div with a set height that is filled with more content than can be seen. I'm looking for a way to vertically

[jQuery] Re: switching two table rows

2009-06-14 Thread Karl Swedberg
Hi Paul, This will do the trick, but it could be written a lot more elegantly (it's midnight here, and I only had a few minutes to bang something out): $(document).ready(function() { $('tr:first-child .moveup').hide(); $('tr:last-child .movedown').hide();

[jQuery] Re: switching two table rows

2009-06-14 Thread Paul Witschger
Karl, Midnight or not, your code is awesome. I only had to make one tiny alteration (to handle the table heading row), and it worked beautifully. Thanks a lot for your help. Paul Karl Swedberg wrote: Hi Paul, This will do the trick, but it could be written a lot more elegantly (it's

[jQuery] jqPlot 0.7.0 adds pie chart support

2009-06-14 Thread Chris Leonello
jqPlot is an open source plotting plugin for jQuery. The 0.7.0 release adds pie chart support. jqPlot is built from the ground up as a plugable plotting plugin with many features including: * Rotated axis text. * Vertical and horizontal bar charts. * Stacked bar and line charts. * Automatic