|
Hi,
I have a list of links as an usorted list:
<ul>
<li><a href="....">link1</a></li>
<li><a href="....">link2</a></li>
<li><a href="....">link3</a></li>
<li><a href="....">link4</a></li>
<li><a href="....">link5</a></li>
<li><a href="....">link6</a></li>
</ul>
Now I would like to have this links in 3 columns; somwthing like this:
link1 link2 link3
link4 link5 link6
I don't want to use tables. My idea was to give the li elements a class name that represents the column:
<ul>
<li class="col1"><a href="....">link1</a></li>
<li class="col2"><a href="....">link2</a></li>
<li class="col3"><a href="....">link3</a></li>
<li class="col1"><a href="....">link4</a></li>
<li class="col2"><a href="....">link5</a></li>
<li class="col3"><a href="....">link6</a></li>
</ul>
but now I have the Problem of how to write the css code. I've made all of them inline (with display:inline) and gave the three classes three different positions, but now all elements are on the same line
Any Ideas how to solve this Problem without a table?
Thanks Alot
Roland
|
|
|
|
|
I have the following kind of
Text: |field|
Longer Text: |field|
As you can see, the fields dont quite line up. So, what I really want to do is somehow 'force space' (as in place sufficient tabs or whatever) in so that the two line up.
How can I do this?
Thanks a lot,
Jim
|
|
|
|
|
While you could use absolute positioning or white space or other CSS trickery to try line columns up, generally speaking, the simplest and most cross-plaftorm way to align columns is by placing your text and controls inside of a container (such as a table) that supports the alignment.
HTH,
Tim
|
|
|
|
|
|
hi all,
actually i have placed one Input box in my HTML page, and through CSS i have assigned it's position value = relative.
now i would like to know the TOP and LEFT values of this particular input box within the HTML page. when I was trying to access the values of the Input box using following code
inputbox1.style.left
inputbox1.style.top
but these lines are returning nothing
plz help me in this
thank you all in advance
nagarajuepuri
|
|
|
|
|
Try pixelLeft
If your trying to get the coordinates of an element relative to the document I believe you will have to iterate each parent element and tally up their TOP values.
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
I want to exclude the header infromation from being diplayed with contents donwloaded using GET HTTP..?? Any idea how can i do that..?
|
|
|
|
|
Hi, i'm trying to attach my querystring to some email script so that it attachs the image and emails it.
My querystring would be /send.asp?name=images/logo.jpg
and heres my script
<%@ Language=VBScript %><br />
<%<br />
Dim name<br />
name=Request.QueryString("name")<br />
<br />
%><%<br />
If Len(Request.Form("txtEmail")) > 0 then<br />
<br />
Dim objMail<br />
Set objMail = Server.CreateObject("CDONTS.NewMail")<br />
<br />
objMail.From = "info@4guysfromrolla.com (4GuysFromRolla.com)"<br />
objMail.Subject = "Email attachment demo"<br />
objMail.AttachFile Server.MapPath ("name")<br />
objMail.To = Request.Form("txtEmail")<br />
objMail.Body = "This is a demo on sending an email with an attachment."<br />
objMail.Send<br />
<br />
Response.write("Mail was Sent")<br />
<br />
'You should always do this with CDONTS.<br />
set objMail = nothing<br />
<br />
<br />
End If<br />
%><br />
<br />
<form method="post" id=form1 name=form1><br />
Enter your email address:<br><br />
<input type="text" name="txtEmail" value="<%=Request.Form("txtEmail")%>"><br />
<input type="text" name="name" value="<% =name %>"><br />
<p><br />
<input type="submit" value="Send me an Email with an Attachment!" id=submit1 name=submit1><br />
</form><br />
<br />
Any help would be great thanks
|
|
|
|
|
You should first encode the name because http always convert special symbol like it convert blank space into + sign and also more .
First use server.encode(name)
then pass it as query string
then in the next page first use
name = server.decode(name)
If it not work then
make own symbol like + to replace blank from querystring
and another symbol from the query string
and then in the next page replace these symbol again .
|
|
|
|
|
i find the code below could call cmd in the window and run the command notepad.exe to start the notepad.
<br />
import java.lang.System;<br />
import java.lang.Runtime;<br />
import java.io.IOException;<br />
public class test<br />
{<br />
public static void main(String args[]) throws IOException <br />
{<br />
Runtime load = Runtime.getRuntime();<br />
load.exec("C:\\windows\\notepad.exe");<br />
}<br />
}
so i want to know how to call the cmd to run the java command
java java_class_name 1 1 3 6 hhh.txt uuu.txt
i have try load.exec("java java_class_name 1 1 3 6 hhh.txt uuu.txt")
it is not work
kei
|
|
|
|
|
Hi all:
I need to control the vertical scroll position of a page when the user hits an arrow. The problem is that the page is like a list or text area control and the behavior should be like this: only when I'm at the bottom of this list the scroll should go down and not at every hit of the arrow. Every item of the list is a DIV element, so I've intended to scroll at a certain position depending on the DIV viewed but I can't manage to work it. How can I know if the DIV is within the viewed area?
I dont't know if that's the best way to do it so if you think there's a better way it'll be welcome.
Thanks,
Marc
|
|
|
|
|
I have a search page that has a form that only works half way when I use "GET" and the other half only works when I use "POST"... does anyone have any ideas???
Thanks in advance
|
|
|
|
|
I'm not sure I know what your saying...but...
If you mean some of your POST/GET variables are not being submitted to the server...
You should ask your hosting company or check the config's to see if maybe there is an option which limits the amount of GET/POST data allowed to be submitted - on the server side (ie: PHP you may want to look at the php.ini)
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Need help with this code. I can not get the onchange dropdown to display info about the selected item in the dropdown.
its alot of code, Sorry.
here is the code:
<%
' Constants ripped from adovbs.inc:
Const adOpenStatic = 3
Const adLockReadOnly = 1
Const adCmdText = &H0001
' Our own constants:
Const PAGE_SIZE = 200 ' The size of our pages.
' Declare our variables... always good practice!
Dim strURL ' The URL of this page so the form will work
' no matter what this file is named.
Dim cnnSearch ' ADO connection
Dim rstSearch ' ADO recordset
Dim strDBPath ' path to our Access database (*.mdb) file
Dim strSQL ' The SQL Query we build on the fly
Dim strSearch ' The text being looked for
Dim iPageCurrent ' The page we're currently on
Dim iPageCount ' Number of pages of records
Dim iRecordCount ' Count of the records returned
Dim I ' Standard looping variable
' Retreive the URL of this page from Server Variables
strURL = Request.ServerVariables("URL")
' Retreive the term being searched for. I'm doing it on
' the QS since that allows people to bookmark results.
' You could just as easily have used the form collection.
strSearch = Request.QueryString("search")
strSearch = Replace(strSearch, "'", "''")
' Retrieve page to show or default to the first
If Request.QueryString("page") = "" Then
iPageCurrent = 1
Else
iPageCurrent = CInt(Request.QueryString("page"))
End If
' Since I'm doing this all in one page I need to see if anyone
' has searched for something. If they have we hit the DB.
' O/W I just show the search form and quit.
%>
[Since we've got a very small sample DB, try a single letter
search like 's' or 'd' for an example that actually pages!]
<%
If strSearch <> "" Then
' MapPath of virtual database file path to a physical path.
' If you want you could hard code a physical path here.
strDBPath = Server.MapPath("../fpdb/agent.mdb")
' Create an ADO Connection to connect to the sample database.
' We're using OLE DB but you could just as easily use ODBC or a DSN.
Set cnnSearch = Server.CreateObject("ADODB.Connection")
' This line is for the Access sample database:
cnnSearch.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & ";"
' Build our query based on the input.
strSQL = "SELECT * " _
& "FROM agent_info " _
& "WHERE last LIKE '%" & Replace(strSearch, "'", "''") & "%' " _
& "OR first LIKE '%" & Replace(strSearch, "'", "''") & "%' " _
& "ORDER BY last;"
' Execute our query using the connection object. It automatically
' creates and returns a recordset which we store in our variable.
Set rstSearch = Server.CreateObject("ADODB.Recordset")
rstSearch.PageSize = PAGE_SIZE
rstSearch.CacheSize = PAGE_SIZE
' Open our recordset
rstSearch.Open strSQL, cnnSearch, adOpenStatic, adLockReadOnly, adCmdText
' Get a count of the number of records and pages
' for use in building the header and footer text.
iRecordCount = rstSearch.RecordCount
iPageCount = rstSearch.PageCount
If iRecordCount = 0 Then
' Display no records error.
%>
No Agents matched your search. Please try again.
<%
Else
' Move to the page we need to show.
rstSearch.AbsolutePage = iPageCurrent
' Show a quick status line letting people know where they are:
%>
<% ' displays number of records that match %>
<%= iRecordCount %> Records Found.
<%
' Display a combo box of the data in the recordset. We loop through the
' recordset displaying the fields from the table and using MoveNext
' to increment to the next record. We stop when we reach EOF.
%>
<% ' here is where I started editing file %>
<%
Do While Not rstSearch.EOF And rstSearch.AbsolutePage = iPageCurrent
%>
<%
if Request.Form("name") = rstSearch ("last") then
Response.Write ""
Response.Write oRs("last") & ", " & oRs("first") & ""
oRs.MoveNext
else
Response.Write ""
Response.Write rstSearch ("last") & ", " & rstSearch ("first") & ""
rstSearch.MoveNext
end if
loop
%>
<% ' here is where I stopped editing file %>
The following was selected : <%=Request.Form ("name")%>
<%
End If
' Close our recordset and connection and dispose of the objects
rstSearch.Close
Set rstSearch = Nothing
cnnSearch.Close
Set cnnSearch = Nothing
End If
%>
|
|
|
|
|
HI...
Can somebody guide me ? Im desiging a web pabe in VB.NET & ASP.NET which will access the device connected to COM port. I do not know how to create classes for that or any other method.
thank you
G2
|
|
|
|
|
Hi, i will be launching a site on which i will have a birthday reminder service along with some other features. Site is being made with the help of ASP and MSAccess. its birthday reminder service is a bit similar to that of birthdayalarm.com. Now if you go to www.birthdayalarm.com you will notice that when it gives you an option to add birthdays to your list, it allows you to get access to your msn list on that very site..a user just has to enter his msn/yahoo id and password on that site and then it shows his full contact list, and then with just one click it can e-mail all those users in the contact list. I want that kind of a system with which users on my site can have access to their msn and yahoo contact list...after they provide their user id and password. Does someone has any idea on how that thing can be made available on my site...any help would be greatly appreciated as its a really important part of my site. Any help (specially with some detailed instructions) would be greatly appreciated.
thnax
|
|
|
|
|
Hi, Everybody,
I have a question about how to send an email with attachment, here is it:
We can just give a string of the filePath+FileName to AttachFile method, and then send it by using CDO message object. My question is where is the file located? is it on the server of on the client side.
The client side I mentioned aboved means, I create an ASP page where the user can choose the files he/she wants it appears on the EMail. This way the file is on the client side(internet user's pc). Can we just use the file path or we have to upload the file to the server first and then use the server's file to attach it to the email?
Thanks a lot!!
Alan
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
alanshen209 wrote:
Can we just use the file path or we have to upload the file to the server first and then use the server's file to attach it to the email?
The email is sent in the server, so you have to upload the file to the server and then attach the file in the server to the email.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Hi,
Thanks very much for your answer.
I have one more question:
when I use the following code send the email, I got an Error like this:
Error Type:
CDO.Message.1 (0x8004020A)
The SMTP server name is required, and was not found in the configuration source.
code:
Set Msg = CreateObject("CDO.Message")
With Msg
.To = "careers@integrarx.com"
.From = myRequest("email")
.Subject = "Applied Form"
.HTMLBody = htmlBody
.AddAttachment SavePath
.Send
End With
set Msg=nothing
the code works very well without the attachment, Would you please tell me why and how to fix it.
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
What value u getting in SavePath variable.
it should be absolute path of the file
SavePath="C:\inetpub\wwwroot\file.jpg"
for getting absolute path use Server.Mappath
|
|
|
|
|
Hi,
First of all u have to upload file to the server then ,
Attach the file path(absulote path of the server) to the mail object
Thx
|
|
|
|
|
hiho@ll
i try to program a http proxy and i get in the client-requests a header Proxy-Connection: Close or Proxy-Connection: Keep-Alive
what does it mean?
i've not found anything in the RFC's and AFAIK it's something which was "born" from Netscape
but what exactly does it mean?
whats the definition for it?
anyone knows some resources?
thx@ll
|
|
|
|
|
Hello,
I have 3 HTML textbox controls with the same name & 3 button controls on the page. So it creates an array for textbox controls when I want to refer it in client Javascript. I want to hide one control at a time based on certain condition.
If I click 1st button, I want to hide 1st textbox. If I click 2ns button, I want to hide 2nd button & so on.
Can somebody help me in doing this?
Thanks
Hitesh
|
|
|
|
|
Try this
HtmlControl.style.setAttribute('display','none');
|
|
|
|
|
Thanks very much. It works.
Thanks again.
Hitesh
|
|
|
|