republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » [help] Coding help
Uniqs:
349
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
auto photo upload to facebook? »
« [Chat] C++, Thinking out loud ...  

Sweet Witch
Be the flame, not the moth.
Premium,MVM
join:2003-07-15
Gallifrey
·Comcast


1 edit

[help] Coding help

Hi guys,

Using HTML 4/5, whatever, and need a bit of help with three things:

1) I'm using a table for some pictures and corresponding text. I'd like more space between the bottom of the wording and the top of the next picture, theorhetically using a height tag, but I can't find how to do it without adding a dozen tr /tr tags.

2) My site, simple as it is, has two pages. When you're on the second page, the URL stays the same and if you hit refresh it goes back to the index page. How do I get it to a) list the proper page in the address bar and b) refresh to the same page?

3) How can I code it to clear the cache every time?

Thanks to anyone who can help me with this

Edit: My bad, the site is »www.bclphoto.com
--
"While you can teach an old dog new tricks, you simply can't teach him to be a cat."

"Are you my Mummy?"

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC
·Covad Communications
·Verizon Online DSL


1 edit

Re: [help] Coding help

Try this for pg.2:


--
There is no giant fur-bearing trout.


Crap. It ate the indentation. I think you should be able to follow it anyway.

Sweet Witch
Be the flame, not the moth.
Premium,MVM
join:2003-07-15
Gallifrey
·Comcast

Re: [help] Coding help

Thanks, that's great! I'm still learning CSS.

Is there any way to either remove the blue boxes from around the pictures or change it to black?
--
"While you can teach an old dog new tricks, you simply can't teach him to be a cat."

"Are you my Mummy?"

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC

Re: [help] Coding help

In td img{} add a line:

border: none;

-or-

border: solid 1px black;
--
There is no giant fur-bearing trout.

Sweet Witch
Be the flame, not the moth.
Premium,MVM
join:2003-07-15
Gallifrey
·Comcast

Re: [help] Coding help

Perfect, you're brilliant

Do you know anything about the other two? I found some code for #3 but I don't know if it would work in CSS.
--
"While you can teach an old dog new tricks, you simply can't teach him to be a cat."

"Are you my Mummy?"

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC
·Covad Communications
·Verizon Online DSL

Re: [help] Coding help

#1 is taken care of in the p style with the margin- attributes. There are other ways, but they are better suited to more complex work.

I don't understand what you're wanting to accomplish with #3. Explicitly clearing the cache should be done only when the content is highly volatile, time-limited, specific to individual users, or sensitive/confidential. For static content this will only require more bandwidth to send the same stuff down the line...an important consideration if you have a "budget" or cap on how much traffic your hosting space allows.
--
There is no giant fur-bearing trout.

Sweet Witch
Be the flame, not the moth.
Premium,MVM
join:2003-07-15
Gallifrey
·Comcast

Re: [help] Coding help

The caching part came up because when I changed the page and uploaded, the new page didn't show because of the old page being cached. Most users wouldn't know to clear that if needed. The pages won't be highly volatile, I'd just like the visitors to see the current page, not one they saw before.

So, to recap, #1 is taken care of perfectly. #2 will be fixed with a new host that doesn't use frames, correct? And #3 is an 'iffy'.
--
"While you can teach an old dog new tricks, you simply can't teach him to be a cat."

"Are you my Mummy?"

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC
·Covad Communications
·Verizon Online DSL

Re: [help] Coding help

Generally, if you don't update more than every week or so, the typical person's browser cache will probably have recycled by itself. Also, explicitly expiring a cache doesn't necessarily mean that everyone will play along. Unless you update more frequently, I wouldn't worry too much about it once you've finished building the initial presentation.
--
There is no giant fur-bearing trout.

sdgthy

@optonline.net

said by Sweet Witch See Profile :

2) My site, simple as it is, has two pages. When you're on the second page, the URL stays the same and if you hit refresh it goes back to the index page. How do I get it to a) list the proper page in the address bar and b) refresh to the same page?
Easiest way is to not use frames.

said by Sweet Witch See Profile :

3) How can I code it to clear the cache every time?
Add a Cache-Control header.

Sweet Witch
Be the flame, not the moth.
Premium,MVM
join:2003-07-15
Gallifrey

Re: [help] Coding help

I'm not using frames.

Do you have an example?

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC
·Covad Communications
·Verizon Online DSL

Re: [help] Coding help

It looks like the host at name.com that answers to bclphoto.com is rendering the content from your comcast.net space in a frame.

If you have hosting space with them, you should move your content there. If not, you should get hosting space somewhere. ISP user space is notoriously unreliable.
--
There is no giant fur-bearing trout.

Sweet Witch
Be the flame, not the moth.
Premium,MVM
join:2003-07-15
Gallifrey
·Comcast

Re: [help] Coding help

Do you know of any good hosting sites?

And if I do that, pages will refresh correctly, right?

Now, there's just the caching part. I found this code before:

meta name="robots" content="noarchive" /
meta http-equiv="Cache-Control" content="no-store" /

(I took out the so it will show here), will that work with css?
--
"While you can teach an old dog new tricks, you simply can't teach him to be a cat."

"Are you my Mummy?"

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC
·Covad Communications
·Verizon Online DSL

