|
How can check for and start a local application on a client machine from an ASP?
this application is not from microsoft but is from ESRI.
Thanks
|
|
|
|
|
Yes it is possible (ASP is not necessary either)
I think before we continue you should verify why you are attempting to perform this DUBIOUS operation!!
|
|
|
|
|
I am currently writing a site to be run from a CD. There are a load of Word, Powerpoint and Excel files that I have links to but I would like them to open the actual applications rather than just display the files within the browser window.
I have written a VBScript to do this but keep getting the IE security message about unmarked ActiveX controls, and if this site is ever run over a network, the ActiveX control wont even be downloaded with the default IE security settings.
I would like to be able to just change the IE security settings to accept the control but this is not really a valid option with over 4000 machines (most with users who have difficulty finding the ON button!! )
These are the bits of code that are causing the security issues:
Set objWord = CreateObject("Word.Application")
Set objPPT = CreateObject("PowerPoint.Application")
Set objXL = CreateObject("Excel.Application")
I have done a little research and believe I need to do the following:
1) Embed the controls within <object> tags in my HTML
2) Assign them the appropriate CLSID - What are these for these 3 controls?
3) Modify the registry on the Client machine to mark these controls as 'safe for scripting' - I have no idea how to do this from my webpage
Any help would be much appreciated
Kind regards
Tony Perrin
|
|
|
|
|
You can use HTML Applications and bypass all that security stuff. For starters, just rename your .htm files to .hta. HTML Applications are supported by IE 5 and higher. HTAs give you much finer control over everything, most notably there are no security restrictions. See the MSDN Library article for more: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/overview/htaoverview.asp
If your target is IE 4, you can't do anything, except maybe change the user's security settings - not a sensible solution.
A list is only as strong as its weakest link. - Don Knuth
|
|
|
|
|
We've just moved to a new Phase of a web project we're working on. We're using Visual InterDev and the move to this new phase is requiring some pretty big database changes (Sequel Server). Since the customer is currently using the previous phase, we've moved all the tables over to a new database, created a new InterDev project on our development server, copied over all the code, got the SourceSafe integration and all working and changed the global.asa to open the new database instead (we're using a connection string... no ODBC).
My question is simple... when I changed my global.asa I can connect just fine from within the project. However, when I copy the project to a test IIS server, it doesn't hit the new database. So, does changing my database connection in InterDev change any other files that need to be copied over to the test server?
Thanks,
Matt Philmon
|
|
|
|
|
Have you stopped and restarted IIS?
The connection string is most likely been cached.
Cheers,
Andy
|
|
|
|
|
how do I check if by javascript code if the
activeX on the clients browser is enabled.
thank you
|
|
|
|
|
Hello,
My company have an website, but for security policy(auditing issue), anyone want to see the content of the website include words and images, must have an account. For this issue, I want to use normal asp authentication, but it can't protect the images if someone know the url of this image, he can load this image directly. So I use Windows 2000 Server account to do this, but it let my work overload, too many user, too many group, too many account revoke wait to reset, etc, and unfortunately, this server crash last week, I reinstall the OS and environment in 2 hours, and rebuild all the account 6 hours, call all user to tell them that they have a new passowrd 1 day. I want have a new solution ....
I have 2 idea about this, but still not have no idea how to do.
One is build a share account, only this account can access the protect directory, and all the user's ID and password and other information put in the database(MS SQL or MySQL or others), and when user logon, find users ID and password, if match, when user load the protect page or image, use the share account to logon automatically by ASP at server side, user never know the share account name and password, or only know the ID. About this, I don't how to logon server at background ???
Another idea is an stupid idea, just use some user management component, or use Microsoft ADSI to manage the user accounts.
Experts, please help me, or you have other solution, please tell me ....
Thanks,
Regards
Vistac Wu
|
|
|
|
|
Move your images directory out of the inetpub...
|
|
|
|
|
hi folks
i am looking for a asp code which sends a table from the database as a mail automatically daily at certain time say for ex.7 pm daily.
is there any one who can help this out please respond back asap
thanking you in advance
bsr
|
|
|
|
|
I'm not sure ASP would be the best way of doing this. You would probably be better writing a app which can be scheduled to run by the at NT schedule command.
What kind of database is the table in? SQL,Oracle,Access?
What mail server are you intended to use to send the mail?
Michael
|
|
|
|
|
i am using the database MSACCESS and the smtp mail server
so do i need to write a executable application which runs as a service ???
|
|
|
|
|
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!!
|
|
|
|