|
Actually it is possible to use an ASP page to do this. (maybe not the best solution, but just for fun here is how to do it)
The e-mail portion is simple, using either CDONTS or one of the many e-mail components out there (eg ASPMail). Then you would just be building the body of the message from the database table via the usual ADO tapdance.
The tricky bit is getting it to run regularly, as ASP is not "executable" as such, it must be interpreted through a web server. This allows for no regular scheduling, as ASP exits memory upon completion. I did use a couple of ASP scripts to do some automated tasks just for the fun of it once though. (ok ok, I'm a geek )
The way you get it to execute regularly is by using task scheduler to execute a command line of "iexplore [insert page url here]" without the quotes. You will need to make sure that iexplore.exe is in your path or specify the path to it when you call it.
I would just use the server's task scheduler to do it. Or if it is a hosted site on a remote machine, you can use the task scheduler on your own machine, just remember that your machine will have to be running to call the page.
Jason Jystad
VP in charge of Goofy Quotations
Cito Technologies
www.citotech.net
>------------------------------------------------<
"Luckily," he went on, "you have come to exactly the right place with your interesting problem, for there is no such word as 'impossible' in my dictionary. In fact," he added, brandishing the abused book, "everything between 'herring' and 'marmalade' seems to be missing."
-- Dirk Gently (Douglas Adams)
>------------------------------------------------<
|
|
|
|
|
First Question is does anyone know of a function to find the size of a window(in pixels)?
Second, How can use a javascript variable to determine the size of an object, such as a picture or an ActiveX control?
What I am trying to do is detect when the IE window is resized, then I want to resize an ActiveX control to the size of the window.
Any help will be GREATLY appreciated.
Thanks,
Aaron Gillmann
|
|
|
|
|
Just set the width and height properties of the object tag for you active x control to be 100% then when the window resizes the object will be the same size as the window.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
I have a need from an ASP page, to post XML data on another site collected from my ASP based form. Can I use XMLhttp object from ASP to accomplish this? Is there a short sample available somewhere?
|
|
|
|
|
Yes, here is an example of the code needed. Note the use of the ServerXMLHTTP rather than the XMLHTTP usually used (see ) although using IIS5.0 you can use XMLHTTP but put your application as High (Isolated).
Example
Set oIFX = Server.CreateObject("MSXML2.ServerXMLHTTP")
Set oXML = Server.CreateObject("Microsoft.XMLDOM")
' Build up XML document from your data (form)
xmlRequest = "<query>" &vbCr
xmlRequest = xmlRequest & "<product>XYZ"
xmlRequest = xmlRequest & "<client>XYZ Web Client"
xmlRequest = xmlRequest & "<version>1.0"
xmlRequest = xmlRequest & "<savexml>FALSE"
xmlRequest = xmlRequest & "<command>PLT"
xmlRequest = xmlRequest & "<plt>" & strValue & ""
xmlRequest = xmlRequest & ""
' Load in the XML created
oXML.loadXML(xmlRequest)
' Where we sending this??
Call oIFX.open("POST", "http://.../xyz_query.asp", false)
' And the data we want to send...
Call oIFX.send(oXML)
Hope this helps,
Andy
|
|
|
|
|
I have a text area where I will enter some text I want to retrieve the text in same format that I am entering. Can anyone help me?
Thanks in Advance
Bhagya
|
|
|
|
|
What do you mean with the same format?
If you mean that linebreaks are not shown on another asp page, just replace \r\n with <br>
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
|
Wouldn't the quick solution be to check which kind of element you get, and if it's a TD get the firstChild.
Like:
cElement=window.event.srcElement;
if (cElement.tagName=="TD" && cElement.firstChild)
{
cElement=cElement.firstChild;
}
- Mort
|
|
|
|
|
Forgive me if I am repeating myself, I've asked something similar before.
Original question: Setting a session variable on one page has no effect on another page.
I found a clue in that the SessionID changes between each pages. It would make sense then that session variables from one would not be available to the other. The question now is how do I keep the session between pages. Bearing in mind that I don't have complete control over the web server this site is being hosted on. The server is a W2K Server running IIS 5.0
|
|
|
|
|
Duh, I found the problem (I think). On my test browser I had cookies disabled. Once I accepted cookies the variable was available to all pages.
There is another question this raises though. In my gloabal.asa I created an instance of ADODB.Connection and set a Session variable to hold this.
<br />
var Conn = null;<br />
vat ID = 0;<br />
<br />
function Session_OnStart()<br />
{<br />
C = Server.CreateObject("ADODB.Connection");<br />
C.Open(...)<br />
Session("Conn") = C;<br />
Session("ID") = 0;<br />
}<br />
With cookies disabled I could not persist the ID variable between pages, yet the Conn object was usable between pages.
Can anyone explain this?
|
|
|
|
|
has anyone got an app that will translate javascript into c or vb. a guide will do.
|
|
|
|
|
I vaguely remember seeing something one day about changing the toolbar controls on IE with Java script or VB script from an HTML page. I know that will mean locking oneself into IE. If anyone knows how I would be interesting in hearing from you.
Happy programming!!
|
|
|
|
|
Not a full answer this but the changes are done using CSS and not JavaScript or VBScript.
Have a look at this article on CNET Builder about how to do it.
Happy scripting
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"We would accomplish many more things if we did not think of them as impossible."
- Chretien Malesherbes
|
|
|
|
|
There is a way to do it with JavaScript too.
See the article at http://www.dynamicdrive.com/dynamicindex11/scrolleffect.htm
Amusing effect.
Have fun!
Jason Jystad
Cito Technologies
www.citotech.net
>------------------------------------------------<
"Luckily," he went on, "you have come to exactly the right place with your interesting problem, for there is no such word as 'impossible' in my dictionary. In fact," he added, brandishing the abused book, "everything between 'herring' and 'marmalade' seems to be missing."
-- Dirk Gently (Douglas Adams)
>------------------------------------------------<
|
|
|
|
|
Hi all,
i am experiencing a tricky problem with Internet Explorer.
To call the function execCommand("FormatBlock" [, bUserInterface] [, vValue]) I need to know the possible vValues, which are different in each language edition!!! According to MSDN these can be retrieved by:
"Call IOleCommandTarget::Exec with the IDM_GETBLOCKFMTS Command ID to obtain the current list of available block formatting commands that can be passed with the FormatBlock Command ID." (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/constants/FormatBlock.asp)
I know JavaScript but this is absolutely beyond my (current) spheres... Please help me, I am willing to learn.
Thanks a lot!
Regards,
Dominik
|
|
|
|
|
Currently we have an online back-end Admin Suite for our site. It allows non-HTML coders to edit content on the site with ease. The control we are using is the built in HTML editor control that comes with Internet Explorer. It is pretty easy but we are finding it has some limitations i.e. Netscape support is lacking and the code it produces is not the best.
I was wondering if anyone had an alternative control or any alternative ideas?
thanks
regards,
Paul Watson
Cape Town, South Africa
e: paulmwatson@email.com
w: vergen.org
|
|
|
|
|
the code it produces is not the best
If you want finer control over the HTML, create it yourself, using the contenteditable attribute in IE 5.5 and above. Eg: <div contenteditable="true">Some editable text</div>
You can then use stuff like innerHTML do write your own HTML.
If you are using IE 5.5 or higher, you can edit this text.
What's Netscape?
"A surprise to be sure, but a welcome one."
- Senator Palpatine
|
|
|
|
|
Well the whole point of the WYSIWIG back-end tool is so that non-HTML gurus can enter in content. But thanks
LOL and I must have been on drugs when I wrote that bit about that funny programme called Netscape, I think I just made the name up... hallucinations again...
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"We would accomplish many more things if we did not think of them as impossible."
- Chretien Malesherbes
|
|
|
|
|
|
Any chance I could get you to post some relevant links or some general info on using the IE control? I have a project in the offing that it might be useful in and I haven't seen any docs on using it.
Thanks!
Jason Jystad
Cito Technologies
www.citotech.net
>------------------------------------------------<
"Luckily," he went on, "you have come to exactly the right place with your interesting problem, for there is no such word as 'impossible' in my dictionary. In fact," he added, brandishing the abused book, "everything between 'herring' and 'marmalade' seems to be missing."
-- Dirk Gently (Douglas Adams)
>------------------------------------------------<
|
|
|
|
|
I am off to London now for two weeks so I wont be able to post until I get back. Soon as I get back though I will write up an article on the whole thing and notify you of it
If you need it really urgently then email me directly and I will see what I can do.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"We would accomplish many more things if we did not think of them as impossible."
- Chretien Malesherbes
|
|
|
|
|
That would be great. I need to write a highly controlled content editing system for an intranet. They all have IE so it sould like a good solution for me.
As far as when I need it, no rush. When you get back would be fine. Just reply on here to something of mine so that I get the reminder e-mail. Or just e-mail me directly.
Thanks a lot!
Two weeks in London. Man I need to get out of this country for a while. I really do need to find another country to work in for a few years.
Anyhow, thanks again and I look forward to the article!
Jason Jystad
Cito Technologies
www.citotech.net
>---------------------------------------------------------------------------<
"Power corrupts. Absolute power is kind of neat"
-- John Lehman, Secretary of the Navy 1981-1987
>---------------------------------------------------------------------------<
|
|
|
|
|
can somebody tell me how to use asp language to write an upload function to upload a file to the remote server?
thanks.
|
|
|
|
|
You can't do it with just plain ASP, you have to use COM, too. Take at look at this article.
Jon Sagara
Sagara Software
|
|
|
|