|
Hi,
I want to print a specified HTML page if a checkbox in the previous page is clicked and also that my Web Browser should not prompt with the Print Dialog box.
I am using the Microsoft Web Browser ActiveX Control for the same:
<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" VIEWASTEXT></OBJECT>
And I am calling the function on window.onLoad event as
WebBrowser1.ExecWB(6, -1)
(I understand that
1 is for Prompt and Print;
2 is for No Prompt and Print
But as per OLECMD documentation, NoPrompt and Print is no longer supported and hence a search in Google revealed that -1 does this trick.
But now, very often my web server complains an error like
Unspecified error
URL: res://c:/windows/system32/shdolc.dll#previewdlg
Sometimes, IE is trying to crash and close itself and tries to send an Error Report to Microsoft. I am using IE 6 on Windows XP (with .NET Framework installed on the system).
Please suggest me an activeX Control to print without prompt.
Thanks in advance....
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
Hi, I want to set a delay in the ASP page and make a loop. The basic requirement is, my server supports bulk mailing of 20 mails per 10 minutes. So, my code should pump out 20 mails and wait for 10 minutes and pump out next 20 mails.. and this process repeats until my database is exausted.
Now, I need a delay routine in the ASP page to acomplish this job as a 'delay routine'. Is this possible with simple ASP or JScripts????
Thanks
I was born intelligent Education ruined me!.
|
|
|
|
|
Window.setInterval(func, interval,args....) should do the job. The parameter func should be the mailing function, interval is the interval in milliseconds (10000 in this case). The rest, args are passed to func as parameters. Window.clearInterval(intervalid) stops the periodic call to func by Window.setInterval(...). The value intervalid is returned by the call to Window.setInterval().
The func should execute Window.clearInterval when the database EOF is reached, ending the mail process.
It is ok for women not to like sports, so long as they nod in the right places and bring beers at the right times.
Paul Watson, on Sports - 2/10/2003
|
|
|
|
|
I guess you are pulling this from jscripts??
Will check it out and give a try at it
I was born intelligent Education ruined me!.
|
|
|
|
|
Yup. I haven't had a need to do this, but I remembered seeing it in the O'Reilly book, "Javascript - The Definitive Guide." Hope it works for you.
It is ok for women not to like sports, so long as they nod in the right places and bring beers at the right times.
Paul Watson, on Sports - 2/10/2003
|
|
|
|
|
Anyway, it has served the purpose. It works fine except for the thing that...
delay
routine()
delay
routine().....
As a result the whole page starts with the delay first. At first sight I thought the routine is not working (I gave a delay of a minute). But it works fine....
Thanks a lot!
I was born intelligent Education ruined me!.
|
|
|
|
|
How can I resize (or hide) a frame (with javascript) when clicking a button in the same frame?
|
|
|
|
|
function HideFrame() {
top.FrameSetName.cols = "0,*";
}
Put this code in a child page and replace FrameSetName with the name/id of its frameset. Call the function with a button click or whatever is needed.
[edit]Oh yeah, you can play with the rows too ... I know this works in IE [/edit]
Wally Atkins Newport News, VA, USA
|
|
|
|
|
Thanks!
Works perfectly!
/Daniel
|
|
|
|
|
can somebody more knowledgeable than me tell me what the order of the request.blah search is in?
does it go:
GET
POST
SESSION
COOKIES
?
"even if my world is weird its my world" biz stuff about me
|
|
|
|
|
|
hu? need more information
>> request.blah search ??
do you mean query string vs. form variables?
"No matter where you go, there your are..." - Buckaoo Banzi
-pete
|
|
|
|
|
Here's a reference to an URL that explains how to set up SMTP on your server so you can send emails via CDONTS.
Now, under:
MMC
>Services And Applications
>IIS
>Default SMTP (Select Properties)
>Delivery Tab
>Advanced
>Textbox: Smart Host: mail.somedomain.com (PROBLEM HERE. See below)
QUESTION: I do not have a domain name on my test server. Can I set "Smart Host" to "mail.127.0.0.1" instead? I tried, it didnt work.
Thanks.
|
|
|
|
|
Hi, everyone!
I have a C++ client that can form a HTTP
package, including header and body. Now I
want to send some binary data (byte stream) to
a servlet. Now I have two questions,
1. What is the format of the HTTP request package
that my C++ client should form?
2. How can the servlet receive the byte stream data?
BTW: I want to send all the data in HTTP body.
Where can I find some sample codes?
Thanks in advances,
George
|
|
|
|
|
In a pure XHTML/CSS environment, where you only use CSS for formatting and XHTML for structure, how does one center or right-align things that are not text? Like, if I wanted to make a resolution-independent page that centered the logo at the top, how could this be done? I know for text there's the text-align property, and I know you can position things exactly relative to the left and top of the page, but... how could you center or right-align, say, an image, using pure CSS?
-Domenic Denicola- [CPUA 0x1337]
“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”
|
|
|
|
|
text-align operates on any line-box so whether it contains text, images, tables, objects, rules, or whatever, it should have the desired effect.
So in the example you gave of an image, you would do something like this
<div style="text-align: center; width:100%">
<img ... />
</div>
|
|
|
|
|
That's strange. "Text align" seems rather misnamed. Do you know their reasoning behind this?
Eh, whatever. In any event, thank you very much! One less thing to quizically puzzle over...
-Domenic Denicola- [CPUA 0x1337]
“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”
|
|
|
|
|
Domenic [Geekn] wrote:
Do you know their reasoning behind this?
No; personally I'd have named it "align", but hey. I don't think I am wrong - I did trawl through the W3C spec and that was all I could find on the subjet. I suppose it makes sense - the image (or whatever) can't position itself relative to it's container without knowing about it, so the container positions it relative to itself instead. Sort of. I think. Er...
|
|
|
|
|
Not the excryptrion at the level of 'e-com site'. But I am in need to excrypt/decrypt my data.
The requirement goes like this, the user will get the mails with links in it. I dont want to reveal the params, that are contained in the mails. So these need to be encrypted, and get decrypted when they enter my page in 'click of the URL'.
Is there anything avaulable in the ASP / jscripts for this?????
Thanks in advance!
I was born intelligent Education ruined me!.
|
|
|
|
|
Don't know if you've looked at .NET, but there are loads of useful tools in the System.Security.Cryptography namespace that should do pretty much whatever you need. From block encrytion, stream encryption or hashing alogorithms of various kinds, its got the lot.
Quote from a clever bloke :
"I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein
|
|
|
|
|
Giles wrote:
Don't know if you've looked at .NET
But.... I need the stuffs right now in simple ASP or JScripts only.... Thanks for ur reply
I was born intelligent Education ruined me!.
|
|
|
|
|
|
will give it a try. Thanks
I was born intelligent Education ruined me!.
|
|
|
|
|
This is really good, and works fine. Thanks!
I was born intelligent Education ruined me!.
|
|
|
|
|