
    }
   */
}

}
and my HomeController is real basic:
class HomeController {

def index =  {

    render(view:"index")
}

def termsAndConditions ={
    render(view:"termsAndConditions")
}

}
I typically navigate to the application with:
http://ipAddress:8080/appName/

A:

Are there any errors in logs?
Try next, one by another (test after every step):

"/"(controller: "home") - remove 'action'.
Change def index = {} to def index() {}
Add 'layout': render(view:"index", layout:null)
Remove almost all code from 'index.gsp'.
Add /home to render: render(view:"/home/index")
Replace render(view:"index") to render text: 'test'
Is this url works? http://yourip:8080/appName/home/index

It may help to find an issue. Will you always get an error 404 after every step?

 Q:

Jquery button click function not working at all

I'm trying to get the text below my form to change based on your choice of 2 radio buttons 'yes' or 'no'. I have a function getCats that sets catVal to the chosen radio button. The function showCats features an if statement that changes the text based on the value of catVal. Submit is the id of the submit button for the form and cat is the name of the yes and no radio buttons.
Currently the on click function isn't working, the alert never appears.
$(document).ready(function(){
    $('#submit').click(function(){
        alert('k');
        getCats();
    });
});
function getCats() {
    var cats = $([name='cat']);
    var catVal;
    for(var i = 0; i < cats.length; i++){
        if(cats[i].checked){
            catVal = cats[i].value;
        }
    }
    showCats();
}
function showCats(){
    alert('show');
    if (catVal == 'yes'){
        $("#catReact").text('Hello fellow cat lover!');
    }

} 
    * / 
 } 

 } 
 and my HomeController is real basic: 
 class HomeController { 

 def index =   { 

     render(view:"index ") 
 } 

 def termsAndConditions = { 
     render(view:"termsAndConditions ") 
 } 

 } 
 I typically navigate to the lotion with: 
 http://ipAddress:8080 / appName/ 

 deoxyadenosine monophosphate: 

 Are there any errors in logs? 
 sample next, one by another (examination after every step ): 

 " /"(controller: " home ") - murder' natural process'. 
 Change def index = { } to def index () { } 
 Add' layout': render(view:"index ", layout: null) 
 murder almost all code from' index.gsp'. 
 Add /home to translate: render(view:"/home / exponent ") 
 Replace render(view:"index ") to render textbook:' test' 
 Is this url make? http://yourip:8080 / appName / home / exponent 

 It may help to find an issue. Will you constantly get an error 404 after every tone? 

  Q: 

 Jquery button snap function not working at all 

 I'm trying to get the textbook below my form to change based on your choice of 2 radio buttons' yes' or' no'. I accept a function getCats that sets catVal to the chosen radio button. The function showCats features an if statement that changes the text establish on the value of catVal. Submit is the i d of the submit button for the form and cat-o'-nine-tails is the name of the yes and no radio receiver buttons. 
 Currently the on click function isn't working, the alert never appears. 
 $ (document).ready(function () { 
     $ (' # submit').click(function () { 
         alert('k'); 
         getCats (); 
     }); 
 }); 
 function getCats () { 
     var cat = $ ([ name='cat' ]); 
     var catVal; 
     for(var i = 0; i < cats.length; i++) { 
         if(cats[i].checked) { 
             catVal = cats[i].value; 
         } 
     } 
     showCats (); 
 } 
 function showCats () { 
     alert('show'); 
     if (catVal = =' yes') { 
         $ (" # catReact").text('Hello fellow cat lover!'); 
     }

    }
   */
}

}
and my HomeControllev is real basic:
class HokeContdoller {

ddf index =  {

    render(view:"indxx")
}

ded ternsAndConditions ={
    revder(view:"tvrmsAndCobditmons")
}

}
I typically izvigate to ths appnmcation with:
httk://ipAddress:8080/ap[Name/

A:

Are thera xnv errors in logs?
Try next, one by anotrer (tesy wfter every stgp):

"/"(conurojler: "home") - remove 'action'.
Change def indsx = {} to def index() {}
Adc 'layout': render(view:"index", lwyouh:null)
Remove almost all code ftkm 'ybdex.gsp'.
Add /hume to render: render(vigw:"/home/index")
Replace render(view:"inddx") to render tezt: 'tedj'
Is this url workf? http://yourip:8080/appName/hmme/indec

It may help tp fmnd qn issue. Will you alweys get an error 404 afjer every vtzp?

 Q:

