[0.3.3] Some client-side Shoutbox improvements. (Firefox only!) |
Author: |
Message: |
the DtTvB
Junior Member
Posts: 47 Reputation: 10
– / / –
Joined: Mar 2007
Status: Away
|
O.P. RE: [0.1.2] Some client-side Shoutbox improvements. (Firefox only!)
quote: Originally posted by John Anderton
dt's svn is currently down to a certain "problem" and shall be back up soon (hopefully )
After browsing through -dt-'s random stuff server, I think I have found it. -dt- has a lot of techniques I haven't know.
I'll try to learn more techniques.
the DtTvB - My name has no meaning, but it's unique at least!
|
|
03-14-2007 05:43 AM |
|
|
WDZ
Former Admin
Posts: 7106 Reputation: 107
– / /
Joined: Mar 2002
|
|
03-14-2007 05:54 AM |
|
|
Joa
The dodgiest member
Posts: 800 Reputation: 102
117 / /
Joined: Feb 2005
Status: Away
|
RE: [0.1.2] Some client-side Shoutbox improvements. (Firefox only!)
quote: Originally posted by the DtTvB
Before it reloads, it save the message field's value, selection position, and restore it after the reload has finished. I should match things better.
i guess my problem is something like wdz's .... it's not just that it disrupts my typing in the message box, it "steals" the focus every time the shouts refreshes. i mean say i'm typing something in the search bar in ff, the cursor goes back to the message box at each refresh while i'm typing.
is it possible to do something that it doesn't steal focus when i'm typing outside of the message box... but have the shoutbox page open?
|
|
03-14-2007 06:04 AM |
|
|
NanaFreak
Scripting Contest Winner
Posts: 1476 Reputation: 53
32 / /
Joined: Jul 2006
|
RE: [0.1.2] Some client-side Shoutbox improvements. (Firefox only!)
quote: Originally posted by the DtTvB
quote: Originally posted by John Anderton
dt's svn is currently down to a certain "problem" and shall be back up soon (hopefully )
After browsing through -dt-'s random stuff server, I think I have found it. -dt- has a lot of techniques I haven't know.
I'll try to learn more techniques.
svn.thedt.net > * > random.thedt.net
hmm i think that is that latest DZ
|
|
03-14-2007 06:04 AM |
|
|
the DtTvB
Junior Member
Posts: 47 Reputation: 10
– / / –
Joined: Mar 2007
Status: Away
|
O.P. RE: [0.2.0] Some client-side Shoutbox improvements. (Firefox only!)
The code updated to 0.2.0 0.2.1! - See the first post for details.
0.2.1 includes some bugfix. Please redownload if you are using 0.1.2 or 0.2.0!
After digging through the XUL Planet, I found new way to parse for HTML, which works great.
It's called something like createContextualFragment.
That makes it possible to detect the users that goes out or comes in.
And the new feature is it uses XMLHttpRequest to send the message also!
This post was edited on 03-14-2007 at 11:36 AM by the DtTvB.
the DtTvB - My name has no meaning, but it's unique at least!
|
|
03-14-2007 08:23 AM |
|
|
Mike
Elite Member
Meet the Spam Family!
Posts: 2795 Reputation: 48
32 / /
Joined: Mar 2003
|
RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!)
You have a typo: It shouldn't be "user has exit the shoutbox" but "user has left the shoutbow"
|
|
03-14-2007 12:35 PM |
|
|
Kenji
Veteran Member
Previously: Dazmatic, Dazzy, :zippy:
Posts: 1226 Reputation: 39
33 / /
Joined: Jun 2006
Status: Away
|
RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!)
quote: Originally posted by Mike
You have a typo: It shouldn't be "user has exit the shoutbox" but "user has left the shoutbow"
shoutbox*
* Kenji runs
dt's works fine for me... if i could use them both, i would. But your one stops dt's from working properly...
|
|
03-14-2007 12:38 PM |
|
|
markee
Veteran Member
Posts: 1622 Reputation: 50
36 / /
Joined: Jan 2006
|
RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!)
Could someone correct me if I'm wrong but doesn't the who's online section of the shoutbox rely on a timer before the person's name disappears which means that the toast style message could be up to 15 minutes slow? I would like to know that I'm wrong.
Anyway, I might give this a try later on because dt's script has some problems with the edit, theme and help pages atm with the refresh (I wouldn't mind the delete links script to work either ).
Anyway, this might make dt try a little harder, still quite nice to see someone giving it a go
|
|
03-14-2007 12:53 PM |
|
|
the DtTvB
Junior Member
Posts: 47 Reputation: 10
– / / –
Joined: Mar 2007
Status: Away
|
O.P. RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!)
quote: Originally posted by Dazmo
dt's works fine for me... if i could use them both, i would. But your one stops dt's from working properly...
Can you give me the link to -dt-'s script so I can detect what makes -dt-'s to stop working.
quote: Originally posted by markee
Could someone correct me if I'm wrong but doesn't the who's online section of the shoutbox rely on a timer before the person's name disappears which means that the toast style message could be up to 15 minutes slow?
It's up to the forum system. You'll have to wait for some staff to answer.
the DtTvB - My name has no meaning, but it's unique at least!
|
|
03-14-2007 01:08 PM |
|
|
-dt-
Scripting Contest Winner
;o
Posts: 1819 Reputation: 74
36 / /
Joined: Mar 2004
|
RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!)
quote: Originally posted by the DtTvB
Can you give me the link to -dt-'s script so I can detect what makes -dt-'s to stop working.
simple, mine hooks a bunch of things like the sbRefresh function and can disable/enable its self depending on if the refresh is enabled
quote: Originally posted by markee
Anyway, I might give this a try later on because dt's script has some problems with the edit, theme and help pages atm with the refresh (I wouldn't mind the delete links script to work either (Smilie)).
Anyway, this might make dt try a little harder, still quite nice to see someone giving it a go (Smilie)
=p
quote: Originally posted by NanaFreak
quote: Originally posted by the DtTvB
quote: Originally posted by John Anderton
dt's svn is currently down to a certain "problem" and shall be back up soon (hopefully )
After browsing through -dt-'s random stuff server, I think I have found it. -dt- has a lot of techniques I haven't know.
I'll try to learn more techniques.
svn.thedt.net > * > random.thedt.net
hmm i think that is that latest DZ
yes but svn.thedt.net is down for a bit (discussing stuff with dreamhost =p), random.thedt.net is _old_ stuff
quote: Originally posted by the DtTvB
quoteriginally posted by WDZ
3) The refresh shouldn't touch the message field at all, it should just replace the shouts and the users online. I noticed that the refresh can interrupt my typing. (Smilie)
Another strange problem.
Before it reloads, it save the message field's value, selection position, and restore it after the reload has finished. I should match things better.
wow thats messy , why dont you use xpaths to find the table and just replace the shout table + online users
mine creates an iframe, forces it to load the shoutbox (with protections against infinite loops) then once the iframe has fully rendered it uses an xpath to find the table + online users and copies the node from the iframe document to main one.
less jumpyness and a more natural look : >
Happy Birthday, WDZ
|
|
03-14-2007 01:58 PM |
|
|
Pages: (7):
« First
«
1
2
[ 3 ]
4
5
6
7
»
Last »
|
|