Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 21st, 2004, 04:31 AM
rok rok is offline
Registered User
Join Date: Apr 2004
Location: New Delhi, Delhi, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rok
Default not able to save data using javascript


i created an asp page that stores and retrieve data from sql database. the thing is that there is a floating menu(created using javascript) in the page that performs the functions such as edit, save etc....the prblm is tht i am not able to save the data using the floating menu(even document.form1.submit didnt work) but is able to save it using the menus available on the page..pls help..:(..the floating menu code is as below:-
<script language=javascript>

if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')

<layer id="divStayTopLeft">

<table border="1" width="130" cellspacing="0" cellpadding="0">
<td width="100%" bgcolor="black">
<p align="center"><b>Menu</b></td>
<td width="100%" bgcolor="beige">
<p align="center">
<a href="#" onclick="javascript:return add_onclick();"><b>Add</b></a><br>
<a href="javascript:document.form1.submit();" onclick="javascript:savelk();"><b>Save</b></a><br>
<a href="#" onclick="javascript:edit_onclick();"><b>Edit</b></a><br>
<a href="javascript:document.location.replace('../academicmodule/masters.asp')"><b>Close</b></a><br>
<a href="#" onclick="javascript:saveall_onclick();"><b>Save All Classes</b></a></td>



<script type="text/javascript">

var verticalpos="frombottom"

if (!document.layers)

function JSFX_FloatTopDiv()
var startX = 650,
startY = 400;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)

el=d.getElementById?d.getElementById(id):d.all?d.a ll[id]:d.layers[id];
el.sP=function(x,y){this.style.left=x;this.style.t op=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop +

el.y -= startY;
return el;
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop +

ftlObj.y += (pY - startY - ftlObj.y)/8;
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
ftlObj = ml("divStayTopLeft");

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript-Plz save my soul. Magxtopher ASP.NET 1.0 and 1.1 Basics 9 November 8th, 2008 03:21 AM
Javascript Function return save in XSL Variable Vrokad XSLT 2 June 2nd, 2007 02:54 AM
Excel Save Prompt in javascript interrupt Javascript How-To 2 March 18th, 2005 04:52 AM
error using XML save method in javascript Heroic Dose Javascript 3 September 22nd, 2003 08:05 AM

All times are GMT -4. The time now is 06:00 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.