Follow us on Twitter!
Capitalism is an Island of wealth in a sea of poverty
Wednesday, April 23, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 26
Guests Online: 19
Members Online: 7

Registered Members: 82881
Newest Member: DARKLECTER
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

HTML/Javascript problems.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-09-09 02:09
Okay, here's the deal:
For any of you that have tried to program webpages for the PSP, you know how hard it is to get anything dynamic on the page.
I'm trying to get a page set up, so I can quickly access it from my PSPs MS.

Here's the code:
Code
<script language='javascript'>
function toggleHide(obj) {
if (obj.style.display == 'none'){obj.style.display = '';}
else{obj.style.display = 'none';}
}</script>
<a href="javascript:toggleHide('test')">Toggle Section Display</a>
<a href="#" onclick="toggleHide('test')">Toggle Section Display</a>
<div id='test' style='display:none;'> Hello World </div>




-OR-
Code
<script language='javascript'>
function toggleHide(obj) {
if (obj.style.visibility == 'collapse'){obj.style.visibility = 'visible';}
else{obj.style.visibility = 'collapse';}
}</script>
<a href="javascript:toggleHide('test')">Toggle Section Visibility</a>
<a href="#" onclick="toggleHide('test')">Toggle Section Visibility</a>
<div id='test' style='visibility:collapse;'> Hello World </div>





These codes work flawlessly in browsers. The problem appears that the PSP cannot handle the javascript changing the style.

Is there another way to do this?
I have large sections of text that, if aren't hidden, would be almost 140 pages in length (PSP size).

The use of this is to instantly add, and remove content from the page, and having the page change it's length, without importing anything.


Author

RE: HTML/Javascript problems.

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 01-09-09 08:32
Hide/show can be done CSS only for years now. For example: http://www.devinrolsen.com/tutorials/css/css_display_hide_content/index.php



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: HTML/Javascript problems.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-09-09 17:40
This almost works. After downloading it, I tested it, and the problem persists, because I have 5 levels of hide/view data.

Code

<a href="javascript:toggleHide('cat1')">Catagory 1</a><br>
<div style='display:none;' id='cat1'>
   <a href="javascript:toggleHide('sub1cat1')">Sub catagory1</a><br>
   <div style='display:none;' id='subcat1'>
      ..........
   </div>
</div>





That CSS only code only works with one level. If there really is nothing else, I will end up using this. So, thanks.


Is there a way to form this into multiple levels? i.e. have another hidden set inside of a hidden box, continuing on for 5 levels?

Or is there another way to show/hide <div>s of text?




Edited by on 01-09-09 17:41
Author

RE: HTML/Javascript problems.

elmiguel
Member



Posts: 161
Location: Your Computer
Joined: 12.12.07
Rank:
God
Posted on 01-09-09 17:44
Have you tried setting your zindex?


The philosophy of one century is the common sense of the next. -Fortune Cookie

I would like to thank a few friends that I have made here that helped me and deserve to be mentioned:
System_Meltdown, Futility, nvrlivenvrdie, Mastergamer, TrueHacker, S1L3NTKn1GhT, Reelix, ynori7, Demons Halo, kryptor

www.hellboundhackers.org/sig/r/24963.png

www.hellboundhackers.org/sig/hbh2.png
<script>alert('XSS');</script>
Author

RE: HTML/Javascript problems.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 02-09-09 04:57
Just tried it. Still not working.




Edited by on 04-09-09 00:36