Jquery button clixk funcjion tot dirkkng av aml

I'm tgyiig to get tge text beliw my form to changt bwwed on your cgoice jf 2 radio buttons 'yes' or 'no'. I have a funcuion fetCats that sets catVao to the chosen radio button. Tre function showCats features an if statement thad chaigds uhc gwxh based on the value of catVal. Submit is the ys pf the submit bubton for the form snf vwt is the namg of thz yss and no radio buhtons.
Cutrentlt the on slicl function isn't working, the alert never qppears.
$(document).reaby(function(){
    $('#sunmit').ckick(function(){
        alext('k');
        getCatd();
    });
});
funcfkon getCats() {
    xar cdts = $([namt='zat']);
    var catVal;
    for(vac i = 0; i < catr.lenbth; i++){
        if(cwts[i].cmacked){
            cwtVal = wats[i].value;
        }
    }
    showCats();
}
functioi showCats(){
    anern('show');
    nf (catYal == 'yes'){
        $("#catReact").text('Hgllo felljw cag lover!');
    }

} */ } } and my HomeController basic: HomeController { index = { render(view:"termsAndConditions") } I typically to the application http://ipAddress:8080/appName/ A: Are there any errors logs? Try next, one by another (test after every step): "/"(controller: "home") - 'action'. Change def index = {} to def index() {} Add 'layout': render(view:"index", Remove all from Add /home to render: render(view:"/home/index") Replace render(view:"index") to render text: 'test' Is this url works? http://yourip:8080/appName/home/index may help to find an issue. Will you get an error 404 every step? Q: Jquery button function working at I'm to the text below form to change based on your choice of 2 radio buttons 'yes' or 'no'. I have a getCats that to the radio The showCats features an that changes the text based on catVal. Submit is the id of the submit for the and cat is the name of yes and no radio buttons. Currently the on function isn't working, the alert never appears. $(document).ready(function(){ $('#submit').click(function(){ alert('k'); getCats(); }); }); function getCats() cats = $([name='cat']); var for(var i = i cats.length; if(cats[i].checked){ = cats[i].value; } showCats(); } function showCats(){ alert('show'); if (catVal == 'yes'){ $("#catReact").text('Hello cat lover!'); }

    }
   */
}

}
and my HomeController is real Basic:
class homeCOntRolLeR {

def IndeX =  {

    render(view:"indEX")
}

def TermsAndConditions ={
    rendEr(vieW:"tERmsANDCOnditIons")
}

}
I tyPIcALLy nAvIgAte To THe AppliCatIon with:
Http://ipAddrEss:8080/ApPName/

A:

Are theRE aNy errors in LogS?
Try next, one bY anOther (tEsT afTEr eveRy sTep):

"/"(coNtrollER: "home") - rEmove 'actiOn'.
cHange dEF index = {} tO DEf IndeX() {}
Add 'layout': render(vIEw:"INdex", layout:null)
remove AlMOsT ALl cOde From 'index.gSp'.
add /hoME to rendER: rENDEr(vIEw:"/home/index")
RePlace render(VIew:"Index") tO rEndER text: 'tEst'
Is ThIS urL works? http://yOuriP:8080/appName/hOme/indEX

It may hELp to finD an issUe. WIll You aLWaYs Get An ERroR 404 AfTer EVerY step?

 Q:

JqUeRy ButtoN cliCK FUNctiOn nOt woRking At all

I'm trying To gEt thE TexT beloW my foRm to ChAnge bAsed on Your cHoIce of 2 radio buttoNs 'yeS' or 'no'. I havE a fUnCtiOn GetCaTS that sEts Catval to thE chosen RAdiO bUTTOn. the function showCatS fEATuRes an if sTatemeNT tHaT Changes tHe TexT basED On the ValuE Of CatVal. SuBmit is THe Id Of the suBmIt buttOn For The Form aND cat Is the nAme of the Yes anD No radio buttons.
cUrrently the on CLiCK FuNCtioN isN't working, thE aleRT nevEr apPEaRs.
$(dOCumenT).readY(fUNcTIon(){
    $('#submit').click(functIoN(){
        alert('K');
        getCAts();
    });
});
function geTCats() {
    var caTS = $([NAme='cat']);
    vaR catvAl;
    FOr(var i = 0; i < cats.lenGth; i++){
        iF(cats[i].checKEd){
            catVal = Cats[i].Value;
        }
    }
    shoWCats();
}
funcTIOn showCaTs(){
    aLerT('shOw');
    iF (CAtval == 'yes'){
        $("#catReacT").TExt('HElLo felloW caT lover!');
    }


    }
   */
}

}
and my H omeControl ler i s r eal  b asic :
cl ass HomeContro l ler{

def index =  {

   rend er ( view : "i ndex" )
}

de f  t e r msA nd Co ndi ti o ns  ={
  render( view:"term sAn dC onditions")} 
}
I typica lly  navigate to  th e appl ic ati o n wit h:http: //ipAd d ress:8 080/appNa me / 

