|
|
Nish - Native CPian wrote:
It will take too long to load a page
Why? When in DHTML mode, all the message on a page are loaded at once anyway.
--------
Life is fraught with opportunities to keep your mouth shut. --Shog9 --
|
|
|
|
|
Shog9 wrote:
Why? When in DHTML mode, all the message on a page are loaded at once anyway.
Didn't think of that
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Shog9 wrote:
Why? When in DHTML mode, all the message on a page are loaded at once anyway.
Exactly. That's what makes it quite plausable. The only problem is that the function to handle the message viewing is designed only for one message, it would probably take quite a while to modify it to expand all messages on the page.
Simon
I need your clothes, your boots, and your copy of VS.NET.
Sonork ID 100.10024
C++ : The slag of all languages
|
|
|
|
|
This bit of code will expand all the threads on the current page(nasty hack)(can't see a simple way to collapse all the threads without changeing the way the doucment is produced - but hey i dont know much html so i could be wrong)
<script>
function Expand()
{
nodes = document.getElementsByTagName("TR");
for(i=0;i<nodes.length;i++)
{
var thisLevel = nodes(i);
if(thisLevel.style.display == "none")
{
thisLevel.style.display = "block";
}
}
}
</script>
<a HREF='JavaScript:Expand();'>Expand</a>
|
|
|
|
|
Cool, man!
Need to paste it in manually, but it works!
--------
A common man's understanding of science. Not a normal common man's of course. A very smart common man's. -- Nish, on Science Writing
|
|
|
|
|
Shog9 wrote:
Need to paste it in manually
where
|
|
|
|
|
Rama Krishna wrote:
where
Since JavaScript event handlers get stripped from posts, you need to save the page locally & then insert it. But you've been kind enough to provide a DLL now i see, so there's no need to be so industrious!
--------
Hey you Whitehouse, ha ha, charade you are
You house proud town mouse, ha ha, charade you are -- Pink Floyd, Pigs (Three Different Ones)
|
|
|
|
|
Shog9 wrote:
you need to save the page locally & then insert it.
Paul Watson provided an alternative that made my idea look foolish.
|
|
|
|
|
Rama Krishna wrote:
Paul Watson provided an alternative that made my idea look foolish.
Foolish?!? YOU WROTE A F***ING DLL! That may be masochistic, but foolish it is not. If you just need some way to justify it, add a few more buttons to do HTML insertion, spell checking, etc.
--------
Hey you Whitehouse, ha ha, charade you are
You house proud town mouse, ha ha, charade you are -- Pink Floyd, Pigs (Three Different Ones)
|
|
|
|
|
Rama Krishna wrote:
Paul Watson provided an alternative that made my idea look foolish
What was your idea?
And what was Paul's alternate solution?
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
|
The link was on the lounge, but Rama deleted it
Paul posted a reply with a bit of javascript that did the same.
Try searching for CP Expander maybe... not sure, but that sounds right.
|
|
|
|
|
The signatures are getting cooler and cooler
..this is a VB Programmers' world and we all are just visitors - Someone in a MSJ article
|
|
|
|
|
Rama Krishna wrote:
The signatures are getting cooler and cooler
No sh*t! Did you see that one in the lounge earlier that wrote out an iframe & loaded another page into it? My eyes nearly fell out of my skull!
Rama Krishna wrote:
this is a VB Programmers' world and we all are just visitors
so... we'll eventually leave them all & go home to some place better? alRIGHT!
--------
Hey you Whitehouse, ha ha, charade you are
You house proud town mouse, ha ha, charade you are -- Pink Floyd, Pigs (Three Different Ones)
|
|
|
|
|
Shog9 wrote:
No sh*t! Did you see that one in the lounge earlier that wrote out an iframe & loaded another page into it? My eyes nearly fell out of my skull!
Yes of someone called Marc. I didn't think it was a bad idea. I did not knew it was an iframe.
|
|
|
|
|
It was *very* cool. I had to check the source out
Almost makes me want to learn ^more JavaScript...
--------
Hey you Whitehouse, ha ha, charade you are
You house proud town mouse, ha ha, charade you are -- Pink Floyd, Pigs (Three Different Ones)
|
|
|
|
|
|
Heheh, yeah, i didn't spend any time formatting it for email. My normal sigs usually have a bit more email-friendly spacing
--------
Hey you Whitehouse, ha ha, charade you are
You house proud town mouse, ha ha, charade you are -- Pink Floyd, Pigs (Three Different Ones)
|
|
|
|
|
That would be nice, although the way it works now is that the ads refresh every time you switch articles. So having everything expanded would mean fewer impressions and less $$$ for the site.
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Michael Dunn wrote:
ads refresh every time you switch articles
I see! No wonder I see activity even for a loaded page
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
You want it and you get it.
Download CPExpander.dll from here. Click
Register the dll. This will add a button to IE Toolbar. When you browse to CodeProject Click on the button and it will expand all messages for you.
|
|
|
|
|
It works! Excellent stuff Rama.
Simon
I need your clothes, your boots, and your copy of VS.NET.
Sonork ID 100.10024
C++ : The slag of all languages
|
|
|
|
|
It's times like this when I really get a kick out of programming and knowing other programmers.
Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311
"It was a blind man who taught me how to see." - Aerosmith
|
|
|
|
|
You don't know how disappointed I am feeling now
|
|
|
|