Re: [help] Coding help

There are gazillions of hosting companies. I do hosting as a sideline as well. You need to make some decisions about what the content will be, what other features you want now and going forward/what you envision the site being in the future, whether you want to do the work/updating yourself or have someone else do it for you, and a budget for it.

Why do you want the cache to clear? Those meta tags are counter-productive for search engines. The less material on a site, the less likely it will appear anywhere within the first hundred results unless someone enters a keyword specific to a site.

If you're wanting to make it hard for others to snatch your photos, a better solution is to create watermarked, reduced-resolution images for public display. The high-resolution stuff you put in an area only people you designate can get to. Otherwise, even if you clear the cache, a knowledgeable person can still get them from the browser's buffer or brute-force copy them directly from the screen.
--
There is no giant fur-bearing trout.

Sweet Witch
Be the flame, not the moth.
Premium,MVM
join:2003-07-15
Gallifrey
·Comcast

Re: [help] Coding help

The site won't be much bigger than it is now and I don't really need any other features - at least for the foreseeable future. No blogs, no chatting, nothing like that. Ever.

The caching isn't about the photos, it's so people will see the most current version since it's still a work in progress.

I'll be mastering it myself I may not know everything about coding, but I know what I like and it's much easier to just do it myself than pay someone to get it wrong.
--
"While you can teach an old dog new tricks, you simply can't teach him to be a cat."

"Are you my Mummy?"

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC

Re: [help] Coding help

What program are you using to create the site?
--
There is no giant fur-bearing trout.

Sweet Witch
Be the flame, not the moth.
Premium,MVM
join:2003-07-15
Gallifrey
·Comcast

Re: [help] Coding help

said by DC DSL See Profile :
What program are you using to create the site?
Notepad
--
"While you can teach an old dog new tricks, you simply can't teach him to be a cat."

"Are you my Mummy?"

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC
·Covad Communications
·Verizon Online DSL

Re: [help] Coding help

If you're running Windows, I suggest downloading Visual Web Developer Express (free from Microsoft). It has a lot more features than you'll probably use, but as far as editing HTML and CSS, it's great for a novice. It has Intellisense, which plays along with you and suggests keyword and value choices. It also has decent (not stellar) help. You can also preview what you're doing, so you pretty much know what will come out the other side.
--
There is no giant fur-bearing trout.

Sweet Witch
Be the flame, not the moth.
Premium,MVM
join:2003-07-15
Gallifrey
·Comcast

Re: [help] Coding help

Ok, finally had the time to download the MS software you suggested but didn't install it. Not only do I apparently need nine other downloads from MS but it wanted to split the install on to my C and M drives. What stopped me was that my M drive is for movies only and I had no option to change that location.
--
"While you can teach an old dog new tricks, you simply can't teach him to be a cat."

"Are you my Mummy?"

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC
·Covad Communications
·Verizon Online DSL


3 edits

Re: [help] Coding help

I use the Professional version of Visual Studio, so I can't look into the issue you're having with splitting across drives. In Pro, though, setup looks at your physical volumes and offers to split it if you don't less than a certain amount of space on C:. AFAIK, there should be an option to click on its recommendation and override it. (I know capability was available in the 2005 versions and I simply can't imagine it being removed.) Short of that, temporarily disconnect any drives you don't want seen and run setup again. However, you must have the amount of space on the target drive called for in the setup instructions...the only reason I can think of it being disabled is you don't have enough on C:

If there are other MS files it's calling out, it probably means you either don't use automatic updates or aren't using Microsoft Update (versus base level Windows Update that only looks for OS components), or that you haven't checked for optional components for a while.
--
There is no giant fur-bearing trout.

Sweet Witch
Be the flame, not the moth.
Premium,MVM
join:2003-07-15
Gallifrey
·Comcast

Re: [help] Coding help

It wants:

Visual C++
.Net Framework 3.5
SDK Tools
Web Authoring Component
SQL Publishing Wizard
SQL Server CLR Types
Shared Management Options

And there's no option to change the drives (I've got 7GB free on my C drive, plenty of room). Disconnecting the media drives is a hassle so this install will have to wait until later
--
"While you can teach an old dog new tricks, you simply can't teach him to be a cat."

"Are you my Mummy?"
Forums » Tech and Talk » OS and Software » Webmasters and Developersauto photo upload to facebook? »
« [Chat] C++, Thinking out loud ...  


Monday, 30-Nov 10:35:38 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [15] Broadband Killed The Game Console
· [13] Midcontinent Socked With Easement Lawsuit
· [13] AT&T Top Lobbyist Cicconi Has His Feelings Hurt
· [3] Monday Morning Links
Most people now reading
· Are GPS's better today? [General Questions]
· filling an in-ground pool [Home Repair & Improvement]
· [Newsgroups] Newzleech down? [Filesharing Software]
· Is Easynews down? [Filesharing Software]
· Considering Leaving Vonage, who should I Consider? [VOIP Tech Chat]
· Options if ACTA is ratified [TekSavvy]
· Help with an old Photograph [Avatar/Graphics Help]
· Whats the big deal about being "Old School"....? [World of Warcraft]
· Why does it take so long? Mail question [General Questions]