Myreader.co.uk  
uk news, chat and community
   home   |   control panel login   |   archive   |  
 
net
net
news.announce
news.config
news.management
news.moderation
providers
providers.aaisp
web.authoring
  
 
date: Tue, 3 Mar 2009 10:58:41 -0000,    group: uk.net.web.authoring        back       
Conditional CSS statements   
A colleague has developed a site for me which runs in Joomla and has a
separate property listings module installed. The output from the property
search file is displayed with the addition of a pipe "|" at the end of each
statement, and we can't work out how to remove it, as the javascript code
which handles the output is encrypted.

So, my question is whether it's possible to create a conditional statement
that looks for a certain character and applies a css statement that
overrides what's already coded into a results (parsed) file?  And of course,
if anyone knows how to phrase that statement, there's a large beer
waiting...

Hope that makes sense!
date: Tue, 3 Mar 2009 10:58:41 -0000   author:   Trent SC lid

Re: Conditional CSS statements   
Message-ID: <JKGdnTV1Asv8kDDUnZ2dnUVZ8gSWnZ2d@posted.plusnet> from Trent
SC contained the following:

>A colleague has developed a site for me which runs in Joomla and has a
>separate property listings module installed. The output from the property
>search file is displayed with the addition of a pipe "|" at the end of each
>statement, and we can't work out how to remove it, as the javascript code
>which handles the output is encrypted.

There may be a way of hiding a single character, but I don't know it

What happens if you remove the pipe symbol before the output gets to the
browser.

e.g. something like
$output=str_replace("|","",$output);

Of course, it may be that the js needs the character to tell it that
it's the end of a record.  There could be a lot of different factors
going on here.

So you could remove the character with javascript.

<script type="text/javascript">

var outputstring = "This is the |output| from the search.|";
var newoutput = outputstring.replace(/\|/g, "");

document.write(outputstring); 
document.write("<br />Modified output = " + newoutput);

</script>
-- 
Geoff Berrow  0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
http://slipperyhill.co.uk - http://4theweb.co.uk
date: Tue, 03 Mar 2009 14:58:02 +0000   author:   Geoff Berrow

Google
 
Web myreader.co.uk


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us