...because God knows you need some satisfaction in life besides shagging Captain Cardboard! And I never really liked you anyway. And you have stupid hair!

Spike ,'Selfless'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Laga - Dec 03, 2007 5:33:18 pm PST #3648 of 25497
You should know I'm a big deal in the Resistance.

Yay hope! Thanks, Jessica.


Kevin - Dec 04, 2007 3:31:10 am PST #3649 of 25497
Never fall in love with somebody you actually love.

Last week I got to threaten the MPAA with copyright infringement charges. It was great fun. They distributed a CD designed to combat copyright infringement which infringed on my copyright as they stole my code.


DXMachina - Dec 04, 2007 4:38:38 am PST #3650 of 25497
You always do this. We get tipsy, and you take advantage of my love of the scientific method.

You mean like this?

MPAA Forced To Take Down University Toolkit


§ ita § - Dec 04, 2007 4:58:16 am PST #3651 of 25497
Well not canonically, no, but this is transformative fiction.

Slashdot's so pretty these days...

I feel old.


Dana - Dec 04, 2007 5:37:31 am PST #3652 of 25497
I'm terrifically busy with my ennui.

I have an HTML link that calls a javascript function, like such:

a href="javascript:doit(112,'pdf_files/filename.pdf');" class="smalldarkbold"

The function is defined as:

function doit(docid,link){
            findex.docid.value = docid;
            findex.gotopage.value = link;
            findex.submit();
            }

Where is this docid defined? What does findex do? And how is this at all relevant?

I swear, I try to google these things, but I usually can't figure out what search terms to use. I throw myself upon the mercy of the Toms, amych, and anyone else who actually speaks Javascript.


tommyrot - Dec 04, 2007 5:38:58 am PST #3653 of 25497
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Is there an "include" anywhere?

eta: it would look something like:

<SCRIPT src="SCRIPTS/validation.js" ></SCRIPT>

eta² "validation.js" is just an example of an include file


Dana - Dec 04, 2007 5:42:41 am PST #3654 of 25497
I'm terrifically busy with my ennui.

This page is included in another page. Oh, I see.

Okay, so the parent page has this form defined:

form name="findex" method=post action="index.asp"
              input type=hidden name="CompanyId" value=%=Session("CompanyId")%
              input type=hidden name="AuthorityLevel" value=%=Session("AuthorityLevel")%
              input type=hidden name="docid" value=0
              input type=hidden name="gotopage" value=' '
            /form

(Wow, that took five tries to format.)

So the page is secretly gathering information about who clicks on what, and using a docid defined in the link to track it. Yes?


amych - Dec 04, 2007 5:52:36 am PST #3655 of 25497
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

The page is passing the information to another page, yes, but there's no way to know from this what information it's gathering or keeping -- it could just as easily be checking that the person doing the clicking is authorized to see filename.pdf and that's all.

In other words, the docid is just passing on "this is the document we're talking about", rather than saying anything further about what's being tracked and how. But you're quite right about the fact that it's passing along the reference to that file.


Dana - Dec 04, 2007 5:55:10 am PST #3656 of 25497
I'm terrifically busy with my ennui.

Apparently another coworker has seen this mysterious report, and we think no one's used it in years. Ah, the smell of obsolete things.

Given that we have no way of telling how they numbered these documents, I think I may just make the link straight HTML and see if anyone complains.

Thanks, guys.


amych - Dec 04, 2007 5:56:14 am PST #3657 of 25497
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

Yeah, if there's no clear need for doing it and no way to predict what it does, it's just useless code. Ditch it.