[jQuery] Re: Question related to Javascript

2009-02-09 Thread seasoup
If you are using Prototype and jQuery you will need to do: var $j =jQuery.noConflict(); otherwise the will be a conflict for the $. Then, when you wan't to do things in jQuery, do $j and when you want to do things in Prototype, do $. Is $(imgDisplay0).src = imgs0Slideshow[start].image;

[jQuery] Re: Does it hurt to call functions that don't do anything on the page?

2009-02-09 Thread Nicolas R
I not sure if this suits you, but you could split your functions to separate files and then lazy load each js file as necessary. In such case http://nicolas.rudas.info/jQuery/getPlugin/ may be helpful Otherwise I find Ricardo's suggestion the easiest. You could also do some time tests to check

[jQuery] Re: Disable a link temporarily

2009-02-09 Thread rob303
Thank you for the replies. I like the toggle idea. It's simple and it works. Cheers, Rob. On Feb 7, 11:35 am, donb falconwatc...@comcast.net wrote: Rather than bindin/unbinding events, why not put a hidden label (or tag of your choice) there with the same text, then toggle between them:

[jQuery] Re: Using jQuery Validation with Dot Net

2009-02-09 Thread Jon
@ RobG: #aspnetForm is the form that wraps the whole of a dot net page. I simply posted the html snippet from the form itself. Individual forms do not have their own form tags, there is one large one that encloses the whole page - part of the dot net infrastructure. @ Aaron Grundel: No, but i

[jQuery] what could be causing this isnull error ( realy weird )

2009-02-09 Thread Armand Datema
Hi http://www.howardsplaza.nl If you go to this page in firebug you see an isnull error. the same goes if you click the test click link. Why does this generate the isnull error. The fist one is indeed only on page after user is logged in but that should not be an issue . But the text click

[jQuery] Re: test for css selector capability?

2009-02-09 Thread Mohd.Tareq
Hi Geuis, Ther is a function with alias ($.browser) it will gives u functionality to identify browser name like this *$.browser.mozilla , $.browser.msie , ** $.browser.opera , $.browser.safari.* if u wana return the version of browser , then u have use below function *$.browser.version

[jQuery] Jquery Grid not displaying data read from XML in IE 6.0

2009-02-09 Thread sm
Hi, I am displaying a Grid in Jquery reading data from a XML file.It is displayed correctly in FireFox, Chrome but data is not displayed in IE 6.0. My code is : !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http:// www.w3.org/TR/html4/loose.dtd html head link rel=stylesheet

[jQuery] Superfish

2009-02-09 Thread o5
Very nice plugin! feature request: delay on mouseout cancellation using the properties onclick() event outside the menu. It is possible?

[jQuery] Not able to View data in Jquery Grid In IE 6.0

2009-02-09 Thread sm
I am reading data in Grid using a XML file.The Grid is displayed correctly in Firefox and Chrome but in IE 6.0 the grid is displayed empty. Please help.

[jQuery] handler data overrides event data

2009-02-09 Thread chet
Even though jQuery.event.fix copies over the data property from originalEvent, it is overridden by the handler's data property in jQuery.event.handle, even when the handler's data property is not defined. I know of atleast one event which has the data property is used, and that is the message

[jQuery] [autocomplete]

2009-02-09 Thread jami
I just want to thank the person (Jorn Zaefferer?) or people who wrote the autocomplete plugin. I've tried getting other live searches and autocompletes to work with my tiny Javascript knowledge, but it was never clear how everything hung together and I'd lose patience before getting anything

[jQuery] [validate]

2009-02-09 Thread koszu
I'm using jquery validate plugin and I have a problem with rules depending of form selectors. In my form I have got two form selectors: select name=client.clientType id=type class=iefixmarginoption value=-- Wybierz --/option option value=BBezrobotny/option

[jQuery] Calling ajax function with form submission

