[jQuery] getting the value of list box in jquery

2009-06-29 Thread naz
i have a list box and i want to get its values in jquery please tel me how can i do that i m writing $('#right').val(); but this is giving me null plpease tell me how can i do that i need help as soon as possible thx to all persons which reply to my questions

[jQuery] Re: Cluetip with textarea

2009-06-29 Thread johhnnyboy
? On 29 jun, 20:34, johhnnyboy wrote: > But say I really would like to? > > On 29 jun, 19:32, Karl Swedberg wrote: > > > > > I don't think cluetip is the best tool for that job. > > > I wrote a tutorial long ago about showing a preview for textareas. I'd   > > just do something simple like that

[jQuery] Re: jquery .noconflict

2009-06-29 Thread Sparky12
Hey Mike, I think it is ? Its the only way that is resolving this error - http://docs.jquery.com/Using_jQuery_with_Other_Libraries#Including_jQuery_before_Other_Libraries Otherwise I just keep getting the error above - btw I am using jQuery and not the "$" and without calling the jquery script

[jQuery] Re: jquery .noconflict

2009-06-29 Thread Michael Geary
No, that isn't required at all. See the examples on this page: http://docs.jquery.com/Using_jQuery_with_Other_Libraries -Mike > From: Sparky12 > > Hey Matt, > > Thanks for the response. > > OK - little confused. So basically what this is saying is I > need to call the jquery javascript libr

[jQuery] Re: jquery .noconflict

2009-06-29 Thread Matt Quackenbush
That is exactly what it means.

[jQuery] Re: dependent select lists

