Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Re: Replace data in html

Reply
 
Old 10-11-2008   #1 (permalink)
mayayana


 
 

Re: Replace data in html

Is it your webpage? You are writing
it yourself? In that case there are several
things you can do. For example, if you assign
an ID to the TD in question you can hide it
with CSS:

<TD class="clsData" ID="TD1" align="left">

Somewhere in script you then just need to
use TD1.style.display = "none"
Quote:

> Is there a script to replace html data.
> I want it to use for ISA 2004 Reports, but the data must be anonymous.
>
>
>
> The Html page of a ISA 2004
> <p align="center" class="legend">Traffic by users</p>
> </td>
> </tr>
> </table>
> </center>
> <p></p>
> <center>
> <TABLE>
> <tr>
> <td align="center">
> <table class="clsData">
> <tr class="clsData">
> <th class="clsColumnNumber">No</th>
> <th class="clsColumnKey">User</th>
> <th class="clsColumn">Requests</th>
> <th class="clsColumn">% of Total Requests</th>
> <th class="clsColumn">Bytes In</th>
> <th class="clsColumn">% of Total Bytes In</th>
> <th class="clsColumn">Bytes Out</th>
> <th class="clsColumn">% of Total Bytes Out</th>
> <th class="clsColumn">Total Bytes</th>
> <th class="clsColumn">% of Total Bytes</th>
> </tr>
> <tr>
> <td class="clsData" align="right">1</td>
> <td class="clsData" align="left">DOMAIN\username001</td> <<<<<<<
> THIS IS THE DATA WANT IT BLANK<<<<
> <td class="clsData" align="right">735</td>
> <td class="clsData" align="right">0,30 %</td>
> <td class="clsData" align="right">25,08 MB</td>
> <td class="clsData" align="right">8,70 %</td>
> <td class="clsData" align="right">283,45 MB</td>
> <td class="clsData" align="right">11,20 %</td>
> <td class="clsData" align="right">308,53 MB</td>
> <td class="clsData" align="right">10,90 %</td>
> </tr>
>
>


My System SpecsSystem Spec
Old 10-11-2008   #2 (permalink)
Tim Williams


 
 

Re: Replace data in html

If you just hide the dell using css then it's still going to be visible in
the HTML source. That's *not* anonymous...

Where /how are the files being generated, and what's being done with them ?

Tim

"Ammy" <vbsstreet@xxxxxx> wrote in message
news:10464$48f06bd7$5ed32516$29980@xxxxxx
Quote:

> Thanks Mayayana
>
> There are more ways :-) , I hide Users with CSS.
>
>
>
> "mayayana" <mayaXXyana@xxxxxx> schreef in bericht
> news:efRVTZ1KJHA.1156@xxxxxx
Quote:

>> Is it your webpage? You are writing
>> it yourself? In that case there are several
>> things you can do. For example, if you assign
>> an ID to the TD in question you can hide it
>> with CSS:
>>
>> <TD class="clsData" ID="TD1" align="left">
>>
>> Somewhere in script you then just need to
>> use TD1.style.display = "none"
>>
Quote:

>>> Is there a script to replace html data.
>>> I want it to use for ISA 2004 Reports, but the data must be anonymous.
>>>
>>>
>>>
>>> The Html page of a ISA 2004
>>> <p align="center" class="legend">Traffic by users</p>
>>> </td>
>>> </tr>
>>> </table>
>>> </center>
>>> <p></p>
>>> <center>
>>> <TABLE>
>>> <tr>
>>> <td align="center">
>>> <table class="clsData">
>>> <tr class="clsData">
>>> <th class="clsColumnNumber">No</th>
>>> <th class="clsColumnKey">User</th>
>>> <th class="clsColumn">Requests</th>
>>> <th class="clsColumn">% of Total Requests</th>
>>> <th class="clsColumn">Bytes In</th>
>>> <th class="clsColumn">% of Total Bytes In</th>
>>> <th class="clsColumn">Bytes Out</th>
>>> <th class="clsColumn">% of Total Bytes Out</th>
>>> <th class="clsColumn">Total Bytes</th>
>>> <th class="clsColumn">% of Total Bytes</th>
>>> </tr>
>>> <tr>
>>> <td class="clsData" align="right">1</td>
>>> <td class="clsData" align="left">DOMAIN\username001</td>
>>> <<<<<<<
>>> THIS IS THE DATA WANT IT BLANK<<<<
>>> <td class="clsData" align="right">735</td>
>>> <td class="clsData" align="right">0,30 %</td>
>>> <td class="clsData" align="right">25,08 MB</td>
>>> <td class="clsData" align="right">8,70 %</td>
>>> <td class="clsData" align="right">283,45 MB</td>
>>> <td class="clsData" align="right">11,20 %</td>
>>> <td class="clsData" align="right">308,53 MB</td>
>>> <td class="clsData" align="right">10,90 %</td>
>>> </tr>
>>>
>>>
>>
>>
>
>

