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

2009-08-11 Thread webhead81
My apologies is this is a double post - It seems Google Groups just dropped my last message (I'm not even sure how that's possible), so here goes. A little over a year ago, user Iminay requested help in getting some of his code to properly pause after a fade event before continuing with execution

[jQuery] help with image titles & jQuery Slideshow

2009-08-11 Thread Jessie
Hi I am new to javascript and am having a lot of trouble with a photo slide show I am creating for a website- I used a jQuery based program called Galleria. Here is my problem- Galleria creates thumbnails for you from your images- you make an unordered list in which you put all the img tags. Whate

[jQuery] Re: jQuery not working with content that is loaded in.

2009-08-11 Thread Meroe
You need to ensure you are using the document ready function. If you don't put it within that it won't fire when loading the way you are. The document ready function is detailed on the jquery site and fires before the content loads. I can't surf the web at the moment to get you the link sorry.

[jQuery] Forms and Dialog UI

2009-08-11 Thread apadley
I am using the Dialog UI and want to post a very simple form. In add browsers tested (Windows & Mac), the form data does post to the action page, but there is no response so the callback fails. However, one Mac G5 computer running 10.5.8 and Firefox 3.5.2 or Safari 4.0.2 everything works perfectly

[jQuery] overlay does not work in jquery ajax success