2009-02-09 Thread Vivek
Hi, I am fiddling with an form and calling an function which is using the Ajax calls. Below is the code that i am using. script language=javascript type=text/javascript src=jq.js/ script script language=javascript type=text/javascript function submitting() { $.ajax({ type: POST, url:

[jQuery] Suggestion: datepicker with afterUpdate hook

2009-02-09 Thread ngty
Hi, I'm thinking that it would be useful to have an afterUpdate hook for datepicker. I've a project that adds some hovering effects to the datepicker cells, and since the datepicker redraws itself after onSelect, all my hovering effects are lost. Adding this afterUpdate hook would allow me to

[jQuery] Re: what could be causing this isnull error ( realy weird )

2009-02-09 Thread Mohd.Tareq
Hi, May be its not able get the value for ur function ($(.grid_8) ); declare it on top of ur method . See this hope sol this will work regards Ragx On Mon, Feb 9, 2009 at 5:30 PM, Armand Datema nok...@gmail.com wrote: Hi http://www.howardsplaza.nl If you go to this page in firebug you

[jQuery] Superfish

2009-02-09 Thread o5
Very nice plugin! feature request: delay on mouseout cancellation using the properties onclick() event outside the menu. It is possible?

[jQuery] Re: Calling ajax function with form submission

2009-02-09 Thread Mohd.Tareq
Hi , If u dont wana use javascript to submit form then remove onSubmit event, If u want to submit it with ajax then remove action attribute add *return false;* regards Ragx On Mon, Feb 9, 2009 at 1:07 PM, Vivek narula.vi...@gmail.com wrote: Hi, I am fiddling with an form and calling an

[jQuery] Re: [validate]

2009-02-09 Thread Mohd.Tareq
$(#clientnip1).rules(add, { required: function(element) { return $(#type).val() == P; } $(#clientnip2).rules(add, { required: function(element) { return $(#type).val() == S; } one function can return only one value at a time first one i.e. 'p' one to execute

[jQuery] Re: what could be causing this isnull error ( realy weird )

2009-02-09 Thread Armand Datema
HI Well it cant be more simple than this it just tries to get the element with the class .grid-8 which is on the page for sure On Mon, Feb 9, 2009 at 1:06 PM, Mohd.Tareq tareq.m...@gmail.com wrote: Hi, May be its not able get the value for ur function ($(.grid_8) ); declare it on top of ur

[jQuery] Re: [validate]

2009-02-09 Thread Jörn Zaefferer
There is just one clientnip, but you can combine the two returns: $(#clientnip).rules(add, { required: function(element) { return $(#type).val() == P || $(#type).val() == S; } Jörn On Mon, Feb 9, 2009 at 1:15 PM, Mohd.Tareq tareq.m...@gmail.com wrote: $(#clientnip1).rules(add, {

[jQuery] Re: what could be causing this isnull error ( realy weird )

2009-02-09 Thread Armand Datema
so you dont get the other errors? i dont get this error i will look at it. All im interested in is why i get the isnull errors because these just are not null they do excist and if they dont excist that they should just be skipped. So there must be something else generating the error and That I

[jQuery] Re: what could be causing this isnull error ( realy weird )

2009-02-09 Thread Stephan Veigl
Hi, I got an error in line 267 because of the quote;s in the javascript function. Try to replace it with single quotes. input type=submit name=dnn$ctr579$Login$Login_DNN$cmdLogin value=Inloggen onclick=javascript:WebForm_DoPostBackWithOptions(new

[jQuery] Re: what could be causing this isnull error ( realy weird )

2009-02-09 Thread Stephan Veigl
Hi, with the Web version I got the null error as well. So I made a local copy to see where it came from. Then Aptana complaint about the quotes in the javascript call. I also replaced jQuery with my local version (1.3.1) and removed your last script (dnn.controls.toolbars...) because dnn was not

[jQuery] Re: .hasClass() not behaving as expected.

2009-02-09 Thread Leonardo K
I tested your code here and works fine. I just ident your code to look better. On Mon, Feb 9, 2009 at 00:05, mkmanning michaell...@gmail.com wrote: In your code you're attaching the hover event to the anchor tags; in the sample html none of the anchors has a class (the class is on the parent

[jQuery] Re: get visibility state after toggle()

2009-02-09 Thread Paul Mills
Brian Here are a couple of demos that might help. http://jsbin.com/ojuju/edit Paul On Feb 9, 4:01 am, brian bally.z...@gmail.com wrote: How can I tell what the visibility state of an element is which has just been toggled? Is my selector no good or is it a matter of timing? . The

[jQuery] ui dialog

2009-02-09 Thread rani
im not able to download the full package of ui dialog.moreover while trying to download themes error is being generated and i cannot extract files thanks all

[jQuery] Re: Calling ajax function with form submission

2009-02-09 Thread Mike Alsup
script language=javascript type=text/javascript src=jq.js/ script script language=javascript type=text/javascript function submitting() {  $.ajax({    type: POST,    url: some.php,    data: name=Johnlocation=Boston,     success: function(msg){      alert( Data Saved: + msg );     }

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-09 Thread Karl Swedberg
Oh yeah! Good point, Rob. I always forget these DOM properties. Thanks for the reminder. :) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 9, 2009, at 2:37 AM, RobG wrote: On Feb 9, 4:23 am, pantagruel rasmussen.br...@gmail.com wrote: Hi, I am

[jQuery] Re: list of metadata options?

2009-02-09 Thread Raymond Camden
Hmm, although the demo here: http://jquery.bassistance.de/validate/demo/ shows this example: input id=cname name=name class=required minlength=2 / So now I'm really confused. On Feb 8, 4:34 pm, Raymond Camden rcam...@gmail.com wrote: Hmm. So a min check is not available since it requires a

[jQuery] Re: Using jQuery Validation with Dot Net

2009-02-09 Thread Aaron Gundel
Yes, it would be helpful. Can't really see what's going on in the snippet you provided. As Rob mentioned, there's no mention of the form (even though it is there on the page). It might give some additional clues as to where things have gone wrong. On Mon, Feb 9, 2009 at 3:46 AM, Jon

[jQuery] Re: list of metadata options?

2009-02-09 Thread Raymond Camden
To add to this, I'm just playing around, but found that this too works: input id=cage name=cage size=4 class=required number min=1 max=100 / This is pretty slick, but I'd still like to know what the official documentation has to say about this. On Feb 9, 8:36 am, Raymond Camden

[jQuery] Re: test for css selector capability?

2009-02-09 Thread Aaron Gundel
jQuery.browser is deprecated in 1.3 + (don't use it). JQuery now uses feature detection. This is a more extensible way of detecting which browser is being utilized. See the following page for more details... http://docs.jquery.com/Utilities/jQuery.support On Mon, Feb 9, 2009 at 4:02 AM,

[jQuery] Re: Passing a Index to a function

2009-02-09 Thread Pedram
I check these two solutions it didn't work ... On Feb 8, 11:42 pm, RobG rg...@iinet.net.au wrote: On Feb 9, 4:54 pm, Pedram pedram...@gmail.com wrote: Dear folk, I want to get the index of the TR and send it to the Function , I don't know how to it . this is what I'm trying to do

[jQuery] Re: Optimize large DOM inserts

2009-02-09 Thread jQuery Lover
I made a post named 5 easy tips on how to improve code performance with huge data sets in jQuery here: http://jquery-howto.blogspot.com/2009/02/5-easy-tips-on-how-to-improve-code.html It gives 5 tips on howto work and improve performance while working with huge datasets. I hope you'll find it

[jQuery] attr feature

2009-02-09 Thread Tom Shafer
Does the attr feature let me capture my own attribute inside a element. I am trying and it doesnt seem to be working. I just wondering if there was a way to do this. Thanks -Tom

[jQuery] Problems with the simple jquery suckerFish menu?

2009-02-09 Thread 123gotoandplay
Hi there, I am having problems with the suckerFish menu if i copy the code and let the font-size be 22px all is good: bldd.nl/jsproblems/menuTest2.html please rollover item3 but when i use a smaller font bldd.nl/jsproblems/menuTest2.html and you roll a couple of times over item3, i can't

[jQuery] Re: attr feature

2009-02-09 Thread MorningZ
Maybe showing an example of what isn't working would help others help you On Feb 9, 10:28 am, Tom Shafer tom.sha...@gmail.com wrote: Does the attr feature let me capture my own attribute inside a element. I am trying and it doesnt seem to be working. I just wondering if there was a way to

[jQuery] Re: attr feature

2009-02-09 Thread Tom Shafer
sorry about that $('#projectid').attr('link') this is going into ajax post On Feb 9, 10:59 am, MorningZ morni...@gmail.com wrote: Maybe showing an example of what isn't working would help others help you On Feb 9, 10:28 am, Tom  Shafer tom.sha...@gmail.com wrote: Does the attr feature

[jQuery] Re: list of metadata options?

2009-02-09 Thread Jörn Zaefferer
Classes for methods with no parameters, attributes for methods with parameters. Thats it. Jörn On Mon, Feb 9, 2009 at 4:15 PM, Raymond Camden rcam...@gmail.com wrote: To add to this, I'm just playing around, but found that this too works: input id=cage name=cage size=4 class=required

[jQuery] [Validate] Example of custom rule w/ metadata only

2009-02-09 Thread Raymond Camden
I'm trying to work up a demo of a custom validation rule that uses metadata only. I've cobbled the following together but the custom rule never fires: script $(document).ready(function(){ jQuery.validator.addMethod(range_exp, function(value, element, params) { return this.optional(element)

[jQuery] Re: Form Plugin with file upload

2009-02-09 Thread Susie Sahim
Thank you Mike for the quick response. I uploaded your latest version and am experiencing the same problem I had with v. 2.16 text only works just fine. using image attachment the form data does not get saved on the php end. the ajaxSubmit() makes it to the success call back even though it

[jQuery] Re: [Validate] Example of custom rule w/ metadata only

2009-02-09 Thread Jörn Zaefferer
For that to work you need to load the metadata plugin and have it configured to use the validate-attribute for metadata. Can't that in your code anywhere. See http://jquery.bassistance.de/validate/demo/radio-checkbox-select-demo.html for an example: $.metadata.setType(attr, validate); Jörn On

[jQuery] Re: list of metadata options?

2009-02-09 Thread Raymond Camden
Ahh, ok. That makes sense then. Thank you! On Feb 9, 10:23 am, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Classes for methods with no parameters, attributes for methods with parameters. Thats it. Jörn

[jQuery] input file and val()

2009-02-09 Thread ezod
Hi there, I tried to reset a file input element by using val(). html head titleFooBar/title /head script src=jquery.js/script script $(document).ready(function() { $(#resetMe).click(function () {

[jQuery] Re: Next/Previous element in each loop

2009-02-09 Thread Adrian Lynch
That's what I was hoping for, but next() and prev() act on the next and previous elements in the DOM, not in the nodes you're looping over. To demonstrate: $(p).each(function(i) { console.info($(this).next().html()); console.info($(this).prev().html()); }); form action=test.cfm

[jQuery] Re: Select element based on a value of its child element

2009-02-09 Thread Adrian Lynch
Cheers all. By the way Stephan, I'm gonna steal your sig! By(e) Adrian :OD On Feb 6, 9:16 am, Stephan Veigl stephan.ve...@gmail.com wrote: Hi, according to another thread in this group (http://groups.google.at/group/jquery-en/browse_thread/thread/2115a6c8...) there is already a ticket for

[jQuery] Re: Next/Previous element in each loop

2009-02-09 Thread Adrian Lynch
This explains better what I'm after: $(p).each(function(i) { var prevP = $(this).parent().prev().children(p); var nextP = $(this).parent().next().children(p); console.info(prevP.html()); console.info(nextP.html()); }); div p1/p div

[jQuery] Re: ui dialog

2009-02-09 Thread Richard D. Worth
Can you please provide some more information, such as the steps you're taking, the operating system and browser version? Thanks. - Richard On Mon, Feb 9, 2009 at 7:07 AM, rani rani.bar...@gmail.com wrote: im not able to download the full package of ui dialog.moreover while trying to

[jQuery] Re: ui dialog

2009-02-09 Thread Richard D. Worth
Also, which version you are trying to download. - Richard On Mon, Feb 9, 2009 at 11:58 AM, Richard D. Worth rdwo...@gmail.com wrote: Can you please provide some more information, such as the steps you're taking, the operating system and browser version? Thanks. - Richard On Mon, Feb 9,

[jQuery] Re: input file and val()

2009-02-09 Thread brian
File inputs have traditionally been difficult to modify, for security reasons. AFAIK, it shouldn't work in FF, either. Maybe it works only because you're emptying it. I wonder if that would work if you tried to set the value to some other string. On Mon, Feb 9, 2009 at 11:39 AM, ezod

[jQuery] Re: Does it hurt to call functions that don't do anything on the page?

2009-02-09 Thread mkmanning
@Nicolas - I'm curious as to why you find Ricardo's easiest? Ricardo's first solution would work, but to my mind adds extra complexity. You're adding a dependency on the presence of elements in the markup to execute your functions. If you work, as I currently do, in a multi-developer

[jQuery] Re: Jquery pagination plugin problem

2009-02-09 Thread nate laws
There are a lot of ways to do it, here is a simple solution, of course 'length' will have to be determined somehow. var items_per_page = 10; var length = 1000; function pageSelectCallback(page_index, container){ $(#contentarea).load(url,{page:page_index}) return false; }

[jQuery] Re: Does it hurt to call functions that don't do anything on the page?

2009-02-09 Thread Ricardo Tomasi
I think the issue is that all of the functions are declared on the same external JS file. So you can't check for the function itself, as it will always exist, you need to check for some condition in the page. All of this will be inside $(document).ready on the external file. There are many other

[jQuery] Can I use a reference to a select id in a function like this?

2009-02-09 Thread Rick Faircloth
I have a select with id=agentSelect and onchange=updateDutyRecord(). Once I choose an option, can I reference the select and option like this? function updateDutyRecord() { $('#agentSelect', this).change(function() { $('option:selected',

[jQuery] modify from server two jquery elements in the same time

2009-02-09 Thread phicarre
I would like to modify two jquery elements in the same time from PHP module. The PHP module is called by .ajax $.ajax( { type: POST, url:'my_module.php', dataType: 'html', success: function(resultat) { * ? *}, error:

[jQuery] Re: attr feature

2009-02-09 Thread James
I don't think it works. You might consider using the Metadata plugin: http://plugins.jquery.com/project/metadata or jQuery's jQuery.data: http://docs.jquery.com/Core/data to achieve what you want to do in a similar way. On Feb 9, 6:05 am, Tom Shafer tom.sha...@gmail.com wrote: sorry about

[jQuery] Re: modify from server two jquery elements in the same time

2009-02-09 Thread James
my_module.php ?php $myArray = array( 'var1' = 'hello', 'var2' = 'world' ); echo json_encode($myArray); ? helloWorld.html $.ajax( { type: POST, url:'my_module.php', dataType: 'json', // !-- I'VE CHANGED THIS TO RECEIVE JSON AS RESPONSE success:

[jQuery] Re: Does it hurt to call functions that don't do anything on the page?

2009-02-09 Thread mkmanning
Ah, I have misread it then; I was under the impression the calls to the function were on the external page, but the functions themselves were on separate pages. Thanks for clearing that up. On Feb 9, 9:47 am, Ricardo Tomasi ricardob...@gmail.com wrote: I think the issue is that all of the

[jQuery] Access tabs from an iframe to another.

2009-02-09 Thread m.ugues
Hallo all. I got a problem accessing .ui-tabs-nav defined in an iframe from another one. I have a index page where I define an iframe: inside the iframe is loaded a page where are defined the tabs. http://pastie.org/384171 In index.html there is this piece of code http://pastie.org/384170

[jQuery] Custom data property in custom events

2009-02-09 Thread Glenn Nilsson
Hi, when triggering a custom event with some custom data, all my data is removed from the data-property on the event object. It's only available in the data parameter sent as the second parameter to the event handler. Even though I've created a custom event object and populated the

[jQuery] Callback from the $.post function is not being invoked

2009-02-09 Thread mistere357
I'm new to jQuery and it has worked great for me... except I seem to be having a problem with the $.post function. The response comes back but the callback function is not invoked. Here is the loop that I'm using to set the onChange event handler: datafields = new Array( #field1, #field2,

[jQuery] Image annotation

2009-02-09 Thread LeonL
Hello everyone! Does anybody know of a jquery plugin/script implementing image annotation? I'm looking for something similar to Fotonotes (http://www.fotonotes.net/), Photonotes (http://www.dustyd.net/projects/PhotoNotes/), flickr's annotation etc. Thanks in advance, Leon. -- View this

[jQuery] Re: Can I use a reference to a select id in a function like this?

2009-02-09 Thread Ryan
Yep, you have the right idea. I would do this: $(function(){ $('#agentSelect').change(function(){ var element = $('option:selected',this); // do whatever you need to do with the element console.debug(element.val()); }); }); On Feb

[jQuery] Getting Style Information (left/top)

2009-02-09 Thread Paul Hutson
Hello, I'm a(nother?) new person to Jquery and have found it to be *excellent* so far (when I say that I may be understating how damned awesome it is!!) There is only one thing that has been bothering me - I can't seem to find a way of finding a position of an item with an easy Jquery shortcut.

[jQuery] Re: Problems with the simple jquery suckerFish menu?

2009-02-09 Thread Michael Lawson
Hi, is there any way you can provide a code sample of how you are using this? Thanks cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline: 255-1568 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer would test

[jQuery] Safe Ajax Calls?

2009-02-09 Thread SoulRush
Hi! I'm kind of new at the world of ajax and jquery and i'm starting to make a site with them. In my site i've created a single function (in the header) called ajaxQry(...) which takes some parameters like, url to make post or get, if I need GEt or POST, the data type of the query, a success

[jQuery] appying addClass to proper element (jquery 1.1 - jquery 1.3.)

2009-02-09 Thread introvert
Hello, I'm doing a modification on a javascript that is written for jquery 1.1 and wont work with jquery 1.3. Heres is the shortened original code: stars = $(div.star, obj), ... stars.lt(rating[0]).addClass(on); //critical line that causes error I changed the line above to: $(div.star:lt( +

[jQuery] Re: attr feature

2009-02-09 Thread Ryan
This works fine for me (using jQuery 1.3): $(function(){ $('div').attr('id','test').html('div html').appendTo ('body'); // inject html element, also works fine hard-coded. $('#test').attr('ryantest','hithere'); $('a').click(function(event){

[jQuery] Re: modify from server two jquery elements in the same time

2009-02-09 Thread Ryan
What? Sorry, but this is hard to understand. I believe you're trying to set element data from a value in a php file, right? If so, that's pretty easy using JSON. In PHP, json_encode() converts an array or object into a string, and in Javascript it takes that string and converts it to an object.

[jQuery] Accordion newbie problem

2009-02-09 Thread oobov
Hi there. I don't know if it is the right place for that, sorry if not. I have a newbie problem. I've red the documentation but i can't find the solution. I have a page with 3 accordions, based on the demo script, so i have: jQuery().ready(function(){ // simple accordion

[jQuery] Re: Triggering a link with no click event

2009-02-09 Thread solidhex
I was looking to do the same thing - I wanted to emulate the click() method, which doesn't work on all browsers. I have had any luck either. I was trying to open a file input browse view by clicking on another link. I can get it to work in IE and Safari, but Firefox doesn't support it on

[jQuery] Re: Changing Colspans with Jquery, IE6

2009-02-09 Thread charly_g
I dont know if this is what you are talking about, but i think i was having the same problem. I had problems trying to change de colspan to a table's TD in IE, after doing many tests i found the way. Here is the jquery code: $('.G_HD0').attr({colSpan:3}); searching by class

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-09 Thread Nivash Ramachandran
Great discussion. Thanks for all. -- Nivash Ramachandran On Mon, Feb 9, 2009 at 7:19 PM, Karl Swedberg k...@englishrules.com wrote: Oh yeah! Good point, Rob. I always forget these DOM properties. Thanks for the reminder. :) --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: Problems with the simple jquery suckerFish menu?

2009-02-09 Thread mjlaw...@us.ibm.com
I'm not sure if my previous response made it, trying to configure this to work with my work email. However, is there any way you can provide a code snippet of what you are trying to fix here? On Feb 9, 10:58 am, 123gotoandplay wesweatyous...@gmail.com wrote: Hi there, I am having problems

[jQuery] malsup.com form and php validation confusion

2009-02-09 Thread m...@polyvisual.co.uk
Hi all, I'm using the jquery form plugin from malsup.com, and I'm confused about validation. I need to validate the form fields in the php file specified in the action of the form. I realise I can use the success: function() to update a div (I actually want to perform animation on a div

[jQuery] Re: input file and val()

2009-02-09 Thread Michael Lawson
Have you tried using the attr() function? $(#input1).attr(value,);) cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline: 255-1568 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer would test gold. If you find

[jQuery] jquery, OOP and this - Problem

2009-02-09 Thread Creativebyte
Hello group, I got a problem with a JS class I am writing. I got the following piece of code: this.slide=function(){ $(this.container_selector_contents).fadeOut(1000, function(){ this.setContent(); this.fadeIn(1000)

[jQuery] Re: Triggering a link with no click event

2009-02-09 Thread Michael Lawson
Hi all, click() doesn't work on most browsers because of security reasons. Can you imagine giving some spam programmer the ability to simulate a mouse click? cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline: 255-1568 E-mail:

[jQuery] Re: Getting Style Information (left/top)

2009-02-09 Thread Michael Lawson
If you look at the documentation for jQuery you'll see that many jQuery functions either return jQuery itself, or an array of elements. Your usage would return an array of the element in question so you might want to try something like this $(#TheDivInQuestion)[0].style.top Hope that helps!

[jQuery] [autocomplete] display a loading gif

2009-02-09 Thread Manolet Gmail
Hi, i need to show a loading gif while autoocmplete plugins make the ajax ask. is there anyway?

[jQuery] Re: jquery, OOP and this - Problem

2009-02-09 Thread Ricardo Tomasi
just stay aware of the scope: var oldthis = this; this.slide=function(){ $(this.container_selector_contents).fadeOut(1000, function(){ oldthis.setContent(); oldthis.fadeIn(1000) }); } ; On Feb 9, 3:13 pm, Creativebyte michaelhaszpru...@googlemail.com wrote:

[jQuery] Re: jquery, OOP and this - Problem

2009-02-09 Thread SoulRush
Did you try with $(this).setContent(); instead of this.setContent(); ? On 9 feb, 14:13, Creativebyte michaelhaszpru...@googlemail.com wrote: Hello group, I got a problem with a JS class I am writing. I got the following piece of code: this.slide=function(){                

[jQuery] New jQuery Conditional Chain Plugin

2009-02-09 Thread Eric Garside
Hey guys, I had an idea this morning which quickly turned into a small but, I think powerful, plugin. I'd love some review on it from the list, to see if anyone can see any glaring errors I missed, or has an easier/ already done way of doing it. The source code and some examples are located

[jQuery] subclassing ajaxForm

2009-02-09 Thread Jan Limpens
When I try to do this, firebug does not alert me of anything wrong, the form is posted normally (no ajax). What mistake am I making? // requires jquery.forms plugin jQuery.fn.jsonForm = function(onSuccess) { this.ajaxForm({ dataType: 'json', success: function(data) { if

[jQuery] table header order

2009-02-09 Thread Alain Roger
HI, i have a table with thead, tbody and the headers (stored in thead) should be able to be moved to reorder the table. for example, if the 1st column is ID, the 2nd column is Name and 3rd one is firstname, i want user to be able to drag and drop column firstname between ID and Name columns. so

[jQuery] Re: Next/Previous element in each loop

2009-02-09 Thread Stephan Veigl
Hi Adrian, as mkmanning already said, when you want to get the next / prev element from the same selector, simply access the array. In this case I prefer a for (var i=0; ips.length; i++) {...} loop instead of the $.each for performance reasons and readability, but that's personal taste. by(e)

[jQuery] Initialize tabs href.

2009-02-09 Thread m.ugues
Hallo all. I would like to initialize the tabs href on the document.ready. http://pastie.org/384170 I tried like this http://pastie.org/384232 But it doesn't work. Any idea? Kind regards Massimo Ugues

[jQuery] Re: Passing a Index to a function

2009-02-09 Thread Pedram
How COme we could not have access inside the BIND with THIS !! I'm Confused On Feb 9, 7:16 am, Pedram pedram...@gmail.com wrote: I check these two solutions it didn't work ... On Feb 8, 11:42 pm, RobG rg...@iinet.net.au wrote: On Feb 9, 4:54 pm, Pedram pedram...@gmail.com wrote: Dear

[jQuery] Re: jquery, OOP and this - Problem

2009-02-09 Thread Eric Garside
Yea, the scope should be fine. You just have to wrap this in $() when using the reference to the element. On Feb 9, 2:09 pm, SoulRush saavedra@gmail.com wrote: Did you try with $(this).setContent(); instead of this.setContent(); ? On 9 feb, 14:13, Creativebyte

[jQuery] Re: Optimize large DOM inserts

2009-02-09 Thread James
I used event delegation along with live() so it works on new elements and it got rid of the leak! Some good references for those who are interested: http://www.learningjquery.com/2008/03/working-with-events-part-1 http://lab.distilldesign.com/event-delegation/ I've also wrapped the content into

[jQuery] Re: Getting Style Information (left/top)

2009-02-09 Thread mkmanning
Be aware that style.top is not necessarily the position of an element. You can use $('TheDivInQuestion').position().top (and $ ('TheDivInQuestion').position().left) to find it's actual position. On Feb 9, 11:07 am, Michael Lawson mjlaw...@us.ibm.com wrote: If you look at the documentation for

[jQuery] Re: Safe Ajax Calls?

2009-02-09 Thread SoulRush
By the way, the first parameter takes the vars to send... so in the pages I've to dynamically set varname1=value1varname2=value2 On 9 feb, 10:40, SoulRush saavedra@gmail.com wrote: Hi! I'm kind of new at the world of ajax and jquery and i'm starting to make a site with them. In my

[jQuery] Access DOM cross-domain

2009-02-09 Thread jay
I'm playing around with writing a server-side script that generates JSONP from content that is downloaded by the script (URL is passed to script from querystring). Is there a better way to do it than to encode it as base64, or is there a work-around that doesn't require any server-side code?

[jQuery] Re: Getting Style Information (left/top)

2009-02-09 Thread SoulRush
You can use either the css method: if you want to know the height of $(#TheDivInQuestion) Then $(#TheDivInQuestion).css(height); If you need another attribute of the css just change de parameter of the css: $(#TheDivInQuestion).css(top); $ (#TheDivInQuestion).css(left); ... On 9 feb, 14:00,

[jQuery] jQuery not loading?

2009-02-09 Thread Wendy
Am using the Cycle plugin, and linking to the Google jQuery library (have also tried linking to site version). jQuery effect doesn't seem to be loading for anyone but me (definitely not Browsershots, and apparently not client). http://www.horseink.com/chdrsg/start.html I'd be grateful for any

[jQuery] expanding menu

2009-02-09 Thread gandalf458
I have a simple expanding menu at http://www.compassion-in-business.co.uk/virgo/manual/contents.htm I'm wondering if (a) I can make this work with a mouseover event rather than click; and (b) when opening one subsection I can get it to close the open one(s). Many thanks

[jQuery] expanding menu

2009-02-09 Thread gandalf458
Hi - I hope this doesn't appear twice. I posted it over half-an-hour ago and it didn't show. I have a simple expanding menu at http://www.compassion-in-business.co.uk/virgo/manual/contents.htm I'm wondering if (a) I can make this work with a mouseover event rather than click; and (b) when

[jQuery] Re: alignment IN IE6 ... with jquery..

2009-02-09 Thread Stephan Veigl
Hi, I see the menu on top on both FF and IE and a box overlaying the menu if the mouse enters the image on the left. screenshot: http://www.iaeste.at/~stephan/test/chillenvillen.jpg by(e) Stephan 2009/2/8 shyhockey...@gmail.com shyhockey...@gmail.com: did you go to the home button??? and

[jQuery] Re: Accordion newbie problem

2009-02-09 Thread Jörn Zaefferer
Assuming you use the default header: a, add this: $(#accordion).accordion({ active: a:last }); Jörn On Mon, Feb 9, 2009 at 7:41 PM, oobov mr.oo...@gmail.com wrote: Hi there. I don't know if it is the right place for that, sorry if not. I have a newbie problem. I've red the documentation

[jQuery] Re: jQuery not loading?

2009-02-09 Thread MorningZ
Seems to work and load just fine for me here Firebug shows all files as loaded and i see the Cycle plugin doing it's thing have you tried using the Net panel of Firebug (if you're using Firefox) or using Fiddler if you're in IE to see what your computer is seeing/doing? On Feb 9, 3:20 

  1   2   >