ASP/JAVA Chat Problem

  • Hie$t
  • Born
  • Born
  • User avatar
  • Posts: 3

Post 3+ Months Ago

Im trying to find a script to refreash a content page
in an Iframe every time a user posts a message without the META
Refreash with its annoying click sound in explorer. I have everything
functioning the way I want other than this update function!

Im trying to stay away from a database as to keep this lil prog very simple and sweet!

It has a global and a js file in place just stuck on this update function!

Any suggestions will be greatly appreciated!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Hie$t
  • Born
  • Born
  • User avatar
  • Posts: 3

Post 3+ Months Ago

Ok no answers yet Ill post a little code that I found that says
it would do this but I havent figured out why it is not working
correctly keep getting Object error with it can you have a look
and see what needs to be changed in order for this to work?



This is the code that Im trying to use

Here is how it works. You have basically two pages of content.
The content holder which declares the iframe, and the actual content
in the frame. The code for both is shown below. Notice the actual
content inside between the span tag. You can replace this with any
data site or chat room content as I did. Any Fixes To get this to work would be very helpful.


CODE*************************

----------------content.htm-----------------------
---this is the one that actually displays stuff---
--------------------------------------------------


<html>
<head>
<title>Chat Input</title>
<script language="JavaScript">
function Reload() {
window.location.reload(true);
}

function DoPageLoad() {
DoScroll();
var Timer = setTimeout('Reload()', 1500);
}
</script>
<base target="_self">
</head>
<body bgcolor="#FFFFFF" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" onLoad="DoPageLoad();">
<span id="BGOutput">this is the content that you see</span>
</body></html>


-------------------content holder---------------------
----this is an empty page that holds your iframe------
------------------------------------------------------
--make sure you change the src command in the iframe
--below to reflect the page you want to get the
--content from----------------------------------------
------------------------------------------------------


<html>
<head>
<title>Chat Input</title>
<script language="JavaScript">
var LastOutput = '';

function DoScroll() {
var NewOutput = ChatInputFrame.BGOutput.innerHTML;
if (NewOutput != LastOutput) {
Output.innerHTML = NewOutput;
LastOutput = NewOutput;
window.scroll(0, 999999);
}
}

function LoadPrivateRoom(OtherUserID) {
var WhisperWin = window.open('Chat6_PrivateRoom.Asp?User1=<% = objChat.CurrentUser %>&User2=' + OtherUserID, 'PrivateChat'+OtherUserID, 'scrollbars=no,menu=no,status=no,width=380,height=340');
}

function RefreshChatOutput() {
ChatInputFrame.location.reload(true);
DoScroll();


function ReloadNow() {
window.location.reload(true);
}

function DoPageLoad() {
window.scroll(0, 999999);
var Timer = setTimeout('ReloadNow()', 2000);
}
</script></head>
<body bgcolor="#FFFFFF" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
<span id="Output"></span>
<iframe name="ChatInputFrame" src="content.htm" target="_self" marginwidth="1" marginheight="1" border="0" frameborder="0" height="0" width="0" scrolling="yes">
</body></html>

END CODE*************************
  • khlboss
  • Born
  • Born
  • khlboss
  • Posts: 3

Post 3+ Months Ago

i am tray it and update same code and it work good

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 139 guests
  • 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 post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.