Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 11th, 2004, 01:51 PM
Authorized User
 
Join Date: Jan 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing data btwn asp page and javascript include

Hi :)

I have a dilemma. I have an asp page with a javascript include file that creates a dropdown menu. I want to pass my ldap userid variable from the asp to the javascript file without turning off anonymous user access on the folder. Also, company policy doesn't allow the use of cookies.

So, I tried to post the variable in a form. And retrieve it in the javascript page. But I'm guessing the fact that the javascript being an include file in the asp is giving me problems. So here's what I have so far.

home_dev.asp




   <form name="frmPassVar" method="POST">
      <input type="hidden" name="userid" value="<%=session
        "userid")%>">
   </form>

menu_single_dev.asp

   var userid = document.frmPassVar.userid.value

   oCMenu.makeMenu('sub116','top1','% PR
   Report','/users/nantob/percent_pred1/percentpred.asp?userid=' &
   userid)

I'm getting 'is null or is not an object' error. Is this concept wrong? Or is it my syntax. Any suggestions you might have would be appreciated!
 
Old August 11th, 2004, 08:27 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,
   When are you passing userid to the function (After form is displayed?)

Or if you pass this value from the javascript code written head tag?
If you write in head tag, form is not displayed nad cannot identify the object(i assume that you want to pass this variable on current form load). If you are calling that function from any event procedure, why the need of asp file to have that function and in javascript? Seperate that file as .js file and include using

<script language="javascript" src="menu_single_div.js">
  //your coding
</script>

If this is not, make it clear wat you are doing.


 
Old August 12th, 2004, 02:34 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Justine,

Firstly, you need to use "+" to concatenate, not "&", so this line...

Code:
oCMenu.makeMenu('sub116','top1','% PR  Report','/users/nantob/percent_pred1/percentpred.asp?userid=' &   userid)
Should be...

Code:
oCMenu.makeMenu('sub116','top1','% PR  Report','/users/nantob/percent_pred1/percentpred.asp?userid=' +   userid)
I think you may be executing the code in your menu file before the page has finished building & the field in the form is therefore not yet available.

If you place your menu initialization code in a function & call that function from the body onload event, all should be ok.

HTH,

Chris
 
Old August 13th, 2004, 11:07 AM
Authorized User
 
Join Date: Jan 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the replies!

ChrisScott I think what you've suggested makes more sense to me so here's what I'm trying.
I fixed the + concatenation issue, silly mistake. And I've been playing with creating a function in asp or in asp that includes the javascript file but I'm having trouble making it work.

My funtion call is in the body tag.
<body onload="getMenu()">

And the function I'm trying to write is in the head section. I'm not sure how to write it properly. I've tried asp and javascript functions but it's not working.

<%
function getMenu(){
  <script language="Javascript" source="menu_single_dev.asp"></script>
}
%>

The form that posts the userid is still in the body.

<form name="frmPassVar" method="POST">
    <input type="hidden" name="userid" value="<%=session("userid")%>">
</form>

<script>
  document.frmPassVar.submit();
</script>

I'm pretty sure my function is just plain wrong but I'm not sure what to do instead.

Thanks again.
 
Old August 13th, 2004, 11:27 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Justine,

change the content of your menu_single_dev.asp to...

Code:
function getMenu(){
    var userid = document.frmPassVar.userid.value;
    oCMenu.makeMenu('sub116','top1','% PR Report','/users/nantob/percent_pred1/percentpred.asp?userid=' + userid);
}
and in your home_dev.asp...

Code:
<script language="javascript" src="menu_single_dev.asp"></script>
n.b. src, not source

your onload call looks fine

HTH,

Chris

 
Old August 13th, 2004, 04:29 PM
Authorized User
 
Join Date: Jan 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Well all of the code elements are there but I'm getting an invalid syntax error. And it's not consistent with anything in particular.

So, first of all I used just the include file code without trying to pass data. Trying to test each bit individually. But I get the invalid syntax error.

So the only additional code I have on the page is the following. I tried it in the header, in place of the original code. But no luck.

<script language="JavaScript" src="menu_single_dev.asp"></script>

I appreciate all your help!
 
Old August 16th, 2004, 03:07 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Justine,

Can you post the whole of your home_dev.asp & menu_single_dev.asp files (preferably as the browser receives it), please?

Cheers,

Chris

 
Old August 19th, 2004, 02:47 PM
Authorized User
 
Join Date: Jan 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

