Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/03/2008, 08:46
pabje
 
Fecha de Ingreso: marzo-2008
Ubicación: Posadas Misiones Argentina
Mensajes: 480
Antigüedad: 17 años, 1 mes
Puntos: 1
Re: Problemas con 2 paginas asp

Hola a todos otra vez y gracias por vuestra ayuda.

A continuacion le muestro el codigo, pero le repito que en computadora personal todo anda bien . Las 2 paginas asp andan correctamente.
El problema es cuando yo publico en www.brinkster.com . Ahi no me anda las 2 paginas. La ruta que me indica brinkster. com para la conexion con la base de datos la respeto.

Bueno ahi va el codigo de la conexion y de la pagina de comentarios(una parte) . Como es largo, luego envio , la otra parte del codigo de la pagina de comentarios y el codigo de la pagina de consulta. Este codigo lo hizo , el generador de codigo Dreamweaber mx.



El codigo de la conexion es el siguiente:

<%
// FileName="Connection_ado_conn_string.htm"
// Type="ADO"
// DesigntimeType="ADO"
// HTTP="false"
// Catalog=""
// Schema=""
var MM_pabloalmada_STRING = "Driver={Microsoft Access Driver (*.mdb)};DBQ= c:\\sites\\content\\p\\a\\b\\pabje\\db\\Pablo Almada.mdb"
%>


__________________________________________________ __________________________________________________ ________________________
El codigo de la pagina de comentarios es este:

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/pabloalmada.asp" -->
<%
// *** Edit Operations: declare variables

// set the form action variable
var MM_editAction = Request.ServerVariables("SCRIPT_NAME");
if (Request.QueryString) {
MM_editAction += "?" + Request.QueryString;
}

// boolean to abort record edit
var MM_abortEdit = false;

// query string to execute
var MM_editQuery = "";
%>
<%
// *** Insert Record: set variables

if (String(Request("MM_insert")) == "form1") {

var MM_editConnection = MM_pabloalmada_STRING;
var MM_editTable = "Comentarios";
var MM_editRedirectUrl = "mensaje.htm";
var MM_fieldsStr = "comentario|value";
var MM_columnsStr = "pal_com|',none,''";

// create the MM_fields and MM_columns arrays
var MM_fields = MM_fieldsStr.split("|");
var MM_columns = MM_columnsStr.split("|");

// set the form values
for (var i=0; i+1 < MM_fields.length; i+=2) {
MM_fields[i+1] = String(Request.Form(MM_fields[i]));
}

// append the query string to the redirect URL
if (MM_editRedirectUrl && Request.QueryString && Request.QueryString.Count > 0) {
MM_editRedirectUrl += ((MM_editRedirectUrl.indexOf('?') == -1)?"?":"&") + Request.QueryString;
}
}
%>
<%
// *** Insert Record: construct a sql insert statement and execute it

if (String(Request("MM_insert")) != "undefined") {

// create the sql insert statement
var MM_tableValues = "", MM_dbValues = "";
for (var i=0; i+1 < MM_fields.length; i+=2) {
var formVal = MM_fields[i+1];
var MM_typesArray = MM_columns[i+1].split(",");
var delim = (MM_typesArray[0] != "none") ? MM_typesArray[0] : "";
var altVal = (MM_typesArray[1] != "none") ? MM_typesArray[1] : "";
var emptyVal = (MM_typesArray[2] != "none") ? MM_typesArray[2] : "";
if (formVal == "" || formVal == "undefined") {
formVal = emptyVal;
} else {
if (altVal != "") {
formVal = altVal;
} else if (delim == "'") { // escape quotes
formVal = "'" + formVal.replace(/'/g,"''") + "'";
} else {
formVal = delim + formVal + delim;
}
}
MM_tableValues += ((i != 0) ? "," : "") + MM_columns[i];
MM_dbValues += ((i != 0) ? "," : "") + formVal;
}
MM_editQuery = "insert into " + MM_editTable + " (" + MM_tableValues + ") values (" + MM_dbValues + ")";

if (!MM_abortEdit) {
// execute the insert
var MM_editCmd = Server.CreateObject('ADODB.Command');
MM_editCmd.ActiveConnection = MM_editConnection;
MM_editCmd.CommandText = MM_editQuery;
MM_editCmd.Execute();
MM_editCmd.ActiveConnection.Close();

if (MM_editRedirectUrl) {
Response.Redirect(MM_editRedirectUrl);
}
}

}
%>
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_timelinePlay(tmLnName, myID) { //v1.2
//Copyright 1997, 2000 Macromedia, Inc. All rights reserved.
var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,p ropNum,theObj,firstTime=false;
if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
tmLn = document.MM_Time[tmLnName];
if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
if (myID == tmLn.ID) { //if Im newest
setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+ ')',tmLn.delay);
fNew = ++tmLn.curFrame;
for (i=0; i<tmLn.length; i++) {
sprite = tmLn[i];
if (sprite.charAt(0) == 's') {
if (sprite.obj) {
numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
keyFrm=1;
for (j=0; j<sprite.values.length; j++) {
props = sprite.values[j];
if (numKeyFr != props.length) {
if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
else sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
} else {
while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
else sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
} } } } }
} else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
if (fNew > tmLn.lastFrame) tmLn.ID = 0;
} }
}

