Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post

    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!

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    why not use an application variable??

  • #4
    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
    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. ;)

  • #5
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,048
    Thanks
    0
    Thanked 251 Times in 247 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •