Re: [jQuery] SlideDown Issue.. help!

2010-01-18 Thread waseem sabjee
ok heres an HTML structure * { /* css reset */ margin:0; padding:0; } .work { /* this prevents the content from still being shown when you slide up */ overflow:hidden; } slide controller put a lot of content in here EXPLANATION 1. we have a div wrapper. 2. we create a

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. My test th at can be edit

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 wrote: > Hello everyone, > I've spent 2 hours with this already and I think I

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 wrote: > Hi, > > I'm having a hard time customizing scroll

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 this

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 wrote: > Hey there, > > Is there any solution to mak

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 wrote: > I am trying to only load jquery and jqueryui if they do not already > exist. If they do

Re: [jQuery] Re: Animate or ToggleClass

2010-01-04 Thread waseem sabjee
rows.eq(2).slideDown(500); expander.text("-"); switcher = 1; } else if(switcher == 1) { rows.eq(1).slideUp(500); rows.eq(2).slideUp(500); expander.text("+"); switcher = 0; } }); }); On Sun, Jan 3, 2010 at 10:28 PM, John Sanabria wrote: > Waseem, again

Re: [jQuery] Re: Animate or ToggleClass

2010-01-04 Thread waseem sabjee
: > Waseem, again thank you for your help. > > Now, this is what I'm trying to do. (I'm adding a couple of screenshots for > further detail) > > First image: > > As you can see, I have a unordered list with an id of "filter" that > *filters* the

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 wrote: > Waseem, again thank you for your help. > > Now, this is what I'm trying to do. (I'm adding a c

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 wrote: > Hi, > Thanks for your reply. It helped me a lot. > > Regards >

Re: [jQuery] Re: Animate or ToggleClass

2010-01-03 Thread waseem sabjee
responded. On Sun, Jan 3, 2010 at 5:37 AM, Once wrote: > Waseem, thanks for your answers. I tried to implement what you > suggested but it seems the script only hides and show > the .extendedcontent container. Since the portfolio also has a small > script that filters the item depending on

Re: [jQuery] Animate or ToggleClass

2010-01-02 Thread waseem sabjee
lets say I have this HTML & CSS markup . extendcontent { display:none; } +Click to extend // all your extend content goes here This is div #1 of extended content This is div #2 of extended content This is div #3 of extended content now heres the script var $s = jQuery.noConflict(); $s

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"); });

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 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 as I have 25k +

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 wrote: > Hi; > I want to insert my content

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 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 wrote: > > to be honest no library

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 require

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 an

Re: [jQuery] Re: parsing big JSON file

2009-12-01 Thread waseem sabjee
Krishna > > > On Tue, Dec 1, 2009 at 10:50 PM, waseem sabjee wrote: > >> 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 fi

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 ne

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] Re: form always goes to index.php

2009-11-26 Thread waseem sabjee
its kinda common, but yeah it is a quick work around through jquery if you don't wanna use forms.. a little less html. and a few lines of js :) On Thu, Nov 26, 2009 at 4:30 PM, Henjo wrote: > That would be like a workable trick. Is this something common? > > On Nov 26, 2:40 pm,

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 Somehow it always goes to the plain index.php adding the values behind > it like: index.php?myFormValue=value . > > I don't get any errors in the debug console (FF) or the Error Console. > How can I get this to work properly? > > When I mod

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 below

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 and the code here : http://codingforums.com/showthr

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 wrote: > > say you have 5 text boxe

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 y

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 wrote: > On Nov 10, 10:53 am, "factoringcompare.com" > wrote: > > What’s the best way to redirect when a users browser has JavaScript > > switched off? > > How about going the other way? > >document.lo

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> wro

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 o

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 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 fi

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

2009-11-10 Thread waseem sabjee
.eco2system.net/modules/portfolio/script/jquery.fancybox.js) ? > > Many thanks > > Regards > > Thomas > > On 10 nov, 13:37, waseem sabjee wrote: > > try something like this > > > > var $myvar = jQuery.noConflict(); > > > > $myvar(function() { &

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 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 in the firs

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 wrote: > Dear all, > > I'm trying to use Jquery with Website baker. In this CMS I added two > modules (portfolio and magnify) t

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] Re: Passing typeof function

2009-11-06 Thread waseem sabjee
syntax error A 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 ' ); }); } }); On Fri, Nov 6, 2009 at 11:40 AM, waseem sabjee wrote: >

Re: [jQuery] Re: Passing typeof function

2009-11-06 Thread waseem sabjee
markup A 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, Nov 6, 2009 at 11:34 AM, aze wrote: > Thanks for the reply >

Re: [jQuery] Passing typeof function

2009-11-06 Thread waseem sabjee
lets assume the following markup a button | a button | a button | a button you want to be able to differentiate between the buttons on click event var obj = $(".button"); obj.click(function(e) { e.preventDefault(); var index = obj.index($(this)); alert("my button index is "+index); }); this

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 wrote: > I am manipulating a

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 wrote: > try this > > have an html markup like this > > > > > > > > > > here is the jQuery that i would use > >

Re: [jQuery] two questions

2009-10-30 Thread waseem sabjee
try this have an html markup like this 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); // we declare our button within the object var myimg = $(".imgwrap", obj); // we declare

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

2009-10-29 Thread waseem sabjee
aseem's suggestion is probably your best bet. > > > > --Karl > > > > > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > > > On Oct 21, 2009, at 8:01 AM, waseem sabjee wrote: > > > > > > > > > would it be possibl

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 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: { >do :

[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: 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: Can someone tell me how to debug this?

2009-10-21 Thread waseem sabjee
che: false, success: function(html){ $(".target").html(html); } }); }); On Wed, Oct 21, 2009 at 2:11 PM, bobslf wrote: > > > On Oct 21, 7:51 am, waseem sabjee wrote: > > Hi there,just one question - do you need to use frames or would prefer to > do > > this wit

[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 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 > 'block' (which is n

[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, peter

[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, Oc

[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 wrote: > > Hi! > > Sorry to fl

[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 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 happens. Does > an

[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 wrote: > I am experiment

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

2009-10-20 Thread waseem sabjee
. On Tue, Oct 20, 2009 at 6:58 PM, Marco Barbosa wrote: > > You were right Waseem. > Specially after Bi Jing confirmed. I think that is the best way. > > If it doesn't work I wil go for background like Rupak suggested. > > Thank you all for your help! > > On Oct

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

2009-10-20 Thread waseem sabjee
ok,why not absolutely position some text on a password box and hide that text on password box focus ? On Tue, Oct 20, 2009 at 10:05 AM, Marco Barbosa wrote: > > Hmmm. This is more complicated than I thought. > > waseem, having 2 input fields doesn't seem correct. Thought it mi

[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 wrote: > > I'm using jquery, and have treeview working using src="http:// > dev.jquery.com/view/trunk/plugins

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

2009-10-19 Thread waseem sabjee
textinput.focus(); }); }); On Mon, Oct 19, 2009 at 2:51 PM, Marco Barbosa wrote: > > Hi waseem! > > Thanks for your reply. > > Something's wrong with this line: > $("#password").attr({type:'text'}); > > I tried changing to:

[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 with

[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(fun

[jQuery] Re: How to achieve this animation?

2009-10-19 Thread waseem sabjee
you could try the $().slideUp(500) and $().slideDown(500) On Mon, Oct 19, 2009 at 10:32 AM, Bi Jing wrote: > Hi Eric, > > What animation you talked about? Sorry I cant find it out, could you please > clear it? > > If you mention the menu. I think there already an excellent implement by > JQuery

[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.js 2. if you try a simple alert through jquery does it work put the following code in an external file an

[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): > http://ryanroberts.co.uk/_dev/experiment

[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 wo

[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:

[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 wrote: > > On Thu, Oct 1, 2009 at 1:18 PM, Junhua Gao wrote: > > I use $.SortSerialize('MDEExportedList').hash.replace(

[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 wrote: > I use $.SortSerialize('MDEExportedList').hash.replace('[]','') > but only the first one is replaced. > Who can help me? >

[jQuery] Re: issue regarding live event

2009-09-22 Thread waseem sabjee
rk without modifying that > method. > > On Sep 22, 9:18 pm, waseem sabjee 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

[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: 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 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 execute any comman

[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 wrote: > > hello, > > Recently i've discovered how to use dynamicaly loaded content, with > javascript. > > $("div ul li a").live("click", function() { > //

[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 wrote: > Just remove the @ and it'll work fine. > > --John > > > On Sun, Aug 2, 2009 at 12:07 PM, micorreo13 wrote: > >> >> I was using jquery-1.2.6 and now, I started to use jquery-1.3.2, and I >> get my fir

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

2009-08-02 Thread waseem sabjee
as the first bit 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 wrote: > > return false is the standard method and will work no

[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: Slow response to AJAX calls in IE7

2009-08-01 Thread waseem sabjee
expand on this? How would a webservice fix the problem? > > On Jul 31, 10:55 pm, waseem sabjee 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 > >

[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 9:55

[jQuery] Re: Removing element from DOM after animate

2009-07-31 Thread waseem sabjee
remove the > element from DOM after the animation? > > On Jul 31, 12:06 pm, waseem sabjee wrote: > > here is a chain of animation > > $(this).parents(".leftbox:first") > > .animate({opacity: 0.5}, 350) > > .animate({opacity: 0}, 350) > > .remo

[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: 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 wrote: > 1. Do things in brackets first > 2. Powers and Square Roots > 3. division and multiplication > 4. Addition and subtraction > > remember left to right. > > > O

[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 wrote: > YEs, as james said. > > var myint = parseInt(mystring); > > > On Thu, Jul 30, 2009 at 9:23 PM, waseem sabjee wrote: > >> 1. Do things in brackets fi

[jQuery] Re: Simple calculation

2009-07-30 Thread waseem sabjee
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, 2009 at 9:21 PM, kalyan Chatterjee wrote: > > Hi I dont know can you please tell me how to it? > > Thanks > > On Jul 31

[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 wrote: > > I am just trying to write this > > $(function(){ >$('#submit').click(function(){ >var b10 = $("input[name='avgtsize']").val(); >var b11 = $("input[name='avgisold']").val(); >

[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 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 me how I cou

[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 wil

[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 a

[jQuery] Re: , hover & active

2009-07-05 Thread waseem sabjee
oint.png'); display:block} > a.cs_appoint:hover {background-position: -146px;} > > *My HTML:* > > > > > > > > > I'm confused on the toggle approach. > > Still a novice programmer, but learning fast. > > Many thanks for all the help

[jQuery] Re: , 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); // clic

[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 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 $(function() { // ensure all the JQuery your do runs inside of this var active = '

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

2009-07-04 Thread waseem sabjee
method 1. +Folder 1 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 wrote: > > for example: > > +folder1 > +folder2 > > only when click the "+" sign, tree expands. > how to do that? > > thanks!

[jQuery] Re: Slide in / out message

2009-07-04 Thread waseem sabjee
Test Object $(function() { $(".obj").slideUp(0); // initial state $(".obj").slideDown(500); setTimeout(function() { $(".obj").slideUp(500); }, 5000); }); On Sat, Jul 4, 2009 at 2:26 PM, Snaak wrote: > > Hi all, > I try to make a div to slide down, pauze for 5 seconds and then slide >

[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 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 said I use .load(

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

2009-07-04 Thread waseem sabjee
ally hides all our items */ .listitem { display:none; } On Sat, Jul 4, 2009 at 9:12 AM, cs...@hotmail.com wrote: > > hi waseem, thx for your idea and really appreciate for doing it. what > i want to know is how to display these toolbars-"div"s base on > retrieved data from d

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

2009-07-03 Thread waseem sabjee
lets just see the logic behind this. item item item item say we have item as mentioned above. METHOD 1 -- save to database : your table would be like so if you are using MYSQL ID INT(11) NOT NULL auto_increment, userID INT(11) NOT NULL, position TEXT NOT NULL, html TE

[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 l

[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 wrote: > it is similar do dotnet yes > > JS > == > var mynames

[jQuery] Re: Question on : syntax

2009-07-02 Thread waseem sabjee
and 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

[jQuery] Re: Question on : syntax

2009-07-02 Thread waseem sabjee
e, and ability 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 sabje

[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: 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 wrote: > one more thing you might look at and maybe get clarification

[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 within this container we have out element we basically loading the full

  1   2   3   >