hi, "INSERT MODE" i have check box in one "tr". and another dropdown control in another "tr" intially dropdown control will be invisiable intially . but once the user checks the check box. the dropdown control should be visiable and he can select the value. but again the user unchecks the check box the dropdown should be set to default value that is "--selec--" "UPDATE MODE" intailly checkbox.Test = dt.cloumn["state"].tostring(); if(checkbox.Test!= "") { checkbox.checked=true; //then value dropdown value should be shown like"india" } else { checkbox.checked="false" //then value dropdown value should be default "--select" } in insert mode checkbox willbe …

Member Avatar
+0 forum 0

Hi, I want create a page which has animation at the bottom of that page. I use jQuery to do that.. this is the way I do it [code=html] <a href="#" class="animation">Animate this</a> [/code] and this is the jquery [code=javascript] $(document).ready(function() { $('a.animation').click(function(e) { e.preventDefault(); //animation goes here; }); }); [/code] When I run the code, all animation run very well except the page always scroll to the top. I try to change the href attribute to [B]javascript:void(0);[/B] but it still run like that.. How can I fix it? Thanks before, Sorry for my English..

Member Avatar
Member Avatar
+0 forum 5

Hi guys, I spent the whole day (thats 8 hours straight) trying to get a simple jQuery function to work but failed miserably!!! I very very new to the jQ scene and I know I have a lot of catching up to do! Could somebody get this to work for me ??? All i want is when user clicks is: 1.the box with info fades out 2. when data returned from the database the box fades in with the new data! What happens now is while the box fading out i can see new set of data already loaded and …

Member Avatar
Member Avatar
+0 forum 8

Hi, I am in a real need to get this going quickly and have run into a bit of a stumbling block. Here is what I am trying to do. I am creating a Paypal Add to Cart page for several products. I have this working for a single button form. The main script is: [CODE]<script type="text/javascript"> $(function(){ // start a counter for new row IDs // by setting it to the number // of existing rows var newRowNum = 2; // bind a click event to the "Add" link $('#addnew').click(function(){ // increment the counter newRowNum += 1; // get …

Member Avatar
+0 forum 0

Hi not sure if its technically a timeout but I am building a sliding jquery nav, the sliding is fine. theres 4 buttons you can click whatever one and they will slide into place even if they are in the middle of sliding, cool. BUT they each also open a loader for 2 seconds then fade in a div. [code] $("#nav_1").bind("click",function() { $("#nav_1").animate({ left: "0px" }, 500, "easeOutCirc"); $("#nav_2").animate({ left: "560px" }, 500, "easeOutCirc"); $("#nav_3").animate({ left: "620px" }, 500, "easeOutCirc"); $("#nav_4").animate({ left: "680px" }, 500, "easeOutCirc"); $('.hidden').css({ display: "none"}); $('#loader').fadeIn().fadeTo(2000, 1).fadeOut(1000, function() { $(this).fadeOut(); $("#div_1").fadeIn(); }); }); $("#nav_2").bind("click",function() { $("#nav_1").animate({ …

Member Avatar
Member Avatar
-1 forum 2

Hi, i am having Cakephp code like [CODE]<?php foreach ($viewfields as $r): if($r['Attribute']['type']=='radio') { ?> <script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function($){ $("#"+<?=$r['Attribute']['id'];?>).each(function() { type= "<?=$r['Attribute']['type'];?>"; attribute_id="<?=$r['Attribute']['id'];?>"; if(type=="radio") { var ht = $.ajax({ type: "GET", url: "http://localhost/FormBuilder/index.php/forms/viewChoices/"+attribute_id, async: false }).responseText; var myObject = eval('(' + ht + ')'); var data = myObject;var j=0; $.map(data.choices, function(i){ j++; alert(i.choice); return i.choice;}); }//type==radio });//each });//jquery </script> <?php echo $form->input('field', array( 'type' => 'radio','legend'=>$r['Attribute']['label'], 'separator' => '--separator--', 'options' => array() )); }//if php type == radio endforeach; ?> [/CODE] alert(i.choice);/alerts me the choices for the label gender as male and female and for the label "experience as …

Member Avatar
+0 forum 0

In another interesting development showing that open source truly has a place in corporate computing, Microsoft announced on Sunday that it will be adding the JQuery JavaScript library to ASP.NET. The move came after many ASP.NET developers requested similar features to those that JQuery provides. According to Scott Guthrie of Microsoft, the JQuery library will ship with Visual Studio, and a download will be available in the coming weeks to add the library to the latest version of Visual Studio and Visual Web Developer Express (with service pack 1 installed). Microsoft will add intellisense support for the library, but will …

Member Avatar
Member Avatar
+0 forum 1

The End.