2009-08-11 Thread gabel
I use jQuery Tools and got a strange problem (jQuery Tools --> http://flowplayer.org/tools/index.html) HTML static dynamic Version where only the static overlay works $(document).ready(function(){ $("#overlaystatic").overlay({expose: '#6096D4'});

[jQuery] How to get Drop Down List Item's length??

2009-08-11 Thread Ming
I have a DropDownList (id: DropDownList1), i want to get the items length by Jquery, but it not work, always return 0. My temporary solution is using classic javascript to do it, below is the code. $(document).ready(function() { //method 1: var items = $("#DropDownList1 options

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

2009-08-11 Thread Ming
I using JQuery to call back asp.net web service, The web service is simple, only query from SQL Server and return result as JSON. everythings is cool. Only problem is the key of dictionary after Deserialization by eval() method,It cannot access. For example: $.each(eval(response),function(key,

[jQuery] FadeOut - Pause - FadeIn (Force jQuery to wait for a fade event to complete before moving on)

2009-08-11 Thread webhead81
In a post made almost a year ago, user Iminay asked for help forcing jQuery to wait for a fade event to complete before initiating the next action: http://groups.google.com/group/jquery-en/browse_thread/thread/bbe0471b780e666a After two helpful posts, it seems that his problem was solved. Unfort

[jQuery] Inheritance for non-jQuery objects?

2009-08-11 Thread adambossy
Hi folks, I've been using jQuery for some time, but I'm new to how the internals work. I would like to create this basic inheritance architecture for my website: Root class: core.js - stores all common functionality Sub classes: home.js - home page player.js - a youtube player trends.js - a pa

[jQuery] jquery validate remote() - display returned message.

2009-08-11 Thread j...@oz
In the documentation for the remote option of the jquery valdiate plugin, it says the remot script can return true, false etc. or "a string, eg. "That name is already taken, try peter123 instead" to display as the error message." What I cannot work out is how to actually display the the messa

[jQuery] Is it possible to bind 2 events in different namespace to an div element?

2009-08-11 Thread snjoetw
Is it possible to bind 2 events (same event name but in different namespaces) to an div element? For example: $('#testId').bind('eventName.nameSpace1 eventName.nameSpace2', function () { alert('test'); }); $('#testId').trigger('eventName.nameSpace1'); $('#testId').trigger('eventName.nameSpa

[jQuery] Re: malsup's form plugin

2009-08-11 Thread bhu Boue vidya
the response from the webserver is injected into an iframe (so that the file upload, which can only be done via a form submit, is able to be made 'ajax-like'), and so you want to protect the json from the browser's prying eyes On Aug 11, 2:27 pm, Saliem wrote: > Hello all -- > > How does wrapp

[jQuery] Re: Refresh DIV with full page refresh

2009-08-11 Thread bharani kumar
not an too twisted question ya.. what is the jquery snippet for refresh a DIV , On Tue, Aug 11, 2009 at 7:15 PM, Liam Potter wrote: > > Be nice :p, obviously his first language is not English. > > you should be using jQuery's ajax functions. > http://docs.jquery.com/Ajax > > Charlie wrote: > >> $

[jQuery] Re: Sloppy Documentation of Ajax Methods

2009-08-11 Thread rickoshay
Might be better off just listing the jquery.ajax equivalents and say "see ajax" (in keeping with DRY principles). Shawn has a good idea with ajax-only but sticking to just "get" and "post" is a good middle ground.

[jQuery] Fading IE Problems

2009-08-11 Thread PF
Hi Everyone: For a client, I am attempting to get this site to work in IE and other web browsers (currently only works in Safari and Firefox for Mac): http://www.randomscripts.net/think_company_world/main.php I am using JQuery's fadeIn and fadeOut functions on the pictures to cycle them through

[jQuery] Re: Validation Error message help

2009-08-11 Thread Jules
Check the error message existence before adding a new error msg if ($('#'+fieldName+'-exists').length = 0) $('#username').after('' + error + ''); On Aug 12, 2:17 am, "Dave Maharaj :: WidePixels.com" wrote: > I have this script: > > $(document).ready( function() { > >     $('#username').blur(

[jQuery] Re: How to use this "this" event which has been passed to a function as a parameter

2009-08-11 Thread Russell & Joti
doh! i never even noticed the missing (), thanks. On Aug 12, 12:42 pm, James wrote: > This: > $(obj).parent.addClass("newstyle"); > > should be like: > $(obj).parent().addClass("newstyle"); > > On Aug 11, 1:08 pm, Russ wrote: > > > Hello, > > > I have a link; > > click me > > > And what i'd li

[jQuery] Re: How to use this "this" event which has been passed to a function as a parameter

2009-08-11 Thread James
This: $(obj).parent.addClass("newstyle"); should be like: $(obj).parent().addClass("newstyle"); On Aug 11, 1:08 pm, Russ wrote: > Hello, > > I have a link; > click me > > And what i'd like to do is use the "this" object to manipulate the css > of its parent; > > function DoSomething(obj) { > >

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

2009-08-11 Thread René
The datepicker function is awesome for selecting a single day, but I need to build a date control that allows the selection of both single and multiple days (contiguous and non-contiguous). I found something along the lines: http://www.filamentgroup.com/examples/daterangepicker_v2/index3.php I

[jQuery] How to use this "this" event which has been passed to a function as a parameter

2009-08-11 Thread Russ
Hello, I have a link; click me And what i'd like to do is use the "this" object to manipulate the css of its parent; function DoSomething(obj) { if(obj) { $(obj).parent.addClass("newstyle"); //i can do this with javascript, but i dont want to write styles into my js

[jQuery] Re: jQuery not working with content that is loaded in.

2009-08-11 Thread cz231
I think I solved it. Basically I wrapped everything in a function called js. Then on document load I ran the function. I also re ran the function whenever I reloaded content. It works, but due to my lack of knowledge on binding, will this affect performance alot? On Aug 11, 2:28 pm, cz231 wrote

[jQuery] Re: AJAX and JSON

2009-08-11 Thread Michael Geary
> when I just use data it shows the JSON encoded data That's your problem right there. Your data variable should not be "JSON encoded data" (which is a string). It should be the actual JavaScript object. Try console.log( typeof data ) to see what I'm talking about. Why are you getting a strin

[jQuery] Re: $ajax() question

2009-08-11 Thread yi
OK I will try "object of key/value pairs". You mean i should use "data:{Arg:args2} ". is it right? On Aug 12, 4:05 am, Stephan Beal wrote: > On Aug 11, 11:53 am, Jules wrote: > > > After re-reading the original post, it seems json is not required > > > just use > > data:"Args="+args2 > > Don't

[jQuery] Re: $ajax() question

2009-08-11 Thread yi
Thanks Jules that is really helpful. thank you so much!!! I konw what i am going to do now!!! On Aug 11, 9:53 pm, Jules wrote: > After re-reading the original post, it seems json is not required > > just use > data:"Args="+args2 > > on the server side > > StreamReader reader = new StreamReader(R

[jQuery] A complicated menu. Need some help.

2009-08-11 Thread suntrop
My navigation menu is quite complicated and I can't get it working. Can someone please help? That's what I want and have until now: A nested menu that slides to the left if I click a link with sub- menus and fade in the sub-menu. (sub-menus are not displayed by default via css) Home

[jQuery] Re: Change bg image on hover

2009-08-11 Thread sammahoney
I should add that if I use mouseenter, it fixes the problem, but then for some reason my dropdowns parent won't stay active, whereas it will on mouseover. On Aug 11, 10:08 pm, sammahoney wrote: > Hi guys > > I have a dropdown menu. When the dropdown is hovered, I need a bg > image to show, then

[jQuery] Re: HTML5 video tag available?

2009-08-11 Thread Ricardo
1. try giving it an ID 2. try doing what Liam said, *before* you create the element. That's a hack that 'forces' the browser to acknowledge the existence of the tag 3. it helps if you make sure your page is in standards mode On Aug 11, 7:01 am, quiKe wrote: > Hi again. > > But i insert the video

[jQuery] Change bg image on hover

2009-08-11 Thread sammahoney
Hi guys I have a dropdown menu. When the dropdown is hovered, I need a bg image to show, then slowly fade out when the mouse leaves. I wrote this little script for it: var $j = jQuery.noConflict(); $j(function(){    $j("#dropdown-nav li ul li").mouseover(function(){                $j(this).s

[jQuery] Tablesorter with rowspan applied to a table cell?

2009-08-11 Thread J. Martin
While sorting a table with the Tablesorter plugin, I'd like to have a table cell within an interior column use the rowspan attribute (the result being this column has only a single value). I can't figure out how to use it however. The docs I saw (http://lovepeacenukes.com/ tablesorter/2.0/docs/) g

[jQuery] Re: how to write a frameset with jquery

2009-08-11 Thread TPM Media
Delimiters appear to be wrong in sample code. On Tue, Aug 11, 2009 at 11:18 AM, James wrote: > > Have you tried hard-coding the frameset HTML in the source (not via > Javascript) to see if the page shows up properly? > > Also, try using Firebug for Firefox to debug. With Firebug you can > view t

[jQuery] Re: iframe not always loading

2009-08-11 Thread James
Please provide some code as to how you're doing this. Thanks. On Aug 11, 4:22 am, sorinh wrote: > hi > > i havehttp://www.qualitydesign.ro/test/jquery/and at the "three" > button i've inserted an .., but it's loaded only > once, click on the "one", "two", "three" and again 1,2,3. what seems > to

[jQuery] Re: Embedded JavaScript Not Loading With .load() Call

2009-08-11 Thread James
Are you putting your code in the document ready function? http://docs.jquery.com/Tutorials:Introducing_%24%28document%29.ready%28%29 On Aug 11, 6:51 am, Steven wrote: > I'm using this code for my website to load pages dynamically: > >         var hash = window.location.hash.substr(1); >        

[jQuery] Re: Pagination

2009-08-11 Thread James
Geez, I screwed up on a sentence pretty badly.. "so technically hitting backspace on your keyboard will navigate through the changes in hash." On Aug 11, 9:43 am, James wrote: > I'm assuming a page is a dynamic page with the same URL? For example, > a different layer or content loaded dynamical

[jQuery] Embedded JavaScript Not Loading With .load() Call

2009-08-11 Thread Steven
I'm using this code for my website to load pages dynamically: var hash = window.location.hash.substr(1); var href = $('#nav li a').each(function(){ var href = $(this).attr('href'); if(hash==href.substr(0,href.length-4)){ var

[jQuery] ajaxContent plugin and forms

2009-08-11 Thread Cyp3r
Hi, I'm using ajaxContent plugin with simple forms and I would like to use it to send password to external script, how to do it like in regular form (post method, sending data not visible to other users)? I've set argument "Type" to "POST" in script options, but data in ajax request is still visi

[jQuery] Citation for jQuery

2009-08-11 Thread Nathaniel
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 recommend? At present I've got "jQuery Reference Guide" by Caffer and Swedberg, but perhaps there's an article somewhere which is more appropriate? Just want to gi

[jQuery] Error when trying to download jquery

2009-08-11 Thread mrbutler
I receive an error: 'document' is undefined, when I try to run the jquery download.

[jQuery] iframe not always loading

2009-08-11 Thread sorinh
hi i have http://www.qualitydesign.ro/test/jquery/ and at the "three" button i've inserted an .., but it's loaded only once, click on the "one", "two", "three" and again 1,2,3. what seems to be the problem? i'm using jquery-1.2.6.js thanks.

[jQuery] Re: onclick hideSuperfishUl?

2009-08-11 Thread bradoaks
On Aug 5, 11:23 pm, ryantxu wrote: > Is there a way to close the superfish dropdown after click? > > I have some 'onclick' functions that kick off some behavior and then > return false.  How do I get the dropdown to go away? > > I suppose I need to somehow call "hideSuperfishUl" > > thanks for an

[jQuery] [autocomplete] trigger event if user rejects all autocomplete otions

2009-08-11 Thread Ash
Does anyone have a library or patch to call a handler if a user leaves an autocomplete field without choosing one of the autocomplete options - i.e. they've entered free text. I'm working with an app that populates multiple fields from a single auto-complete value, and our latest requirement is t

[jQuery] Re: Pagination

2009-08-11 Thread James
I'm assuming a page is a dynamic page with the same URL? For example, a different layer or content loaded dynamically via AJAX. If that's the case one way is through the URL hash (e.g. page.html#p3 - indicates page 3). Every time you change a page, you update the hash in the URL. If you do a searc

[jQuery] Re: jQuery not working with content that is loaded in.

2009-08-11 Thread cz231
Thanks I think that that is my issue. Is there a way to rebind my whole javascript file? Or will that affect performance a lot? I ask because I want pretty much all of my js file pertains to the new content I'm loading in. On Aug 11, 1:17 pm, Shane Riley wrote: > If you're using the latest jQuer

[jQuery] Pagination

2009-08-11 Thread Dave Maharaj :: WidePixels.com
Does anyone know how or if possible to remember where you were at in pagination? Example a user clicks 1, 2, 3, finds what they want on the third page and clicks a link...nope not what they were looking for they click back which now brings them back to pagination page 1 when it would be nice to r

[jQuery] Re: AJAX and JSON

2009-08-11 Thread Joey Derrico
Ok so I have used .ajax function to run my ajax and set type to data. It is getting (well posting) to a php file that echo's a json_encoded array. When it returns I am using console.log to display the returned data. when I just use data it shows the JSON encoded data, but if I use data.key I get un

[jQuery] Re: Replace script tag

2009-08-11 Thread James
The way you're doing this looks very unnatural by having the script tag in the middle of your content. What exactly are you trying to achieve? Just adding text? It would be better if you did something like this: 11Csere()22 $(function() { $("#lufi").text('Duma'); }); And if you wan

[jQuery] Re: how to write a frameset with jquery

2009-08-11 Thread James
Have you tried hard-coding the frameset HTML in the source (not via Javascript) to see if the page shows up properly? Also, try using Firebug for Firefox to debug. With Firebug you can view the HTML as it is even with content dynamically added after page load. On Aug 10, 11:31 pm, cokegen wrote

[jQuery] Re: jQuery not working with content that is loaded in.

2009-08-11 Thread Shane Riley
If you're using the latest jQuery, you can bind most events with .live () to ensure that your events are attached when the new content is loaded in. Note that this doesn't work for all events, though. On Aug 11, 12:03 pm, cz231 wrote: > Hi, > > I'm building an online application, and I want one

[jQuery] Re: jQuery not working with content that is loaded in.

2009-08-11 Thread James
Does "reloading" perform some kind of action that modifies the DOM (e.g. introduce new content via AJAX). If so, then this FAQ may explain your problem: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Aug 11, 6:03 am, cz231 wrote: > Hi,

[jQuery] Re: How to identify if user chose to see secure only or secure and nonsecure items

2009-08-11 Thread James
I've haven't tried Google AdSense before to know much about it, but I'm wondering if this page is of help to you. http://nedbatchelder.com/blog/200710/httphttps_transitions_and_relative_urls.html However, depending on what your purpose is of the secure page (e.g. login, registration with sensitiv

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Rick Faircloth
Thanks, Liam and Brett, for the explanations! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Brett Ritter Sent: Tuesday, August 11, 2009 1:00 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: How to specify a default value.

[jQuery] Re: Disable submit button with Validation plugin

2009-08-11 Thread Rich Sturim
thank you Jörn -- that works On Aug 10, 9:01 am, Jörn Zaefferer wrote: > Try this: > > $(document).ready(function() { >    $("#myForm").validate({ >      submitHandler: function(form) { >        $(form).find(":submit").attr("disabled", true).attr("value", > "Submitting..."); >        form.submit

[jQuery] Re: listmenu

2009-08-11 Thread Jack Killpatrick
Thanks Paul, the new version that I just announced via another email takes care of the issue you found and adds some new features. FYI: http://blogs.ihwy.com/dev/post/New-versions-of-iHwy-listnav-and-listmenu-jQuery-plugins.aspx - Jack Paul Speranza wrote: Jack, yes, the list menu plugin.

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Brett Ritter
On Tue, Aug 11, 2009 at 12:10 PM, Rick Faircloth wrote: > What I still don't understand is even how this logic works: > > if ( row[19] ) { > row[19] > } else { > N/A > } The key part is "if( row[19] )". row[19] is being evaluated for _truth_. Javascript defines (I believe) truth to be "non-fal

[jQuery] ANNOUNCE: new revs of listnav and listmenu plugins

2009-08-11 Thread Jack Killpatrick
Hi All, New versions of the jquery listnav and listmenu plugins are now available: http://www.ihwy.com/labs/jquery-listnav-plugin.aspx http://www.ihwy.com/labs/jquery-listmenu-plugin.aspx What's new: -- ListNav plugin - 1. added an includeOther option to provide a top lev

[jQuery] Re: AJAX calls acting syncronously

2009-08-11 Thread sak
Hi Nick Thanks so much that sorted it all out.it's been bugging me for the last two days, but had to put it aside to continue with other work. Just ran a test now and it works as expected. I get the jist of what was going on now but I'll need to research it a little more indepth to fully und

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Liam Potter
Hi Rick, I think these explanations are correct, if not someone else should correct me :p so, row[19] is kind of like an object and it contains the value of whatever row[19] is. so lets say row[19] is this Hello In your 'Boolean' example, this is what is happening If row[19] exists in the

[jQuery] fadeIn() failing the second time it's called.

2009-08-11 Thread Perceptes
Hi all, I'm working on an interface with two different chains of animations. The page shows 5 pets and allows the user to click on one of them for details. When one is clicked, the other pets disappear, the selected one's image slides to the left and the content appears. When the image is clicked

[jQuery] Validation Error message help

2009-08-11 Thread Dave Maharaj :: WidePixels.com
I have this script: $(document).ready( function() { $('#username').blur( function () { fieldName = $(this).attr('id'); fieldValue = $(this).val(); $.post('/users/ajax_validate', { field: fieldName,

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Rick Faircloth
Thanks, Liam... You'll see in my answers to my own posts that I finally figured out the extra set of quotes was needed. What I still don't understand is even how this logic works: if ( row[19] ) { row[19] } else { N/A } As a "non-null" check, it seems the statement would need to be asking: "i

[jQuery] Re: AJAX and JSON

2009-08-11 Thread Stephan Beal
On Aug 11, 6:14 am, Cam Spiers wrote: > I also recommend using json2.js for anything more then just a basic > key-value json string. Another nice feature of json2.js is that you can use it to deeply clone objects: var orig = {}; var clone = JSON.parse(JSON.stringify(orig)); i've found tha

[jQuery] Re: AJAX and JSON

2009-08-11 Thread Stephan Beal
On Aug 11, 5:13 am, MorningZ wrote: > I'd also recommend against use of $.getJSON for a totally different > reason: > > There is no option to "catch" errors. You can: you have to set a global ajax error handler to catch it, though. Not pretty, but it's suitable for many simple cases (where a

[jQuery] Re: $ajax() question

2009-08-11 Thread Stephan Beal
On Aug 11, 11:53 am, Jules wrote: > After re-reading the original post, it seems json is not required > > just use > data:"Args="+args2 Don't do that. If args2 contains any invalid characters (i.e. a space) then this will fail, possibly in mysterious ways. Always send the data as an object of ke

[jQuery] jQuery not working with content that is loaded in.

2009-08-11 Thread cz231
Hi, I'm building an online application, and I want one widget to refresh every time a user clicks a certain element. So I wrote a jQuery on click listener that initializes the function to reload the widget. However, when the widget is reloaded, all of the javascript effects stop working for that

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Rick Faircloth
Sorry! :o) -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Liam Potter Sent: Tuesday, August 11, 2009 11:45 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: How to specify a default value... oi, don't be skipping over my answer

[jQuery] Re: [validate] Refreshing the validator after dynamically adding a class to an element

2009-08-11 Thread Jean-Michel
Thanks, doing .toggleClass("required") fixed everything. On Aug 11, 9:32 am, Jörn Zaefferer wrote: > Give that a try: .toggleClass("required") > > In your approach, its likely that the metadata isn't picked up, so > you'd have to manually remove the cached metadata, via > .data("metadata", null)

[jQuery] Re: attr doesn't work in IE6 and Chromium

2009-08-11 Thread Stephan Beal
On Aug 11, 5:35 pm, Julijan Andjelic wrote: >

[jQuery] Code: a generic jQuery+plugin loader/packer

2009-08-11 Thread Stephan Beal
Hi, all! i threw the following together, have gotten good use out of it, and thought someone else out there might find it useful. It's used like this: As one can surmise, this script emits the JS code for jQuery and all requested plugins. If passed no 'version' parameter then it only returns t

[jQuery] Re: attr doesn't work in IE6 and Chromium

2009-08-11 Thread Liam Potter
wow... I'm not even sure what your are trying to achieve with thisno need for doing this through the onclick attribute, and I can't think why you are trying to set the onclick with some javascript? Julijan Andjelic wrote: $("#sitemap a:eq(1)").attr("onclick","$('#sitemap a:eq(2)').text(

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Liam Potter
oi, don't be skipping over my answers :p lol Rick Faircloth wrote: And finally, to continue today’s live, public coding experiments… The answer appears to be that a second set of ‘ ‘ are needed for the conditional: >’ (row[19] ? ‘ ‘ + row[19] + ‘ ‘ : ‘N/A’) + ‘< Instead of: >’(row[19] ?

[jQuery] attr doesn't work in IE6 and Chromium

2009-08-11 Thread Julijan Andjelic
$("#sitemap a:eq(1)").attr("onclick","$('#sitemap a:eq(2)').text(''); sch('brands', '").text(" / "); $("#sitemap a:eq(2)").attr("onclick", "$('#sitemap a:eq(1)').text(''); sch('categories', '").text(" /

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Rick Faircloth
And finally, to continue today's live, public coding experiments. The answer appears to be that a second set of ' ' are needed for the conditional: >' (row[19] ? ' ' + row[19] + ' ' : 'N/A') + '< Instead of: >'(row[19] ? ' + row[19] + ' : 'N/A') + '< The first way works with bo

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Liam Potter
Your concatenation is broke, (I'm assuming the logic behind this is actually working) this >' + (row[19] ? '+ row[19] + ' : 'N/A') + '< should be ' + (row[19] ? ''+ row[19] + '' : 'N/A') + '< As for what is going on here, it's just an if statement shortened down, and could be written like

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Rick Faircloth
Well..another unexpected result. When the inline conditional: >' + (row[19] ? ' + row[19] + ' : 'N/A') + '< is used when a *value is present* in row[19], I get this as the output: + row[19] + instead of the actual value. If I remove the quotes from ' + row[19] + ', I get a

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Rick Faircloth
Well.to answer my own question.I found this works: out.push('Pet Deposit' + (row[19] ? ' + row[19] + ' : 'N/A') + ''); But how does the conditional know whether a Boolean is being checked, as in: >' + (row[19] ? 'Yes' : 'No') + '< Or whether the presence of a value is being checked,

[jQuery] Re: listmenu

2009-08-11 Thread Paul Speranza
Jack, yes, the list menu plugin. On Aug 10, 3:01 pm, Jack Killpatrick wrote: > Hi Paul, > > Thanks for this info, I'll add it to my test cases and thanks for > letting the community know. > > I was actually working on a new version of the plugin yesterday, which > adds one new feature: an onC

[jQuery] How to specify a default value...

2009-08-11 Thread Rick Faircloth
I was shown how to use this inline condition for creating yes/no Boolean values instead of the normal true/false values javascript uses: ' + (row[20] ? 'Yes' : 'No') + ' I'd like to know if there's an equivalent inline method for providing a default value when no value is present, such as

[jQuery] Re: Refresh DIV with full page refresh

2009-08-11 Thread Liam Potter
Be nice :p, obviously his first language is not English. you should be using jQuery's ajax functions. http://docs.jquery.com/Ajax Charlie wrote: $("div").refresh() that function should give you as much success as trying to understand the *details* of your request. bharani kumar wrote: We

[jQuery] Re: Refresh DIV with full page refresh

2009-08-11 Thread Charlie
$("div").refresh() that function should give you as much success as trying to understand the *details* of your request. bharani kumar wrote: We can refresh one DIV jquery script, wiht out entire page refresh ... On Tue, Aug 11, 2009 at 6:30 PM, Dhruva Sagar wrot

[jQuery] How to identify if user chose to see secure only or secure and nonsecure items

2009-08-11 Thread son
Hi. I don't know if this is the right place for this question. If not, pls let me know where this should be go to. My site is secure but also contain non secure items from google adsense. users have the options to view secure only or secure and non- secure item. I would like to be able to identi

[jQuery] Replace script tag

2009-08-11 Thread Lay András
Hello! I used this little code to replace some content with jquery: function Csere() { $('#lufi').replaceWith('Duma'); } 11Csere()22 This works fine, but i'd like to eliminate the id attribute from script tag. I tried $(this).replaceWith('Duma'), and $(this).parent().replaceW

[jQuery] Re: Image Animation Script not working in IE

2009-08-11 Thread terran
Thank you very much, that worked perfectly =D On Aug 11, 8:56 am, Charlie wrote: > ie hates trailing commas, found one here: > }else{ >             $('#back_img').animate({                >                 height:viewportHeight, // remove comma >             },1); > terran wrote:Hi all, So I cre

[jQuery] Re: Refresh DIV with full page refresh

2009-08-11 Thread bharani kumar
We can refresh one DIV jquery script, wiht out entire page refresh ... On Tue, Aug 11, 2009 at 6:30 PM, Dhruva Sagar wrote: > What exactly do you mean by 'refresh DIV' ?If you want to get some content > in the page and update the DIV without loading/refreshing the entire page, > then you should u

[jQuery] Re: i m beginner. how can i start ajax call with jquery

2009-08-11 Thread Charlie
lots of examples http://docs.jquery.com/Ajax santosh baral wrote: hi everybody. I m very new to use ajax. but i know the basics of ajax call and basics of _javascript_. Please help me how to start with making ajax call ..please give me also sample code . Regards Baral

[jQuery] Re: Refresh DIV with full page refresh

2009-08-11 Thread Dhruva Sagar
What exactly do you mean by 'refresh DIV' ?If you want to get some content in the page and update the DIV without loading/refreshing the entire page, then you should use ajax calls to your server. If you can explain what you want in a bit more detail perhaps I could help you a bit more. Thanks &

[jQuery] Re: Problem on IE8

2009-08-11 Thread Gaiz
Point that allow user to change CSS, because page support user's theme. Point that I raise this issue because I use jQuery in every browsers except IE8, it return 0 and other JavaScript framework such as Mootools, it return 0 in every browsers include IE8. I think JavaScript Framework should hand

[jQuery] Refresh DIV with full page refresh

2009-08-11 Thread bharani kumar
Hi All , How to refresh DIV , without refresh entire page, Am having four DIV , DIV1,DIV2,DIV3,DIV4 I want to refresh only DIV! without affecting the DIV3,DIV4 , Thanks

[jQuery] Re: Image Animation Script not working in IE

2009-08-11 Thread Charlie
ie hates trailing commas, found one here: }else{             $('#back_img').animate({                                height:viewportHeight, // remove comma             },1); terran wrote: Hi all, So I created this script and I wasn't actually keeping it in check, so after I finished it

[jQuery] Re: How to bind event handlers to elements

2009-08-11 Thread Richard D. Worth
$('input').bind('change', function() { //... }); or $('input').change(function() { //... }); See http://docs.jquery.com/Events/bind#typedatafn and a full list of Event Helpers, such as http://docs.jquery.com/Events/blur#fn http://docs.jquery.com/Events/change#fn http://docs.jquery.com/Event

[jQuery] Re: How to bind event handlers to elements

2009-08-11 Thread Leonardo K
U need a id or a classe to find the element. If u have a id in your input u could do: $("#id"),change(function(){ //your code here }); If u have a input inside a container that have a class you could do this: $(".container input").change(function(){ //your code here }); or with id $("

[jQuery] Re: [validate] Refreshing the validator after dynamically adding a class to an element

2009-08-11 Thread Jörn Zaefferer
Give that a try: .toggleClass("required") In your approach, its likely that the metadata isn't picked up, so you'd have to manually remove the cached metadata, via .data("metadata", null) Jörn On Tue, Aug 11, 2009 at 3:06 AM, Jean-Michel wrote: > > Hi, > > I know the refresh() method is gone si

[jQuery] Re: Using ScrollTo, IE displays hidden info before it hides it — Any help/ideas?

2009-08-11 Thread jen
Thanks, Stephan! Yeah, I guess it's time to roll my eyes at IE. The client is understanding, so that's cool. Stupid IE. At least it hides by the time the page finishes loading.

[jQuery] Re: Add extra content to the title attribute

2009-08-11 Thread Paul Collins
Thanks for your help guys, that worked a treat. You're right Liam, that was my bad, there was no "add" there, I meant "attr", which was the wrong code anyways... Cheers again Paul 2009/8/11 anurag pal > Hi, > > Use prepend method. > > Regards, > Anurag Pal > > > On Tue, Aug 11, 2009 at 3:15 PM

[jQuery] [validate] Refreshing the validator after dynamically adding a class to an element

2009-08-11 Thread Jean-Michel
Hi, I know the refresh() method is gone since version 1.2 but for some reason even if it's suposed to work without it I can't get it to work. Here's the scenario: I got a select box, depending on the selection I want certain element to validate so I dynamically add validation class to those ele

[jQuery] Image Animation Script not working in IE

2009-08-11 Thread terran
Hi all, So I created this script and I wasn't actually keeping it in check, so after I finished it it had stopped working in IE. I tried testing some functions such as alert('test') after jquery ready, but nothing is firing anymore. I wanted to know if anyone could see what was wrong here. http:

[jQuery] Re: scrolling height of the window and placing popup windows

2009-08-11 Thread mrphp
Did you manage to do it? looking forward to hear from you soon. On Jul 15, 5:56 pm, snitch wrote: > Hello, > > for opening a PopUp Window I use the Popup.js from Adrian "yEnS" Mato > Gondelle. > Adrian has written a function to center the popup by calculating the > window height/with and popup

[jQuery] malsup's form plugin

2009-08-11 Thread Saliem
Hello all -- How does wrapping a json response from the server in textarea tags help following a file upload?

[jQuery] How to bind event handlers to elements

2009-08-11 Thread André Hänsel
Hi list, which is the recommended way to bind event handlers to elements. Preferably without giving each of them an id. As far as I know, the "classic" way () is considered deprecated and evil. So what is the jQuery way of doing this? Regards, André

[jQuery] Re: jqGrid 35.5 released

2009-08-11 Thread Brett Ryan
Hi Tony, somethings up with triand.com, it keeps reporting that the account has been banned! Hope all is okay, you've done some great work. -Brett On Aug 2, 5:23 am, Tony wrote: > Happy to announce the final 3.5 release of jqGrid. > New wiki Documentation athttp://www.trirand.com/jqgridwiki > T

[jQuery] how to write a frameset with jquery

2009-08-11 Thread cokegen
Hi, I'm trying to output a frameset and I tried everything but can't get it to work. The frameset never appears in the generated html. The html and js code is the following: index.html http://www.w3.org/1999/xhtml";> http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/ jquery.min.js

[jQuery] Is there a way to define custom event default handler?

2009-08-11 Thread Taras Bogach
Is there a way to define custom event default handler? jQuery.fn.bindDefault - this function does not exist, but it would be nice to have such one to have ability to make equivalent of DOM default event for custom events. It have to work just like jQuery.fn.bind, but handlers passed to it have to

  1   2   >