AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

javascript ie/ff problem

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript
View previous topic :: View next topic  
Author Message
Ross
Guest





PostPosted: Wed Sep 28, 2005 12:42 am    Post subject: javascript ie/ff problem Reply with quote




Hi,

I have a problem with non ie browsers

<script type="text/javascript">
window.onload = function(){
var strCook = document.cookie;
if(strCook.indexOf("!~")!=0){
var intS = strCook.indexOf("!~");
var intE = strCook.indexOf("~!");
var strPos = strCook.substring(intS+2,intE);
document.getElementById("menu_holder_inside").scrollTop = strPos;
}
}
function SetDivPosition(){
var intY = document.getElementById("menu_holder_inside").scrollTop;
// document.title = intY;
document.cookie = "yPos=!~" + intY + "~!";
}


The follwing function shou;d return a DIV to its positon before




--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Back to top
commercial
Guest





PostPosted: Thu Sep 29, 2005 8:01 am    Post subject: Re: javascript ie/ff problem Reply with quote



Don't use "~"

It will not show in other languages

or settings.



====

I dont like cookies

Does that ring a bell.




"Ross" <ross (AT) aztechost (DOT) com> wrote

Quote:

Hi,

I have a problem with non ie browsers

script type="text/javascript"
window.onload = function(){
var strCook = document.cookie;
if(strCook.indexOf("!~")!=0){
var intS = strCook.indexOf("!~");
var intE = strCook.indexOf("~!");
var strPos = strCook.substring(intS+2,intE);
document.getElementById("menu_holder_inside").scrollTop =
strPos;
}
}
function SetDivPosition(){
var intY =
document.getElementById("menu_holder_inside").scrollTop;
// document.title = intY;
document.cookie = "yPos=!~" + intY + "~!";
}


The follwing function shou;d return a DIV to its positon before




--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access


Back to top
Pat Martini
Guest





PostPosted: Sun Oct 23, 2005 10:18 pm    Post subject: Re: javascript ie/ff problem Reply with quote



On Tue, 27 Sep 2005 20:42:07 -0400, Ross <ross (AT) aztechost (DOT) com> wrote:

Quote:

Hi,

I have a problem with non ie browsers

script type="text/javascript"
window.onload = function(){
var strCook = document.cookie;
if(strCook.indexOf("!~")!=0){
var intS = strCook.indexOf("!~");
var intE = strCook.indexOf("~!");
var strPos = strCook.substring(intS+2,intE);
document.getElementById("menu_holder_inside").scrollTop =
strPos;
}
}
function SetDivPosition(){
var intY =
document.getElementById("menu_holder_inside").scrollTop;
// document.title = intY;
document.cookie = "yPos=!~" + intY + "~!";
}


The follwing function shou;d return a DIV to its positon before




--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

Hello Ross. Did you resolve this issue as yet? I think it's the scrollTop
function, and can check further if you still need help here.

--
Pat Martini

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.