Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-10-2002, 03:01 AM   PM User | #1
Mhtml
Senior Coder

 
Mhtml's Avatar
 
Join Date: Jun 2002
Location: Sydney, Australia
Posts: 3,531
Thanks: 0
Thanked 1 Time in 1 Post
Mhtml is an unknown quantity at this point
sending information to other pages.

Well, I'm hosted on brinkster for free and they don't offer cdo to free users so I'm trying to work around it by sending the form contents to a text file.

I can do the sending of the form info to the text file but I need to know when there are new messages so this is what I need to do:

1. on my default homepage which is on my harddrive I plan to have an iFrame which opens up a page on my brinkster site.
2. I need that page to check if there are new messages.

I figured that If on the form page I had a script which changed a variable to say NewMessage = Yes then all I'd have to do is access that variable, but how would I store that variable in a place so that I could access it?
__________________
Omnis mico antequam dominus Spookster!
Mhtml is offline   Reply With Quote
Old 08-10-2002, 04:29 AM   PM User | #2
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,043
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
You could have an additional text file that contained a 'YES' or 'NO'


So when you accessed the file via ASP if it contained 'YES' then there are new messages, if 'NO' then there aren't.
__________________
OracleGuy
oracleguy is offline   Reply With Quote
Old 08-10-2002, 08:41 AM   PM User | #3
Roelf
Senior Coder

 
Join Date: Jun 2002
Location: Zwolle, The Netherlands
Posts: 1,110
Thanks: 2
Thanked 28 Times in 28 Posts
Roelf is on a distinguished road
why not use an application variable??
Roelf is offline   Reply With Quote
Old 08-14-2002, 12:46 AM   PM User | #4
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
Why not check the last modified date of the text file against a cookie on your computer?

http://www.4guysfromrolla.com/webtec...110699-1.shtml
__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Old 08-14-2002, 04:10 AM   PM User | #5
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
you could write the messages in an XML file so that it's easier to check for new messages. xml could be something like this:

<?xml version="1.0"?>
<messages>

<message>
<sender>email@domain.com</sender>
<date>08/14/2002</date>
<text>blah blah</text>
<status>Unread</status>
</message>
<message>
...
</message>

</messages>

just check for status and date to check for new messages.
for saving html data to xml, visit http://www.asp101.com/articles/micha...ml/default.asp

i've used XML for my configuration file I used in my site on brinkster.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:27 AM.


Advertisement
Log in to turn off these ads.