Page 6 of 8 « First<45678>
Topic Options
#95648 - 2002-11-18 05:44 AM Re: Jooel - need your web scripting expertise
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Jooel, add:
code:
$Text =~ s/\xA0/ /g;
$Text =~ s/&nbsp;/ /g;

Add the first line above the second. You will find the second line in the program. This should correct the issue.

[ 18. November 2002, 05:45: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#95649 - 2002-11-18 05:45 AM Re: Jooel - need your web scripting expertise
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hoby, I quess the diff is purely about that fact that you run it on windows which seems to translate the code.
_________________________
!

download KiXnet

Top
#95650 - 2002-11-18 05:46 AM Re: Jooel - need your web scripting expertise
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
I don't see that on either site. Both look the same and blanks are blank.
Top
#95651 - 2002-11-18 05:47 AM Re: Jooel - need your web scripting expertise
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You are probably correct. Difference in platforms.
code:
$Text =~ s/\xA0/ /g;
$Text =~ s/&nbsp;/ /g;

these two lines could be written as one:

$Text =~ s/\xA0|&nbsp;/ /g;



[ 18. November 2002, 05:48: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#95652 - 2002-11-18 05:48 AM Re: Jooel - need your web scripting expertise
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I just run a simple test on it.
if not help will put on yours.
_________________________
!

download KiXnet

Top
#95653 - 2002-11-18 05:49 AM Re: Jooel - need your web scripting expertise
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Okay boys... time for me to go. I only have so much time for playing games and such.

Time to break out the Xbox Moto GP

Later... [Big Grin]

[ 18. November 2002, 05:50: Message edited by: NTDOC ]

Top
#95654 - 2002-11-18 05:53 AM Re: Jooel - need your web scripting expertise
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Hey... I think this page/post has been HI-JACKED

Jooel - need your web scripting expertise

Hmmmm... Don't see much of that here anymore. [Wink]

L8TR

Top
#95655 - 2002-11-18 05:54 AM Re: Jooel - need your web scripting expertise
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
roflmao
Top
#95656 - 2002-11-18 05:54 AM Re: Jooel - need your web scripting expertise
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
doc, I think that I and hoby are still speaking about web scripting
_________________________
!

download KiXnet

Top
#95657 - 2002-11-18 05:57 AM Re: Jooel - need your web scripting expertise
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
code:
$Text =~ s/&nbsp;|\xA0/ /g;  

fix the file on my computer.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#95658 - 2002-11-18 05:58 AM Re: Jooel - need your web scripting expertise
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Welcome back Shawn. What do you think?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#95659 - 2002-11-18 06:04 AM Re: Jooel - need your web scripting expertise
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
just checked from charmap and it really is one of the space chars.
but it is 0160 so it is not basic ascii char.
now the new lib on the web, check it out.

I go to do some laundry...
_________________________
!

download KiXnet

Top
#95660 - 2002-11-18 06:06 AM Re: Jooel - need your web scripting expertise
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Still the same here. I think you need to add that line of code.

{edit} the 160 (hex A0) sounds vaguely familiar [Wink]

[ 18. November 2002, 06:07: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#95661 - 2002-11-18 06:14 AM Re: Jooel - need your web scripting expertise
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what you are saying?
press f5 as for me it shows correctly now.
_________________________
!

download KiXnet

Top
#95662 - 2002-11-18 06:22 AM Re: Jooel - need your web scripting expertise
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hoby, still bad data?

doc, removed the error. remembered that I actually found it before...

[ 18. November 2002, 06:23: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#95663 - 2002-11-18 06:32 AM Re: Jooel - need your web scripting expertise
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what is this:
code:
    <script language="JavaScript1.2" fptype="dynamicanimation" src="../../../../../../../../../../../../../../../../../../../../../animate.js">

on your and mine...
comes from:
$httphead1 =~ s/\.\.\/animate\.js/\.\.\/\.\.\/animate\.js/;
_________________________
!

download KiXnet

Top
#95664 - 2002-11-18 06:54 AM Re: Jooel - need your web scripting expertise
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh.
more info on that.
it increments on every user, meaning that the expression is little wrong...
or more like a little in wrong place.
_________________________
!

download KiXnet

Top
#95665 - 2002-11-18 06:56 AM Re: Jooel - need your web scripting expertise
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Yes, the page is now fixed.

Ah, so that's why the animate was not working on the Members' lists.

checking the code now...
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#95666 - 2002-11-18 07:10 AM Re: Jooel - need your web scripting expertise
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
did you correct which error?

anyway, I reduced your code a little but actually it is just the same, I just removed from the match the .. stuff.
moved the change to main just before calling the sub.
and as told before, the onmouseout="" errors the start page as it should be onmouseout=\'\'
_________________________
!

download KiXnet

Top
#95667 - 2002-11-18 07:12 AM Re: Jooel - need your web scripting expertise
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Found the logic error and am testing it now.

Basically it found what is was suppose to find the "../animate.js" and change it "../../animate.js" for the members because those files are a directory deeper.

But the Regular expression is called for every file and it always found "../".

So I changed it to include the preceding '"' mark.

This is the new line(still waiting for confirmation - test code running):
code:
$httphead1 =~ s#"\.\.\/a#"\.\.\/\.\.\/a#;  



[ 18. November 2002, 07:25: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 6 of 8 « First<45678>


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 444 anonymous users online.
Newest Members
Raoul, Timothy, Jojo67, MaikSimon, kvn317
17875 Registered Users

Generated in 0.078 seconds in which 0.028 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org