Re: [jQuery] SlideDown Issue.. help!

2010-01-18 Thread waseem sabjee
ok heres an HTML structure style type=text/css * { /* css reset */ margin:0; padding:0; } .work { /* this prevents the content from still being shown when you slide up */ overflow:hidden; } /style div class=work a href=# class=slidecontrolslide controller/a div class=content

Re: [jQuery] Having hard time with customizing scroll bars

2010-01-16 Thread waseem sabjee
the styling scroll bars of a browser is not cross-browser however there are content scroller plugins out their that mimic the functionality of a browser scrollbar. these are cross-browser. On Sat, Jan 16, 2010 at 1:03 PM, swfobject_fan guru4v...@gmail.com wrote: Hi, I'm having a hard time

Re: [jQuery] Selecting each instance separately

2010-01-16 Thread waseem sabjee
var obj = $(ul); obj.each(function(i) { var items = $(li, obj); items.each(function(i) { if(i 3) { items.eq(i).show(); } else { items.eq(i).hide(); } }); }); On Sat, Jan 16, 2010 at 12:16 PM, alexander alexan...@hulman.sk wrote: Hello everyone, I've spent 2 hours with this already

Re: [jQuery] Real time AJAX

2010-01-16 Thread waseem sabjee
I'm guessing you mean like on google wave. ok. AJAX would mean passing data to a file and returning a response to the user without refreshing the page the user is on. you could say what you want falls sort of under JavaScript animation say you have something like this. textarea

Re: [jQuery] ZIP with JQeury

2010-01-15 Thread waseem sabjee
This is usually handled by server side script like ASP or PHP as you have to work with either the users file system or your FTP. So my answer would be No. if there is a solution I would like to know it. On Fri, Jan 15, 2010 at 1:46 PM, mind01 mindproduction...@gmail.com wrote: Hey there, Is

Re: [jQuery] jHtmlArea problems with - script generated width

2010-01-15 Thread waseem sabjee
Hi, according to css rules if you use display inline you cannot specify a width as it is now and in-line element. you may only specify widths for block-level elements that do not have display inline as a style a solution to your problem with be floating EXAMPLE instead of display inline use

Re: [jQuery] checking if jquery loaded