MENU_SINGLE_DEV.ASP

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en-us">
<head>
<title>Menu</title>
</head>
<body>
<script language="JavaScript1.2" src="/08/beth/08_site/coolmenus3.js">
/************************************************** ***************************
Copyright (c) 2001 Thomas Brattli (www.bratta.com)

eXperience DHTML coolMenus - Get it at www.bratta.com
Version 3.02
This script can be used freely as long as all copyright messages are
intact.
************************************************** ****************************/
</script>
<noscript>Your browser does not support Javascript.</noscript>

<script>
/************************************************** ***************************
Default browsercheck - Leave this one
************************************************** ****************************/
function lib_bwcheck(){ //Browsercheck (needed)
    this.ver=navigator.appVersion; this.agent=navigator.userAgent
    this.dom=document.getElementById?1:0
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
    this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
    this.ie4=(document.all && !this.dom)?1:0;
    this.ie=this.ie4||this.ie5||this.ie6
    this.mac=this.agent.indexOf("Mac")>-1
    this.opera5=this.agent.indexOf("Opera 5")>-1
    this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
    this.ns4=(document.layers && !this.dom)?1:0;
    this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
    return this
}
var bw=new lib_bwcheck() //Making browsercheck object

var mDebugging=2 //General debugging variable. Set to 0 for no debugging, 1 for alerts or 2 for status debugging.

oCMenu=new makeCoolMenu("oCMenu") //Making the menu object. Argument: menuname
oCMenu.useframes=0 //Do you want to use the menus as coolframemenu or not? (in frames or not) - Value: 0 || 1
oCMenu.frame="frmMain" //The name of your main frame (where the menus should appear). Leave empty if you're not using frames - Value: "main_frame_name"

oCMenu.useclick=0 //If you want the menu to be activated and deactivated onclick only set this to 1. - Value: 0 || 1

/*If you set this to 1 you will get a "hand" cursor when moving over the links in NS4.
NOTE: This does not apply to the submenus if the menu is used in frames due some mayor problems with NS4*/
oCMenu.useNS4links=1

//After adding the "hover effect" for netscape as well, all styles are lost. But if you want padding add it here.
oCMenu.NS4padding=2

//If you have select boxes close to your menu the menu will check for that and hide them if they are in the way of the menu.
//This feature does unfortunatly not work in NS4!
oCMenu.checkselect=0

/*If you choose to have this code inside a linked js, or if your using frames it's important to set these variables.
This will help you get your links to link to the right place even if your files are in different folders.
The offlineUrl variable is the actual path to the directory where you js file are locally.
This is just so you can test it without uploading. Remember to start it with file:/// and only use slashes, no backward slashes!
Also remember to end with a slash */
oCMenu.offlineUrl="file:///C|/Inetpub/wwwroot/dhtmlcentral/" //Value: "path_to_menu_file_offline/"
//The onlineUrl variable is the online path to your script. Place in the full path to where your js file is. Remember to end with a slash.
oCMenu.onlineUrl="http://www.dhtmlcentral.com/coolmenus/examples/withoutframes/" //Value: "path_to_menu_file_online/"

oCMenu.pagecheck=1 //Do you want the menu to check whether any of the subitems are out of the bouderies of the page and move them in again (this is not perfect but it hould work) - Value: 0 || 1
oCMenu.checkscroll=1 //Do you want the menu to check whether the page have scrolled or not? For frames you should always set this to 1. You can set this to 2 if you want this feature only on explorer since netscape doesn't support the window.onscroll this will make netscape slower (only if not using frames) - Value: 0 || 1 || 2
oCMenu.resizecheck=1 //Do you want the page to reload if it's resized (This should be on or the menu will crash in Netscape4) - Value: 0 || 1
oCMenu.wait=1000 //How long to wait before hiding the menu on mouseout. Netscape 6 is a lot slower then Explorer, so to be sure that it works good enough there you should not have this lower then 500 - Value: milliseconds

//Background bar properties
oCMenu.usebar=0 //If you want to use a background-bar for the top items set this on - Value: 1 || 0
oCMenu.barcolor="Navy" //The color of the background bar - Value: "color"
oCMenu.barwidth="100%" //The width of the background bar. Set this to "menu" if you want it to be the same width as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCMenu.barheight="menu" //The height of the background bar. Set this to "menu" if you want it to be the same height as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCMenu.barx=0 //The left position of the bar. Set this to "menu" if you want it be the same as the left position of the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCMenu.bary=0 //The top position of the bar Set this to "menu" if you want it be the same as the top position of the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCMenu.barinheritborder=0 //Set this to 1 if you want the bar to have the same border as the top menus - Value: 0 || 1

