|
Thanks,
If I was to make an RSS of the 'latest updates'. How would the dynamic rule work? When I first thought of it, it seemed like only when I press the RSS icon the file is generated - but that can't be true. It has to be generated before hand so that you can use feeders to read the data....
So when will be the right time to export the 'latest update' rss feed?
Thanks in advance.
|
|
|
|
|
You naturally don't want your RSS file being re-generated everytime someone hits it, rather you only want it re-generating on update to content on your website.
So I would put the RSS updater code in the same block as the code that saves/updates your website. That way the RSS is only updated when the site updates.
regards,
Paul Watson
Bluegrass
South Africa
Brian Welsch wrote:
"blah blah blah, maybe a potato?" while translating my Afrikaans.
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
Thanks, you have been lots of help. You have ensured my understanding.
Also, thank you for the link to the RSS article - I didn't notice it before.
I live to code.
|
|
|
|
|
Something doesn't sit right...
I noticed the RSS on codeproject and on other sites as well. It seems that it is not a static file, but instead it is generated on demand. The file is of '.asp' or '.aspx' extension. I figured it should be '.xml'. Am I wrong?
What is the prefered method by RSS feeders?
Also,
Weird thing - I can't view the source of the RSS page on codeproject.
|
|
|
|
|
I need to update a database table with the time the user logs out of my site/when their session ends.
I've been using a global.asa file with the following Session_OnEnd code, but it doesnt seem to be working for me........ can anybody help?
Sub Session_OnEnd
set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DSN=....."
query = "UPDATE User_LogTime SET Logout_Time = "now()" WHERE SID="&Session.SessionID&"
conn.Execute(query)
conn.Close
set conn = Nothing
End Sub
|
|
|
|
|
I suspect that you need to create a command object to do this..
"Your village called - They're missing their idiot."
|
|
|
|
|
Thanks Roger but I'm new to this whole .asa thing. Could you explain what you mean ???
Thanks
|
|
|
|
|
An ADO Command object returns a recordset when you call its Execute method. Since you're new at this (as I am) I suppose you could use some resources. One of my favorites is W3Schools.com[^], where you'll find free tutorials on just about anything web related.
Reviewing the code, it may not be the best answer to use a Command for this; your approach, while new to me, looks like it should work fine. You may have to reformat the result of Now() though. What database are you using?
"Your village called - They're missing their idiot."
|
|
|
|
|
Hi, I am pretty new to this too. But are actually doing the same as you do (maybe), but in C#. Sorry I don't get this to work either.
What I have explored, is that.. the sesion-variables seems to be cleared _before_ the end-session-event is ran...Anybody correct me is this is wrong.
What I did to solve the problem were making a object that I put into the session-variables and that writes info to the database when it terminates. This seems to work at me.
One last thing. It may take 20 minutes before the session ends, depending on the timeout configurations. Default is that 20 minutes. So session-end seems not to be executed right after quitting the browser..
= = = = = = = = = = = = =
Kim Amunsen
Norwegean University of Technology & Science
Major: Artificial Intelligence
|
|
|
|
|
Well, i wrote a parser for my logs in apache, and this error has occured over 3000 times in the past 2 weeks:
No directory () for Hostname www.thekeegster.com
does anyone know what this means? I've been googling, but i haven't found anything. Its clogging up my errorlog, its amazing how many occurences there are of it.
I'm runnin apache 1.3 on Linux
*.*
cin >> knowledge;
|
|
|
|
|
Is there possible to make a compiled .exe to be executed when a user enter my webpage.
Of course it is possible, but what is the best way?
I know about ActiveX but don’t want to recode my dialogproject to such a component.
I’ve read a little about making CAB files but don’t know where to start.
APe
|
|
|
|
|
Why do you want to do this? Just curious.
As for the how. If you are not willing to use ActiveX then you have to first get the EXE downloaded to the clients machine. After that, you cannot activate it yourself, you have to isntruct the user to do so themselves (this is for obvious security reasons e.g. format c: /s ).
regards,
Paul Watson
Bluegrass
South Africa
Brian Welsch wrote:
"blah blah blah, maybe a potato?" while translating my Afrikaans.
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
For your curious....
I'm developing a program that my clients need to see, (during my "development process"). Until now I've send the .exe and yeah it work but it would bee easier for him/them to just tape in my www-url in a browser and get the last version I've published.
I've thought about creating an ActiveX that calls my exe with for e.g. ShellExecute(...)..... ???
He sure will trust my ActiveX in his browser.
The problen is to (inside my ActiveX) upload my exe to the client and make it run......
Realy thanks for your comments
.....and justice for all
APe
|
|
|
|
|
ahh ok, you should look into the technologies which Microsoft and others have provided for automatic updating of apps. e.g. In MSN Messenger it polls a website to see if there are any EXE updates, if there is then it alerts you, downloads the update and installs it.
I *think* the MS tech is called BITS.
regards,
Paul Watson
Bluegrass
South Africa
Brian Welsch wrote:
"blah blah blah, maybe a potato?" while translating my Afrikaans.
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
Paul Watson wrote:
I *think* the MS tech is called BITS.
Good thinking! And here's the instructions[^] for implementing it. It only works on XP, and requires VS.Net to develop custom apps using it, but it's freely available.
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
I have a very small question (a very big question for me though) about Server Side VBScript in ASP pages.
To fetch information from a HTML input textfield like the
( in a VBScript line, will return the error "Object required" (which clearly indicates my existing limitations in VBScript).
What is the VBScript syntax for this?
(there are tons of good java examples out there, but with VBScript...)
Best regards,
Emelian
|
|
|
|
|
Given a form:
<FORM NAME=Form1 ACTION="MyScript.asp" METHOD="POST">
<INPUT NAME=Test TYPE="TEXT">
<INPUT TYPE="SUBMIT" Value="Submit">
</FORM>
to retrieve the value typed into the textbox after pressing the Submit button use
<%
strTestInfo = Request.Form("Test")
%>
in the page named MyScript.asp.
[EDIT]
An excellent book, "Beginning Active Server Pages 3.0" from Wrox Press is still available, though Wrox went belly up before I could purchase its Advanced volume. It presents the subject very clearly and uses VBScript throughout - it's been an invaluable aid to me.
[/EDIT]
"Your village called - <BR>They're missing their idiot."
|
|
|
|
|
Thanks for your help, Roger!
I read some time ago about the "Request.Form(), but I'll guess the beers I had between now and then, probably wiped it all out from my mind.
Your suggestion doesn't work for me, because I'm using the "onClick" to call a small script before posting to the next page. I need to read the "Value" from the very same page that it is entered on.
.
.
.
.
In a page, it is possible to have several forms which actually can contain the same names of the "
|
|
|
|
|
I realised that using Request.Form(), will only fetch data from a post on a previous page (and from that particular posted form). That sorts out the later part in my last reply.
And about fetching values in "input text fields" on the current page by using serverside scripts, probably is a question of travelling between two parallel universes (server-side & client-side).
But the question remains... Is it possible to make the server-side script able to fetch values on an existing page before executing a post to the next page?
Regards,
Emelian
|
|
|
|
|
Emelian wrote:
Is it possible to make the serverside script to fetch values on an existing page before executing a post to the next page?
Probably, but I haven't had a need for it yet. Stick around - someone smarter than me is bound to show up.
"Your village called - They're missing their idiot."
|
|
|
|
|
Solved the problem by forcing the page to post the data into same page, when I press the "Submit" -button. But not a very nice way to solve a simple data handling, is it?
But the challange is still on, to find a solution that does it without making a "post".
Any suggestion or contribution is most welcome!
Regards,
Emelian
BTW... Thanks Roger, for spending your time and effort on this!
|
|
|
|
|
Create a file from inside ASP page ?
My current code
Dim fso
Dim streamfile
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set streamfile = fso.CreateTextFile("blahblah.asp",True)
But there is no file created at all..
Anyone can help ?
"Courage choose who will follow, Fate choose who will lead" - Lord Gunner, Septerra Core
"Press any key to continue, where's the ANY key ?" - Homer Simpsons
Drinking gives me amazing powers of insight. I can solve all the worlds problems when drunk, but can never remember the solutions in the morning. - Michael P Butler to Paul Watson on 12/08/03
|
|
|
|
|
When you specify the file to create you have to specify the full path, otherwise the default directory will be used, which is probably in some temp directory somewhere. Do it like this:
Set streamfile = fso.CreateTextFile(server.mappath("blahblah.asp"),True)
NATHAN RIDLEY
Web Application Developer
email: nathan @ netlab.com.au
[remove the spaces before and after the @ symbol]
|
|
|
|
|
Yes.. that's what I forget, Server.MapPath
Many thanks
"Courage choose who will follow, Fate choose who will lead" - Lord Gunner, Septerra Core
"Press any key to continue, where's the ANY key ?" - Homer Simpsons
Drinking gives me amazing powers of insight. I can solve all the worlds problems when drunk, but can never remember the solutions in the morning. - Michael P Butler to Paul Watson on 12/08/03
|
|
|
|
|
I have seen websites where all the pages have the suffix
.asp and I have seen websites where all the pages have
the suffix .htm. Is there a difference between the two
files?
What really bothers me is I have a site where everything
is .asp and when I send this robot to crawl the site and
find all links, it only finds the first page. I want
google and other search engines to crawl all the pages
(and subpages of the site) and the .asp suffix seems to
hinder it.
Am I just imagining this or is something really different
between those suffixes?
Please, any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|