My System SpecsSystem Spec
Old 10-12-2008   #3 (permalink)
Tim Williams


 
 

Re: Replace data in html

Only one row to blank per table?
How many tables per file ?

Tim

"Ammy" <vbsstreet@xxxxxx> wrote in message
news:e9119$48f26510$5ed32516$1359@xxxxxx
Quote:

> The files are generated by Microsoft ISA 2004 firewall.
> Is there a way to replace the data <td class="clsData"
> align="left">DOMAIN\username001</td>
>
>
> "Tim Williams" <timjwilliams at gmail dot com> schreef in bericht
> news:%23gtt28$KJHA.5904@xxxxxx
Quote:

>> If you just hide the dell using css then it's still going to be visible
>> in the HTML source. That's *not* anonymous...
>>
>> Where /how are the files being generated, and what's being done with them
>> ?
>>
>> Tim
>>
>> "Ammy" <vbsstreet@xxxxxx> wrote in message
>> news:10464$48f06bd7$5ed32516$29980@xxxxxx
Quote:

>>> Thanks Mayayana
>>>
>>> There are more ways :-) , I hide Users with CSS.
>>>
>>>
>>>
>>> "mayayana" <mayaXXyana@xxxxxx> schreef in bericht
>>> news:efRVTZ1KJHA.1156@xxxxxx
>>>> Is it your webpage? You are writing
>>>> it yourself? In that case there are several
>>>> things you can do. For example, if you assign
>>>> an ID to the TD in question you can hide it
>>>> with CSS:
>>>>
>>>> <TD class="clsData" ID="TD1" align="left">
>>>>
>>>> Somewhere in script you then just need to
>>>> use TD1.style.display = "none"
>>>>
>>>>> Is there a script to replace html data.
>>>>> I want it to use for ISA 2004 Reports, but the data must be anonymous.
>>>>>
>>>>>
>>>>>
>>>>> The Html page of a ISA 2004
>>>>> <p align="center" class="legend">Traffic by users</p>
>>>>> </td>
>>>>> </tr>
>>>>> </table>
>>>>> </center>
>>>>> <p></p>
>>>>> <center>
>>>>> <TABLE>
>>>>> <tr>
>>>>> <td align="center">
>>>>> <table class="clsData">
>>>>> <tr class="clsData">
>>>>> <th class="clsColumnNumber">No</th>
>>>>> <th class="clsColumnKey">User</th>
>>>>> <th class="clsColumn">Requests</th>
>>>>> <th class="clsColumn">% of Total Requests</th>
>>>>> <th class="clsColumn">Bytes In</th>
>>>>> <th class="clsColumn">% of Total Bytes In</th>
>>>>> <th class="clsColumn">Bytes Out</th>
>>>>> <th class="clsColumn">% of Total Bytes Out</th>
>>>>> <th class="clsColumn">Total Bytes</th>
>>>>> <th class="clsColumn">% of Total Bytes</th>
>>>>> </tr>
>>>>> <tr>
>>>>> <td class="clsData" align="right">1</td>
>>>>> <td class="clsData" align="left">DOMAIN\username001</td> <<<<<<<
>>>>> THIS IS THE DATA WANT IT BLANK<<<<
>>>>> <td class="clsData" align="right">735</td>
>>>>> <td class="clsData" align="right">0,30 %</td>
>>>>> <td class="clsData" align="right">25,08 MB</td>
>>>>> <td class="clsData" align="right">8,70 %</td>
>>>>> <td class="clsData" align="right">283,45 MB</td>
>>>>> <td class="clsData" align="right">11,20 %</td>
>>>>> <td class="clsData" align="right">308,53 MB</td>
>>>>> <td class="clsData" align="right">10,90 %</td>
>>>>> </tr>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

My System SpecsSystem Spec
Old 10-13-2008   #4 (permalink)
gimme_this_gimme_that


 
 

Re: Replace data in html

Hi Amy,

You could create a script that opens the file, reads it line by line,
and when it gets to the line with the DOMAIN in it, changes DOMAIN to
blank.

Is that what you want?

The disadvantage of that solution is the VBScript must execute over
all the files you publish.

If the file resides on a web server you could include a footer with a
JavaScript or VBScript that gets the node with the username and domain
- and then sets that node's text component to blank. User view the
source and not see the domain - but someone who was using a line
sniffer could see it.

Is that what you want?
My System SpecsSystem Spec
Old 10-14-2008   #5 (permalink)
Tim Williams


 
 

Re: Replace data in html

Can you send me an example file?

