|
I seem to remember reading that DIV tags are much better than using TABLES. Is this true? And if so, does anyone know of a beginners guide to them, just took a look at a site that uses them, and they seem a little evil at first glance.
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
Nnamdi Onyeyiri wrote:
I seem to remember reading that DIV tags are much better than using TABLES. Is this true?
Yes and No. Sometimes, always and not in some cases.
You have the right stick, but the wrong end of it. I could explain it to you but that would mean a ten page post.
Rather: The WestCiv Free HTML & CSS Course[^]
That is an excellent course for HTML and CSS beginners. It takes you right from the very basics of HTML through to mid-level CSS.
You may get bored or think you know all the stuff they teach in the first few chapters, but I must insist you perservere and pretend you know nothing about HTML. What it teaches you is very valuable; Good HTML structure. Good presentation through CSS. Seperation of the two. When to use TABLEs (for tabular data) and DIVs (for layout, columns etc.)
If you find you are using TABLEs for layout then you need that course. If you find yourself trying to present tabular data using DIVs, then you need that course.
And if you have any specific questions, just ask here and I will answer as best I can.
Paul Watson Bluegrass Cape Town, South Africa Shog9 wrote:
Everybody just wants to be naked and famous, Paul.
|
|
|
|
|
I have to Write client and server applications to play human-vs-computer Tic-Tac-Toe ("noughts and crosses") across a network.
The server will be a computerised player, and the client will be the front end the human player sees. The client and server applications will communicate via sockets
But the problem is that ia have to write this in java awt.
I was just wondering does any 1 know any good sites for java awt or if any one has seen the source code for the game
thanks Stephen
|
|
|
|
|
I want to create the page with the dropdown list. Where the change in the country-list will display only the states for that country in the state-list. Selecting the state-list will change the city in the city-list.
I want to pisk the data from the database....
Any idea please??
I am not looking for the 'answer'... but a logic!
I was born intelligent Education ruined me!.
|
|
|
|
|
It's fairly simple. You need three events, either as events in ASP.NET, or through post data in classic ASP. They tell you which item has changed, so you grab the data from the changed item, and use it to form a query to populate the items below it ( i.e. change country changes both states and cities, change state changes only cities ).
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
The method I followed was....
On the country's select-onchange.... i submited the page with the country code. The states/city refreshed... Similarly it went on and on... But the 'selected' part in my list is always showing as the first-item-of the list... how to change it.....
I am expecting a simple src code to play around with!
I was born intelligent Education ruined me!.
|
|
|
|
|
SPS wrote:
I am expecting a simple src code to play around with!
I thought you said you wanted the logic, not the code !! I can't give you code, I don't know what you're using. But to fix this problem, put the selected indexes into hidden fields, and then use that data in your posted form to make sure the right option is selected in each drop list.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Christian Graus wrote:
I can't give you code
No problem... if I understand the logic... no use in getting the src for me!!
Christian Graus wrote:
I don't know what you're using
ASP & MS Access
Christian Graus wrote:
put the selected indexes into hidden fields, and then use that data in your posted form to make sure the right option is selected in each drop list
This is where I am little confused... to be clear.. I dont know!!
I was born intelligent Education ruined me!.
|
|
|
|
|
OK - well now that I know you're using 'classic' ASP, I can be more specific.
<input type=hidden value=<%Request.QueryString("statesel")%> value="statesel">
Do that three times, and put the three selected values on your command line when you post to yourself. Then you need only pull those values out of the form and use them when you build your select, I believe the syntax is <option selected>New Jersey</option>. So you insert the word selected into the output of the option if the index (or value, whichever you prefer) matches the one you had previously and therefore posted to yourself and stuck into your hidden field.
I haven't done this stuff for a bit, so some syntax may be wrong, but that is how it would be done.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Thanks....
I guess... if the things work... I will finish this stuf.... ELSE... will meet u with further questions!
I was born intelligent Education ruined me!.
|
|
|
|
|
No worries. If you ask while I am at work, I'll have dozens of examples to check to make sure my syntax is correct, so don't hesitate to yell if you need to.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I want to check that whether i am connected to
internet on click event of a link.
Actually the whole website is running through a CD,but
few links take user to server. I want if user click on
this particular link then through javascript i check
whether my machine is connected to internet or not.
If connected then simply go to that location otherwise
display a popup window with message that machine is not
connected to internet.
Please reply soon.
Thanks
Imran
|
|
|
|
|
Not a reply to your question.... but just asking out of interest.... Did you find a solution for your request?? If yes.. can you share with us here??
I was born intelligent Education ruined me!.
|
|
|
|
|
i dont think you can do that in straight javascript.
you could plug an applet into your page , and then you have numerous ways of checking internet connectivity via JAVA.
todo....
:: insert inpirational text here ::
|
|
|
|
|
how can i pass parameters to java Applet by HTML form , i have to input parameters through HTML Form text fields n then pass it to Applet. any body can help me this regard, mail me
|
|
|
|
|
|
Hi... I want to design a page such a way that.... My other datas are changed as per my selection in the dropdown list. Like u will find it in the hotmail registration.... Select the country... the state list changes.....
How to do this??
I started with nothing,
And I still have lots of it left with me.
|
|
|
|
|
you can use a javascript to achieve that. below is a sample:
...
"Judge to defendant: Aren't you ashamed, coming here for the third time?
Defendant: Well, you come every day."
|
|
|
|
|
Thanks a lot!
I was born intelligent Education ruined me!.
|
|
|
|
|
I have a website that is developed in PHP and uses MS-Access through ODBC. Is there an easy way to get this running on Linux/MySQL with minimal effort. I understand that I can port it to use mysql_* or ADODB libaries, I am just wondering if there is an easier way.
Also is there a way to generate a .SQL file from Access Database that can then be imported into MySQL (or phpMyAdmin).
Also if you know of a hosting company that provides cheap Windows hosting packages, please let me know. My requirements are:
Email 1-5
Diskspace 25MB or above
PHP
MS-ACCESS
Thanks,
Victor
phpWebNotes is a page annotation system modelled after php.net.
http://webnotes.sourceforge.net/demo.php[^]
|
|
|
|
|
I have a web based form to collect the data from the user. I have completed all except few details from the user. I mean the hidden details. How do I take the ip-address related stuffs. I have seen some site-logs that displays the people logged in, their origin, the browser, etc, etc. How do I collect them. How can I know the person's origin(Country/continent)???????
I started with nothing,
And I still have lots of it left with me.
|
|
|
|
|
Play with this a bit to see if it helps:
<%
For Each Key in Request.ServerVariables
Response.Write Key & " "
If Request.ServerVariables(Key) = "" Then
Response.Write " <BR>"
Else
Response.Write Request.ServerVariables(Key) & "<BR>"
End If
Next
%>
It should provide a list of all the goodies that each .asp page request from a client generates, according to the text I paraphrased it from. Some of the info you want will be found in REMOTE_ADDR, REMOTE_HOST, REMOTE_USER, ETC. It should also return values with names such as HTTP_ACCEPT (a list of MIME types the client can handle), HTTP_ACCEPT_LANGUAGES (a list of human languages supported), HTTP_USER_AGENT (the browser version, OS, and type of browser), and HTTP_CONNECTION (the type of conection). Some of this is likely to be handy.
Mind you, it's about 2:00 AM, I haven't slept in two days, and I'm definitely not alert enough to try it for you, but it's a start.
"How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)
|
|
|
|
|
Roger Wright wrote:
but it's a start
This info is enough for me....
Where does the country info come from???
I started with nothing,
And I still have lots of it left with me.
|
|
|
|
|
That information isn't in the headers, or important to the concept of a World Wide Web. You may be able to make some reasonable guesses from the domain name and language information, but generally I doubt that; the idea of country codes hasn't caught on much. You could do better by doing a WHOIS search on the remote host domain, then scanning the data for an admin address, but in most cases that won't help much. Most ISPs own large IP address blocks, so the info would be misleading.
A possibilty, though, is to write a script to return the locale id (LCID) of the client computer and return it to the server, but I haven't a clue how to do that. The Session Object in ASP contains a Session.LCID property, but it refers to the content to be served by the web server, not the client.
Perhaps it would be simpler to ask?
"How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)
|
|
|
|
|
Thanks.,...
I started with nothing,
And I still have lots of it left with me.
|
|
|
|