//Placement properties
oCMenu.rows=1 //This controls whether the top items is supposed to be laid out in rows or columns. Set to 0 for columns and 1 for row - Value 0 || 1
oCMenu.fromleft=0 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCMenu.fromtop=0 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCMenu.pxbetween=10 //How much space you want between each of the top items. - Value: px || "%"

/*You have several different ways to place the top items.
You can have them right beside eachother (only adding the pxbetween variable)
oCMenu.menuplacement=0

You can have them aligned to one of the sides - This is mostly when not using frames, but can be used in both conditions
Values: (If you get strange results check the fromleft,fromtop and pxbetween variables above)
For menus that are placed in columns (align=left or align=right (se below)) you can align them to the "right" or "center"
For menus that are placed in rows (align=top or align=bottom (se below)) you can align them to the "bottom", "center" or "bottomcenter"
oCMenu.menuplacement="center"

You can also set them directly in pixels: (Remember to have as many array members as you have top items)
oCMenu.menuplacement=new Array(10,200,400,600)

Or you can place in percentage: (remember to use the ' ' around the numbers)


Choose one of those options to get the desired results.
*/

oCMenu.menuplacement=new Array('2%')
/*
Now we are ready for the properties of each level. For those of that have used the old
coolmenus for coolframemenu I will try and explain how this works like this:
level[0] = top items
level[1] = sub items
level[2] = sub2 items
level[3] = sub3 items and so on....
All menus will inherit the properties, and all properties does only HAVE to be spesifed on the top level.
If a level doesn't have on property spesified it will look for it on the last level that was spesified,
if it still doesn't exist it will get the properties from level[0]

Which means that if you set the background color on level[0] to "black" and doesn't spesify any more levels or doesn't
spesify the background color on the last level you spesified ALL menus will get the color from level[0]

Did that make sense at all? This can be a little hard to understand, look at the different examples on my site
and play with and I am sure you'll get what I mean.
*/

//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new Array() //Add this for each new level
oCMenu.level[0].width=110 //The default width for each level[0] (top) items. You can override this on each item by spesifying the width when making the item. - Value: px || "%"
oCMenu.level[0].height=15 //The default height for each level[0] (top) items. You can override this on each item by spesifying the height when making the item. - Value: px || "%"
oCMenu.level[0].bgcoloroff="#ffffff" //The default background color for each level[0] (top) items. You can override this on each item by spesifying the backgroundcolor when making the item. - Value: "color"
oCMenu.level[0].bgcoloron="#ffffff" //The default "on" background color for each level[0] (top) items. You can override this on each item by spesifying the "on" background color when making the item. - Value: "color"
oCMenu.level[0].textcolor="#000000" //The default text color for each level[0] (top) items. You can override this on each item by spesifying the text color when making the item. - Value: "color"
oCMenu.level[0].hovercolor="#000080" //The default "on" text color for each level[0] (top) items. You can override this on each item by spesifying the "on" text color when making the item. - Value: "color"
oCMenu.level[0].style="padding:2px; font-family:tahoma,arial,helvetica; font-size:9px; font-weight:" //The style for all level[0] (top) items. - Value: "style_settings"
oCMenu.level[0].border=1 //The border size for all level[0] (top) items. - Value: px
//oCMenu.level[0].bordercolor="Yellow" //The border color for all level[0] (top) items. - Value: "color"
oCMenu.level[0].offsetX=0 //The X offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCMenu.level[0].offsetY=0 //The Y offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCMenu.level[0].NS4font="tahoma,arial,helvetica"
oCMenu.level[0].NS4fontSize="2"


/*New: Added animation features that can be controlled on each level.*/
oCMenu.level[0].clip=0 //Set this to 1 if you want the submenus of this level to "slide" open in a animated clip effect. - Value: 0 || 1
oCMenu.level[0].clippx=0 //If you have clip spesified you can set how many pixels it will clip each timer in here to control the speed of the animation. - Value: px
oCMenu.level[0].cliptim=0 //This is the speed of the timer for the clip effect. Play with this and the clippx to get the desired speed for the clip effect (be carefull though and try and keep this value as high or possible or you can get problems with NS4). - Value: milliseconds
//Filters - This can be used to get some very nice effect like fade, slide, stars and so on. EXPLORER5.5+ ONLY - If you set this to a value it will override the clip on the supported browsers
oCMenu.level[0].filter=0 //VALUE: 0 || "filter specs"

