problem with javascript
-
Hi, i used from this javascript code in my website an it works correctly by IE. But it dos not work with Firefox. what is it's equivalent compatible with Firefox? Thank you. $get('Panel1').style.left=100; $get('Panel1').style.top =100; $get('Panel1').style.posWidth=100; $get('Panel1').style.posHeight=100;
-
Hi, i used from this javascript code in my website an it works correctly by IE. But it dos not work with Firefox. what is it's equivalent compatible with Firefox? Thank you. $get('Panel1').style.left=100; $get('Panel1').style.top =100; $get('Panel1').style.posWidth=100; $get('Panel1').style.posHeight=100;
What is $get ? I've never seen that. document.getElementById is how you find an element, and you should do it once, check the returned value, then use that variable.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
What is $get ? I've never seen that. document.getElementById is how you find an element, and you should do it once, check the returned value, then use that variable.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Dear Christian Graus, $get is a function in ASP.NET AJAX that it's functionality is the same document.getElementById
OK, but it doesn't use AJAX, right ? SO, I'd just do it properly as per what I outlined. I'd also do what I suggested to see if it fixes FF, and if it doesn't, you can use Firebug in FF to debug your code and work out what the property is ( but what you have looks right to me )
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )