|
|
Yes, I have - more than one. But if you read the above posts, I think you'll accept that this particular issue wasn't *entirely* my fault... it's not that I can't use CSS - just that it's so much more cumbersome to use, and "clumsy", than it ought to be...
Fred
|
|
|
|
|
Fred_Smith wrote: I think you'll accept that this particular issue wasn't *entirely* my fault... it's not that I can't use CSS - just that it's so much more cumbersome to use, and "clumsy", than it ought to be...
The reason that it is cumbersome is because not all browsers are implemented the same. That is a browser implementation problem. Even table implementation is not totally consistent between all browsers.
Getting browsers to behave is like trying to herd cats, they all have their own agenda.
I don't agree that CSS implementation is "clumsy" (your words). It is a different paradigm that must be learned, but when you do finally figure out how to implement it properly you will have a very versatile tool to work with.
|
|
|
|
|
HTML:
<font face="abc,def" size="X" color="#cccccc">hello world</font>
CSS:
Hello world
Now, I want to know how this is styled - perhaps to change it.
In HTML it's there in your face.
In CSS, I have to look back up through the document hierarchy to find out the parent element the text is in, and very possibly the parent of that too, and it's parent.. (depending on how the CSS is written) - I must then find out the CSS file linked to... then find that file... then find the references to the element(s) I noted earlier, and finally I can work out (not "see" but "work out") the style! Then I have to work out what steps are needed to alter it as I require, without some knock-on effect buggering up some style elsewhere....
That isn't clumsy?
Look, I *know* the reasons for all this, and do appreciate them... I just can't help feeling there ought to be a better way...
|
|
|
|
|
I didn't realize that you were going to limit yourself to simple "Hello World" applications.
In those cases CSS is overkill. In real world websites it is a step in the right direction, and used in competent hands can make many jobs simpler. Think, no more tracking down and editing each occurrence of some style on every page just to change the shade of green or some other sit wide style alteration.
But then on your type of "Hello World" applications there isn't much to edit anyway.
|
|
|
|
|
JimmyRopes wrote: I didn't realize that you were going to limit yourself to simple "Hello World" applications.
I'm workng towards a "Call home" one....
Of course I can see the point of it - I just wish it.. I don't know.. wasn't so cumbersome. I find it so.
So I can change all my H1's green instead of red if I want - great; but in my experience clients rearely want that - they are more likely as not to want a complete re-design anwyay.
And while such re-writes may be easier and quicker, the original write isn't - given that most sites only get written once, I have to wonder...
Yeah, I know I'm pissing against the wind, and believe it or not I don't even really want to; I just wanted to let off some steam at an annoying "bug" that wasted the best part of my day.
I suppose I do tend to go agrainst the grain for the sake of it sometimes - but I can't help feeling this obsession with table-les layouts is just that: an obsession, and like most obsessions it isn't rooted in good reason.
The most oft-said reason for it for accessibility reasons - screen-readers don't like it - but that is not, to me, a good reason. It's a good reason to develop better screen reader technology, not a good reason to force everyone else to change theirs.
blah blah ok CSS is great. I take it all back. And by the way, I've been writing code since before you were born (probably)
As an irrelevant aside: Did you know, if you (tried to) build a stack of those old-fashioned punch cards we used to code on (do you even know what they are, youngster?) with one card for each possible combination of holes punched - that there wouldn't be enough atoms in the universe to fulfil the dream?
Fred
|
|
|
|
|
Fred_Smith wrote: Of course I can see the point of it - I just wish it.. I don't know.. wasn't so cumbersome. I find it so.
I did at first also, but after working with it a while I got the hang of it.
We humans don't like to change very much and once we get used to doing something a certain way we don't like to shift paradigms.
Fred_Smith wrote: And while such re-writes may be easier and quicker, the original write isn't
After you develop some templates it becomes easier to get a site up because you have the basic structure coded and tested so all you need to do is add copy.
Fred_Smith wrote: I can't help feeling this obsession with table-les layouts is just that
I agree that people get fanatical about the latest design paradigms but I have seen tables used to excess also (nested way too many levels). Bad designers will produce bad designs regardless of the technology.
Fred_Smith wrote: And by the way, I've been writing code since before you were born (probably)
I'm glad you qualified that with probably since I was born when ENIAC was in the process of being moved from the U of PA to the Aberdeen Proving Grounds. Not a lot of programming went on back then unless you were on the original project toggling switches or plugging in jumper cables.
|
|
|
|
|
Hi,
I'm trying to create a page with a header div, a left sidebar div and a right content div, with a footer div at the bottom.
Sounds simple doesn't it! Have been trying for a couple of hours and so far it's just not working.
Wondered if anyone knows of any good tutorials or articles, or has any sample code, that explain how to do this?
I've looked at loads of different articles, but a lot of them don't do quite what I want, or simply the code isn't cross-browser compatible.
Some idea of where to look would be much appreciated
Thanks
Chris
|
|
|
|
|
Take a look at the site http://www.alistapart.com[^]. They have lots and lots of tutorials on this. Plus, consider buying the Eric Meyer books on CSS. They are bibles if you want to work with CSS.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
I am installing SharpForge on my computer.
I am getting error when i went through the intallation wizard.
Error exception details System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Anybody have any idea why I am getting this error?
sdfsdgvfd
|
|
|
|
|
Hi all,
i have a procedure below:
//==============MySQL=======================================
CREATE PROCEDURE `sp_select_customer`(custid int)
begin
select * from customer where customer_id=custid;
end;
//================PHP code=====================================
$con=mysql_connect("localhost","root","root") or die("Connection is fail.");
$db=mysql_select_db("mydatabase",$con);
$result=mysql_query("CALL sp_select_customer(9)");
// it's not working when i use CALL PROCEDURE
$row=mysql_fetch_array($result);
echo $row['0'];
//===============================
Please help me!
Thanks,
Hy Chan Han
|
|
|
|
|
What error are you getting?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Here is error:
=============================
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\itec\select.php on line 8
=============================
It's not working when procedure use select statement.
I use insert statement it's working ok.
Thanks,
Hy ChanHan
|
|
|
|
|
Try to use multi_query instead of mysql_query .
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Error appeared:
Fatal error: Call to undefined function multi_query() in C:\AppServ\www\itec\select.php on line 5
Hy Chanhan
|
|
|
|
|
I have tested in my machine. (Note: I'm using the latest version of PHP and MySQL. )
<?php
$conn = mysql_pconnect( "localhost", "root", "root", 65536 )
or die( "Failed to connect to MySQL server" );
mysql_select_db( "mydatabase", $conn ) or die( "Could not select test database" );
$result = mysql_query( "CALL sp_select_customer(9)" )
or die( mysql_error() );
$rows = mysql_num_rows( $result );
echo "Rows=$rows<br/><br/>";
while($thisrow=mysql_fetch_row($result))
{
$i=0;
while ($i < mysql_num_fields($result))
{
$field_name=mysql_fetch_field($result, $i);
echo $thisrow[$i] . " "; //Display all the fields on one line
$i++;
}
echo "<br>"; //put a break after each database entry
}
?>
Hope it will work in your side too.. Let me know the result..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
Thank you very much for your code, now it's working very well in my site.
Hy ChanHan
|
|
|
|
|
Hy Chanhan wrote: Thank you very much for your code, now it's working very well in my site.
If my code is useful for you, please vote my message. thanks.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hello again,
When i refreshed 4 or 5 times i appeared this error message:
why?????
PROCEDURE bbg.sp_select_customer can't return a result set in the given context
Hy ChanHan
|
|
|
|
|
Hy Chanhan wrote: PROCEDURE bbg.sp_select_customer can't return a result set in the given context
I will check again and will let you know..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
seem like i forget to close the connection.. try to add the code for closing connection..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
It's still not working.
Error is the same above.
Hy ChanHan
|
|
|
|
|
hi Guys
Is there any live application to search for code, we have lots n lots of sites to get the source codes, why cant we make a web application with a good search engine to search pure text source code, anything related to code.
For eg. store procedure's, HTML, ASP codes, technical text, code-behind, javascript, java codes,
only pure text should be stored, its should be a very simple application with no links, only to maintain and retrieve, there will be no data editing for the users.
uploading of files are not allowed since many technical websites are providing this feature,
The plan
Here the users can store information taken from the internet(pure text) when he/she visits for reference, later he/she need not come to this same link to take the specific code, instead he/she can search the code in this new Code Manager portal,
the user will have to provide the description of code or technical text and each source code should be allocated under different sets,
for eg. if its HTML code, the language should be set as HTML for this source code
How the search works
A search with different criteria should be given..
based on desciption
based on language
based on date stroed
based on unique words,
base on tags
we should make this application very simple to handle
winnie
winnie
|
|
|
|
|
good mornig!
i have to diasplay table in html in a mail
when we write message="..."
it won't work .
So pls guide what additional is required to have table ina mail.
hope u understood the question pls guide.
thank you.
yogita
|
|
|
|