Error in javascript code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
goodlinks
Forum Newbie
Posts: 1
Joined: Tue Sep 30, 2008 12:25 am

Error in javascript code

Post by goodlinks »

I have this file and it supposed to have a color picker pop up and when you click on one the of the color boxes, the hex code is placed into the text box next to it.

The code works just fine in a simple html page. However, I have a more complicated page and it's on my asp.net site. The aspx page loads a php form.

Code: Select all

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="adv_style_settings.aspx.vb" Inherits="users_adv_style_settings" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Advanced User Options</title>
  
    <script src="../iframe.js" type="text/javascript"></script>
      <script src="202pop.js" type="text/javascript"></script>
    <script type="text/javascript">
        function loadFrm(){
                if (this.options[this.selectedIndex].value!='0'){
                    document.getElementById('myframe').style.display='block';
                    document.getElementById('myframe').src=this.options[this.selectedIndex].value+'/admin/admin.php?IFLM=&page=dir_style';
                }
                else{
                    document.getElementById('myframe').style.display='none';
                }
              
              //document.getElementById('myframe').src='http://'+this.options[this.selectedindex].text;
            return false;
              // 
        }
    </script>
       
</head>
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Error in javascript code

Post by josh »

thats nice...
I love rendering my PHP in ASP
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Error in javascript code

Post by califdon »

goodlinks wrote:The aspx page loads a php form.
What does that mean? A form is an HTML element, has nothing to do with PHP or ASPX.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Error in javascript code

Post by josh »

Even if the post made sense you haven't told us

1) whats not working
2) what the problem is
3) asked any question of any sort
or
4) shown us you used any effort to debug the problem yourself
Post Reply