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 :

Code:

View Replies


ADVERTISEMENT

Embedding Html In Asp

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:

<%
TheText2 = TheText2 & "HalCAP Request Number = " & rsOID("oid") & Chr(13)&Chr(10) & Comments
TheText2 = TheText2 & "<html><body><a href=""admin_31.asp?reqid=<%=quoteoid%>"">View Request</a></body></html>"
%>

View Replies View Related

Embedding HTML

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?

View Replies View Related

Embedding XML Data In An ASP Page

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.

View Replies View Related

Copy Part Of HTML Table To Another HTML Page

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?

View Replies View Related

Embedding Images In E-mail?

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:

IMG hspace=0 src="cid:027301c29d8e$da6ba600$0afea8c0@MYMAIN" align=baseline
border=0>

Any clues?

View Replies View Related

Embedding Images In Emails

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).

View Replies View Related

Using GetObject IIS 6.0

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.

View Replies View Related

GetObject

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

dim tmpObj

set tmpObj = getObject ("java:test")

but it return

error '800401e5'
No object for moniker

/temp.asp, line 14

View Replies View Related

Embedding An AxtiveX That Prints On The Local Printer.

Is it possible to write in VB6 an activeX that will receive a RecordSet and
display a data report and then print it on a local/network printer?

View Replies View Related

Getobject + AD Question

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:

View Replies View Related

Getobject() Problem

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?

View Replies View Related

Does GetObject Work With ASP?

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:

View Replies View Related

Embedding Images And Dynamic Content In An Email, Programmatically

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?

View Replies View Related

Passing Recordset From An ASP Page To Another HTML Page ?

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?

View Replies View Related

ASP Page As Inline Frame In HTML Page

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?

View Replies View Related

Getobject Permission Denied

We just moved a legacy asp application to a Win2003 server. The following
line of code:

set objUser = GetObject("WinNT://" & strDomain & "/" & strUserName &
",user")

Raises the following error:
Microsoft VBScript runtime error '800a0046'
Permission denied: 'GetObject'

Any suggestions?

View Replies View Related

Permission Denied: 'GetObject'

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.

Any ideas?

View Replies View Related

Problem Using WinNT Provider And GetObject

single ASP page running on IIS 5 on a Native Windows 2000 AD:

<%Set usr = GetObject("WinNT://LONGWOOD/duffeyba,user")%>

(the IIS machine is a member server)

The page is running as the user 'duffeyba'.

I am getting this result:

Microsoft VBScript runtime error '800a0046'
Permission denied: 'GetObject'

/cyphir/auth/test4.asp, line 1

This code works fine our our test domain, but fails on our production
domain.

View Replies View Related

Vbscript's Getobject To Retrieve System Info

I am trying to use the vbscript's getobject to retirive system info in my ASP site. But it is generating and error :

Error Type:
(0x80041003)

And I also found that microsoft does not recomand using getobject with ASP. Here is a bit from my code:

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!" & strComputer & "
ootcimv2")
Set colSettings = objWMIService.ExecQuery _
("SELECT * FROM Win32_OperatingSystem")

View Replies View Related

Values From Asp Page To Html Page

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?

View Replies View Related

Html Page

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

View Replies View Related

Page As HTML

i want to show my ASP pages as HTML, in the address bar of IE or NE the ASP page extention for example (result.asp) should look like(result.html) ...

View Replies View Related

Can I Get Referer In A Html Page?

is there a possibility that i can use this statement

referer = Request.ServerVariables("HTTP_REFERER") in a .html page??

View Replies View Related

Generate HTML Page In ASP

How can I generatea a HTML page which will have contents read from a local file on server.

View Replies View Related

HTML Form In ASP Page

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?

View Replies View Related

Run ASP File In HTML 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

<Form name=MailForm action=MailForm.Asp method=post onsubmit="return Validateform()"/>
<Input type=hidden value=junaid@easterntextiles.com name=recipient/>

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.

View Replies View Related

HTML Page With ASP Frames

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:

View Replies View Related

Getting Html Generated From An Asp Page

I know you can use the XMLHTTP object to retrieve Html, but how can you get html created by an asp page? Is there a way.

View Replies View Related

HTML Page Templates

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?

View Replies View Related

Redirect Html Page

Here is my code:

sample.html
<html>
<head>
<meta http-equiv="refresh" content=http://mysite/sample.asp>
<title></title>
</head>
<body>
</body>
</html>

The above code isn't working. What am I missing?

View Replies View Related

Page Breaks With ASP / HTML

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.

View Replies View Related

Get Text Out Of Html Page

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?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved