Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Problem with javascript on NetFront based browser

Reply  
Thread Tools
FallFromINFINITY's Avatar
Computer Specs
Member with 100 posts.
 
Join Date: May 2008
Location: Western NY
Experience: Intermediate
31-Aug-2009, 01: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 at 01:09 AM.. Reason: fix CODE tag
FallFromINFINITY's Avatar
Computer Specs
Member with 100 posts.
 
Join Date: May 2008
Location: Western NY
Experience: Intermediate
31-Aug-2009, 03: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 at 03:33 PM..
Reply

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.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:02 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.