chrometweaks.org

Are there any Godaddy promo codes for 2011?
First question I got is Are there any Godaddy promo codes for 2011? Thanks for any comment. Another question... What I'd like to do is create a reference to one of the numbered items in an ordered list that is somewhere else in the document. For example,.

Lorem ipsem et alia et cetera...

....

As we see below in step 3 below, we are supposed to wash the underware before folding..

....

Utque nescitur alea jact est in partes tres divisa....

1. Take underware off..

2. Put on clean replacement underware..

3. Wash underware..

4. Dry underware.

5. Fold underware..

6. Put underware away in bureau drawer..

....

Lorem ipsem, et in terra pax, howmany innabus? Inpaentaris, inoknunnis. Utque transactitur ubisque irsplitenlaudenbumer..

....

But sometimes, we are not able to do all of the steps. Suppose for example we are unable to do step 2 one day. Not a problem. We just ignore it..

....

Lorem imsem et cum spiritu tuo.....

The references in bold red above, to steps 2 and 3, I would like to specify symbolically in html (with some sort of tag, I guess), such that the references get replaced with the actual numbers that the items are given when rendered. That way, when I'm writing, I don't have to know in advance which number the item will actually end up at. And even more importantly, if I update the list after I've written most of the text, I might remove one of the intervening items, or rearrange some of them, I'd like the references within the body of the document to those items of interest to properly refer to their new numbers..

I've not seen this facility, but I'm not quite sure how to satisfy myself that it can or can't be done. (I've noticed that html/css has some sort of "roll your own" item numbering capability, such that you could customize list numbering. I wonder if that could be employed in some way?).

Does anyone know how to accomplish this symbolic reference to list items?..

Comments (9)

Yep, there are some Godaddy voucher coupons available. Good chance to save dough on Godaddy now. I recommend you to subscribe for their promo emails so you can use their recent promo codes. They usually release them once a month..

Comment #1

Hi there Ric,.

Sorry for taking so long, my nurse came in to change my incontinence pads.

This is what I have come up with....

...but I can't see any practical use for it, though...

Comment #2

Hope the pads are OK Coot...LOL.... Actually your script could have some great use for newsletters. I put one out from my GoDaddy site and lets say I wanted to have an index to articles, (which I do now). A script could be useful in creating an index, but perhaps I am getting away from the thrust of the thread here. Hopefully your sheer brilliance will once again have dazzled BoG and others reading the thread...

Comment #3

Duely astounded with his brilliance. The correct coding always Depends on Coot...

Comment #4

Come on Peg and Ric,.

Spare my blushes.

Forum work is a team effort..

All the stuff I post has been picked up here and at other similar forums...

Comment #5

I don't think that's quite what (s)he wants it to do, though. I think the intent is to be able to have anchors to the steps like so:where the XX will change as #foo changes it's position in the list. Essentially, so that the list can be updated without having to change the text in all the links to it..

Rys..

Comment #6

I'm sorry... I think I neglected to say that my desire is to do this entirely in html/css, not using javascript. I wish to not require people to turn on javascript just for the text to render correctly...

Comment #7

Not possible purely in HTML/CSS. Your best bet would be a server-side language to build the links..

Rys..

Comment #8

Coot is way off base, although the ideas are fun and interesting..

RysChwith is RealLyWith it..

I am a guy..

My moniker is spelled with a terminal capital: BoG. (First two letters of my first name, initial letter of my last name. It is palindromic with respect to capitalization.).

I am not an old coot nor an old fart. But I am older than Pegasus..

But not by much..

Thank you all for your interest and efforts. RysChwith is exactly correct. I want to be able to refer to one of the list items in the text, without having to go update the text if the position of that item changes through subsequent editing and revision of the document..

I think the suggestion that server side processing is going to be required is probably correct. I strive to keep everything in clean HTML, and to impose the least amount on the users that I possibly can, so I am loathe to resort to JavaScript. But this one looks like it will take some maturing in the actual HTML and/or CSS notations themselves, before it is a practical reality..

When you think about it, it is going to require either that HTML rendering become a two pass algorithm (ugh!) or that back-editing while rendering become part of the rendering paradigm..

Translation: If I have a forward reference to a list item (like "as we see in step 3 below") then the number "3" can't really be known in advance (to the HTML user agent). The user agent would have to scan through the entire document once as a first pass, just to find out what the list numbers are going to be, and then on a second pass, use this knowledge to fill in the forward reference with the now-known list item position while performing the actual rendering..

The other possibility would be that the user agent would, as it renders the document, need to keep a "thumb" on the place where it put the forward reference at the time that it rendered it (with an initial value, say, of 0), and when it encountered the actual referent list item, it can then reach back and "patch up" the reference to the correct number..

Actually, the second option sounds more practical, as user agents generally construct a DOM (Document Object Model) as they process the HTML. JavaScript has access to the underlying DOM directly, which is what gives one the ability to make "Dynamic" updates to HTML properties. So, most of the necessary underlying mechanism is already there; it just remains for the HTML to provide some notational mechanism to hook into this information..

Aaugh! I'm rapidly dragging this topic into a "gee whiz wish list for future modifications to HTML" thread. Sorry!.

What I envision might be notated like this:.

Lorem ipsem et alia et cetera....

....

<p>As we see below in step <reference refid="wash-it"/> below, we are supposed to wash the underware before folding..

....

Utque nescitur alea jact est in partes tres divisa....

<ol>.

<li> Take underware off..

<li refid="new-undies"> Put on clean replacement underware..

<li refid="wash-it"> Wash underware..

<li> Dry underware.

<li> Fold underware..

<li> Put underware away in bureau drawer..

</ol>.

....

Lorem ipsem, et in terra pax, howmany innabus? Inpaentaris, inoknunnis. Utque transactitur ubisque irsplitenlaudenbumer..

....

<p>But sometimes, we are not able to do all of the steps. Suppose for example we are unable to do step <reference refid="new-undies"> one day. Not a problem. We just ignore it..

....

Lorem imsem et cum spiritu tuo.....

Notationally, it is simple and intuitive. But, alas, not there yet..

But don't you agree that such a feature would be useful? Do you ever find yourself wishing you had this capability?..

Comment #9

I tend to wish for it more in CSS, but I see where you're coming from. As the Web moves more towards XML, this sort of thing might well become possible. We'll have to wait and see, though. Currently, we're working with a system that was never really intended to do more display scientific papers and allow people to easily access the referenced documents*. The system can be patched, extended, and modified, but it'll likely require a pretty extensive overhaul before you start seeing that kind of functionality in HTML..

Rys.

* I've heard it said that Berners-Lee even objected to the <img> tag, and reamed out the Netscape folks for putting it in their browser...

Comment #10


This question was taken from a support group/message board and re-posted here so others can learn from it.