2010-01-14 Thread waseem sabjee
if(jQuery) { // jquery is loaded } if($) { // jquery is loaded } or if (jQuery != null) { // jquery is loaded } if ($ != null) { // jquery is loaded } On Thu, Jan 14, 2010 at 11:30 PM, zendog74 n8cs...@gmail.com wrote: I am trying to only load jquery and jqueryui if they do not already

Re: [jQuery] Re: Animate or ToggleClass

2010-01-04 Thread waseem sabjee
Hi, yes that does seem like a script errors.I will get back to you later on. it's 10:27 AM here So i am still at work. On Sun, Jan 3, 2010 at 10:28 PM, John Sanabria busetolo...@gmail.comwrote: Waseem, again thank you for your help. Now, this is what I'm trying to do. (I'm adding a couple of

Re: [jQuery] Re: Animate or ToggleClass

2010-01-04 Thread waseem sabjee
Hi, I can do your solution here no problem. I am still at work for now. will be done in about an hour then I can work on your small project :) tell me exactly what type of animation you want. slide fade...slide bounce...slide elastic etc. On Sun, Jan 3, 2010 at 10:28 PM, John Sanabria

Re: [jQuery] Re: Animate or ToggleClass

2010-01-04 Thread waseem sabjee
heres our HTML CSS we have 9 divs. the first three are shown and other 6 are hidden. style type=text/css * { margin:0; padding:0; } . block { float:left; width:32%; // 3 blocks per row. less 1% for IE height:200px; // height is good to have...but required for IE border:1px solid #000; // thin

Re: [jQuery] Re: Animate or ToggleClass

2010-01-03 Thread waseem sabjee
height value for that... On 2 ene, 17:49, waseem sabjee waseemsab...@gmail.com wrote: lets say I have this HTML CSS markup . extendcontent { display:none; } div class=extender a href=# class=extend+/aa class=extend href=#Click to extend/a div // all your extend content goes

Re: [jQuery] Re: How to check whether an element is bound to an event or not?

2010-01-03 Thread waseem sabjee
on certain versions of IE i had issues where the .live() function just didn't work. no click events at all were firing only on IE. not sure if this has been fixed. On Sun, Jan 3, 2010 at 9:23 AM, Md. Ali Ahsan Rana ranacser...@gmail.comwrote: Hi, Thanks for your reply. It helped me a lot.

Re: [jQuery] Autocomplete

2010-01-02 Thread waseem sabjee
i would suggest you check out jQuery UI On Sat, Jan 2, 2010 at 9:35 PM, AndrewM amer...@amwebright.com wrote: Hi, I am new to jQuery and have 2 questions: I am using the bassistance.de jQuery plug-in. 1. For speed I have created my Array of data to be searched client side in a .js file

Re: [jQuery] How to check whether an element is bound to an event or not?

2010-01-02 Thread waseem sabjee
usually when I bind a click event I do this. unbind before bind $(elm).unbind('click'); $(elm).bind(click, function() { }); may be a modification like this if(!$(elm).unbind('click')) { $(elm).bind(click, function() { alert(This element was only bound if it was not bound); }); } On

Re: [jQuery] Animate or ToggleClass

2010-01-02 Thread waseem sabjee
lets say I have this HTML CSS markup . extendcontent { display:none; } div class=extender a href=# class=extend+/aa class=extend href=#Click to extend/a div // all your extend content goes here div class=extendcontent This is div #1 of extended content /div div This is div #2 of extended content

Re: [jQuery]

2009-12-14 Thread waseem sabjee
go to google groups homepage to unsubscribe. On Mon, Dec 14, 2009 at 7:32 PM, Lord Gustavo Miguel Angel goosfanc...@gmail.com wrote: unsuscribe

Re: [jQuery] content slider like www.metalabdesign.com

2009-12-06 Thread waseem sabjee
each menu item on the left has a corresponding div tag. all but the first one is hidden. you can use slideUp and slideDown to switch between them. it will produce that same effect. its just a vertical tabber :) On Sun, Dec 6, 2009 at 5:00 PM, felicita yasemenkara...@gmail.com wrote: Hi; I

Re: [jQuery] Re: Why mootools animations is more smooth than jquery?

2009-12-05 Thread waseem sabjee
to be honest no library is 100% efficient. its like a template that anyone can download. what counts as what you do with it and if suits your needs. in some cases you would create your very own template if nothing suits your needs. so if you require 100% smoothness in everything you would

Re: [jQuery] Re: Why mootools animations is more smooth than jquery?

2009-12-05 Thread waseem sabjee
test with the minified version :) On Sat, Dec 5, 2009 at 2:22 PM, Acaz Souza acazso...@gmail.com wrote: Hi everyone, i will do some tests with this librarys, i will elevate the CPU usage and tests in the major browsers. On 5 dez, 09:57, waseem sabjee waseemsab...@gmail.com wrote

Re: [jQuery] plugin namespace

2009-12-04 Thread waseem sabjee
including it on every page seems troublesome and hard to maintain. if you using PHP or ASP you can create your own Master Page and include there once. and load your other pages in as they are needed. my suggestion to you in converting to a CMS then you can include your script in only one file and

Re: [jQuery] Re: parsing big JSON file

2009-12-01 Thread waseem sabjee
one way this can be achieved. a mixture of server side and client side code. set up a seperate file or web service to get your data. make an ajax call to this file passing your parameters via the call. on success of that call, if the data your requested is returned, make another ajax call with

Re: [jQuery] Re: parsing big JSON file

2009-12-01 Thread waseem sabjee
On Tue, Dec 1, 2009 at 10:50 PM, waseem sabjee waseemsab...@gmail.comwrote: one way this can be achieved. a mixture of server side and client side code. set up a seperate file or web service to get your data. make an ajax call to this file passing your parameters via the call. on success

Re: [jQuery] Change a css value for a child of the selected element

