Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 02-13-2012, 04:51 AM Hide digits?
Average Talker

Posts: 22
Trades: 0
Hallo

We have a table that saws calling numbers report


The <td> <td nowrap >{anum}</td> saws the number that our clients number has dial how can i make this td everytime hide the last 4 digits

Thanks!!.

Code:
<calls_list>
<table class="callsListTable" cellpadding="10">
<tr class="title">
<td width="40"></td>
<td width="20%">{word:date}</td>
<td width="20%">{word:country}</td>
<td width="20%">{word:to_number}</td>  
<td width="20%">{word:from_number}</td>
<td width="20%">{word:cost}</td>
<td width="20%">{word:time}</td>
<td width="20%">{word:price}</td>
</tr>
<call>
<tr class="line{class}">
<td><img src="/templates/g/images/{cdir}.gif"></td>
<td>{calldate}</td>
<td>{rdest}</td>
<td nowrap>{bnum}</td>
<td nowrap >{anum}</td>
<td>{mcost}</td>
<td>{billsec}</td>
<td>{ccost} {curr}</td>
</tr></call>
<tr>
<td colspan="5"></td>
<td colspan="3" align="right"><b>{word:total_calls_cost}: {total_calls_cost} Eur</b></td>
</tr>
</table></calls_list>
nackgr is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-13-2012, 06:44 AM Re: Hide digits?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Do it serverside, javascript can be disabled and make them visible again. Also SEs indexers do not trigger javascript so the complete number will be seen by in SE results.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-13-2012, 06:56 AM Re: Hide digits?
Average Talker

Posts: 22
Trades: 0
i know but because i cant touch serverside can you tell me please the clientside way

br
nackgr is offline
Reply With Quote
View Public Profile
 
Old 02-13-2012, 05:10 PM Re: Hide digits?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If you can't do anything serverside how are you going to identify which TD elements need modifying?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-14-2012, 02:17 AM Re: Hide digits?
Average Talker

Posts: 22
Trades: 0
This td need modify
<td nowrap >{anum}</td>
nackgr is offline
Reply With Quote
View Public Profile
 
Old 02-14-2012, 07:51 AM Re: Hide digits?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The "nowrap" attribute has been deprecated since HTML4.01 in 1999 so is NOT a reliable means to identify an element using javascript.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Hide digits?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.81791 seconds with 12 queries