Problems With GetObject When Embedding Vbs In An HTML Page
I have a vbs script that retrives some stuff from AD via LDAP. Works great, and does exactly what I want it to go. The 'guts' of the app is Code:
Set objOU = GetObject (strOU)
Where strOU is something like "LDAP://OU=Users,OU=OT...." etc. Like I say this works fine and generates a nice report.
However I have to (I don't know why, but it's an insist) that this script has to be an html page. A stand alone one at that (ie to be run form a users workstation).
I rewrote the code to output to the html page, emebeded it in <script language="VBscript"> etc but the GetObject bit isn't working. I get :
I have an asp page where I am generating an email but I need to have a link in the email body. Here is my code, I cannot get anything to work. I keep getting missing end of statement. Code:
if I have a block of HTML which I can insert into a file, I know there a PHP way of doing it just don't know the VB way to do it, anyone come accross this?
I'd like to display XML data in a table in an ASP page. Seems like XSL and XML don't like that because ASP commands within the document cause the page to not be "well-formed"...
anybody know how to do what I want to do? Point me to a good online tutorial...i'll be looking too in the meantime.
I have a table having 3 columns. There is a checkbox for each line. I need to get those lines whose checkboxes are checked, and show those lines to another webpage. Is there any way to do that? My concern is that all information in the table are in <tb></tb> pairs without any name tag. Any idea?
I need to create HTML e-mail from an ASP program that includes embedded images that go along with the e-mail, e.g. logos, product image, etc. Is there a technique in HTML that people use to embed images? I know that when I insert an image into an e-mail in Outlook, and I look at the HTML behind it, there is a funny tak CID:
I'm not sure if this is the correct forum to ask this question, but I'm creating the email in ASP so I'm sure it will do...
How do you embed images into emails? I've created HTML emails that lookup images on a server when viewed but I'm trying to write a script where an image is sent with the email as the image isn't available online (only on the intranet).
I am using a code in ASP that uses a Java class. I am using GetObject("java:MyClass") to get the object of that class. It was working fine, But now we have shifted to Windows 2003 server with IIS 6.0. Here it doesn't works. It gives me an error with code '800401e4'.
I've read somewhere it has been restricted due to some security problems. But I still want to enable this on my server.
I have using java to write a simple class (test.class) and placed in a folder d:/jobs.progess/temp and set the classpath to that folder then, my script here
Im trying to build a little intranet security tester to produce a list of usergroups that the currently logged on user is a member of. Now i did this before a good while back on an NT based system and it worked a treat. Heres the basic code:
I have recently run into a problem using the getobject() function.
I have a fully functional script that is running on a Windows 2003 server. It makes the following call:
set adsUser = getobject("WinNT://" & replace(request.servervariables("remote_user"),"","/"))
We recently had to do some maintanence on the 2003 webserver so we had to temporarily move the script to a Windows 2000 server. To our dismay the script failed on that statement. None of us can figure out why, is there some obscure setting that we missed that enables the "remote_user" in the server variables? Is there a better way to get the remote user?
I have not been working with ASP for too long at this time and am not real familiar with a lot of things about ASP. I have searched for articles on the following question but not come up with any definite answers. Code:
In my code to send email from VBScript, I use standard CDOSYS code similar to the following:
With oMsg Set .Configuration = oCon .To = """Admin"" <admin@mycompany.com>" .From = """Joe Admin"" <jadmin@mycompany.com>" .Subject = "Hey You!" .TextBody = "Service(s) have failed!" .Send End With
I understand the use of the .HTMLBody property, as well as the ..CreateMHTMLBody method. So I know I can create an ASP or HTML page, and pass it to the .CreateMHTMLBody method, to get the images truly embedded, so the email source contains the cid:blahblahblah references to the images, which is key to getting the email to display properly in web-based mail clients.
My question is... how do I achieve the same thing (embed the images) that the .CreateMHTMLBody method does automatically, manually, so I can also inject values passed from a form postback into the email?
It seems that I shouldn't use the .CreateMHTMLBody method. It seems that I need to manually accomplish what it accomplishes automatically, so I have more granular control. But I have found no thorough online resources that explain exactly how. I have thoroughly looked at all of the SDK information pertaining to CDOSYS, and I am still in dire need of an example for VBScript...
It seems that the .AddRelatedBodyPart method is part of the answer, but when I use it to embed the images and fill .HTMLBody, rather than using the ..CreateMHTMLBody method, I do not see cid:blahblahblah in the email source, and the images do not display properly in web-based mail clients such as Outlook Web Access.
I really need some help on this. It would also appear that I am not alone. I find plenty of questions on this, but no answers. Can anyone help with a working VBScript example that embeds images into an email in a fashion that yields the cid:blahblahblah in the email source, for the image references, that does not use the .CreateMHTMLBody method to do the work automatically?
I am looking for a way to pass an ADO recordset that has been retrieved in an ASP page to another HTML-page. Is there someone who can provide me with a small sample or a link to see how this is done?
I have a ASP Page[inline frame in an html page] that does login to a database.
When the user visits the site, the first attempt to login will always failed and session is broken. Login name and password are correct though.
Only when the user re-try agian he/sge is then able to login to the site successfully. Can anyone tell me what could had caused the first time login failure?
I'm building an ASP app that uses Windows Authentication (IWA).
I have an authentication routine that assesses if & how the user can use the application (see code snippet below). Users of a particular group have full permissions (configured via IIS) and all other users have read/execute permissions.
When I call the authentication page from the server on my own PC, everything seems to work, but I guess this is not a respresentative test. So I installed the page on my development server and called it again from my own PC. This time a got an error: Permission denied: 'GetObject' .
The error occurs on the second GetObject call. It seems to point to a permissions issue, but I'm not sure where to look.
I have a web form page that passes values to an asp page, in which an email is sent to the customer with those values. The email functionality works fine. But I also want to display these values on a separate "thank you" web page after that.
What is the code to make those values display in the "thank you" web page? Does this involve adding code to the asp page and the "thank you" html page as well?
I developed the asp page which shows the all transaction records of the particular day in tabular form.But the probelm is that when i take print preview of the page directly from broswer ,print result takes more than one page so i want to reprint report header and then rest of records
I have a html form, and I like to know how to capture the values in the form after the user hit the submit button. How do I capture these values in an ASP page?
I have developed a HTML page containing form and table having some fields, Now What I want is that when I Click on Submit Button then all of the Form Fields should be email to a particular email address just like as they r on the form. So my problem is that i have created an ASP page containing code about to pick data form form fields n send it to email address i mentioned, But i dun know how to request an ASP page in a html page, Iam using
Just after the table creation but it doens;t work because when i click on submit it ask me to save or open MailForm.asp. So is there anyone who can explain me how to run this file directly with in html page or how to use asp code in html page.
I have a HTML page named Index.html which is divided into 3 frames. The URL of 2 of the frames are HTML pages but the 3rd frame houses a ASP page.
Now when I go to Windows Explorer, navigate to the folder in which the all the 4 files (3 HTML + 1 ASP) reside & select Index.html (by clicking with the mouse or by using the arrow keys on the keyboard), strangely the Windows "File Download" dialog box (with 'Open', 'Save', 'Cancel', 'More Info' buttons) pops-up with the message Code:
Is this affective way using HTML Templates in ASP:
I have html template file with <<TAG1>> .. <<TAGN>> in places, where I want to insert some data then i generate this data in asp:
Dim d ' Create a variable. Set d = CreateObject("Scripting.Dictionary") d.Add "TAG1", "Athens" ' Add some keys and items. d.Add "TAG2", "Belgrade" d.Add "TAG3", "Cairo"
, open html template, replace each <<TAGx>> with generated data (d.Item("TAGx") ), and print it with Response.Write
Or there is any other usual methods to use templates?
Here is my problem - I have an ASP page the is generating a file with HTML that is being opened with WORD. Can anyone give me a simple method, idea, function, example, resourse, etc.... to figure out how to handle PAGE BREAKS. I am not sure how to handle when to put the breaks in for the report that is being created.
I have an html page, how would I be able to just get the words in it? I mean I can probably program to get it but is there any existing tool that we can use and just fetch the word content of a html page?