473,320 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Houston ! we have a problem :-(

Mel
the following code works fine, except that it does not scroll to the bottom.
which is what i really want
can someone help this pooooor soooouuuuullllll
i am a newbeeeee (kind'a)
<a href=# onclick="addtext('Tue Mar 22 2:39:09 PM Eastern Standard Time
2005<BR>');">
<b>HELLO</b></a>

<div id=MyDiv style=height:100;overflow:auto class=normal style="border:1px
CCCCCC solid"></div>

<script>
function addtext(string) {
var c = new Date();
oDiv = document.getElementById("MyDiv");
oDiv.innerHTML = oDiv.innerHTML + string + '<A name=' + c + '></A>';
self.location = "#" + c;
}
</script>
Jul 23 '05 #1
3 1015
Mel wrote on 22 mrt 2005 in comp.lang.javascript:
the following code works fine, except that it does not scroll to the
bottom. which is what i really want
can someone help this pooooor soooouuuuullllll
i am a newbeeeee (kind'a)
<a href=# onclick="addtext('Tue Mar 22 2:39:09 PM Eastern Standard
Time 2005<BR>');">
<b>HELLO</b></a>

<div id=MyDiv style=height:100;overflow:auto class=normal
style="border:1px CCCCCC solid"></div>

<script>
function addtext(string) {
var c = new Date();
oDiv = document.getElementById("MyDiv");
oDiv.innerHTML = oDiv.innerHTML + string + '<A name=' + c +
'></A>'; self.location = "#" + c;
}
</script>


which stands to reason, since location reloads the original page,
where the script is not yet executed.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #2
Mel
I know it does not work, but the question is can you help ?
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn*******************@194.109.133.29...
Mel wrote on 22 mrt 2005 in comp.lang.javascript:
the following code works fine, except that it does not scroll to the
bottom. which is what i really want
can someone help this pooooor soooouuuuullllll
i am a newbeeeee (kind'a)
<a href=# onclick="addtext('Tue Mar 22 2:39:09 PM Eastern Standard
Time 2005<BR>');">
<b>HELLO</b></a>

<div id=MyDiv style=height:100;overflow:auto class=normal
style="border:1px CCCCCC solid"></div>

<script>
function addtext(string) {
var c = new Date();
oDiv = document.getElementById("MyDiv");
oDiv.innerHTML = oDiv.innerHTML + string + '<A name=' + c +
'></A>'; self.location = "#" + c;
}
</script>


which stands to reason, since location reloads the original page,
where the script is not yet executed.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #3
Lee
Mel said:

I know it does not work, but the question is can you help ?


He also told you why it doesn't work.

Don't assign a new value to the location object. Assign a new value to
"location.hash".

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tom Grills | last post by:
Hi all - I have a short-term project which requires the skills of an experienced C/C++ developer... The project involves redesigning a DLL that uses polling to read data from both TCP/IP...
0
by: blueflame0515 | last post by:
Hey, anybody looking for a job in Houston should check out this link: https://jobs-oxy.icims.com/oxy_jobs/jobs/candidate/job.jsp?jobid=1051&mode=view They are looking for a SPS / WSS / CMS...
1
by: Mark | last post by:
I'm looking for a DB2 version 8 DBA for a permanent position in Houston. Are there any good user groups available where I might be able to make some contacts? If you have any information on this...
0
by: Navision Recruiter | last post by:
What we're getting you for Christmas: ·Excellent benefits package ·Exciting Career Path ·Great Team of Professionals ·Compensation $75k - $90k USD dependent upon experience Permanent role...
0
by: Patick | last post by:
My name is Patrick Thomas and I work for Pace Consulting here in Houston. I have a client located here in Houston who is in need of a couple of Senior Level C# developers with winforms and SQL...
2
by: xkenneth | last post by:
All, I'm in Houston/College Station/Austin quite often and I'm looking for other coders to do some joint projects with, share experiences, or do some sprints. Let me know if you're interested. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.