Error in javascript code
Posted: Sun Oct 05, 2008 1:00 am
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.
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>