Re: ******** Java script not working in Netscape,Firefox,Safari*******URGENT PLS HELP ME**********

2007-07-17 Thread csirus

Just a note on the Javascript document properties not found error. I
encountered this when I was trying to handle a div that did not exist in the
html. My script would hide all layers before showing a selected layer, and
one of the layers to be hidden did not actually exist.

-- 
View this message in context: 
http://www.nabble.com/-Java-script-not-working-in-Netscape%2CFirefox%2CSafari***URGENT-PLS-HELP-ME**-tf3943161.html#a11662471
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ******** Java script not working in Netscape,Firefox,Safari*******URGENT PLS HELP ME**********

2007-07-09 Thread Dale Newfield
If you want to write portable javascript, learn the language, or at 
least learn what makes the language quirky.  If you want to do that very 
quickly, watch the videos referred to here: 
http://jroller.com/page/TedHusted?entry=crockford_clips


-Dale

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ******** Java script not working in Netscape,Firefox,Safari*******URGENT PLS HELP ME**********

2007-07-09 Thread Jason Wyatt
The red colour doesn't show up in your email Hari, can you highlight the
problem lines in another way?

I normally use document.getElementById("name") which works in most browsers.


The other format document.ChallengeQuestionForm.year might not work in some
browsers. 

Instead, give the year field an id, eg  and
use:

var yearField=document.getElementById("yearId");
yearField.style.visibility = "hidden";

(Or, I think... something like) 

yearField.style.display = "none";

Regards
Jason


-Original Message-
From: Krishna, Hari (FTT-CInternet) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 19 June 2007 8:09 AM
To: user@struts.apache.org
Subject:  Java script not working in
Netscape,Firefox,Safari***URGENT PLS HELP ME**

 

 

 

 

Hi all,

I am working in a pure struts application which went live succesfully.
We got issues from users saying that they are getting javascript errors if
they use netscape/Safari/Firefox.

 

The same java script is working good in IE. Please let me know how to make
it cross browser compatible.Please find the code I am using in the jsp

 

The code highlighted in red color is giving "has no properties" error if I
enable script notification in the browser. Please let  us know the best way
to fix...

 

 



 



var ch1;

var ch2;

var ch3;

var ch4;

var count=0

var myId = new Array()

var questionCount=0

var requestSubmitted = false;

myId[1] = -1;

myId[2] = -1;

myId[3] = -1;

myId[4] = -1;

 

function disableAll()

  {

   for(i=1;i<=12;i++)

  {

  if(!document.getElementById("check"+i).checked)

  {

if(i==1)

  {

//document.ChallengeQuestionForm.month.disabled=true

//document.ChallengeQuestionForm.date.disabled=true

//document.ChallengeQuestionForm.year.disabled=true

  document.ChallengeQuestionForm.month.style.visibility =
"hidden"

  document.ChallengeQuestionForm.date.style.visibility =
"hidden"

  document.ChallengeQuestionForm.year.style.visibility =
"hidden"

 

  }

//document.getElementById("text"+i).disabled=true

  document.getElementById("text"+i).style.visibility = "hidden"

 

  if(i>=9)

 document.getElementById("user"+i).disabled=true

   //  document.getElementById("user"+i).style.visibility =
"hidden"

 

  }

  }

 

}



 

 

Regards,
I.HariKrishna | Software Engineer | Franklin Templeton International
Services (India) Pvt. Ltd. | Franklin Templeton Centre,1st Floor, No.7,Third
Cross Street, Kasturba Nagar, Adyar, Chennai 600020

| Tel: +91 44 24407000 | Extn: 17123 | Fax: +91 44 24453661 | Mobile:
+91 9884528587 |  www.franklintempleton.com

 

Notice:  All email and instant messages (including attachments) sent to or
from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized law
enforcement personnel, without further notice or consent.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Re: ******** Java script not working in Netscape,Firefox,Safari*******URGENT PLS HELP ME**********

2007-06-18 Thread Dave Newton
--- "Krishna, Hari (FTT-CInternet)" wrote:
> The code highlighted in red color is giving "has no
> properties" error if I enable script notification in

> the browser. Please let  us know the best way to 
> fix.

I don't see anything in red, so it's kinda hard to
say.

Without the form fields in question how can we know
what's breaking? I'd guess you're trying to access an
element in the document that doesn't exist.

You could also try asking in a JavaScript-related
forum.

d.



   

Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]