Kaylee: Can I? Zoe: Sure. He's out, though. Kaylee: He did this for me, once.

'Safe'


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!


Deena - Jun 14, 2009 11:34:20 am PDT #10464 of 25501
How are you me? You need to stop that. Only I can be me. ~Kara

Hey guys, I'm trying to do a little toggle thing on a website, and the instructions I'm following say to "activate toggleElements on document.ready" and gives me code to do that.

I'm confused. Where do I put that code? I added a link to "toggleElements.js" inside "head" so I'm guessing that it goes on the page--before every element I want to toggle? At the beginning of the html? Or am I wrong and it goes in the head code?


Ginger - Jun 14, 2009 12:19:17 pm PDT #10465 of 25501
"It didn't taste good. It tasted soooo horrible. It tasted like....a vodka martini." - Matilda

Usually you put the script or the link to the script in the head and use divs for toggled and untoggled using id, e.g.:

t div id="untoggled" This is visible on the page. t /div

t div id="toggled" This is the toggled thing. t /div

(If that makes any sense.)


Deena - Jun 14, 2009 2:30:15 pm PDT #10466 of 25501
How are you me? You need to stop that. Only I can be me. ~Kara

I'm using jquery, and there is a script linked in the head, plus the additional bit of "document.ready" script. I'm going to have to poke around a bit more, I think.

eta: am idiot. I checked the source code of the sample page. Should have done that hours ago.

Thanks, though, Ginger.


Laga - Jun 14, 2009 6:06:36 pm PDT #10467 of 25501
You should know I'm a big deal in the Resistance.

Hey, remember that barcode I asked about the other day?

Laga, which kind of bar code or matrix code?

It's either Semacode, Aztec code or QR code. I'll take a harder look at it next time I'm at work.


evil jimi - Jun 15, 2009 5:34:24 am PDT #10468 of 25501
Lurching from one disaster to the next.

ita ... I'm using Opera 10 Beta build 4402 on Ubuntu 9.04 and it's worked fine for me. The only time it crashes is when I visit tmz.com and I reckon that's something to do with their movie player. So perhaps the issue isn't so much Opera, as Leopard.


tommyrot - Jun 15, 2009 5:45:41 am PDT #10469 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

ION, I am really having fun with virtual machines on my new work computer. Now I'm wondering if I could take two copies of the same virtual machine, run them at the same time and make them fight.


Lee - Jun 15, 2009 12:00:16 pm PDT #10470 of 25501
The feeling you get when your brain finally lets your heart get in its pants.

If I have a web address for a tutorial film, like say this one: [link] is there a way to find out when the tutorial film was added to the site?


tommyrot - Jun 15, 2009 4:05:23 pm PDT #10471 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

There's now a Commodore 64 Twitter client: [link]


Tom Scola - Jun 15, 2009 4:19:32 pm PDT #10472 of 25501
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

This Top Gear review gets real interesting at about 4:10: [link]


bon bon - Jun 15, 2009 4:33:39 pm PDT #10473 of 25501
It's five thousand for kissing, ten thousand for snuggling... End of list.

Brilliant, Tom.