Page 1 of 1

Error in javascript code

Posted: Sun Oct 05, 2008 1:00 am
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>

Re: Error in javascript code

Posted: Sun Oct 05, 2008 2:57 am
by josh
thats nice...
I love rendering my PHP in ASP

Re: Error in javascript code

Posted: Sun Oct 05, 2008 3:55 pm
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.

Re: Error in javascript code

Posted: Sun Oct 05, 2008 5:39 pm
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