oCMenu.level[0].slide=1

/*And last but not least the align variable.

This spesifies how the submenus of this level comes out.
Values:
"bottom": The sub menus of this level will come out on the top of this item
"top": The sub menus of this level will come out on the bottom of this item
"left": The sub menus of this level will come out on the right of this item
"right": The sub menus of this level will come out on the left of this item

In generally "left" and "right" works best for menus in columns and "top" and "bottom" works best for menus in rows.
But by all means feel free to play with it.

If you have set pagecheck to 1 above this is what the pagecheck will change when reaching the bounderies of the page.
If it reaches the right boundery and it's aligned left it will change the align to right and so on.
*/
oCMenu.level[0].align="bottom" //Value: "top" || "bottom" || "left" || "right"

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=oCMenu.level[0].width-2
oCMenu.level[1].height=15
//oCMenu.level[1].hovercolor="#dcdcdc" //The default "on" text color for each level[0] (top) items. You can override this on each item by spesifying the "on" text color when making the item. - Value: "color"
oCMenu.level[1].bgcoloron="#dcdcdc"
oCMenu.level[1].style="padding-top:2px; font-family:tahoma, arial,helvetica; font-size:9px; font-weight:"
oCMenu.level[1].align="bottom"
//oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=0
oCMenu.level[1].bordercolor="Navy"

//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=oCMenu.level[0].width-2
oCMenu.level[2].height=15
//oCMenu.level[2].bgcoloroff="#dcdcdc"
oCMenu.level[2].bgcoloron="#dcdcdc"
oCMenu.level[2].textcolor="#000000" //The default text color for each level[0] (top) items. You can override this on each item by spesifying the text color when making the item. - Value: "color"
oCMenu.level[2].hovercolor="#000080" //The default "on" text color for each level[0] (top) items. You can override this on each item by spesifying the "on" text color when making the item. - Value: "color"

oCMenu.level[2].style="padding:2px; font-family:tahoma,arial,helvetica; font-size:9px; font-weight:"
oCMenu.level[2].align="bottom"
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=0
oCMenu.level[2].bordercolor="Navy"
oCMenu.level[2].NS4font="tahoma,arial,helvetica"
oCMenu.level[2].NS4fontSize="1"

function getMenu(){
    var userid = document.frmPassVar.userid.value;
}

/*Variables for each menu item: (** means that they have to be spesified!)
name: The name of the item. This must be unique for each item. Do not use spaces or strange charachters in this one! **
parent: The name of the menuitem you want this to "connect" to. This will be a submenu of the item that have the name you place in here. ** for all other then the topitems
text: The text you want in the item. ** (except if you use images)
link: The page you want this item to link to.
target: The target window or frame you want the link to go to (Default is same window if you're not using frames, and the mainframe if you're using frames)
width: The width of the element. If not spesified it will get the default width spesified above.
height: The height of the element. If not spesified it will get the default height spesified above.
img1: The "off" image for element if you want to use images.
img2: The image that appears onmouseover if using images.
bgcoloroff: The background color for this item. If not spesified it will get the default background color spesified above.
bgcoloron: The "on" background color for this item. If not spesified it will get the default "on" background color spesified above.
textcolor: The text color for this item. If not spesified it will get the default text color spesified above.
hovercolor: The "on" text color for this item. If not spesified it will get the default "on" text color spesified above. Netscape4 ignores this
onclick: If you want something to happen when the element is clicked (different from going to a link) spesifiy it here.
onmouseover: This will happen when you mouseover the element. Could be status text, another imageswap or whatever.
onmouseout: This will happen when you mouseout the element.

Remember you can have as many levels/sublevels as you want. Just make sure you spesify the correct "parent" for each item.
To set styles for each level see above.
*/
    oCMenu.makeMenu('top6','','&nbsp;ORN 08 Site Index','')

    oCMenu.makeMenu('sub00010','top6','ORN Home','http://ww2.orn.com')

    oCMenu.makeMenu('sub0009','top6','ORN 08 Home','/08/beth/08_site/index.asp')

    //oCMenu.makeMenu('sub00011','top6','08 Dept Calendar','/08/jon/tempcalendar/calendar/calendar_select.asp')

    oCMenu.makeMenu('top1','top6','Accounting','/08/beth/08_site/accounting.asp')
        oCMenu.makeMenu('sub116','top1','% PR Report','/users/nantob/percent_pred1/percentpred.asp?userid=' + userid)
        oCMenu.makeMenu('sub117','top1','% PR Snapshot','/users/nantob/percent_pred_freeze/percent_pred_start.asp')
        oCMenu.makeMenu('sub118','top1','DARPA Queries','/08/main/ad_hoc_DARPA.htm')
        oCMenu.makeMenu('sub101','top1','ORN Funds Query','/users/nantob/ornfunds1.asp')
        oCMenu.makeMenu('sub102','top1','DFAS Website','https://dfas4dod.dfas.mil/')
        oCMenu.makeMenu('sub112','top1','Execution Review Website','http://intranet.orn.com/08/MidYear/scripts/default.asp')
        oCMenu.makeMenu('sub112a','top1','Exec-PEs under Bench','http://intranet.orn.com/08/execstatus/under_bench/under_bench_param.asp')
        oCMenu.makeMenu('sub103','top1','Execution Status','/08/execstatus/scripts/ussgl/default.asp')
        oCMenu.makeMenu('sub103a','top1','Exec St-Doc Level','/08/execstatus/scripts/ussgldoc/es_qmf_month_select.asp')


