|
theJazzyBrain wrote:
I agree with the empty cells, but what is the problem with borders and nesting? I have been nesting tables and I am happy with the result.
Nested cells have the problem of speed of course. A browser has to make multiple passes if your tables to not specific the exact height and width of all columns and rows. If you have a table nested, it repeats those passes for each level of nesting. I do not know if this happens with DIV's though, and that was kind of the main focus of the question I started with.
There is also formatting problems with nested tables on older browsers. I do not remember exactly what it was, but know I was bit with it many times. Had to do with background colors or images and the background of the page, if I remember correctly.
Borders do not display the same on all browsers. While one may display them as a 3d format others may display them as simple line. The only way around in older browsers is to not use the Table's border but a Style border for the table.
theJazzyBrain wrote:
I am sorry but I will have to disagree on this. Many books or tutorials that I have read refer to tables as a way to provide layout to your pages. And if they dont they surely not refer to DIVs as a way to provide layout...
If you are reading books instructing you to use tables to layout a page, then they are the wrong books. Tables are meant for tabular type data. Tables is more of grouping the data rather than its presentation. Many of us never noticed that (me for one, abused tables for years - now trying to clean up my tracks ) and saw it was handy to arrange content on a page which led us down a path that no longer has to be traveled since we have CSS.
Yes, I can quote from the W3C also:
Tables should not be used purely as a means to layout document content as this may present problems when rendering to non-visual media. Additionally, when used with graphics, these tables may force users to scroll horizontally to view a table designed on a system with a larger display. To minimize these problems, authors should use style sheets to control layout rather than tables
It is not saying that you use the tables to layout your "page" but the tabular data. Your quote says ".. authors to arrange data .." not a page. If you have tabular type data, then a table was designed for that.
theJazzyBrain wrote:
So... I am a bit confused...
Yes, it would seem so. The DIV tag is without formatting of its own other than being a block type while span is a generic of in-line types. It is the Syle (or Style Sheet Class) that gives it formatting. This allows for greater control on the formatting than to have a tag that restricts your formatting to a specific type. This helps keep your "presentation" code seperate and allows you multiple ways to view the same data without changing its structure. For an example, it might be formatted for a mobile output with one CSS and formatted for your montior with another. Page doesn't change, just the presentation part that is housed in the CSS.
As an extreme example of what you can do with simple DIVs, have you ever seen ZenGarden?
http://www.csszengarden.com/[^]
Quite a site! Just browse the different designs under "Select Desgin". It is hard to imagine the design does not change by the CSS does and it can change so much.
theJazzyBrain wrote:
The bottom line is that I will not stop using TABLES, at least in the near future coz I am happy with them...
No one said you had to, if you want to design your sites formatting everything with tables that your prerogative. It is just not the recommended way to layout a site.
The future is still promising for tables, however it is focused more to organizing tabular data along with summaries of the collection contains in tables.
Rocky Moore <><
|
|
|
|
|
I am developing a premium content web site and need a solution that will prevent resources (HTML and images) from being stolen.
I want to make sure that my valuable research reports and photos can be viewed for only a limited amount of time (that I determine) while disabling common options like "View Source", "Save As", "Print" etc.
Does anyone know of a solution that can effectively shut down content piracy?
Bud McFadin
bud_mcfadin@ftml.net
|
|
|
|
|
None of them really work. They can't, by definition. If you can see it or hear it, you can save it. Welcome to the digital world.
That said, MS has a new offering for exactly what you want. The idea is horrible, in my always humble opinion, but here's the link: http://msdn.microsoft.com/library/en-us/rma/introduction.asp
--
-Blake (com/bcdev/blake)
|
|
|
|
|
Blake
I am not so sure that MS has what Bud needs.
Bud wants to prevent resources from being stolen.
The MS solution does NOT support Rights-managed HTML that references external script or behaviors which is part of every decent online contnet site ( see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rma/rmh.asp
I suggest that Bud tries a solution called AllRights ( http://www.allrightsdrm.com ) which claims to protect all online resources.
Let me know what you think of the solution
Lionel
Lionel Taylor
lionel_taylor@juno.com
|
|
|
|
|
*chuckles* And what exactly would you relationship with AllRights be, Lionel?
The main point of my reply was that DRM doesn't work, period. Not Microsoft's, not AllRights. If you can seen or heard by a human, it can be copied.
All DRM solutions do are make the copying more annoying. In a connected world that doesn't help either, as only one person need copy the original and then that non-DRM digital copy can be passed around freely.
This is not an ethical judgement, it is simply a fact that can't be ignored. I support copyright in principle, but it is impossible to implement technical solutions that enforce copyright of digital works.
Regarding the AllRight product in particular, it's the typical ActiveX control viewer sort of tool. I'm unimpressed. And clearly what it renders can be captured trivially off the screen without giving your ActiveX control a chance to intervene.
--
-Blake (com/bcdev/blake)
|
|
|
|
|
There are many ways to have a go at this, such as disabling caching, right-click, etc. Your main problem here, though, is it's not 100% foolproof. Jpeg/HTML etc are not an encrypted format, and as such, the very fact that they must be copied to the client computer means that if the user *really* wants a copy of what's in the browser, they can get it. A savvy user, at absolute worst, can hit the print-screen button to steal your images. Second to that, you're going to have a hard time getting around the fact that you can right-click the system menu icon (top left corner of the browser window) and tell Internet Explorer to save a local copy of the page ("Make Available Offline"). This force-caches the files to the user's temporary internet files folder, where they can then grab a copy of what they want.
NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
|
|
|
|
|
I have two web applications, I want that once user login the first application, the user information will be transfered to the second application automatically.
I use session variables to store user information. All that I want are:
1. The second application creates a new session
2. The second application store user information in the session variables
Is it possible to call an ASP page of another application from an ASP page of the current application?
Please help me.
|
|
|
|
|
I think that you should be able to call another page as long as you use the full URL...
Dont know how you will deal with security...
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
I can call another page at client-side but not from server-side. All that I want is calling (or another way) from server-side.
If you know, please show me in details.
|
|
|
|
|
I have built an amazingly functional form control for web applications that build their front end using JScript. Basically, it allows you to build a full-featured, completely customisable form with fully configurable validation and error checking. You set up the javascript that is executed when they hit save or cancel, or add your own extra buttons to do what you want when they are pressed. You can have togglable sub-areas that only become visible when a certain field has a certain value in it, for example if a certain checkbox is checked, an extra set of fields becomes visible. The control will generate an xml object containing all of the data in the form and also specify in each node what the data type is (string, date or number). I also have a back end ASP script that you can pass the XML form to and it will automatically update a database table for you if you set up the form correctly. The form code is object-oriented, so you can easily derive your own types of fields to include in a form. I recently created a field object to allow the user to select any Australian suburb.
Take a look at a form I have set up with this control:
http://www.hep10.com/internal/form.gif[^]
If any of you think this would (or wouldn't) be a useful contribution to The Code Project, please let me know before I spend a whole lot of time fixing up the code to be submitted as an article here. I find this extremely useful in rapidly putting together forms in my application as I don't have to write any form validation code, I don't have to create any back end code for processing the form contents, and I can rapidly build large forms with ease. Obviously this would not be useful for someone developing a form the standard way, i.e. with an HTML form tag and a submit button. Although, I suppose you could do some sort of roundabout trick where when they hit "Save" and then form-post the generated xml to the next page? Anyway, your thoughts are welcome.
NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
|
|
|
|
|
Sounds very article worthy to me. By all means write it up.
--
-Blake (com/bcdev/blake)
|
|
|
|
|
I think it would make for a good article!
Nathan Ridley wrote:
I also have a back end ASP script that you can pass the XML form to and it will automatically update a database table for you if you set up the form correctly.
This one I would question. There would have to be validation on the part of the server to protect it from hacks or plain transmittion errors. You would not want the data to go directly into a database without validation on the server.
On question that comes to mind is how any business logic could be applied if it goes directly to the database?
Rocky Moore <><
|
|
|
|
|
Nathan,
Nice looking screen shot and idea.
And just for fun you may want to check out this semi-related open source thing:
GenericDB by Eli Robillard
http://www.genericdb.com and then click on the Tips link to see an example
Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
|
|
|
|
|
i think this would be well worth your time!
|
|
|
|
|
Hi,
I browse at a internet 'cafe' that keeps things very secure. Here we dont even have the 'command prompt'. We also dont have rights to 'install' new programs.
I was not able to make a ftp connection with my server, that needs user name/password to login.
Is there any way to login to my ftp server through IE itself with the username / password?
Please Help
I was born intelligent Education ruined me!.
|
|
|
|
|
|
Thanks anyway - I was able to get the file - how will i be able to perform a PUT operation... any idea?
I was born intelligent Education ruined me!.
|
|
|
|
|
|
I was not able to do a PASTE operation. The 'paste' option is still 'not enables' even after i 'copy' a file at my PC.
I had logged in the required user name password....
Drag and drop also didnt help me?!?!
Thanks
I was born intelligent Education ruined me!.
|
|
|
|
|
Best to speak to the network admin at the cafe, they may have turned off various explorer functions, such as Paste.
Im sure if your a regular they will install an FTP client and open the relevant ports for you.
J
James Simpson
Web Developer
imebgo@hotmail.com
|
|
|
|
|
Just got round to using my own blog system in php (Was is asp). Does anyone else roll their own? Or does everyone use MT, Blogger etc?
Davy
My Personal Blog - Homepage. Scottish News - Angus Blog, Perth Blog and Dundee Blog
|
|
|
|
|
Im messin' around with a site for me and me pals, I hope in the end to have a desktop and mobile app from which you can post right to the site via a web service. fuxup.com[^] - looks pritty dull at the moment though (and a little buggy) its hard to find the time!
ps I take it your in scotland yeh? I wonder how many of us there are here !?! (me - 'burgh)
Rob
|
|
|
|
|
And of course you could search for one at:
HotScripts.com
http://www.hotscripts.com
Planet Source Code
http://www.planet-source-code.com
The ASP Resource Index
http://www.aspin.com
Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
|
|
|
|
|
Hi,
I need to do the following from a web page automatically
1) Create and save a local (eg. on the C drive) text file that will contain data that is on the current page.
2) Open that file up by calling shellexec. Because the file will have a .~la extension, my other program will then be able to open this up and use the data.
I'm in a .Net environment, so any suggestions of of to use Scripting, ASP.Net, C#, VB.Net to accomplish to would be appreciated
Thanks,
- Jim
|
|
|
|
|
Check out the .NET Class:
System.IO.File
This can create/delete files.
Theres a directory one too:
System.IO.Directory
If you are on a web platform (i.e ASP.NET) you will need to make sure that you have the relevant priviliges for the ASP.NET user account on the directory.
The System.IO.File class is relevant to all .NET languages.
James Simpson
Web Developer
imebgo@hotmail.com
|
|
|
|