[jQuery] Re: Newbie with jQuery

2009-08-30 Thread FrenchiINLA
I am sure that you can design better way than 10 separate call, but anyway with your case you can at least group all call event like $('img[id^=img_]').click(function(){ // here you have all img with id starting with img_ click // then you can get the id of caller var id =$(this).attr('id'); //

[jQuery] Re: Replacing like items

2009-08-30 Thread FrenchiINLA
you can add an id to your checkbox in order to get much easier reference to element clicked. Let's say you have id = widget1||123456, widget2||123456 etc then $('input[type=checkbox][id$=123456]')'.click(function(){ $('input[type=checkbox][id$=123456]')'.not($(this)) will give you all other check

[jQuery] Re: How can I select an element's parent?

2009-08-01 Thread FrenchiINLA
you should change your html something like: ul id=product_links li id=firsta href=#FIRST/a/li li id=seaconda href=#SECOND/a/li li id=thirda href=#THIRD/a/li /ul then in order to get the id of your li you can use the following code $('a',

[jQuery] Re: What am i doing wrong????

2009-07-31 Thread FrenchiInLA
You should have .attr('checked','checked'), by the way you don't need to wrap your filter by QUOTE $('input[name=PlannedInvitationsOther]:checked') would work as well PictureMan wrote: Ah.. one darn missing suqiggly can ruin the whole darn thing... Another question, related to that...

[jQuery] Re: Fetching data from callback with $.ajax

2009-07-26 Thread FrenchiINLA
I would do like that: isAuthenticated function return true or false according the entry, then check if is Authenticated, ajax to your php something like if(isAuthenticated($('#username').val(), $('#password').val())) { $ajax( { -- -- success: function(msg){ alert(msg=='authenticated') } } ); }

[jQuery] Re: Setting identical events to multiple elements using a for loop

2009-07-26 Thread FrenchiINLA
in your case you can use: $('span[id^sp_span]') to get all span with id starting with sp_span then you can get the id when is clicked $('span[id^sp_span]').click(function(){ var spanID = $(this).attr('id').split('_')[1] ;will give you span1, span2 etc $('#'+spanID).slideToggle(slideSpeed); });

[jQuery] Re: jQuery Nesting Tables

2009-07-26 Thread FrenchiINLA
it before the table(parent table) .. this code works .. but I need to check if the page links table exists .. this.before('divtable id=\'pages\'/table/div'); jQuery(#ctl00_ContentPlaceHolder1_GV).find('tbody tr:last').remove ().appendTo($(#pages)); On Jul 26, 12:54 am, FrenchiINLA mamali.sohe

[jQuery] Re: Setting identical events to multiple elements using a for loop

2009-07-26 Thread FrenchiINLA
sorry i got a typo error, the corrent code is: $('span[id^=sp_span]'). On Jul 26, 8:39 am, FrenchiINLA mamali.sohe...@gmail.com wrote: in your case you can use: $('span[id^sp_span]') to get all span with id starting with sp_span then you can get the id when is clicked $('span[id^sp_span

[jQuery] Re: jQuery Form Validation

2009-07-26 Thread FrenchiINLA
how about $('input[type=text]').keyup(function() { if ($(this).val().length == 2) { $(this).prev().find('span').empty(); } }); On Jul 26, 10:36 am, Tuppers360 tuppers...@sky.com wrote: Hi there just wondering if I

[jQuery] Re: jQuery Nesting Tables

2009-07-25 Thread FrenchiINLA
Could you provide your html code generated by .net? it would help, but in general rule you don't have to check existence of an element to apply action to it. Jquery disregard the action if it doesn't exist. For your example: $('tbody[tr:last][td][table]', $(this)).remove(); will work if it can

[jQuery] Re: Multiple Phone Fields

2009-07-25 Thread FrenchiINLA
I don't know about validte plugin, but you can easily check your condition with jquery. for example you can add the same starting id to your text fields something like txt_Phone_bus, txt_Phone_Cell, txt_Phone_Home then you can check for the value of those fields with

[jQuery] Iframe Scroll

2009-07-24 Thread FrenchiInLA
I tried to open a iframe with a definite position. Let’s say I have an iframe like: iframe id=frame src=http://google.com; width=350 height=350/iframe And I’d like to scroll at the position X,Y of google page. I tried scrollTop, scrollLeft and even the plugin scrollTo to no avail. Can I make

[jQuery] Re: Jquery Ajax Postbacks

2009-07-22 Thread FrenchiInLA
What exactly do you like to do? Ajax call do not Post back, but Call back. do you like to post back in .net application? just call the javascript __doPostBack('Yourcontrol','ypurArgument'); gladrinkz wrote: can ant one tell me or give me some shot example regarging jquery ajax post backs

[jQuery] Re: converting an html table to json

2009-07-22 Thread FrenchiInLA
is up to you how you would like to make your json format, but you can easily loop between your table's row, and td then add the format you like. something like: var $table = $('#tableid'); $('tr', $table).each(function(i, item){ // here you can add whatever you like for each TR, then you can

[jQuery] Adding element to an array of object

2009-07-19 Thread FrenchiINLA
I would like to add a key value to an object array. let's say i have 2 arrays: var parArr = new Array('par1', 'par2', 'par3', 'par4'); var valArr = new Array('val1', 'val2', 'val3', 'val4'); I would like to obtain ext={par1:val1, par2:val2,pa3:val3,par4:val4} Any help

[jQuery] Re: Get following rows in a table until id not match certain pattern

2009-07-16 Thread FrenchiInLA
If i understand you correctly you can associate a click event to the table, then get the id of the TR clicked, then filter by nextAll('tr[id^=act+id - top].toggle(); something like: $('yourtable').click(function(e){ var id = $(e.target).closest('tr').attr('id'); // Then filter nextAll tr with

[jQuery] Re: Attaching a jQuery event to a dropdown in an ASP.net Repeater?

2009-07-16 Thread FrenchiInLA
if your DDL has ddlSkillCategoryID as id you can select them with following selectors: $('select[id$=ddlSkillCategoryID]').change(function(){ // do your stuffs }) Dunc-4 wrote: Hi, I've got an ASP.net repeater which has an unknown number of rows, that I'm passing as a variable into

[jQuery] Re: Get the HTML of the current node plus its Inner HTML

2009-07-16 Thread FrenchiInLA
each time that you need javascript function you can use [0] or 'this' in your case you can get it by if(this.nodeName.toLowerCase() == table) { contentHtml += this.outerHTML(); } or if have already selected your table, $table = $('selector') use $table[0].outerHTML bittermonkey wrote:

[jQuery] Re: Create a Select Box

2009-07-16 Thread FrenchiInLA
I don't know the structure of your data coming from your server, but generally speaking you should do something like : var $sel = $('select name=select_1 class=filter/select.'); now loop from your array and populate your select $sel.append($('option value='+ value + '' + text +'/option');

[jQuery] dynamic extend

2009-07-15 Thread FrenchiInLA
I have hard time to find out this one. I'd like to extend an object with another array. Let's say I have an array like var $copy= $('input[id$=copy]'); I would like to extend or add element to $par = {}; as following: $copy.each(function(){ $.extend($par,{$(this).attr('id'):$(this).val()} });

[jQuery] Re: Using jQuery to completely separate HTML from Javascript

2009-07-15 Thread FrenchiInLA
how about # # # $('.foo').click(function(){ var par = $(this).attr('name'); // do whatever you need with name attribution }); Thierry-32 wrote: Hi, I am trying to remove every Javascript reference from my HTML data (except the inclusion headers of course). I would like some

[jQuery] First Parent Siblings

2009-06-17 Thread FrenchiINLA
I have several following html code: h3a class=classa/a/h3div class=classdiv/div h3a class=classa/a/h3div class=classdiv/div h3a class=classa/a/h3div class=classdiv/div etc I would like toggle div.classdiv when a.classa is clicked I tried $(this).parent('h3').siblings('div.classdiv').toggle();

[jQuery] Re: First Parent Siblings

2009-06-17 Thread FrenchiINLA
or toggle a transition  like slideToggle or fadeToggle ? On Wed, Jun 17, 2009 at 11:16 PM, FrenchiINLA mamali.sohe...@gmail.comwrote: I have several following html code: h3a class=classa/a/h3div class=classdiv/div h3a class=classa/a/h3div class=classdiv/div h3a class=classa/a/h3div class

[jQuery] jqGrid with web service of .net framwork

2008-12-19 Thread FrenchiINLA
Is there anyone who could work with jqGrid and web services in a asp.net project? I really try hard to just be able to call the method in my web service for no avail. I have the following in my html file: script type=text/javascript $(function() { $('#list').jqGrid({

[jQuery] Re: Confirming submit using Validate plugin

2008-11-15 Thread FrenchiINLA
Add return false; in case of cancel function confSubmit(form) { if (confirm(Are you sure you want to submit the form?)) { $(#employmentForm).submit(); } else return false; -- }//End of confSubmit function On Nov 15, 3:03 pm, flycast [EMAIL PROTECTED] wrote: I have a long form where

[jQuery] Re: Poll sumbit

2008-11-08 Thread FrenchiINLA
I would do it this way, - on Page Load get the result from db and display it - user selection --- update db -- return the updated result -- display it On Nov 8, 12:34 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I want to build something so that when someone submits his poll choise

[jQuery] Re: Jquery Countdown!!!

2008-11-08 Thread FrenchiINLA
Add the following in the header of your page with the correct liftoffTime value script type=text/javascript $(function() { var liftoffTime = new Date(); liftoffTime.setDate(liftoffTime.getDate() + 5); $('#listLayout').countdown({ until: liftoffTime,

[jQuery] Re: accessing child element without unique id

2008-11-05 Thread FrenchiINLA
var $col = $('#row1 td') will give you a collection of all td under row1, then you can filter by first, last, or even use ordianal positon like $col[0] etc. On Nov 5, 11:59 am, Jared_T [EMAIL PROTECTED] wrote: I'm trying to access a td text value, as shown in the javascript below.  The easiet

[jQuery] Re: Adding class to a parent element- traversion help?

2008-09-30 Thread FrenchiINLA
your problem is coming from (this). just try : $(.bc-wrapper:empty).parent().addClass(none); On Sep 30, 2:09 pm, Vinoj [EMAIL PROTECTED] wrote: I've got the following as my jquery code: script type=text/javascript         $(document).ready(function() {        

[jQuery] Re: Help with $.ajax() function

2008-09-23 Thread FrenchiINLA
try $.getJSON since you want to get json data somthing like $(document).ready(function(){ $(#peep).click(function(){ .getJSON(url, { request:'tes',message:'SupLawl' }, function(json) { alert(json.msg); } ); }); }); On Sep 23, 6:57 pm, Bockit [EMAIL PROTECTED]

[jQuery] Re: Replace html class with rel attribute into an anchor

2008-09-21 Thread FrenchiINLA
what you need is attr. to get the value of an attribution use $ ('iframe').attr('href'); to set a rel attribute use $ ('iframe').attr('rel':'myrel'); On Sep 21, 10:12 am, Andrea - Aosta [EMAIL PROTECTED] wrote: I need to replace an attribute inside a tag a... I have this code html a

[jQuery] Re: Insert variable into a selector

2008-09-21 Thread FrenchiINLA
i think your problem is this.id, you have to show the entire code in order for us to see what does this mean. try just to add a alert for example to see what you get for this.id On Sep 21, 7:38 am, suntrop [EMAIL PROTECTED] wrote: HI there, I want to insert two variables into the selector and

[jQuery] Re: can i use livequery with greybox2 or equivalent?

2008-09-17 Thread FrenchiINLA
You can use livequery to attach events to your elements whenever they are built. something like the following should worrk for you. $('.pageWindow').livequery(function(){ // Add here what you would like to do with the new pageWindow class }); On Sep 17, 12:32 pm, onmountain [EMAIL PROTECTED]

[jQuery] Re: Image Button Acts Like Submit Button for JQuery Call

2008-09-17 Thread FrenchiINLA
try something like: $('.delrow.)hover($(this).attr({'src':'images/rowOverDel.png'}), $ (this).attr({'src':'images/rowOutDel.png'}) ) .click(function(e){ e.preventDefault(); // Do your click event delete row etc return false; }); On Sep 17, 10:53 am, rcflyer2005 [EMAIL PROTECTED] wrote: On my

[jQuery] Re: $.ajax isn't parsing JSON object properly

2008-09-12 Thread FrenchiINLA
are you using .net 3.5? in this casse try the following: success: function(rdata) { var obj = rdata.d; for some security reason web service make this way the JSON object On Sep 12, 8:31 am, Namlet [EMAIL PROTECTED] wrote: I'm trying to digest a JSON object returned from an ASP.NET Webservice.  

[jQuery] Re: How to select all input elements but the button one?

2008-09-09 Thread FrenchiINLA
how about: $('input:not[type=submit], input:not[type=button] ') On Sep 9, 12:00 pm, aldomatic [EMAIL PROTECTED] wrote: I'm trying to select all input elements but the submit or button. I appreciate the help. Aldo

[jQuery] Re: Cancel .toggle() when a link is clicked

2008-09-09 Thread FrenchiINLA
to make id simple i add an 'notoggle' id to your link you can use the following code: $('#toggle').click(function() { alert('toggle'); }); $('#notoggle').click(function() { alert('No Toggle'); return false; }); or if you don't want use id for the link $('#toggle a') instead of

[jQuery] Re: Selecting a checkbox by clicking anywhere on a row

2008-09-08 Thread FrenchiINLA
Try the following code: $('.myrow').children().click(function() { if ($(this).children('[EMAIL PROTECTED]').length == 0) { var check_id = '#' + $(this).parent().attr('id') + 'checkbox'; $(check_id).attr('checked', !$(check_id).attr('checked')); }

[jQuery] Re: .unbind hover doesn't work

2008-09-05 Thread FrenchiINLA
Have you tried hover event? $(#nav1).hover(function(){},function()); $(#nav1).unbind('hover'); On Sep 5, 12:51 pm, Namlet [EMAIL PROTECTED] wrote: To unbind the above example use: $(#nav1).unbind('mouseenter mouseleave'); This is what the documentation says, but it doesn't remove the hover

[jQuery] Re: Add a class only to the first parent

2008-08-24 Thread FrenchiINLA
$('.menu:first').addClass(bar); On Aug 24, 3:24 pm, Massimiliano Marini [EMAIL PROTECTED] wrote: Hi all, I need some help, I want to apply a class with 'addClass' at all li of the first ul class=menu and not to the second Example: div id=foo ul class=menu!-- first --   li1/li   li2/li

[jQuery] Re: Best way to toggle a form field value

2008-08-21 Thread FrenchiINLA
$('a').click(function(){$('input[name=' + this.id+ ']').val(!$ ('input[name=' + this.id+ ']').val())});// On Aug 21, 7:02 am, Andy Matthews [EMAIL PROTECTED] wrote: I'm storing a boolean in a hidden field, and I'd like to flip it's value when someone clicks a link. Here's the function I've got

[jQuery] Re: how to toggle text

2008-08-19 Thread FrenchiINLA
have you tried just $(#toggle-content).toggle(); it shows and hide toggle-content div. otherwise for more option you can use $(#toggle-content).toggle(function1(){},function2(){}); where function1 will run when first clicked and function2 the second time. On Aug 19, 10:44 am, elz64 [EMAIL

[jQuery] nyroModal dynamic href question

2008-06-12 Thread FrenchiInLA
I use nyroModal and is very nice and really easy for basic use. What I would like to do is for each link I have to get the href, width, and high from database and apply to the setting of the link. Let’s say I have the following html code ”#” blablala I tried something like

[jQuery] Re: jQuery help

2008-06-12 Thread FrenchiInLA
Can you post at least your html code. to see how your page is made. if i understand you corretly you want to copy value of text box (UID value) to a div You can always start by coding somethign like $('#div').htm($('#txt').value();) now i don't know by which event you want to trigger this

[jQuery] Re: jQuery help

2008-06-12 Thread FrenchiInLA
(););})}); make this works then we'll see for ajax part FrenchiInLA wrote: Can you post at least your html code. to see how your page is made. if i understand you corretly you want to copy value of text box (UID value) to a div You can always start by coding somethign like $('#div').htm($('#txt

[jQuery] Re: .load Ajax et Jtip ou ClueTip

2008-06-11 Thread FrenchiInLA
tu peux de la meme maniere travailler avec jtip par example. Make Handler.ashx?Action=totoetc=etc essaye d'utilise un httphandler au lieu de aspx, and pass tes parametre, et return htm, or juste textefile. si tu loader une page avec des server controles tu aura des probleme avec 2 form

[jQuery] Re: Jquery effects Issue with multple ID targets

2008-05-21 Thread FrenchiInLA
Can you Post your code? anyway $(this) gives you the DIV as Jquery object inside of click event. Put the same class to all your div and use some code like: $(.yourclass).click(function(){$(this).dosomthing();}); Auriion wrote: Hi, I have 3 div's on the screen that I've also added

[jQuery] Re: Jquery effects Issue with multple ID targets

2008-05-21 Thread FrenchiInLA
of the document. I don't think that has anything to do with my issue though. Thanks for responding. FrenchiInLA wrote: Can you Post your code? anyway $(this) gives you the DIV as Jquery object inside of click event. Put the same class to all your div and use some code like: $(.yourclass

[jQuery] Re: Problem of show and hide when I have several DIV and one only has to be affected

2008-04-02 Thread FrenchiINLA
you need to get the sibling of your see-more class somethig like : $(this).siblings(.news_complete)slideDown(1000); should work for you On Apr 1, 9:04 pm, Brandnew [EMAIL PROTECTED] wrote: Hello, I hope I'm more or less clear in my title. I have this problem : I have several DIVs which

[jQuery] Re: update a select field by ajax

2008-03-25 Thread FrenchiINLA
you can add another option ot your ajax call -- success: function(msg) { } -- the msg is the code returned from your server. you also need to take away onchange=load_select() from select tag. On Mar 25, 11:27 am, jojolapin [EMAIL PROTECTED] wrote: Hi that is the first time I use the Ajax

[jQuery] Re: tabs: possible to save a form when switching tabs?

2008-02-14 Thread FrenchiINLA
if you use the click event of tab it pass 3 parameters Tab clicked, Tab toShow, TabtoHide so you can write something like var $tabs = $('#foo).tabs({click: function(clicked, toShow, toHide) { var title = toHide.title; . }); On Feb 14, 6:28 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

[jQuery] Re: Selector Containing Variable

2008-01-30 Thread FrenchiINLA
you can try $('#' + tabtext) since the id is unic you don't need the class. On Jan 30, 7:24 am, studiobl [EMAIL PROTECTED] wrote: I'm having trouble with a jQuery selector that contains a variable. I'm trying to target an element that has a class of orderInfo and an id of billy So, I set a

[jQuery] Block UI doesn't show at the second click

2008-01-20 Thread FrenchiINLA
I really don't understand why the following code doesn't work . I used BlockUI plugin in another page without t any problem but in this page event he simple case does not work the second click. The html code is: input ID=btn type=button value=Button class=button2 name=div / div id=div

[jQuery] Re: Block UI doesn't show at the second click

2008-01-20 Thread FrenchiINLA
Thak you mike, let me present the whole scenarii. I have several buttons wich should block a section with different div I add the ID of the div in Button Name, and made the following code: $( function() { var $div; $('.button2').click(function() { $div = $('#' +

[jQuery] .net 2 web services json

2007-12-29 Thread FrenchiINLA
Asp.net 2 :I would like to post to a web service and get the result as json format. The method is decorated with [ResponseFormat=ResponseFormat.Json)]and it return a simple class. When I use prototype code like : asmxFile.MethodName( par1, par2,function(obj){}); the obj is json format, but If I

[jQuery] Re: ClueTip - local content without attribute

2007-12-07 Thread FrenchiINLA
I haven't test it but it makes sense to me. $('.green').cluetip(#msg1); On Dec 7, 1:46 pm, rolfsf [EMAIL PROTECTED] wrote: I'm using ClueTip, and loading the content from some hidden divs using the default rel attribute. Is there a way I can do this without using the rel attribute? For

[jQuery] newbie question

2007-12-06 Thread FrenchiINLA
I have a javascript function like MyFunc(btn), and I would like to associate a click event to all my button with button1 class in the page to this function. I tried the following code and is not working for me: $([EMAIL PROTECTED]'button'].button1).each(function() {