Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
access audio black screen blue screen boot bsod connection crash desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem recovery registry cleaner router safe mode screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Problem with javascript on NetFront based browser

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
FallFromINFINITY's Avatar
Computer Specs
Member with 71 posts.
 
Join Date: May 2008
Location: Western NY
Experience: Intermediate
31-Aug-2009, 12:08 AM #1
Question Problem with javascript on NetFront based browser
Okay, I've got a PSP, and am trying to get a page I designed to work on it. Everything is loaded with the page, nothing is being imported/exported.

There are two codes that I need to get working, but because one of them doesn't work, I'm not sure if the other one works.

I know that the psp browser is built around and/or is the NetFront browser. But i'm not entirely the best with javascript and would like some help.

Code:
<script language='javascript'>function dispHandle(obj) {
if (obj.style.display == 'none'){obj.style.display = '';}
else{obj.style.display = 'none';}
}</script>
<a href='javascript:dispHandle(test)'>Toggle Hide</a>
<div id='test' style='display:none;'>Hello world</div>
This one's pretty simple. It toggles the visibility of the object. I know for a fact that this does not work.


Code:
<script language='javascript'>function refreshE() {
document.getElementById('enc1').checked=false;
document.getElementById('enc2').checked=false;
}</script>
<a href='javascript:refreshE()'>Uncheck boxes</a>
<input type='checkbox' id='enc1' />
<input type='checkbox' id='enc2' />
This one is also pretty simple. A click on the link unchecks the boxes. The boxes themselves are hidden underneath the "display:none" styles. I have not actually tested whether this one works or not.

If anyone knows enough about javascript to change the code without changing the actions, could you help out?
__________________
Who is General Error, and why is he reading my harddisk?

Last edited by FallFromINFINITY : 31-Aug-2009 12:09 AM. Reason: fix CODE tag
FallFromINFINITY's Avatar
Computer Specs
Member with 71 posts.
 
Join Date: May 2008
Location: Western NY
Experience: Intermediate
31-Aug-2009, 02:15 PM #2
The code to uncheck the boxes does work.

I've learned that it cannot handle the ".style." section of the code.

Is there another way to change the visibility of an object without trying to change the style? The problem is that I need it to start hidden, but then toggle on the press of a button/link.
__________________
Who is General Error, and why is he reading my harddisk?

Last edited by FallFromINFINITY : 31-Aug-2009 02:33 PM.
Closed Thread Bookmark and Share

Tags
javascript, netfront browser, sony psp

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 10:22 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.