//oCMenu.makeMenu('top2','top6','&nbsp;Documents','' )


//oCMenu.makeMenu('top7','top6','&nbsp;Admin','')


//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()
</script>
<noscript>Your browser does not support Javascript.</noscript>
<br>
</body>
</html>

------------------------------------------------------

HOME_DEV.ASP


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en-us">
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<%
on error resume next
If session("department")="" then
Response.Redirect "..\ldap\home_08_dev.asp"
end if%>

<head>

<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
-->
</script>

<script language="JavaScript" src="menu_single_dev.asp"></script>

<link href="vstyle.css" rel="stylesheet" type="text/css" />
<style type="text/css">

body{bgcolor:"#ffffff"}
p.small{font-family:Verdana, Arial, Helvetica, sans-serif; font-size:1}
p.text{font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10pt}
span.links{font-family:Verdana; font-size:7.5pt}
p.footer{font-family:Verdana, Arial, Helvetica, sans-serif; font-size:8pt}
span.footer{font-family:Verdana, Arial, Helvetica, sans-serif; font-size:7.5pt}
.skip{visibility:hidden; z-index:0}
span.subhead{font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10pt}
</style>
</head>

<body>

<form name="frmPassVar" method="POST">
    <input type="hidden" name="userid" value="<%=session("userid")%>">
</form>

<script>
<!--
  document.frmPassVar.submit();
-->
</script>

</body>
<%'response.write session.Timeout%>
</html>
 
Old August 20th, 2004, 02:23 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Justine,

When you link to a javascript file

Code:
<script language="JavaScript" src="menu_single_dev.asp"></script>
the file you link to should only contain javascript, so you need to lose all those unwanted html tags etc (you could also change the file to a .js extension to help caching if you want).

you can't add (without dynamically writing them) any further script files within the linked file either, so the script block

Code:
<script language="JavaScript1.2" src="/08/beth/08_site/coolmenus3.js">
/*****************************************************************************
Copyright (c) 2001 Thomas Brattli (www.bratta.com)

eXperience DHTML coolMenus - Get it at www.bratta.com
Version 3.02
This script can be used freely as long as all copyright messages are
intact. 
******************************************************************************/
</script>
needs to be moved to your HOME_DEV.ASP page

I'm also unsure what the block

Code:
<script>
<!--
  document.frmPassVar.submit();
-->
</script>
is there for, but at present it just causes the page to constantly submit, so probably worth commenting out.

Let us know how you get on.

Good luck,

Chris







Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing data from PHP to Javascript oldBroh Javascript How-To 12 June 12th, 2008 11:12 PM
Passing data from PHP to Javascript youngj PHP How-To 4 February 22nd, 2006 11:55 PM
passing data to javascript pop up webnitro Javascript How-To 2 November 29th, 2005 10:38 AM
Passing a ASP varible to a javascript tdaustin Classic ASP Basics 1 May 17th, 2005 01:44 AM
passing values from ASP page to a popup ASP Page astrosmurfboy Classic ASP Basics 3 April 21st, 2004 08:17 PM





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