[jQuery] jQuery Script not working on page in RIA

2008-07-08 Thread mickbw

Hi,

Please forgive if this shows up twice.  I thought it may have bounced
because I was using pre tags.


I have a jquery script that works if the page is called directly at
http://67.199.57.74/jobsearchlog/faq.cfm or the script is added
through firebug after going to  http://67.199.57.74/jobsearchlog and
clicking F.A.Q. from the top menu item.

I am working on a FAQ page for my site which will be going live soon.
My goal would be to display a answer (dt) to a FAQ only after they
click the question (dd).  I don't receive an error when clicking the
Question but the answer doesn't display.

BTW, I am using jQuery on a few other places in the RIA application
and don't have problems like this.

Any assistance you could provide would be greatly appreciated.

The script:
$(document).ready(function(){
   $('dt').each(
  function( intIndex ){

 // Bind the onclick event to simply alert the# // iteration index
value.
$( this ).bind (
"click",
function(){
$(this).next().toggle()
 }
 );
});

   //end of document.ready
   })


A piece of the page code that is to be changed.






   Why should I use Job Search Log?
   
   
   Do I need to register to use Job
Search
Log
   No, but you will not be able to
send
letters unless you have a personal profile.
   
   Are you affiliated with the State
Unemployment Department?
   No, Job Search Log is an
independent
venture but we endeavor to provide free services to all users of the
state uemployment system and welcome the Unemployment Departments to
link to our site.
   




[jQuery] jQuery Script not working on page in RIA

2008-07-07 Thread mickbw

Hi,

I have a jquery script that works if the page is called directly at
http://67.199.57.74/jobsearchlog/faq.cfm or the script is added
through firebug after going to  http://67.199.57.74/jobsearchlog and
clicking F.A.Q. from the top menu item.

I am working on a FAQ page for my site which will be going live soon.
My goal would be to display a answer (dt) to a FAQ only after they
click the question (dd).  I don't receive an error when clicking the
Question but the answer doesn't display.

BTW, I am using jQuery on a few other places in the RIA application
and don't have problems like this.

Any assistance you could provide would be greatly appreciated.


jQuery(document).ready(function(){
jQuery('dt').each(
   function( intIndex ){

 // Bind the onclick event to simply alert the# // iteration index
value.
jQuery( this ).bind (
"click",
function(){
jQuery(this).next().toggle()
 }
 );
});

//end of document.ready
})


A piece of the page code that is to be changed.






Why should I use Job Search Log?


Do I need to register to use Job Search
Log
No, but you will not be able to send
letters unless you have a personal profile.

Are you affiliated with the State
Unemployment Department?
No, Job Search Log is an independent
venture but we endeavor to provide free services to all users of the
state uemployment system and welcome the Unemployment Departments to
link to our site.