#95648 - 2002-11-18 05:44 AM
Re: Jooel - need your web scripting expertise
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Jooel, add: code:
$Text =~ s/\xA0/ /g; $Text =~ s/ / /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 ]
|
Top
|
|
|
|
#95651 - 2002-11-18 05:47 AM
Re: Jooel - need your web scripting expertise
|
Howard Bullock
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/ / /g;
these two lines could be written as one:
$Text =~ s/\xA0| / /g;
[ 18. November 2002, 05:48: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#95653 - 2002-11-18 05:49 AM
Re: Jooel - need your web scripting expertise
|
NTDOC
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... [ 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
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.
L8TR
|
Top
|
|
|
|
#95657 - 2002-11-18 05:57 AM
Re: Jooel - need your web scripting expertise
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
code:
$Text =~ s/ |\xA0/ /g;
fix the file on my computer.
|
Top
|
|
|
|
#95658 - 2002-11-18 05:58 AM
Re: Jooel - need your web scripting expertise
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Welcome back Shawn. What do you think?
|
Top
|
|
|
|
#95660 - 2002-11-18 06:06 AM
Re: Jooel - need your web scripting expertise
|
Howard Bullock
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 [ 18. November 2002, 06:07: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#95665 - 2002-11-18 06:56 AM
Re: Jooel - need your web scripting expertise
|
Howard Bullock
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...
|
Top
|
|
|
|
#95667 - 2002-11-18 07:12 AM
Re: Jooel - need your web scripting expertise
|
Howard Bullock
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 ]
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 370 anonymous users online.
|
|
|