[jQuery] Superfish

2009-06-03 Thread Abdullah
Hello can some one tell me how build Superfish menu to be RTL direction

[jQuery] Re: Newbie Question... Appending multiple items, with the same span name

2009-05-13 Thread Abdullah Rubiyath
or the "ul" tag (and also modify JS accordingly), in that way it won't grab all the "ul li" on the page. I hope this helps, Thanks, Abdullah On May 13, 3:00 pm, Troy wrote: > Hello, > > I'm relatively new to jquery, so I have what I hope will be a simple >

[jQuery] Re: How to find the index of the parent of a specific element

2009-05-14 Thread Abdullah Rubiyath
Hi there, You could the following a try: $(document).ready(function() { var index = $("#mymenu ul li").index( $("li:has(#link_y)") ); // index will store the 'index' of tag that has id=link_y }); Hope this helps, Thanks, Abdullah. On May 14, 8:31 am, Jo

[jQuery] Re: post form using jquery ajax

2009-03-29 Thread Abdullah Rubiyath
quot;process.php", $(this).serialize(), function(data) { alert( data ) ; /// alert data from server, or do something else }); return false; }); You can also use $.ajax instead of $.post method. I hope it helps, Thanks, Abdullah On Mar 29, 4:34 am, iceangel89

[jQuery] Re: passing variables to a Jquery function

2009-03-31 Thread Abdullah Rubiyath
ent-Type: text/plain'); echo '{ success : "1" , id : "'.$_GET['id'].' ", type: ".$_GET ['type'].'" }'; // or you can use json_encode (requires PHP 5.2) exit; // PHP - json_encode, http://ca.php.net/json_encode There are s

[jQuery] Re: Problem validating checkbox before allowing submit of form

2009-04-03 Thread Abdullah Rubiyath
turn false, otherwise the form just get submitted. after this line... alert("You have to agree to our terms and conditions to make a purchase!"); Add this: return false; I hope it helps, Thanks, Abdullah. On Apr 3, 3:16 am, osu wrote: > Hi, > > I'm trying to valida

[jQuery] Re: Get text of external HTML and encode

2009-04-03 Thread Abdullah Rubiyath
ng: $.get('../sample.html', function(data) { $('#thisDiv').text( data ); }); With this approach, the html entities (<,&,> etc.) will be converted to their appropriate characters and then injected to $('#thisDiv'). I hope this helps, Thanks, Abdullah. On Apr 3, 1

[jQuery] Re: hide parent div according to span containing some text

2009-04-04 Thread Abdullah Rubiyath
f ($("span.total:contains('1')").length > 0 ) { $('div.header').hide(); } // $("span.total:contains('1')") matches all elements containing '1', so would you have to use length to check the number of matched element is more than