2009-11-28 Thread waseem sabjee
$(function() { var list_item = $(li); var current = -1; list_item.hover(function() { var index = list_item.index($(this)); if(index != current) { $(a, list_item.eq(index)).css({backgroundColor:'#ccc'}); index = current; } }, function() { $(a, list_item.eq(current).css({ backgroundColor:#FFF}); });

Re: [jQuery] form always goes to index.php

2009-11-26 Thread waseem sabjee
you dont need to you a form. set up the following html input type=text class=name / a href=# class='submitformSubmit/a have the follwoing jQUery $(function() { var btn_submit = $(.submitform); var txt_name = $(.name); btn_submit.click(function(e) { e.preventDefault(); top.location =

Re: [jQuery] Re: form always goes to index.php

2009-11-26 Thread waseem sabjee
pm, waseem sabjee waseemsab...@gmail.com wrote: you dont need to you a form. set up the following html input type=text class=name / a href=# class='submitformSubmit/a have the follwoing jQUery $(function() { var btn_submit = $(.submitform); var txt_name = $(.name

Re: [jQuery] two level tabs

2009-11-25 Thread waseem sabjee
are you talking about their horizontal nav ? that would be known as a super dropline menu you can see the demo here : http://www.cranshawmiddleton.co.uk/waxworks/index_ie6.html#nogo http://www.cranshawmiddleton.co.uk/waxworks/index_ie6.html#nogoand the code here :

Re: [jQuery] custom event firing

2009-11-25 Thread waseem sabjee
i usually use something like this when coding a jQuery plugin. (function() { var newMethods = { // function start AddTo : function(options) { var defaults = { // set default option values here }; var options = $.extend(defaults, options); // access any options

Re: [jQuery] Re: Round numbers

2009-11-15 Thread waseem sabjee
say you have 5 text boxes each with the class mybox var x = $(.mybox).length; var y = Math.Round(x); OR var y = Math.Ceil(x); On Sun, Nov 15, 2009 at 6:45 PM, factoringcompare.com firstfacto...@googlemail.com wrote: Hi, Great, I have a a go at putting into my code but can't can you

Re: [jQuery] Re: Round numbers

2009-11-15 Thread waseem sabjee
May i see your html On Sun, Nov 15, 2009 at 7:24 PM, factoringcompare.com firstfacto...@googlemail.com wrote: Thanks. this does not work. Added class to form and included the above. On Nov 15, 5:05 pm, waseem sabjee waseemsab...@gmail.com wrote: say you have 5 text boxes each

Re: [jQuery] $ is not a function

2009-11-10 Thread waseem sabjee
try something like this var $myvar = jQuery.noConflict(); $myvar(function() { $myvar(body).animate({ opacity:0}, 500); }); On Tue, Nov 10, 2009 at 12:40 PM, tvidal vidal.tho...@gmail.com wrote: Dear all, I'm trying to use Jquery with Website baker. In this CMS I added two modules

Re: [jQuery] Selection logic

2009-11-10 Thread waseem sabjee
var parent_element = $(.child).parents('div'); On Tue, Nov 10, 2009 at 12:16 PM, Savageman savagema...@gmail.com wrote: Hello, I'm using jQuery but am not really used to it (Mootools' user here...). I was trying to add a class to the first parent div of an element. Here is how I proceeded

Re: [jQuery] Re: $ is not a function

2009-11-10 Thread waseem sabjee
/jquery.fancybox.js) ? Many thanks Regards Thomas On 10 nov, 13:37, waseem sabjee waseemsab...@gmail.com wrote: try something like this var $myvar = jQuery.noConflict(); $myvar(function() { $myvar(body).animate({ opacity:0}, 500); }); On Tue, Nov 10, 2009 at 12:40 PM, tvidal

Re: [jQuery] Re: $ is not a function

2009-11-10 Thread waseem sabjee
know since how many hours/days I'm working on !! All the best Thomas On 10 nov, 14:31, waseem sabjee waseemsab...@gmail.com wrote: I have just cheked your error page and my script worked out as expected. within 0.5 seconds all the html fades out. this is on firefox 3.5 however i did

Re: [jQuery] selector performance

2009-11-10 Thread waseem sabjee
i would the best thing to do regardless of your selection method is to store them in variables. like this var obj = $(.wrap); Now you have basically created an object reference point. you won't need to re-create in 99% of cases. so lets re-use our object reference. // get the width of your

Re: [jQuery] JavaScript switched off

2009-11-10 Thread waseem sabjee
Well. you could use a server side language like : php or asp.net if you have an apache server you can do a redirect in your .htaccess if you have an IIS server you can accomplish the same in your IIS Manager On Tue, Nov 10, 2009 at 5:53 PM, factoringcompare.com firstfacto...@googlemail.com

Re: [jQuery] Re: JavaScript switched off

2009-11-10 Thread waseem sabjee
the op wanted to redirect without javascript On Tue, Nov 10, 2009 at 7:02 PM, Scott Sauyet scott.sau...@gmail.comwrote: On Nov 10, 10:53 am, factoringcompare.com firstfacto...@googlemail.com wrote: What’s the best way to redirect when a users browser has JavaScript switched off? How

Re: [jQuery] Re: Google closure tools and library

2009-11-08 Thread waseem sabjee
in closure I selected Jquery from the URL and tried this specific code. $(function() { alert(true); }); they were no errors. but 3 warnings. I also noticed it takes considerably longer to compile JavaScript as it compiles the whole Jquery library along with your script. Shouldn't it compile your

Re: [jQuery] Passing typeof function

2009-11-06 Thread waseem sabjee
lets assume the following markup a href=# class=buttona button/a | a href=# class=buttona button/a | a href=# class=buttona button/a | a href=# class=buttona button/a you want to be able to differentiate between the buttons on click event var obj = $(.button); obj.click(function(e) {

Re: [jQuery] Re: Passing typeof function

2009-11-06 Thread waseem sabjee
markup a href=# class=button buttonaA/a a href=# class=button buttonbA/a on page load function var obj = $(.button); obj.each(function(i) { if(obj.eq(i).hasClass('buttona') { obj.eq(i).click(function() { alert(' I am button A ' ); }); } }); does this work better for you ? On Fri,

Re: [jQuery] Re: Passing typeof function

2009-11-06 Thread waseem sabjee
, waseem sabjee waseemsab...@gmail.comwrote: markup a href=# class=button buttonaA/a a href=# class=button buttonbA/a on page load function var obj = $(.button); obj.each(function(i) { if(obj.eq(i).hasClass('buttona') { obj.eq(i).click(function() { alert(' I am button

Re: [jQuery] two questions

2009-10-30 Thread waseem sabjee
try this have an html markup like this div class=wrap a href=# class=mybutton div class=imgwrap img src=my/image/path.jpg / /div /div here is the jQuery that i would use $(function() { var obj = $(.wrap); // we want the object to be our div wrapper var mybutton = $(.mybutton, obj); //

Re: [jQuery] two questions

2009-10-30 Thread waseem sabjee
this is one of my favorite jquery reference links http://docs.jquery.com/Events On Fri, Oct 30, 2009 at 2:30 PM, waseem sabjee waseemsab...@gmail.comwrote: try this have an html markup like this div class=wrap a href=# class=mybutton div class=imgwrap img src=my/image/path.jpg

Re: [jQuery] How to Select element with class, but EXCLUDE its children?

2009-10-30 Thread waseem sabjee
give the elements childrent a class called : nomralffont with the following css .normalfont { font-weight:normal!important; } this is just an example you may went to give them a different style but use the !important On Fri, Oct 30, 2009 at 12:31 PM, jmatthews jmatth...@xexam.net wrote: I

Re: [jQuery] Just discovered something

2009-10-29 Thread waseem sabjee
The most likely reason is that *do *is a JavaScript Key Word On Thu, Oct 29, 2009 at 12:53 PM, lionel28 lmarte...@haitiwebs.net wrote: I am sure most of you guys already know it, but I just found out that IE does not like the word do I was doing an ajax called and I had data: {

Re: [jQuery] Re: Animate forces display:block?

2009-10-29 Thread waseem sabjee
Karl Swedbergwww.englishrules.comwww.learningjquery.com On Oct 21, 2009, at 8:01 AM, waseem sabjee wrote: would it be possible for you to use a float instead of display inline ? On Wed, Oct 21, 2009 at 6:33 AM, Jared N jaredma...@gmail.com wrote: Hi all

[jQuery] Re: Can someone tell me how to debug this?

2009-10-21 Thread waseem sabjee
Hi there,just one question - do you need to use frames or would prefer to do this without frames ? On Wed, Oct 21, 2009 at 12:46 PM, bobslf bob...@gmail.com wrote: Here are two files ( one html and one .php file). I'm trying to get backend.php to send text to the .html file but nothing

[jQuery] Re: each function not iterating

2009-10-21 Thread waseem sabjee
looks at this example var itemlist = $(.list); itemlist.each(function(i) { // in this line notice i declared a variable i within the brackets you forget to do this. itemlist.eq(i).remove(); // .eq(i). is the magic here. }); On Wed, Oct 21, 2009 at 8:41 AM, jan jnroche.5...@gmail.com wrote:

[jQuery] Re: Using google CDN for jQuery causing problems

2009-10-21 Thread waseem sabjee
I would suggest only using a CDN to store media files like images / videos etc.scripts would perform a lot better if you ran them locally. I used to run the jquery script remotely before, however i sometimes used to get draggy animation so i just downloaded the script and worked local. On Wed,

[jQuery] Re: convert single digit day to double digit day

2009-10-21 Thread waseem sabjee
var old_day = 5;var new_day; if(old_day.length == 1) { new_day = 0 + old_day; } is this what you mean here is an alternative if your old_day is an integer value var old_day = 5;var new_day; if(String(old_day).length == 1) { new_day = 0 + old_day; } On Wed, Oct 21, 2009 at 8:48 AM,

[jQuery] Re: Animate forces display:block?

2009-10-21 Thread waseem sabjee
would it be possible for you to use a float instead of display inline ? On Wed, Oct 21, 2009 at 6:33 AM, Jared N jaredma...@gmail.com wrote: Hi all, I'm trying to animate the width of a box, but I'm noticing that during the animation jQuery is setting the element's display property to

[jQuery] Re: Can someone tell me how to debug this?

2009-10-21 Thread waseem sabjee
() { $.ajax({ url: update.php, cache: false, success: function(html){ $(.target).html(html); } }); }); On Wed, Oct 21, 2009 at 2:11 PM, bobslf bob...@gmail.com wrote: On Oct 21, 7:51 am, waseem sabjee waseemsab...@gmail.com wrote: Hi there,just one question - do you need to use frames

[jQuery] Re: Can someone tell me how to debug this?

2009-10-21 Thread waseem sabjee
slight syntax errorthis was your code $(function() { $.ajax({ url: backend.php, cache: false, success: function(html) { $(.target).html(html); } } } this is what it should be $(function() {

[jQuery] Re: html select to get value from mysql on change

2009-10-21 Thread waseem sabjee
i think$.ajax({ type:GET, url:implement/stock_mysql.php, data:'stockID='stock, // send this data to server success : function(msg) { alert(msg); // server response }, error : function() { alert(there was a problem handling your request, try again later.); } }); might be more simple

[jQuery] Re: password initial value without masking ****

2009-10-20 Thread waseem sabjee
}); }); $currentPass.blur( function () { if ( $currentPass.attr(value) == ){ $currentPass.css({opacity:0}); $visiblePassword.css({opacity:1}).attr(value,Password); } }); }); waseem sabjee wrote: ah yes i forgot. you would get access

[jQuery] Re: password initial value without masking ****

2009-10-20 Thread waseem sabjee
: For now, our project use two input elements to implement this, we still can not get easier way. Actually, not only password, but also text element, you need two inputs, one hidden one shown. Becoder. On Tue, Oct 20, 2009 at 4:08 PM, waseem sabjee waseemsab...@gmail.com wrote

[jQuery] Re: password initial value without masking ****

2009-10-20 Thread waseem sabjee
strangest thing though - to get around faults like these. i coded my own jquery select box...as its made of div tags you can;t give it a name attribute. but you can still send the value through ajax or a query string. On Tue, Oct 20, 2009 at 7:49 PM, waseem sabjee waseemsab...@gmail.comwrote: I

[jQuery] Re: password initial value without masking ****

2009-10-19 Thread waseem sabjee
// set the initial type to text $(.mypasswordfield).attr({ type:'text' }); // on user focus - change type to password $(.mypasswordfield).focus(function() { $(.mypasswordfield).attr({ type:'password' }); }); // on user blur - change type to back to text $(.mypasswordfield).blur(function()

[jQuery] Re: Difference with two ways to select elements?

2009-10-19 Thread waseem sabjee
ok, let me understand you clearly. you want to change every option tag within a select to be a specific value ? if the method you mentioned above does not work try this : var obj = $(.myclass); // use jquery to select your SELECT by class var opts = $(option, obj); // find all option tags within

[jQuery] Re: password initial value without masking ****

2009-10-19 Thread waseem sabjee
of the code seems Ok. What could it be? I like your solution, pretty simple :) I was wondering if we could put this inside the cleanField function but I guess it's not necessary. ~Marco On Oct 19, 2:32 pm, waseem sabjee waseemsab...@gmail.com wrote: // set the initial type to text

[jQuery] Re: Where to access datepicker?

2009-10-19 Thread waseem sabjee
Hi, try the jquery UI http://jqueryui.com/ they have a datepicker ther When you donwload you can look under development-bundle/demos/datepicker On Mon, Oct 19, 2009 at 3:07 PM, Andrew243 m...@andrewcampbell.us wrote: I'm using jquery, and have treeview working using src=http://

[jQuery] Re: My code is not working for rollover

2009-10-09 Thread waseem sabjee
lets start of simple - and make sure everything works on the simplest example before adding the complicated code.1. i suggest keeping all your classes lowerscase ( just my opinion ) $(.lpbutton).hover(function() { alert(onMouseOver); }, function() { alert(onMouseOut); }); this should be

[jQuery] Re: My code is not working for rollover

2009-10-09 Thread waseem sabjee
i think the OP wants to keep alt and title tags On Fri, Oct 9, 2009 at 11:50 AM, Jonathan Vanherpe (T T NV) jonat...@tnt.be wrote: This method seems to work with images off while still keeping replacement text (with only minimal extra markup):

[jQuery] Re: My code is not working for rollover

2009-10-09 Thread waseem sabjee
ok try this 1. i suggest you download this script and run it locally http://ajax.googleapis.com/ajaxlibs/jquery/1.3.2/jquery.min.jshttp://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js 2. if you try a simple alert through jquery does it work put the following code in an external file and

[jQuery] Re: how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

2009-10-01 Thread waseem sabjee
why not just try str.replace() ? On Thu, Oct 1, 2009 at 7:18 PM, Junhua Gao gaojun...@gmail.com wrote: I use $.SortSerialize('MDEExportedList').hash.replace('[]','') but only the first one is replaced. Who can help me?

[jQuery] Re: how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

2009-10-01 Thread waseem sabjee
well heres my method use match to get the ammount of occurences of the instance. for loop str.replace and replace each instance. On Thu, Oct 1, 2009 at 10:46 PM, Brett Ritter swift...@swiftone.org wrote: On Thu, Oct 1, 2009 at 1:18 PM, Junhua Gao gaojun...@gmail.com wrote: I use

[jQuery] Re: how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

2009-10-01 Thread waseem sabjee
heres an interesting way of doing var x = mystring.length; for(x; x 0; x--) { var s = mystring[x]; // if this character is an instance of the character you want to replace if(mystring.match(/[]/) // replace it mystring.replace(/[]/, replacement); } On Thu, Oct 1, 2009 at 11:23 PM, waseem

[jQuery] Re: issue regarding live event

2009-09-22 Thread waseem sabjee
hi there i here is a work arround i made up for the live event with an AJAX call basically i made an ajax call and injecting HTML into a div - a live() click event was not executing only on IE7 for some odd reason so i included my click event within the success : function of that AJAX call at it

[jQuery] Re: issue regarding live event

2009-09-22 Thread waseem sabjee
modifying that method. On Sep 22, 9:18 pm, waseem sabjee waseemsab...@gmail.com wrote: hi there i here is a work arround i made up for the live event with an AJAX call basically i made an ajax call and injecting HTML into a div - a live() click event was not executing only on IE7

[jQuery] Re: Plugin Jquery + PHP ????

2009-09-10 Thread waseem sabjee
Are you injecting any html into your page AFTER the DOM has fully loaded at any time ? On Thu, Sep 10, 2009 at 8:27 PM, jfcdeutsch jfcdeut...@gmail.com wrote: Good morning everyone. I made a page with PHP, the problem is that I want to integrate a Jquery plugin called QTIP and does not

[jQuery] Re: Tabs: page jumps to top when tab changes

2009-08-02 Thread waseem sabjee
return false is the standard method and will work no problem :) there is an alternative as well $(document).ready(function(e){ // function becomes function(e) e.preventDefault(); // prevent default behavior and ensure the click is canceled. $('#tabs div').hide(); $('#tabs div:first').show();

[jQuery] Re: Tabs: page jumps to top when tab changes

2009-08-02 Thread waseem sabjee
of code has the fadign but jumps to the top, i don't know where to put the return false statement in that bit of code to prevent it doing that. On Aug 2, 11:26 am, waseem sabjee waseemsab...@gmail.com wrote: return false is the standard method and will work no problem

[jQuery] Re: jquery 1.3.2 error with $(':inp...@name=submit]')???

2009-08-02 Thread waseem sabjee
remove the @ sign. it is no longer needed. On Sun, Aug 2, 2009 at 10:45 PM, John Resig jere...@gmail.com wrote: Just remove the @ and it'll work fine. --John On Sun, Aug 2, 2009 at 12:07 PM, micorreo13 micorre...@gmail.com wrote: I was using jquery-1.2.6 and now, I started to use

[jQuery] Re: form submit

2009-08-02 Thread waseem sabjee
var tcC = typecoinsCASHIN.val(); please add values to all your option tag. if(tcC == 1) { } On Mon, Aug 3, 2009 at 4:03 AM, solow solow.wes...@gmail.com wrote: hello, Recently i've discovered how to use dynamicaly loaded content, with javascript. $(div ul li a).live(click, function() {

[jQuery] Re: Slow response to AJAX calls in IE7

2009-08-01 Thread waseem sabjee
: Could you expand on this? How would a webservice fix the problem? On Jul 31, 10:55 pm, waseem sabjee waseemsab...@gmail.com wrote: i had this some time ago. solution. use a XML webservice. you are probably calling a specific html element from a specific page and injecting

[jQuery] Re: Removing element from DOM after animate

2009-07-31 Thread waseem sabjee
here is a chain of animation $(this).parents(.leftbox:first) .animate({opacity: 0.5}, 350) .animate({opacity: 0}, 350) .remove(); you are actually chaining your events to occur one after the other on a specific element or group of elements in the first piece of code you shared you. it would

[jQuery] Re: Removing element from DOM after animate

2009-07-31 Thread waseem sabjee
DOM after the animation? On Jul 31, 12:06 pm, waseem sabjee waseemsab...@gmail.com wrote: here is a chain of animation $(this).parents(.leftbox:first) .animate({opacity: 0.5}, 350) .animate({opacity: 0}, 350) .remove(); you are actually chaining your events to occur one after

[jQuery] Re: Slow response to AJAX calls in IE7

2009-07-31 Thread waseem sabjee
i had this some time ago. solution. use a XML webservice. you are probably calling a specific html element from a specific page and injecting it into your page. using a XML webservice should sort things out. XML webservice can be done in both PHP and .NET so yeah... On Fri, Jul 31, 2009 at

[jQuery] Re: URL redirect

2009-07-30 Thread waseem sabjee
var url = ?car.php?id=53; top.location = url; On Thu, Jul 30, 2009 at 5:53 PM, anush anushshe...@gmail.com wrote: Hi, I have an input text field with city names which uses the jquery autocomplete plugin. Now I would like to redirect the page when a city is selected. Can you anybody tell

[jQuery] Re: Simple calculation

2009-07-30 Thread waseem sabjee
remember the golden rule BODMAs On Thu, Jul 30, 2009 at 9:15 PM, kalyan Chatterjee kalyan11021...@gmail.com wrote: I am just trying to write this $(function(){ $('#submit').click(function(){ var b10 = $(input[name='avgtsize']).val(); var b11 =

[jQuery] Re: Simple calculation

2009-07-30 Thread waseem sabjee
31, 12:20 am, waseem sabjee waseemsab...@gmail.com wrote: remember the golden rule BODMAs On Thu, Jul 30, 2009 at 9:15 PM, kalyan Chatterjee kalyan11021...@gmail.com wrote: I am just trying to write this $(function(){ $('#submit').click(function(){ var

[jQuery] Re: Simple calculation

2009-07-30 Thread waseem sabjee
if you see something like 1 + 1 make it say (1 + 1) instead On Thu, Jul 30, 2009 at 9:24 PM, waseem sabjee waseemsab...@gmail.comwrote: YEs, as james said. var myint = parseInt(mystring); On Thu, Jul 30, 2009 at 9:23 PM, waseem sabjee waseemsab...@gmail.comwrote: 1. Do things

[jQuery] Re: Simple calculation

2009-07-30 Thread waseem sabjee
YEs, as james said. var myint = parseInt(mystring); On Thu, Jul 30, 2009 at 9:23 PM, waseem sabjee waseemsab...@gmail.comwrote: 1. Do things in brackets first 2. Powers and Square Roots 3. division and multiplication 4. Addition and subtraction remember left to right. On Thu, Jul 30

[jQuery] Re: ASP Dropdown controls are Overlaping on JQuery DIV Tag

2009-07-11 Thread waseem sabjee
Set the divs z-index to 8, ensure that the divs parent has a z-index as well after that ensure that the dropdown has a z-index of 0 it would work out properly if you wrap the dropdown inside a div tag and set that div tag z-index to 0 the one thing to remember about IE is the last element

[jQuery] Re: a, hover active

2009-07-05 Thread waseem sabjee
ok i just changed the js for you // this is our object refference point. we only want to effect elements within this object var obj = $(.cs_links); // we now need a refference point for each item // the , obj means we only want items within our object var items = $(.cs_contact, obj); // click

[jQuery] Re: a, hover active

2009-07-05 Thread waseem sabjee
=js_appoint href=#/a/div /div I'm confused on the toggle approach. Still a novice programmer, but learning fast. Many thanks for all the help. Erik On Jul 5, 2009, at 4:55 AM, waseem sabjee wrote: // this is our object refference point. we only want to effect elements within this object

[jQuery] Re: advice to eliminate transition flashes

2009-07-05 Thread waseem sabjee
well your using the slide up and slide down. i suggest making a more custom animation. // slide Up Reworked $(.myobj).animate({ opacity:0, marginTop:-100% }, 500); // slide Down Reworked $(.myobj).animate({ opacity:1, marginTop:0% }, 500); i haven't really tested these but you could play

[jQuery] Re: how to display sortable list with new order

2009-07-04 Thread waseem sabjee
lets just see the logic behind this. div class=listitem position1 item /div div class=listitem position2 item /div div class=listitem position3 item /div div class=listitem position4 item /div say we have item as mentioned above. METHOD 1 -- save to database : your table

[jQuery] Re: how to display sortable list with new order

2009-07-04 Thread waseem sabjee
div id=2 class=2 On Jul 4, 2:04 pm, waseem sabjee waseemsab...@gmail.com wrote: lets just see the logic behind this. div class=listitem position1 item /div div class=listitem position2 item /div div class=listitem position3 item /div div class=listitem position4

[jQuery] Re: ajax post not sending header

2009-07-04 Thread waseem sabjee
question are you injecting the data into and html element such as div, td, p etc or into an iframe ? On Sat, Jul 4, 2009 at 10:35 AM, hadaraz hada...@gmail.com wrote: ok, I found the problem. I didn't see it before because a) it's my first time with jquery, and b) I'm an idiot. Earlier I

[jQuery] Re: Slide in / out message

2009-07-04 Thread waseem sabjee
div class=obj Test Object /div script type=text/JavaScript $(function() { $(.obj).slideUp(0); // initial state $(.obj).slideDown(500); setTimeout(function() { $(.obj).slideUp(500); }, 5000); }); /script On Sat, Jul 4, 2009 at 2:26 PM, Snaak huismeis...@gmail.com wrote: Hi all, I try to

[jQuery] Re: treeview, can only let +- expand tree?

2009-07-04 Thread waseem sabjee
method 1. spana href=#+/aFolder 1/span so yeah the folder must not be in the same hyperlink as the + sign that should do it. On Sat, Jul 4, 2009 at 6:12 PM, ljnet ljnet.m...@gmail.com wrote: for example: +folder1 +folder2 only when click the + sign, tree expands. how to do that?

[jQuery] Re: Getting a variable out of a function

2009-07-04 Thread waseem sabjee
hi there. 1. ensure the script refference to JQuery is correct script type=text/javascript src=JQuery.js/script ensure the path is correct as well as the spelling if your script refference is correct and the errors continue try this. when executing your js script type=text/javascript

[jQuery] Re: Cleaning up javascript before ajax load

2009-07-02 Thread waseem sabjee
in your ajax all you can have the following : $.ajax({ url:b.html, cache:false, // cache or not async:true, // load asynchronously or not success:function(html) { // code here } }); On Thu, Jul 2, 2009 at 6:00 AM, Charlie charlie...@gmail.com wrote: one more thing you might look at and maybe

[jQuery] Re: Question on : syntax

2009-07-02 Thread waseem sabjee
lets go back to basic JavaScript. take this example var display = function() { // create namespace display return { hide : function(o) { // add function hide to namepsace var obj = document.getElementById(o); if(obj.style.display != 'none') { obj.style.display = 'none' } }, show : function(o)

[jQuery] Re: Question on : syntax

2009-07-02 Thread waseem sabjee
to understand jQuery a bit also. migrane every day until I get this stuff down, not as simply as everyone says. Yea jQuery is simple once you are a master at JavaScript and master of the jQuery language! I love that claim. On Jul 2, 1:00 pm, waseem sabjee waseemsab...@gmail.com wrote: lets go

[jQuery] Re: Question on : syntax

2009-07-02 Thread waseem sabjee
day until I get this stuff down, not as simply as everyone says. Yea jQuery is simple once you are a master at JavaScript and master of the jQuery language! I love that claim. On Jul 2, 1:00 pm, waseem sabjee waseemsab...@gmail.com wrote: lets go back to basic JavaScript. take

[jQuery] Re: Question on : syntax

2009-07-02 Thread waseem sabjee
correction to my dotnet cod namespace mynamespace { public class myclass{ void hideElemen(string elementName)t { elementName.visibility = false; } } } } On Thu, Jul 2, 2009 at 8:21 PM, waseem sabjee waseemsab...@gmail.comwrote: it is similar do dotnet yes JS == var mynamespace

[jQuery] Re: var $varname

2009-07-02 Thread waseem sabjee
its not really a jquery variable in standard js you can say var $myvar = hello; and var myvar = hello; both will work the same you can access jquery using either the $ or JQuery like $(#myid).hide(); JQuery(#myid).hide(); in a line of the JQuery library code you would see something like

[jQuery] Re: Cleaning up javascript before ajax load

2009-07-01 Thread waseem sabjee
Been trying to replicate your situation. the best solution i see is to not load the variables. may be if you can explain your environment in more detail. like : this is how I understand. lets assume we have our container div id=container within this container we have out element div id=target

[jQuery] Re: Cleaning up javascript before ajax load

2009-06-30 Thread waseem sabjee
well if the js from that page is in the head tag you can extract everything from in-between the body tags and leave out the js another way would be to cycle through each element - and do not take across any script tags. If that js executes it will be held in the memory. On Tue, Jun 30, 2009 at

  1   2   3   >