|
Depends on how complex of a site you have ...
If you want to maximize the browser window and have your content fit it regardless of the size you can use javascript to resize the window:
window.resizeTo(screen.availWidth,screen.availHeight);
window.moveTo(0,0);
And then in you HTML you could use tables that have 100% for the width to take up the entire width of the screen ...
That's just a suggestion ... depends on what you want to do ...
Wally Atkins Newport News, VA, USA
|
|
|
|
|
i have built an html/asp menu:
<table>
<tr OnMouseOver="bgColor='AliceBlue' OnMouseOut="bgColor='White' .... >
<td>menu item 1</td>
<tr>
<tr OnMouseOver="bgColor='AliceBlue' OnMouseOut="bgColor='White' .... >
<td>menu item 2</td>
<tr>
<tr OnMouseOver="bgColor='AliceBlue' OnMouseOut="bgColor='White' .... >
<td>menu item 3</td>
<tr>
<tr OnMouseOver="bgColor='AliceBlue' OnMouseOut="bgColor='White' .... >
<td>menu item 4</td>
<tr>
</table>
Question is, how can you set the icon for the cursor when mouse over?
norm
|
|
|
|
|
<br />
<tr style ="CURSOR: hand"onmouseover="bgColor='AliceBlue' onmouseout=" bgColor='White' ....><br />
<td>menu item 1</td><br />
<tr><br />
|
|
|
|
|
How can I enforce a margin to a web document, I am using CSS for formating documents (I only use XML with a CMS that generates HTML, because I use both Windows and Linux :P). I have tried left-margin ... and it hasn't worked. My teacher is strick about margins. Also how can I prevent a header from being placed on the first page?
-Steven
CP Addict
By reading this message you are held fully responsible for any of the mispelln's or grammer, issues, found on, codeproject.com.
For those who were wondering, actual (Linux) Penguins were harmed in creating this message.
|
|
|
|
|
have you tried:
<body topmargin="0" leftmargin="0">
Works in IE ... hope it works in others
Wally Atkins Newport News, VA, USA
|
|
|
|
|
Add this to your CSS page:
body
{
margin-left:5;
margin-top:5;
margin-right:5;
margin-bottom:5;
}
Change the values as per your requirements.
HTH.
Regards,
Rohit Sinha
Character is like a tree, and reputation like its shadow. The shadow is what we think of it; the tree is the real thing. - Abraham Lincoln
The whole world steps aside for the man who knows where he is going. - Anonymous
|
|
|
|
|
Hi all,
I'm not sure if this is the right place to post, but...
Is there any way to control the WSDL produced in a VS.NET C# Web Services Project? I'm guessing it might be something involving attributes.
Basically, I'm using SOAP to return subsets of a database, and I think DataSet et. al. may be a little to heavy-weight for what I need. An example of what I want is a SOAP function GetAuthorInfo( UINT id ) that returns an author's details as XML, conforming to a predefined Schema. I'd like to be able to specify this Schema in my WSDL file.
I'm new to the whole SOAP/XML/Web Service thing, so I'm not sure if this is a really naive way to implemnt this kind of functionality, so any comments and suggestions are most welcome.
TIA,
Pete
|
|
|
|
|
hello,
i'd like to use a file input field where the user can select a
file. if the filename is entered manually or by browsing i
can access the filename by the value property. but i also
like to set the value to different default values by
clicking on different buttons. but setting the value with
File1.value = "TEST"; during runtime does not work. the
field stays empty.
how can i change the value of the file input field?
thanks
enrico
|
|
|
|
|
The MSDN docs state that the file *path* is only available (i.e., can't set but can get) to machines in the Local Machine zone, but only the file *name* is available to machines outside said zone.
This is for security reasons. Computers on the Internet (besides your own) shouldn't be able to know anything about your system other than what you tell them. Knowing your file paths is information no one else really needs to know. Also, imagine what would happen if a web site could *set* the "value" attribute: all I'd have to do is set "style='display:none;'" on the input box and I could upload any of *your* files I wanted to without you knowing, like your personal or machine registry hives or other files for which I know the common paths.
Reminiscent of my younger years...
10 LOAD "SCISSORS"
20 RUN
|
|
|
|
|
I have an inline frame on my webpage of which the contents and height change according to different buttons the user might push. The problem is that I that when I use the following code:
<iframe class = "tab" id = "child" FRAMEBORDER = "0" width = "90%" align = "center" onload = "ChangeChild('features.html')">
</iframe>
the web page loads but keeps loading 10 times a second and my computer keeps clicking and clicking as if I was repeatedly clicking on a link. The function ChangeChild is as such:
function ChangeChild(txt)
{
document.getElementById("child").src = txt;
document.getElementById("child").height = (window.screen.availHeight * .7);
}
Does anyone see what might be wrong with my code? I am using Internet Explorer 6.0.
|
|
|
|
|
georgiek50 wrote:
document.getElementById("child").src = txt;
Changing the .src attribute value of any html tag produces additional loads, hence what you see.
What you want to do is unclear, but from what I see I suggest to avoid to call "child" the iframe tag itself.
In addition, changing the .height attribute dynamically can produce blinking and other unwanted scrolling effects. That's always best to let the browser decide itself the height of an html container.
|
|
|
|
|
Well, I guess I should have explained what I wanted to do in the first place. I have an inline frame which is supposed to change every time I push buttons on top of the page, simulating a tab control. Now the height of the frame I want it to change to accomodate the content of the different pages that load so the vertical scroll bar doesn't appear. It is no problem since I use onclick = "ChangeChild()"...but if the user reloads the page (from explorer with the refresh button) then the inline frame takes the value that was first given to it when the home page was loaded and the vertical scroll bar appears. I hope I haven't confused you. Do you have any suggestions for me/strategy to avoid this?
|
|
|
|
|
georgiek50 wrote:
but if the user reloads the page (from explorer with the refresh button) then the inline frame takes the value that was first given to it when the home page was loaded
Yes, isn't that what the Refresh button is for ?
A possible way to change the support of Refresh is to not provide a .src value at all.
|
|
|
|
|
Hi, having some touble with ADODB.command
Here's the ASP code snippet:
...
...
...
Set oCmd = Server.CreateObject("ADODB.Command")
With oCmd
.ActiveConnection = oConn
.CommandText = "sproc_AddUser"
.CommandType = adCmdStoredProc
.Parameters.Append .CreateParameter("@login", adChar, adParamInput, 15, Request.Form("txtLogin") )
.Parameters.Append .CreateParameter("@password", adChar, adParamInput, 15, Request.Form("txtPasswd") )
.Parameters.Append .CreateParameter("@first_name", adChar, adParamInput, 50, Request.Form("first_name") )
.Parameters.Append .CreateParameter("@cust_service_level", adInteger, adParamInput, 5, CInt(Request.Form("cust_service_level")) )
...
... a whole bunch of other parameters ...
...
If Request.Form("user_category")="0" Then
.Parameters.Append .CreateParameter("@bClientStatus", adInteger, adParamInput, 4, 1)
Else
.Parameters.Append .CreateParameter("@bClientStatus", adInteger, adParamInput, 4, 0) ****** LINE_1 *****
End If
.Parameters.Append .CreateParameter("@error_status", adInteger, adParamOutput, 4, 0) ***** LINE_2 *****
'Execute the stored procedure:
.Execute
End With
ERROR MESSAGE:
"Microsoft OLE DB Provider for SQL Server error '80040e14'
Formal parameter '@bClientStatus' was defined as OUTPUT but the actual parameter not declared OUTPUT.
/registration.asp, line 227"
QUESTION 1:
Objection!@@!! Can you see that "bClientStatus" was explicitly defined to be "adParamInput" in the code snippet above (LINE_1)? The funny thing is, if I remove LINE_2, the code executed with no error!??
QUESTION 2: How can you extract return value?
Thanks a bunch!
norm
|
|
|
|
|
In regards to ERROR MESSAGE:
"Microsoft OLE DB Provider for SQL Server error '80040e14' Formal parameter '@bClientStatus' was defined as OUTPUT but the actual parameter not declared OUTPUT. /registration.asp, line 227"
I forgot to mention that bClientStatus is defined as an INPUT parameter:
CREATE PROC dbo.sproc_AddUser
...
...
... a whole bunch of parameters...
...
...
@bClientStatus int=0, SEE, it's an INPUT!
@error_status int OUTPUT This is the only OUTPUT.
WITH RECOMPILE
AS
...
... body ...
...
norm
|
|
|
|
|
Hi, I have this simple script:
<%
'Send the password:
msg_recipient = "someone@someaplace.com"
msg_sender = "sender@anotherplace.com"
msg_subject = "Testing AA"
msg_body = "Testing AA"
Dim NewMailObj
Set NewMailObj = CreateObject("CDONTS.NewMail")
NewMailObj.To = msg_recipient
NewMailObj.From = msg_sender
NewMailObj.Subject = msg_subject
NewMailObj.Body = msg_body
NewMailObj.Send
Set NewMailObj = Nothing
%>
<% Response.write "Done" %>
"NO" error. But no mail has been sent out (I've checked the mailbox)... I am sure that I have SMTP on the Windows2000 box - I can find it in >"Computer Management" applet>"Services and Applications">"Services". I can find the mailroot folders and sub-folders. BUT I "canNOT" find it under IIS - as instructed: http://www.skybuilders.com/users/jesse/docs/howToSMTP.html
As far as I know ASPEmail need SMTP service also isnt that right?
The above script executed with no error - so that leaves me with one possibility - SMTP wasn't properly configured?? Thanks.
norm
norm
|
|
|
|
|
Hi norm,
The asp page having the mailobject covers only 50% of the mail sending problem. The other 50% consitutes how the webserver (IIS) deals with the mail request that is being submitted.
(*)Make sure you have the SMTP Server Configured Properly. You need to have proper DNS settings if you want your IIS SMTP (Microsoft SMTP Service) itself to deliver mails to the hosts. Or you can configure the SmartHost to which your Microsoft SMTP Service will handover mails and take rest.
If you do have SMTP configuration in your IIS, it might have not been installed while installing the same. Are you using Windows 2000/XP. In that case, you would find SMTP in Windows Components (Internet Information Services Setup).
If you want a FREE SMTP Server itself, try http://www.jana-server.com/, which comes for free. But then, you can not use CDONTS, since I am afraid, we might not be able to configure CDONTS to use a specific mail server. Is'nt it? You then need to use a third party mailing component like Persits ASP Email, available for free from http://www.persits.com/
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
i have already installed persist ASP Email, but i'm not sure if I configured the SMTP host wrongly or if it's problem with SMTP.
anyway, the site will be hosted on a Windows 2000 Adv Server box. We've confirmed that SMTP is installed by:
(a) wwwroot directory contains "mailroot" folder and all the usual sub-folders.
(b) MMC (management console)>Applications and Services>Services> SMTP is there! It's sitting right there in front of our eyes. BUT default SMTP is NOT there when you expand IIS's node.
(c) We put in the Windows 2000 Adv Server installation disc, and selected the option to install components. The installer detected that SMTP is already installed.
So, I just cant figure out why I cant find SMTP under IIS node in MMC. And if I cant do that, I can try to configure it for CDONTS. Headache - although we plan to have some company to host the site for us, this slows us down at this stage when we need to test our code.
Thanks, and hope to hear from you!
norm
|
|
|
|
|
I use asp mail to send mails from the site. It works fine for all time, till I used it in some other place. It works fine whenI used for sending the feedback etc.
I tried the same to implement for the friend referal etc. I tried to make the interface different and combine as general function later.
So I copy & paste the codes. Now, it doesnt work for the new mail sending. The mail sending works fine only for my domain's mail ID, like name1@mydomain.com, name2@mydomain2.com. It fails when I give any mail id as name@hotmail.com etc. It doesnt print any error message at the "mailobject.Response".
I even tried to run the page individually by hardcoding the mail address, but it doesnt work!!
Whats the problem??
I was born intelligent Education ruined me!.
|
|
|
|
|
Post some code.
Jon Sagara
Hi! I'm Melanoma, Moley Russell's wart.
-- Uncle Buck
|
|
|
|
|
OOps... I forgot that... Will put it down...
sndMail = Server.CreateObject ( "SMTPsvg.Mailer" ); <br />
<br />
if ( strFromEmail == "" )<br />
sndMail.ReplyTo = 'info@mydomain.com';<br />
else<br />
sndMail.ReplyTo = strFromEmail;<br />
<br />
sndMail.FromAddress = 'web@mydomain.com';<br />
sndMail.RemoteHost = 'mail.mydomain.com';<br />
<br />
sndMail.AddRecipient ( "", strToEMail);<br />
Response.Write ("<br>To : ")<br />
Response.Write (strToEMail)<br />
Response.Write ("<br>")<br />
<br />
sndMail.Subject = sSubject;<br />
sndMail.BodyText = sBody;<br />
<br />
sndMail.SendMail ( );<br />
<br />
Response.Write ("<br>Response :")<br />
Response.Write (sndMail.Response)<br />
Response.Write ("<br>")
I was born intelligent Education ruined me!.
|
|
|
|
|
Hi, I have this simple script:
<%
'Send the password:
msg_recipient = "someone@someaplace.com"
msg_sender = "sender@anotherplace.com"
msg_subject = "Testing AA"
msg_body = "Testing AA"
Dim NewMailObj
Set NewMailObj = CreateObject("CDONTS.NewMail")
NewMailObj.To = msg_recipient
NewMailObj.From = msg_sender
NewMailObj.Subject = msg_subject
NewMailObj.Body = msg_body
NewMailObj.Send
Set NewMailObj = Nothing
%>
<% Response.write "Done" %>
"NO" error. But no mail has been sent out (I've checked the mailbox)... I am sure that I have SMTP on the Windows2000 box - I can find it in >"Computer Management" applet>"Services and Applications">"Services". I can find the mailroot folders and sub-folders. BUT I "canNOT" find it under IIS - as instructed: http://www.skybuilders.com/users/jesse/docs/howToSMTP.html
As far as I know ASPEmail need SMTP service also isnt that right?
The above script executed with no error - so that leaves me with one possibility - SMTP wasn't properly configured?? Thanks.
norm
|
|
|
|
|
Thanks for the reply. But I am not using CDONTS. I know my site doesnt support that stuff. I do use ASPMail.
Thanks for ur reply!!!
I was born intelligent Education ruined me!.
|
|
|
|
|
yes, but both ASPMail and CDONTS talks to SMTP... so, if the problem comes from SMTP, you and I may be on the same boat.
norm
|
|
|
|
|
NO my friend.
If you can see my FIRST message of this thread, you can see that my code is working fine with ASPMail. And I was trying to do the same at different interface, and it fails to send the mail. Thats the code I posted.
Finally I changed my code as a generic one by directing to the already 'working' mail part. But still, I have no idea of why and how the code wasnt working there.
I was born intelligent Education ruined me!.
|
|
|
|