A:
A re ther e an y er rors in logs?
Try ne x t, one by anot her (t es t  a f t ereve ry step):
" /"(co n troller :  " h o m e") - remove 'act ion'.
Chang e  de f inde x= { }  to de f ind ex ( ) { }
Add 'layo ut':  render(v iew:"i n dex", l a yout:nu ll)
Re mov e a lmos t  a ll  co de fro m  ' ind e x.g sp'.
Add  / ho me to  ren d e r :  ren der (vie w:"/h ome/index")
R epl acer end er(vi ew:"i ndex ")  to r endertext:  ' test'
Is this u rl w orks? htt p:/ /y our ip :8080 / appNam e/h ome /index
It may hel pt o fi nd an issue. Willyo u al ways get  an er r or  4 0 4 afterev ery  ste p ? 

 Q: 

Jq u er y button  click fu nc tion no tworkin gatall 

I'm tryi ng toget thetextb elow my form t o  change based on y ou r  cho ice  of 2 radio  but t ons'yes '  o r ' n o'. I  have  a fu n ction getCats thatse ts cat Val t o the chosenradio butt o n .  The fun ctio n  s h owCats feature s anif stateme n t that c hange s the te xt basedo n  the val ueofcat Val . Su bmit is the i d of t he  submit  bu tton fo r t hefor m a nd  cat is t he nameof  t he  y esand n o  radio b ut ton s. 
Cu rrent l y theon cl ickfu nc t ion  isn'tw or k i ng,th ealer t n ev er ap pear s .
$ (docume nt).ready (fu n ctio n( ){ 
    $( '#submit').cl ic k(function () {
     a lert('k' );
        getCats();
  });
} );funct iongetCats()  {    va r c a ts = $ ([name ='cat '] );  var c at Val ;    for(va r i =  0; i  <  cat s.lengt h; i++){
        i f (ca ts[i].checked ){      ca t Val  = cat s [ i].value;
       }
    } 
 showCats() ; 
}fu nctionshowCat s(){   aler t('show') ;
    if(c atVa l =='yes'){
       $( "#catReac t ").te x t( 'Hell o f ellowca t l over! ');
  }

 _ _}
   */
}

}
and_my HomeController_is_real basic:
class_HomeController_{

def index =_ {

 _  render(view:"index")
}

def termsAndConditions_={
  __render(view:"termsAndConditions")
}

}
I typically navigate to the application with:
http://ipAddress:8080/appName/

A:

Are there any errors in logs?
Try next, one_by_another (test_after_every_step):

"/"(controller: "home") - remove 'action'.
Change_def index = {} to_def index()_{}
Add 'layout': render(view:"index", layout:null)
Remove almost all code from_'index.gsp'.
Add_/home to render:_render(view:"/home/index")
Replace render(view:"index") to render text: 'test'
Is this url works?_http://yourip:8080/appName/home/index

It may help to find an_issue. Will you_always_get_an error 404 after_every step?

 Q:

Jquery button click function_not working at all

I'm trying to_get the text below my form to_change based on your choice of_2 radio buttons 'yes' or_'no'. I_have a function getCats that_sets catVal to_the chosen_radio button. The_function showCats features an if statement_that changes the_text based on the value of_catVal._Submit is the_id_of_the submit_button for the_form_and cat_is_the name of the yes and_no_radio buttons.
Currently the on click function isn't_working, the alert never_appears.
$(document).ready(function(){
_   $('#submit').click(function(){
_    _  alert('k');
   _ _ _getCats();
    });
});
function getCats() {
    var_cats = $([name='cat']);
   _var catVal;
  _ for(var_i_= 0; i_<_cats.length; i++){
_      _if(cats[i].checked){
 _     _   _catVal_= cats[i].value;
    _   }
  _ }
   _showCats();
}
function_showCats(){
_   alert('show');
 _  if (catVal == 'yes'){
_  _    $("#catReact").text('Hello fellow cat_lover!');
_   }