function MM_initTimelines() { //v4.0
//MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
var ns = navigator.appName == "Netscape";
var ns4 = (ns && parseInt(navigator.appVersion) == 4);
var ns5 = (ns && parseInt(navigator.appVersion) > 4);
document.MM_Time = new Array(1);
document.MM_Time[0] = new Array(2);
document.MM_Time["Timeline1"] = document.MM_Time[0];
document.MM_Time[0].MM_Name = "Timeline1";
document.MM_Time[0].fps = 15;
document.MM_Time[0][0] = new String("sprite");
document.MM_Time[0][0].slot = 1;
if (ns4)
document.MM_Time[0][0].obj = document["cuaderno"];
else if (ns5)
document.MM_Time[0][0].obj = document.getElementById("cuaderno");
else
document.MM_Time[0][0].obj = document.all ? document.all["cuaderno"] : null;
document.MM_Time[0][0].keyFrames = new Array(1, 15);
document.MM_Time[0][0].values = new Array(2);
if (ns5)
document.MM_Time[0][0].values[0] = new Array("320px", "326px", "333px", "339px", "345px", "351px", "358px", "364px", "370px", "377px", "383px", "389px", "395px", "402px", "408px");
else
document.MM_Time[0][0].values[0] = new Array(320,326,333,339,345,351,358,364,370,377,383, 389,395,402,408);
document.MM_Time[0][0].values[0].prop = "left";
if (ns5)
document.MM_Time[0][0].values[1] = new Array("201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px");
else
document.MM_Time[0][0].values[1] = new Array(201,201,201,201,201,201,201,201,201,201,201, 201,201,201,201);
document.MM_Time[0][0].values[1].prop = "top";
if (!ns4) {
document.MM_Time[0][0].values[0].prop2 = "style";
document.MM_Time[0][0].values[1].prop2 = "style";
}
document.MM_Time[0][1] = new String("sprite");
document.MM_Time[0][1].slot = 2;
if (ns4)
document.MM_Time[0][1].obj = document["lapiz"];
else if (ns5)
document.MM_Time[0][1].obj = document.getElementById("lapiz");
else
document.MM_Time[0][1].obj = document.all ? document.all["lapiz"] : null;
document.MM_Time[0][1].keyFrames = new Array(15, 19, 29);
document.MM_Time[0][1].values = new Array(2);
if (ns5)
document.MM_Time[0][1].values[0] = new Array("598px", "590px", "582px", "573px", "561px", "554px", "546px", "537px", "528px", "519px", "509px", "498px", "488px", "478px", "468px");
else
document.MM_Time[0][1].values[0] = new Array(598,590,582,573,561,554,546,537,528,519,509, 498,488,478,468);
document.MM_Time[0][1].values[0].prop = "left";
if (ns5)
document.MM_Time[0][1].values[1] = new Array("201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px", "201px");
else
document.MM_Time[0][1].values[1] = new Array(201,201,201,201,201,201,201,201,201,201,201, 201,201,201,201);
document.MM_Time[0][1].values[1].prop = "top";
if (!ns4) {
document.MM_Time[0][1].values[0].prop2 = "style";
document.MM_Time[0][1].values[1].prop2 = "style";
}
document.MM_Time[0].lastFrame = 29;
for (i=0; i<document.MM_Time.length; i++) {
document.MM_Time[i].ID = null;
document.MM_Time[i].curFrame = 0;
document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
}
}
//-->
</script>
</head>

__________________________________________________ ______________________________