tim j williams at gmail dot com

Tim

"Ammy" <vbsstreet@xxxxxx> wrote in message
news:d84ff$48f37d2c$5ed32516$8182@xxxxxx
Quote:

> Tim,
>
> There are one row to blank per table
> there are 15 tables per file
>
>
>
> "Tim Williams" <timjwilliams at gmail dot com> schreef in bericht
> news:es7cwLOLJHA.4772@xxxxxx
Quote:

>> Only one row to blank per table?
>> How many tables per file ?
>>
>> Tim
>>
>> "Ammy" <vbsstreet@xxxxxx> wrote in message
>> news:e9119$48f26510$5ed32516$1359@xxxxxx
Quote:

>>> The files are generated by Microsoft ISA 2004 firewall.
>>> Is there a way to replace the data <td class="clsData"
>>> align="left">DOMAIN\username001</td>
>>>
>>>
>>> "Tim Williams" <timjwilliams at gmail dot com> schreef in bericht
>>> news:%23gtt28$KJHA.5904@xxxxxx
>>>> If you just hide the dell using css then it's still going to be visible
>>>> in the HTML source. That's *not* anonymous...
>>>>
>>>> Where /how are the files being generated, and what's being done with
>>>> them ?
>>>>
>>>> Tim
>>>>
>>>> "Ammy" <vbsstreet@xxxxxx> wrote in message
>>>> news:10464$48f06bd7$5ed32516$29980@xxxxxx
>>>>> Thanks Mayayana
>>>>>
>>>>> There are more ways :-) , I hide Users with CSS.
>>>>>
>>>>>
>>>>>
>>>>> "mayayana" <mayaXXyana@xxxxxx> schreef in bericht
>>>>> news:efRVTZ1KJHA.1156@xxxxxx
>>>>>> Is it your webpage? You are writing
>>>>>> it yourself? In that case there are several
>>>>>> things you can do. For example, if you assign
>>>>>> an ID to the TD in question you can hide it
>>>>>> with CSS:
>>>>>>
>>>>>> <TD class="clsData" ID="TD1" align="left">
>>>>>>
>>>>>> Somewhere in script you then just need to
>>>>>> use TD1.style.display = "none"
>>>>>>
>>>>>>> Is there a script to replace html data.
>>>>>>> I want it to use for ISA 2004 Reports, but the data must be
>>>>>>> anonymous.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> The Html page of a ISA 2004
>>>>>>> <p align="center" class="legend">Traffic by users</p>
>>>>>>> </td>
>>>>>>> </tr>
>>>>>>> </table>
>>>>>>> </center>
>>>>>>> <p></p>
>>>>>>> <center>
>>>>>>> <TABLE>
>>>>>>> <tr>
>>>>>>> <td align="center">
>>>>>>> <table class="clsData">
>>>>>>> <tr class="clsData">
>>>>>>> <th class="clsColumnNumber">No</th>
>>>>>>> <th class="clsColumnKey">User</th>
>>>>>>> <th class="clsColumn">Requests</th>
>>>>>>> <th class="clsColumn">% of Total Requests</th>
>>>>>>> <th class="clsColumn">Bytes In</th>
>>>>>>> <th class="clsColumn">% of Total Bytes In</th>
>>>>>>> <th class="clsColumn">Bytes Out</th>
>>>>>>> <th class="clsColumn">% of Total Bytes Out</th>
>>>>>>> <th class="clsColumn">Total Bytes</th>
>>>>>>> <th class="clsColumn">% of Total Bytes</th>
>>>>>>> </tr>
>>>>>>> <tr>
>>>>>>> <td class="clsData" align="right">1</td>
>>>>>>> <td class="clsData" align="left">DOMAIN\username001</td> <<<<<<<
>>>>>>> THIS IS THE DATA WANT IT BLANK<<<<
>>>>>>> <td class="clsData" align="right">735</td>
>>>>>>> <td class="clsData" align="right">0,30 %</td>
>>>>>>> <td class="clsData" align="right">25,08 MB</td>
>>>>>>> <td class="clsData" align="right">8,70 %</td>
>>>>>>> <td class="clsData" align="right">283,45 MB</td>
>>>>>>> <td class="clsData" align="right">11,20 %</td>
>>>>>>> <td class="clsData" align="right">308,53 MB</td>
>>>>>>> <td class="clsData" align="right">10,90 %</td>
>>>>>>> </tr>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to Replace vbcrlf outside html tags in memo field of access database VB Script
Re: Replace data in html VB Script
working on html objects using HTML DOM, VBscript VB Script
Cannot Print in MSN the only prints the HTML Data Vista print fax & scan
appdata-local-Application Data-Application Data-Application Data infinitum ad nauseum. WHY Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46