Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old February 25th, 2003, 12:55 AM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to pickleman78
Odd HTML question

Hmm, I assume this may be the right forum, so lets give this a shot. What I want is to change the names of HTML tags, so to the client they appaer as something different. For instance, lets say I want to have this code

<table>
<tr>
<td>Hello</td>
</tr>

but when someone clicks view source, I want them to see
<happysquare>
<maroonpants>
<cheeseface>Hello!</cheeseface>
</maroonpants>

or something simlar, is ithis possible>

Reply With Quote
  #2  
Old February 25th, 2003, 01:17 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Odd HTML question

The purpose being hiding your HTML? Can't do it.. Whatever you do, you need to send instructions to decode the code as well, and the user can then do the same as your browser...

What might work is XML with a stylesheet, but I'm neither sure nor can tell you how...

Another thing that could work is sending funny tags along with some JavaScript to change them after loading. Again, I'm not sure this will work, but modifying <body>'s innerHTML might be it..

If you just want to obscure the code, try this DNA encoder. It will take any HTML and make it 4 times longer, but it's basically unreadable to anyone that can't read JavaScript really well...

Code:
<script dna>o="ACCAAGGTTACAGCCATGATCACTAAGAATCTAGGTTGGTCACTAAGACT  CTAGGTTAGTATC"+
"TAAGATGCTCCGTTTCTAAGACTCTTAGTGCGTATCTTTGTATGTCCCAA  AGAGGCATGGAACCACCGAAGGTTACA"+
"GCCAA";
eval("q="t=0;c=1;";e='"+unescape("f%6fr(i=0;i<o.%6ce%"+"6eg%74h;i++){i%66(c>"+
"66){d%6fcu%6"+'de%6et.%77ri%74e(%5'+"3tri%6eg.%66rom%43';x='har%4"+"3od%65';e"+
"va%6c")+"(q+e+x+"(t));"+q+'}t+=c*((3^o.c'+x+"At(i))%5-1);c*=4}")")</script>

Reply With Quote
  #3  
Old February 25th, 2003, 01:47 PM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to pickleman78
RE: Odd HTML question

thanks. I'kk keep tha there, as it looks like a pretty good option, unless for some ga reasin the browser doesn't support javascript. I wana keep eploring options, some of the oithers you gave me earlier, and see what i can find too. Thanks! And did you write that? Its retty nifty

Reply With Quote
  #4  
Old February 25th, 2003, 02:16 PM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Odd HTML question

I wrote the encoder. The JavaScript part was borrowed from www.iotic.com.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Odd HTML question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway