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
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');
// ge
you should change your html something like:
FIRST
SECOND
THIRD
then in order to get the id of your li you can use the following code
$('a', '#product_links').click(function() {
alert($(this).parent().attr('id'));
});
On Au
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...
how about
$('input[type=text]').keyup(function() {
if ($(this).val().length == 2) {
$(this).prev().find('span').empty();
}
});
On Jul 26, 10:36 am, Tuppers360 wrote:
> Hi there just wondering if I can get some help fr
sorry i got a typo error, the corrent code is:
$('span[id^=sp_span]').
On Jul 26, 8:39 am, FrenchiINLA 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
>
> $
>
>
> That nested table is actually the Page Links and it's not always
> there .. I mean, it only exists if GridView has something to page ..
>
> here's the idea behind these problem:
> I am using someones JS to manipulate the Table and do some column
>
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);
});
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')
}
}
);
}
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
$('imput[type=text][id^=txt_Ph
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
fin
I tried to open a iframe with a definite position. Let’s say I have an
iframe like:
http://google.com"; width="350"
height="350">
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
$(‘#frame’).scrollTo(30
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 b
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 ba
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 wou
I don't know the structure of your data coming from your server, but
generally speaking you should do something like :
var $sel = $('' + text +'');
once you get your select compete then append it to ul
$('ul#filter').append($sel);
tdktan...@gmail.com wrote:
>
>
> So ive got a fun page wher
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
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 in
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
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
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()}
});
ike
> slideToggle or fadeToggle ?
>
> On Wed, Jun 17, 2009 at 11:16 PM, FrenchiINLA wrote:
>
>
>
> > I have several following html code:
> >
I have several following html code:
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:
$(function() {
$('#list').jqGrid({
url: 'Services/
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
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 pol
Add the following in the header of your page with the correct
liftoffTime value
$(function() {
var liftoffTime = new Date();
liftoffTime.setDate(liftoffTime.getDate() + 5);
$('#listLayout').countdown({ until: liftoffTime, format:
'yODHMS',
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 easi
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:
>
> $(document).ready(function() {
> $(".bc-wrapper:empty").(this).parent().addClass(
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
inside of your success function success: function(data){} you should
refer to 'data' if you're getting back an array, you can refer to as
data[0][0]
On Sep 21, 9:04 pm, "seo++" <[EMAIL PROTECTED]> wrote:
> I am trying to insert array elements through ajax request, these
> elements are also arrays
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
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 I have this code html
>
> Link
>
> An
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
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]> w
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
> Webservic
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 $('#
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
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'));
}
}
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
$('.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 of
> the first and not to the second
>
> Example:
>
>
> 1
> 2
>
>
> 3
> 4
>
>
>
>
>
$('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'v
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 PR
#x27;#formName').formHash(););})});
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 star
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 action.
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
$('a.nyro').click(
tu peux de la meme maniere travailler avec jtip par example. Make
Handler.ashx?Action=toto&etc=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
runat=s
nter 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.
>
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
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 DI
the error is coming from
security_code: {
required: true,
remote: 'emails.php'
}, <--
is the last element and doesn't need the ',' .
take , away and check it again.
On Apr 1, 3:45
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 Aja
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:
>
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
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 = $('#' +
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:
Bla bla bla:
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 us
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" attribut
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()
{
this.click(f
59 matches
Mail list logo