2009-06-29 Thread ticallian
Not sure what you exactly you meant, if you need to update the script to work with JQuery 1.3, TuxX posted a solution on the site. Changing the original line: $("#"+child+' opti...@value="'+ childVal +'"]').attr ('selected','selected'); to $(”#”+child).val(["'+ childVal +'"]).attr(’selected’,’sel

[jQuery] Identifying the type of parent

2009-06-29 Thread Bruce MacKay
Hello folks, I have a function, triggered when a particular type of link is clicked, which collects and inserts some text after the parent of the clicked link. This function works fine when the parent is a p tag, but I'm having trouble when the link is within a list tag. In this instance I

[jQuery] Re: Float Image on Page

2009-06-29 Thread Nic Hubbard
Is there a way to make this more random? Meaning, if I have multiple images, using the above script they all kind of go on the same direction. Thanks again. On Jun 29, 9:19 pm, mkmanning wrote: > Quick example: > > $(document).ready(function(){ > var floater = function(){ >          $('img').a

[jQuery] Re: Float Image on Page

2009-06-29 Thread Nic Hubbard
Thanks! This is just what I was looking for! On Jun 29, 9:19 pm, mkmanning wrote: > Quick example: > > $(document).ready(function(){ > var floater = function(){ >          $('img').animate( {'marginTop':(Math.random() * $(window).height()) > + 'px','marginLeft':(Math.random() * $(window).width(

[jQuery] image resize issue

2009-06-29 Thread David .Wu
我今天有兩個放大縮小按鈕,想讓user按放大時用js把一個100x72的圖片 以寬為主每次加4px等比放大,反之亦然,但不知道小數位數該如何取才能正確控制高度 等比放大的公式為 I have two button to let user enlarge or reduce a 100px x 72px image immediately on the page, 4px enlarge or reduce one time by width, but I don't know how to control the height to make resize proportionally.

[jQuery] Re: Float Image on Page

2009-06-29 Thread mkmanning
Quick example: $(document).ready(function(){ var floater = function(){ $('img').animate( {'marginTop':(Math.random() * $(window).height()) + 'px','marginLeft':(Math.random() * $(window).width()) + 'px'}, 2000,'linear',function(){ setTimeout(floater,10); } ); } fl

[jQuery] select random div

2009-06-29 Thread zendog74
I am using the periodic updater plug-in to make an Ajax call to grab an HTML file that has many divs in it. I want to parse the returned HTML and display a random div in a placeholder div on the page. I am stuck on how to select out the random div from the returned HTML. Can someone please lend a

[jQuery] Re: jquery .noconflict

2009-06-29 Thread Sparky12
Hey Matt, Thanks for the response. OK - little confused. So basically what this is saying is I need to call the jquery javascript library BEFORE any other library on the page ? i.e. always ensure that the jquery library is the "first" script listed in my scripts ? Thanks

[jQuery] Re: getJSON 2nd param to pass data

2009-06-29 Thread mkmanning
It uses a GET request, so yes, it converts the name:value pairs into a querystring. Fiddler's fine but you can view the request in Firebug (which overall has more value for web development). On Jun 29, 8:00 pm, expresso wrote: > http://docs.jquery.com/Ajax/jQuery.getJSON > > I don't get what it

[jQuery] Ajax is not working in thickbox

2009-06-29 Thread anjith
http://jquery.com/demo/thickbox/ I developed thickbox as per above link instructions i got two issues 1.)Ajax Is not working in thickbox and 2.)Styles are not applying for thickbox I followed as per instructed in AJAXCONTENT Category and gave link as Login Where when i checked login_lightb

[jQuery] Re: jquery .noconflict

2009-06-29 Thread Matt Quackenbush
Straight from the docs http://docs.jquery.com/Core/jQuery.noConflict *NOTE:* This function must be called after including the jQuery javascript file, but *before* including any other conflicting library, and also before actually that other conflicting library gets used, in case jQuery is incl

[jQuery] Radio buttons and checkbox validation

2009-06-29 Thread anjith
http://docs.jquery.com/Plugins/Validation Through Jquery in this link i developed a form . The validation are working fine but When no error i have to return a image (green color tick) to show field filled is correct format but i am unable to find where to change for required thing to happen

[jQuery] JQUERY - Autocomplete with pagination

2009-06-29 Thread bharani kumar
Hi , Can u please tell me, How to add the pagination for autocomplete plugin , or is there any plugin there , Thanks

[jQuery] nicejforms latest version

2009-06-29 Thread Davis
Hello, I am wondering where can download the latest version of NiceJforms ? i found download from http://www.lexcat.ro/nicejforms/ not sure that version work with jquery 1.0 only or? as i fail when call them using jquery-1.3.2, it stated Object does not support this property or method ( i guess

[jQuery] getJSON 2nd param to pass data

2009-06-29 Thread expresso
http://docs.jquery.com/Ajax/jQuery.getJSON I don't get what it means in this example: Load the JSON data from test.js, passing along additional data, and access a name from the returned JSON data. $.getJSON("test.js", { name: "John", time: "2pm" }, function(json){ alert("JSON Data: " + json.u

[jQuery] Re: Validate groups of checkboxes

2009-06-29 Thread Charlie
no idea what your groups look like but since all you need is one and don't care where it is something like this should help if($("div:has('input:checked')").length>0) {                 alert(" We got a Winner!!  " );                 }                 else{ alert(" Come on! check at least one

[jQuery] Re: Create an AJAX form within a modal window.

2009-06-29 Thread Rick Faircloth
I've been working on converting my CF-based admin functionality to just what you describe, except doing it with Thickbox instead of SimpleModal. Except for how the modal windows may be handled, I don't think there would be any difference between what I do and what you asking about. Here's an exam

[jQuery] Re: jquery .noconflict

2009-06-29 Thread Sparky12
Hi Guys, Any one have any ideas about this ? I am really stuck ?

[jQuery] Re: styling thickbox

2009-06-29 Thread Rick Faircloth
I'm using Thickbox, too, and have been concentrating on functionality, but would like to style it, as well. I haven't looked at how this might be accomplished. Did you find any info on this? Rick On Mon, Jun 29, 2009 at 8:16 AM, CliffordSean wrote: > > > hi there > > im looking to style thickb

[jQuery] Re: $.data question

2009-06-29 Thread Steven Yang
Hihere is my case please tell me if its reasonable or not or is there a "correct" way to approach this in our application we use empty string as a default value i was doing a double select function and i want to cache the value from data get from using getJSON. I know that I probably should use G

[jQuery] Re: Float Image on Page

2009-06-29 Thread James
You can position the object with CSS "position: absolute" and write a script to change it's "top" and "left" CSS attribute. On Jun 29, 1:32 pm, Nic Hubbard wrote: > I have been trying to find a solution to this for a while, but all I > can find is about style:float which is not what I want. > >

[jQuery] Re: New plugin announcement and review request - bullsEye

2009-06-29 Thread Tony Landis
Orkan, Got it, committed the change: http://github.com/tony-landis/jQuery-bullsEye/commit/3a40c81cd8edd73d5575050f80f79bac4d5dad52 In reply to your question, the answer is yes, see: http://github.com/tony-landis/jQuery-bullsEye/blob/3a40c81cd8edd73d5575050f80f79bac4d5dad52/jquery.bullseye.

[jQuery] Float Image on Page

2009-06-29 Thread Nic Hubbard
I have been trying to find a solution to this for a while, but all I can find is about style:float which is not what I want. I would like to animate an image randomly around the screen. So, it could slowly float across the screen, and would randomly choose its motion. Any ideas?

[jQuery] Re: Problems with $.getScript (IE)

2009-06-29 Thread ZLOAder
It was the first i think about. I have tried to add random string to URL No changes. :( On Jun 29, 9:25 pm, James wrote: > Probably the script is being cached. Try changing the url everytime > the getScript function is called. This is commonly done by adding a > time to the url's query string, l

[jQuery] Re: validate - submit with href - quickie

2009-06-29 Thread Amos Robinson
You're not wrapping your domready in a function. With your example $(document).ready( $("#submitregister").click( ... ); ); The .click call is being evaluated straight away and passed to document.ready. You want to wrap it in a function so document.ready will cal

[jQuery] Re: Cycle using own thumbnails

2009-06-29 Thread -null-
;) should have had a look at more of the demos. There is another one of the advanced demos that similar to that which uses images. Got it working now anyway. Thanks a lot :) On 29 June, 22:12, Charlie wrote: > this demo is reasonably easy to customize for thumbs that are different than > sl

[jQuery] Re: Problems with selectors and this keyword

2009-06-29 Thread waseem sabjee
* *I would do it this way td { background-color:#FFF; } td.hover { background-color:#AAA; } $(function() { var tableColumn = $("td"); tableColumn.hover(function() { // on mouse over $(this).addClass("hover"); }, function() { // on mouse leave $(this).removeClass("hover"); }); }); *EXPLAN

[jQuery] Re: (validate) Radio button values

2009-06-29 Thread Alexandre Magno
Matt, How I said, you should try: jQuery.validator.addMethod("correctAnswer", function(value, element, params) { return this.optional(element) || value == params; }, "Select the correct answer to move on."); So you can make: $("quiz_form").validate({ rules: { correctAnswer: 1 } }); Just th

[jQuery] Re: live event doesn't work after append()

2009-06-29 Thread Mean Mike
that looks cool, Ricardo. Could one of you explain the selector syntax to me ? On Jun 29, 4:59 pm, Ricardo wrote: > Should work, see this example:http://jquery.nodnod.net/cases/444 > > Is your page in quirks mode? Can you give us an online sample of it? > > On Jun 29, 7:08 am, Anton wrote: > >

[jQuery] Re: $.data question

2009-06-29 Thread Ricardo
Well, data is saved onto an indexed cache. You can't have an empty string as a key, you need a name for it. If you don't provide a name you'll get back the internal ID of the selected element. // from jQuery source, data.js ln 27 return name ? jQuery.cache[ id ][ name ] : id; Any reason yo

[jQuery] Re: (validate) Radio button values

2009-06-29 Thread Alletha McIntyre
Hi Matt Sorry, I omitted to change the variable you are comparing the value of. Ie return this.optional(element) || value > params; should read > return this.optional(element) || radioValue > params; Also stick a breakpoint where the variable is created and just make sure it is actually pop

[jQuery] Re: Validate groups of checkboxes

2009-06-29 Thread Mean Mike
can you break it down to say two or three let me see how you have the html for those set up ? On Jun 29, 3:47 pm, Maged Makled wrote: > Hey All, >              I have 30 groups of checkboxes and want to validate that > the user select at least one checkbox from any group meaning if he > selected

[jQuery] Re: Problems with selectors and this keyword

2009-06-29 Thread Charlie
(this) has to stand alone, you can't use it quite the same way as parent child in your selector most common way to do it is $("this").find("td").css(..); ///looks for td's that are children of (this) or there's an abbreviated method that isn't shown in many examples $("td", this).css(

[jQuery] Re: Cycle using own thumbnails

2009-06-29 Thread Charlie
this demo is reasonably easy to customize for thumbs that are different than slides http://www.malsup.com/jquery/cycle/pager4.html -null- wrote: I'm using the cycle plugin to create a slideshow of highlights. So far I have the slides automatically fading between each other but I'd also l

[jQuery] Re: live event doesn't work after append()

2009-06-29 Thread Ricardo
Should work, see this example: http://jquery.nodnod.net/cases/444 Is your page in quirks mode? Can you give us an online sample of it? On Jun 29, 7:08 am, Anton wrote: > I found the bug ticket with similar problem:http://dev.jquery.com/ticket/4762, > but it was closed as invalid. The problem st

[jQuery] Re: jQuery session pre-AJAX experience?

2009-06-29 Thread MorningZ
See Karl's replies http://groups.google.com/group/jquery-en/browse_thread/thread/f7d2ed1048127d9e/97c2de6da6828bcb?hl=en On Jun 29, 2:18 pm, Vlad Didenko wrote: > Colleagues, > > Does anyone know if there is going to be a jQuery workshop the day > before AJAX experience in Boston on September

[jQuery] Re: Problems with selectors and this keyword

2009-06-29 Thread Karl Swedberg
There are a few ways you could do this. Here are two: $('> td', this).css('background', '#ff'); or $(this).children('td').css('background', '#ff'); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 29, 2009, at 3:58 PM, Coxy wrote: $('.mainTab

[jQuery] Problems with selectors and this keyword

2009-06-29 Thread Coxy
$('.mainTable > tbody > tr').bind("mouseover", function(){ // alert('hi'); //$(this + ' > td').css('background', '#ff'); // Didn't work $(this + ' td').css('background', '#ff'); // Doesn't either }); I want to highlight td's in a row when I mouse over the TR's. I s

[jQuery] Cycle using own thumbnails

2009-06-29 Thread -null-
I'm using the cycle plugin to create a slideshow of highlights. So far I have the slides automatically fading between each other but I'd also like to have thumbnails that when hovered jumps the slideshow to the associated slide. Using pager and pagerEvent I can do this but I don't know how to us

[jQuery] Form Plugin Question

2009-06-29 Thread icfantv
As jQuery has both a serialize() and serializeArray() method for serializing an HTML form to a String and JSON respectively, why does the Form Plugin at malsup.com include yet another serialize() method in the form of formSerialize()? I understand the fieldSerialize() method, but not the former.

[jQuery] [validate] Validation plugin 1.5.5 error in IE6

2009-06-29 Thread Tristan
The jquery.validate.pack.js file found on http://bassistance.de/jquery-plugins/jquery-plugin-validation/ causes an error when run in IE6. I re-ran the packing process with the perl port of Dean Edwards' Packer found here http://deanedwards.googlecode.com/svn/trunk/download/packer2.perl.zip and t

[jQuery] Re: jQuery i18n

2009-06-29 Thread Charlie
another one to look at is jqGrid..  I18n folder,  files all set up as js includes chris thatcher wrote: check out the data picker from jquery-ui.  It has excellent i18n. http://jqueryui.com/demos/datepicker/#localization On Mon, Jun 29, 2009 at 8:16 AM, Chris Ford

[jQuery] Validate groups of checkboxes

2009-06-29 Thread Maged Makled
Hey All, I have 30 groups of checkboxes and want to validate that the user select at least one checkbox from any group meaning if he selected one checkbox from the first group and nothing from the other 29 the form should be valid. I tried different solutions but none worked. Can any

[jQuery] Re: s.replace is not a function

2009-06-29 Thread expresso
figured it out finally...needed to do item.ImageTag, not item. On Jun 29, 2:37 pm, expresso wrote: > I actually did try that > >     $.getJSON("http://localhost:59396/xxx/xxxHandler.ashx? > action=xxxproductsjson", >         function(data) { >             $.each(data, function(i, item) { >      

[jQuery] Re: s.replace is not a function

2009-06-29 Thread Mean Mike
try alerting item.ImageTag and see if that gets you the string you want I think your passing the entire json object rather then then item's in your json array (thats what the square braces mean []= array) Mike On Jun 29, 3:37 pm, expresso wrote: > I actually did try that > >     $.getJSON("htt

[jQuery] Re: the best way to handle a group of div elements

2009-06-29 Thread Mean Mike
thats odd I use that syntax all the time like this $("#iti, #skipped").sortable({ connectWith: ['.connectedSortable'], receive: function(e, ui) { var item_id = $(ui.item).attr('id'); $(ui.item).attr('id', $(this).attr('id') + item_id.substr (item_id.in

[jQuery] Re: s.replace is not a function

2009-06-29 Thread expresso
I actually did try that $.getJSON("http://localhost:59396/xxx/xxxHandler.ashx? action=xxxproductsjson", function(data) { $.each(data, function(i, item) { alert(item); carousel.add(i, decode(item)); if (i == 3) return false;

[jQuery] Re: G is undefined

2009-06-29 Thread expresso
Thanks all. On Jun 29, 1:12 pm, "Michael Geary" wrote: > The jQuery example uses data.items because the JSON data it fetches is an > object with an items property. Load the sample URL in your browser and look > at the data: > >

[jQuery] Re: s.replace is not a function

2009-06-29 Thread Mean Mike
alert item in your loop and see if your passing a string or not I think that is essentially your problem On Jun 29, 3:15 pm, expresso wrote: > damn it, not resolved.  Same status as last.  Forget it.  I'll hack > away at this. > > On Jun 29, 2:11 pm, expresso wrote: > > > if I try a hard coded

[jQuery] Re: Add class where input differs

2009-06-29 Thread James
You're just going to have to add some kind of onkeyup, onchange, etc. type of event to trigger your own "differ" function. Then your differ function will do the checking. This is done depending on where and how your "history" is being stored (e.g. array or JSON). On Jun 29, 9:09 am, Richard Walsh

[jQuery] Re: s.replace is not a function

2009-06-29 Thread expresso
damn it, not resolved. Same status as last. Forget it. I'll hack away at this. On Jun 29, 2:11 pm, expresso wrote: > if I try a hard coded string like this, it's fine when I pass this > back.  Notice that it does NOT have the []: > > string testJSON = @"{""ImageTag"":"" src="http://www

[jQuery] Re: s.replace is not a function

2009-06-29 Thread expresso
resolved. I had an error somewhere else in my code. thanks. On Jun 29, 2:11 pm, expresso wrote: > if I try a hard coded string like this, it's fine when I pass this > back.  Notice that it does NOT have the []: > > string testJSON = @"{""ImageTag"":"" src="http://www.xx.com/image/473.jpg

[jQuery] Re: the best way to handle a group of div elements

2009-06-29 Thread Mean Mike
my bad you need a comma separator as well var div_elements = $('.nc1, .nc2'); On Jun 29, 2:55 pm, Antonio wrote: > As you can see at this > page:http://webcms.ba.infn.it/~pierro/GUIcondDb/CondDBMonitoring/test.html# > > var div_elements = $('.nc1 .nc2'); > doesn't work > > Antonio > > On 29 Giu

[jQuery] Re: the best way to handle a group of div elements

2009-06-29 Thread Antonio
also var div_elements = $('.nc1, nc2') doesn't work because it works like nc1 OR nc2 the solution is to write var div_elements = $('.nc1.nc2') i.e. .nc1.nc2 tied without empty space.. thanks Antonio On 29 Giu, 21:01, Mean Mike wrote: > my bad you need a comma separator as well > var div_eleme

[jQuery] Add class where input differs

2009-06-29 Thread Richard Walsh
I'm writing an application that will show the history of a form, so for example record 1 is revision 1 and record 14 is revision 14. This all works fine and dandy, but what I'm trying to achieve is where the input value differs to highlight the form field. I'm imaging the code to basically look l

[jQuery] Re: s.replace is not a function

2009-06-29 Thread expresso
if I try a hard coded string like this, it's fine when I pass this back. Notice that it does NOT have the []: string testJSON = @"{""ImageTag"":""""}, {""ImageTag"":""""}"; On Jun 29, 2:07 pm,

[jQuery] Re: s.replace is not a function

2009-06-29 Thread Mean Mike
sorry I can't help with your carousel but that is not valid json you have extra quote in this part of line '.jpg" alt=' mike On Jun 29, 2:07 pm, expresso wrote: > It appears that the jCarousel project is obselete.  The forum for it > has halted in 2008.  This is frustrating as I'm trying to loo

[jQuery] Re: s.replace is not a function

2009-06-29 Thread Mean Mike
did that solve the problem ? On Jun 29, 2:46 pm, expresso wrote: > Thanks mike.  It's a bit rough for me trying to customize this stuff > as I'm still pretty new to jQuery.  I've got the books and all but > still not the easiest to code in...as we all know AJAX is not easy. > While jQuery makes

[jQuery] Re: the best way to handle a group of div elements

2009-06-29 Thread Antonio
As you can see at this page: http://webcms.ba.infn.it/~pierro/GUIcondDb/CondDBMonitoring/test.html# var div_elements = $('.nc1 .nc2'); doesn't work Antonio On 29 Giu, 19:37, Antonio wrote: > and if I have the following html code > > > > > > > and I would like to handle only div elements wi

[jQuery] Re: s.replace is not a function

2009-06-29 Thread expresso
so in other words, that quote you're seeing is really " it's just rendering in here as an actual quote when it's really " for that end quote when I view the JSON in the browser. On Jun 29, 2:07 pm, expresso wrote: > actually I think it is valid, the quote must have showed up rendered > in that

[jQuery] Re: s.replace is not a function

2009-06-29 Thread expresso
actually I think it is valid, the quote must have showed up rendered in that last post. [{"ImageTag":""},{"ImageTag":""}] oh well I'll play with it some more. On Jun 29, 2:02 pm, Mean Mik

[jQuery] Re: Problems with $.getScript (IE)

2009-06-29 Thread James
Probably the script is being cached. Try changing the url everytime the getScript function is called. This is commonly done by adding a time to the url's query string, like: Generate a new time with: var t = new Date().getTime(); http://server.url?roomname=alfa&time=[add time here] On Jun 27, 1

[jQuery] Re: G is undefined

2009-06-29 Thread Michael Geary
The jQuery example uses data.items because the JSON data it fetches is an object with an items property. Load the sample URL in your browser and look at the data: http://api.flickr.com/services/feeds/photo

[jQuery] Re: (validate) multiple checkbox groups

2009-06-29 Thread Maged Makled
I have the same problem where I'm using the validation plugin and have 30 checkbox groups and the form is valid only if they select at least one checkbox from any group. Can anybody help Thanks -Maged Makled On Jun 26, 2:12 pm, Alexandre Magno wrote: > Are you usingvalidateplugin to make all

[jQuery] Re: ajax .load() function appends a 0 to returned values

2009-06-29 Thread James
It sounds like it's coming out of your php script. Maybe you left some kind of debug code in there? Something that echos true or false? You can use Firebug for Firefox to check what the returned response for your ajax is. If you see the 0 in there, it's from your php code. If you don't, it's from

[jQuery] Re: s.replace is not a function

2009-06-29 Thread Mean Mike
ohh yeah can we see the json result ? On Jun 29, 1:49 pm, expresso wrote: > I borrowed this function > fromhttp://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_feed.html > > function mycarousel_decodeEntities(s) { >     return s.replace(/&/g, "&") >             .replace(/"/g, '"') >  

[jQuery] Re: Refreshing a div after a Ajax operation

2009-06-29 Thread James
I didn't look into it deeply, but just so you know, the argumetns for $.load() is $.load(url, [data], [callback]). .load('index.php #container ul'); is not going to work. It should look like: $('#container ul').load('index.php'); On Jun 28, 12:41 am, Maruf wrote: > Well I'm trying to do someth

[jQuery] jQuery session pre-AJAX experience?

2009-06-29 Thread Vlad Didenko
Colleagues, Does anyone know if there is going to be a jQuery workshop the day before AJAX experience in Boston on September 14-16th, 2009? Thank you! Vlad

[jQuery] (Validate) multiple groups of checkboxes

2009-06-29 Thread Maged Makled
Hey All, I have 30 groups of checkboxes and want to validate that the user select at least one checkbox from any group meaning if he selected one checkbox from the first group and nothing from the other 29 the form should be valid. I tried different solutions but none worked. Can any

[jQuery] Re: s.replace is not a function

2009-06-29 Thread expresso
Thanks mike. It's a bit rough for me trying to customize this stuff as I'm still pretty new to jQuery. I've got the books and all but still not the easiest to code in...as we all know AJAX is not easy. While jQuery makes it easier, it's still not that easy. On Jun 29, 1:40 pm, Mean Mike wrote:

[jQuery] Create an AJAX form within a modal window.

2009-06-29 Thread Erich93063
I am creating an admin in ColdFusion and am trying to add a feature where when the user clicks the "edit" button for something, a modal window will pop up which contains a form (loaded from an external file) that when the user submits it, it's an AJAX submit and then the modal window closes and fi

[jQuery] Re: s.replace is not a function

2009-06-29 Thread expresso
It appears that the jCarousel project is obselete. The forum for it has halted in 2008. This is frustrating as I'm trying to look for a carousel that does dynamic loading. here's the json [{"ImageTag":""},{"ImageTag":"[jQuery] Re: the best way to handle a group of div elements
you need the "." again like this var div_elements = $('.nc1 .nc2'); On Jun 29, 1:37 pm, Antonio wrote: > and if I have the following html code > > > > > > > and I would like to handle only div elements with class values > starting with "nc1 nc2" > how can do it? > > I tried this code..but i

[jQuery] Re: Cluetip with textarea

But say I really would like to? On 29 jun, 19:32, Karl Swedberg wrote: > I don't think cluetip is the best tool for that job. > > I wrote a tutorial long ago about showing a preview for textareas. I'd   > just do something simple like that and position the preview div with   > CSS. > > http://ww

[jQuery] Re: jQuery i18n

check out the data picker from jquery-ui. It has excellent i18n. http://jqueryui.com/demos/datepicker/#localization On Mon, Jun 29, 2009 at 8:16 AM, Chris Ford wrote: > Are you sure that you need to worry about i18n in your jQuery? So long as > you haven't hardcoded any copy into your javascrip

[jQuery] Re: the best way to handle a group of div elements

and if I have the following html code and I would like to handle only div elements with class values starting with "nc1 nc2" how can do it? I tried this code..but it doesn't work var div_elements = $('.nc1 nc2'); div_elements.removeClass('hidden'); Antonio On 29 Giu, 18:04, Mean Mike wr

[jQuery] Re: G is undefined

The jQuery example is using data.items because the JSON object it is retrieving is different from yours. Its JSON object is coming from the flickr API. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 29, 2009, at 1:25 PM, expresso wrote: Mike thank

[jQuery] Re: s.replace is not a function

there is nothing wrong with the mycarousel_decodeEntities function so either your passing something it is not expecting, some part of jquery didn't load right or you have a syntax problem somewhere else Mean Mike On Jun 29, 1:49 pm, expresso wrote: > I borrowed this function > fromhttp://sorga

[jQuery] Re: Cluetip with textarea

I don't think cluetip is the best tool for that job. I wrote a tutorial long ago about showing a preview for textareas. I'd just do something simple like that and position the preview div with CSS. http://www.learningjquery.com/2006/11/really-simple-live-comment-preview --Karl ___

[jQuery] s.replace is not a function

I borrowed this function from http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_feed.html function mycarousel_decodeEntities(s) { return s.replace(/&/g, "&") .replace(/"/g, '"') .replace(/'/g, "'") .replace(//g

[jQuery] Re: send parameters to web service method using jQuery .ajax function

$.ajax({ type: "POST", // use method POST url: "myservice.asmxx/getValue", data: "{'value': 'Hello World'}",

[jQuery] Re: G is undefined

In addition to www.jsonlint.org, since you're developing on Windows, head over here right now and get the Fiddler debugging proxy server: http://www.fiddler2.com/ Then, go to the Extensions page: http://www.fiddler2.com/Fiddler2/extensions.asp At the very least get the JSON Viewer (at the bott

[jQuery] Re: G is undefined

I understand. Thanks for the explanation. On Jun 29, 12:19 pm, "Michael Geary" wrote: > That's right, your JSON is perfectly valid. You can test it at: > > www.jsonlint.org > > Here's the formatted output from that site, with the image tags elided for > clarity, and comments added showing how y

[jQuery] Re: G is undefined

Mike thanks a lot. That is so weird. I got some ideas from http://docs.jquery.com/GetJSON and as you can see from the example it's using data.items. it's working now. I just wonder why the jQuery example is using data.items On Jun 29, 12:19 pm, "Michael Geary" wrote: > That's right, your JSO

[jQuery] Re: G is undefined

That's right, your JSON is perfectly valid. You can test it at: www.jsonlint.org Here's the formatted output from that site, with the image tags elided for clarity, and comments added showing how you'd access each part of it directly in JavaScript: // Data [ // Data[0] {

[jQuery] Cluetip with textarea

Hello, Does anyone have a tutorial or testscript how to show a cluetip (previewwindow) when onkeyup in textarea?

[jQuery] Re: G is undefined

I even sent a test string without the [ ] and I still get 'undefined' for my alert here: function mycarousel_itemLoadCallback(carousel, state) { // Only load items if they don't already exist if (carousel.has(carousel.first, carousel.last)) { return; } $.getJSON("http:/

[jQuery] Re: G is undefined

some tells me that my original JSON is totally valid with the [ and ] On Jun 29, 11:03 am, MorningZ wrote: > http://en.wikipedia.org/wiki/JSON > > will show you what it should look like... notice the outside symbols > are { ... }, not [ ] > > again, you should look at this if you are workin

[jQuery] Re: (validate) Radio button values

Thanks guys. I really appreciate all the help. I'm still stuck, though. I can't get anything to work now, although I can't seem to figure out why. I'm definitely not a programmer, so please be gentle, though feel free to explain things to me like I'm a 5 year-old. I won't be offended. :-) Here'

[jQuery] Re: G is undefined

Thanks I've seen this but would rather stay away from any libraries right now. So basically yea, should be {} I just wonder why the ASP.NET 3.5 JavascriptSerializer class doesn't produce the right output. On Jun 29, 11:03 am, MorningZ wrote: > http://en.wikipedia.org/wiki/JSON > > will show yo

[jQuery] Re: clueTip with dynamic ajax parameter

After several days, I finally came upon the solution! By using the id I already had collected I could call the cluetip function using the dynamic id parameter instead of the .helptext class $(document).ready(function() { $(".helptext").each(function() { var helptext_id = $(this).attr(

[jQuery] Re: Problem with popup windows in jquery

Yes... that should work :X On Jun 29, 3:56 pm, brian wrote: > Why don't you just put that code in the head of the popup page? > > On Mon, Jun 29, 2009 at 8:11 AM, Joao Portela wrote: > > > Hi, I'm trying to use jquery to modify some events in a popup window > > (window.open). Here's what I did;

[jQuery] Re: the best way to handle a group of div elements

your missing quotes $('.nc1').removeClass('hidden') On Jun 29, 11:58 am, Antonio wrote: > Hi folk, > > In HTML code I have this situation: > > > > > I would like to remove "hidden" to class value which class value > starts with "nc1" > > I tried the following jquery code, but it doesn't work.

[jQuery] Re: G is undefined

http://en.wikipedia.org/wiki/JSON will show you what it should look like... notice the outside symbols are { ... }, not [ ] again, you should look at this if you are working with .NET and JSON, it really takes all this guess work from the equation: http://james.newtonking.com/pages/json-ne

[jQuery] Re: G is undefined

this is how I'm sending the JSON, so it adds [ ] http://weblogs.asp.net/scottgu/archive/2007/10/01/tip-trick-building-a-tojson-extension-method-using-net-3-5.aspx On Jun 29, 10:58 am, MorningZ wrote: > Wow, is posting the same thing every 3 mins to bump your topic > annoying > > Anyways, > >

  1   2   >