473,394 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Can I pass a javascript value to .asp?

Hi all,
I hope I'm in the right ng for this...

I made an .asp page that allows users to toggle thru a directory of photos.
The page accomplishes the following:
selects a directory of photos based on a drop down
uses the fso to obtain the # of photos in the directory
cycles thru the photos w forward and backward buttons that send the pic
# with a +1 or -1 value
retrieve's & displays the rs's photo description field from a db based
on its pic #

The thing that is awkward is that the page refreshes itself w ea request.
Is there any way to remain in .asp and not refresh?

OR

I found some javascript that is nice and will cycle thru the pics with the
forward & backward buttons, but I can't seem to make the javascript send the
value of the next or previous pic back to the .asp function that retrieves
the description field from the db. I definitely don't want to hardcode
these for each directory! And please forgive me, but I am not at all
proficient in js...

Has anyone ever done this before and if so, how can I retrieve that value?
Nothing I've done seems to work. The javascript picks up the values of the
..asp code on the initial load, but after that, I can't seem to make the
javascript functions requery the .asp function with the newly selected
picture #... The .asp values remain the same while the js values are
correctly changing...

Any advice would be greatly appreciated!
Jul 19 '05 #1
15 3075
http://www.aspfaq.com/2001

--
http://www.aspfaq.com/
(Reverse address to reply.)

"Sue Barth" <Su*@nSytes.com> wrote in message
news:uB**************@TK2MSFTNGP10.phx.gbl...
Hi all,
I hope I'm in the right ng for this...

I made an .asp page that allows users to toggle thru a directory of
photos.
The page accomplishes the following:
selects a directory of photos based on a drop down
uses the fso to obtain the # of photos in the directory
cycles thru the photos w forward and backward buttons that send the pic
# with a +1 or -1 value
retrieve's & displays the rs's photo description field from a db based
on its pic #

The thing that is awkward is that the page refreshes itself w ea request.
Is there any way to remain in .asp and not refresh?

OR

I found some javascript that is nice and will cycle thru the pics with the
forward & backward buttons, but I can't seem to make the javascript send
the
value of the next or previous pic back to the .asp function that retrieves
the description field from the db. I definitely don't want to hardcode
these for each directory! And please forgive me, but I am not at all
proficient in js...

Has anyone ever done this before and if so, how can I retrieve that value?
Nothing I've done seems to work. The javascript picks up the values of
the
.asp code on the initial load, but after that, I can't seem to make the
javascript functions requery the .asp function with the newly selected
picture #... The .asp values remain the same while the js values are
correctly changing...

Any advice would be greatly appreciated!

Jul 19 '05 #2
Thanks for your reply, Aaron, but what a disappointment...

The article you referred me to seems to suggest that I might store the db
values in a hidden iframe. I'll give that a try. Maybe I should have the
..asp function loop thru the recordset and store the picture descriptions in
an array. Then perhaps it would be possible to have the javascript
functions retrieve that hidden info...Anyone have any thoughts on this? If
it would help to see what I'm trying to accomplish, the site is located at:
http://www.the-jam-factory.com/Forum/default_test.asp (bear in mind this is
my test page - it's currently set up with the javascript hooked to the
forward and backward buttons - and incorrectly passes the recordset info to
the picture caption textbox; I'm not using the dropdown on this page.)

What do other people do for photo albums that have info stored in a
database? Do they always have to refresh the page to display a new picture?

Any comments, suggestions, or just plain musings welcome...
==================================================

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:uv**************@TK2MSFTNGP12.phx.gbl...
http://www.aspfaq.com/2001

--
http://www.aspfaq.com/
(Reverse address to reply.)
================================================== "Sue Barth" <Su*@nSytes.com> wrote in message
news:uB**************@TK2MSFTNGP10.phx.gbl...
Hi all,
I hope I'm in the right ng for this...

I made an .asp page that allows users to toggle thru a directory of
photos.
The page accomplishes the following:
selects a directory of photos based on a drop down
uses the fso to obtain the # of photos in the directory
cycles thru the photos w forward and backward buttons that send the pic # with a +1 or -1 value
retrieve's & displays the rs's photo description field from a db based on its pic #

The thing that is awkward is that the page refreshes itself w ea request. Is there any way to remain in .asp and not refresh?

OR

I found some javascript that is nice and will cycle thru the pics with the forward & backward buttons, but I can't seem to make the javascript send
the
value of the next or previous pic back to the .asp function that retrieves the description field from the db. I definitely don't want to hardcode
these for each directory! And please forgive me, but I am not at all
proficient in js...

Has anyone ever done this before and if so, how can I retrieve that value? Nothing I've done seems to work. The javascript picks up the values of
the
.asp code on the initial load, but after that, I can't seem to make the
javascript functions requery the .asp function with the newly selected
picture #... The .asp values remain the same while the js values are
correctly changing...

Any advice would be greatly appreciated!


Jul 19 '05 #3
Sue,

Using JavaScript on the Client side.

Start a Timer and a Count Variable.
After each increment you set on the timer,
Call an asp page with the counter Variable as a querystring parm to get data using XMLHTTP object.
Replace innerHTML of page items with data
increment Count variable for next call.

Search using JavaScript and XMLHTTP

HTH

dlbjr
Pleading sagacious indoctrination!
Jul 19 '05 #4
"Sue Barth" <Su*@nSytes.com> wrote in message news:<uB**************@TK2MSFTNGP10.phx.gbl>...
Hi all,
I hope I'm in the right ng for this...

I made an .asp page that allows users to toggle thru a directory of photos.
The page accomplishes the following:
selects a directory of photos based on a drop down
uses the fso to obtain the # of photos in the directory
cycles thru the photos w forward and backward buttons that send the pic
# with a +1 or -1 value
retrieve's & displays the rs's photo description field from a db based
on its pic #

The thing that is awkward is that the page refreshes itself w ea request.
Is there any way to remain in .asp and not refresh?


The only way JS can "talk" to ASP is by refreshing the page, because
JS is run on the client, and ASP is run on the server. I'm not sure
why you're mixing the two in the case of a photo album.

If I were doing it, I'd just use ASP. Granted, with JS, you could
preload the images and when the user clicks a Next or Previous button,
it would quickly flip to the next picture.
Jul 19 '05 #5
Hi Larry,

Yes, that's why I ended up wanting to use js in that it is VERY quick with
no page reloading. After I got the .asp page working first, it was
disappointing to see it refresh with each request. I'm learning a bunch
here about client / server stuff!

I'm just toying now with sending an array of the pic descriptions from the
recordset to a js array on the page's initial load. I don't know if it will
work, but I thought I'd give it one last try. dlbjr's advice was a bit over
my head...

Any other insights from the group would be welcome!

~ Sue

"Larry Bud" <la**********@yahoo.com> wrote in message
news:5d**************************@posting.google.c om...
"Sue Barth" <Su*@nSytes.com> wrote in message

news:<uB**************@TK2MSFTNGP10.phx.gbl>...
Hi all,
I hope I'm in the right ng for this...

I made an .asp page that allows users to toggle thru a directory of photos. The page accomplishes the following:
selects a directory of photos based on a drop down
uses the fso to obtain the # of photos in the directory
cycles thru the photos w forward and backward buttons that send the pic # with a +1 or -1 value
retrieve's & displays the rs's photo description field from a db based on its pic #

The thing that is awkward is that the page refreshes itself w ea request. Is there any way to remain in .asp and not refresh?


The only way JS can "talk" to ASP is by refreshing the page, because
JS is run on the client, and ASP is run on the server. I'm not sure
why you're mixing the two in the case of a photo album.

If I were doing it, I'd just use ASP. Granted, with JS, you could
preload the images and when the user clicks a Next or Previous button,
it would quickly flip to the next picture.

Jul 19 '05 #6
If you are happy with IE only:

<%
set conn = CreateObject("ADODB.Connection")
conn.open "<connection string>"
set rs = conn.execute("SELECT picURL, picDescription FROM pictures")
scr = "<script>" & vbCrLf & _
"var picURLs = new Array();" & VBCrLf & _
"var picDescs = new Array();" & VBCrLf
ctr = 0
do while not rs.eof
scr = scr & "picURLs[" & ctr & "] = '" & rs("picURL") & _
"';" & vbCrLf & "picDescs[" & ctr & "] = '" & _
server.HTMLEncode(rs("picDescription")) & "';" & _
vbCrLf
ctr = ctr + 1
rs.movenext
loop
scr = scr & "var lastPos = " & (ctr-1) & ";" & vbCrLf & _
"</script>"

response.write scr
%>

<button onclick='moveBack();'>&lt;</button>
<span id=picdisplay></span>
<span id=picDescription></span>
<button onclick='moveForward();'>&gt;</button>

<script>
var curPos = 0;

function moveBack()
{
if (curPos > 0)
{
curPos = curPos - 1;
showImage(curPos);
}
}

function moveForward()
{
if (curPos < lastPos)
{
curPos = curPos + 1;
showImage(curPos);
}
}

function showImage(pos)
{
document.all("picDisplay").innerHTML = "<img src=" + picURLs[curPos]
+ ">";
document.all("picDescription").innerHTML = picDescs[curPos];
}

showImage(0);
</script>

Very rudimentary, feel free to fix the size of the divs, use tables, what
have you, but the generic functionality is there.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Sue Barth" <Su*@nSytes.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
Hi Larry,

Yes, that's why I ended up wanting to use js in that it is VERY quick with
no page reloading. After I got the .asp page working first, it was
disappointing to see it refresh with each request. I'm learning a bunch
here about client / server stuff!

I'm just toying now with sending an array of the pic descriptions from the
recordset to a js array on the page's initial load. I don't know if it
will
work, but I thought I'd give it one last try. dlbjr's advice was a bit
over
my head...

Any other insights from the group would be welcome!

Jul 19 '05 #7
Aaron, this is awesome - thanks so much! I will "play" tomorrow night! I
understand most of what you're doing here, and the thought actually went
thru my head to have .asp write out the js with an array of the values I
needed on the page's load, but I wasn't good enough in javascript to
accomplish it. Also, I haven't used HTMLEncode before, so I will read up on
that too - appreciate this a LOT... Too bad for Netscape, Opera, etc... tho
~ Sue

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
If you are happy with IE only:

<%
set conn = CreateObject("ADODB.Connection")
conn.open "<connection string>"
set rs = conn.execute("SELECT picURL, picDescription FROM pictures")
scr = "<script>" & vbCrLf & _
"var picURLs = new Array();" & VBCrLf & _
"var picDescs = new Array();" & VBCrLf
ctr = 0
do while not rs.eof
scr = scr & "picURLs[" & ctr & "] = '" & rs("picURL") & _
"';" & vbCrLf & "picDescs[" & ctr & "] = '" & _
server.HTMLEncode(rs("picDescription")) & "';" & _
vbCrLf
ctr = ctr + 1
rs.movenext
loop
scr = scr & "var lastPos = " & (ctr-1) & ";" & vbCrLf & _
"</script>"

response.write scr
%>

<button onclick='moveBack();'>&lt;</button>
<span id=picdisplay></span>
<span id=picDescription></span>
<button onclick='moveForward();'>&gt;</button>

<script>
var curPos = 0;

function moveBack()
{
if (curPos > 0)
{
curPos = curPos - 1;
showImage(curPos);
}
}

function moveForward()
{
if (curPos < lastPos)
{
curPos = curPos + 1;
showImage(curPos);
}
}

function showImage(pos)
{
document.all("picDisplay").innerHTML = "<img src=" + picURLs[curPos] + ">";
document.all("picDescription").innerHTML = picDescs[curPos];
}

showImage(0);
</script>

Very rudimentary, feel free to fix the size of the divs, use tables, what
have you, but the generic functionality is there.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Sue Barth" <Su*@nSytes.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
Hi Larry,

Yes, that's why I ended up wanting to use js in that it is VERY quick with no page reloading. After I got the .asp page working first, it was
disappointing to see it refresh with each request. I'm learning a bunch
here about client / server stuff!

I'm just toying now with sending an array of the pic descriptions from the recordset to a js array on the page's initial load. I don't know if it
will
work, but I thought I'd give it one last try. dlbjr's advice was a bit
over
my head...

Any other insights from the group would be welcome!


Jul 19 '05 #8
Hi Aaron,
I made a few adjustments to suit my page and eventually got things working -
thankyou... I had trouble getting the pictures to display in the <span>
tag, - so I ended up using these 2 lines instead and, for whatever reason,
they ended up working:

eval('document.picDisplay.src = picFolders[curPos]');

<div align="center"><br><img SRC="<% response.write picFolder & "Pic01.jpg"
%>" NAME="picDisplay" border="3"></div>
I'm still having 2 little problems that I can't seem to solve on my own no
matter what I try...

First Issue:
I see the .asp code is correctly writing the array to the js - but the one
variable's value, lastPos, isn't being detected in a function I added...

I added moveFirst() and moveLast() - moveFirst works where moveLast
doesn't...

function moveFirst(){
curPos = 0;
showImage(curPos);
}

function moveLast(){
//I added the line below, but it the function doesn't work with it or
without it: - picNums is based on the fso routine:
//For Each objFile in objFolder.Files
// if right(objFile.name,4)=".jpg" and left(objFile.name,3)="Pic" then
// numPics=numPics+1
// else
// end if
//next

lastPos="<% response.write numPics %>"; //this line is the one that
seems to do nothing
showImage(lastPos);
}

Second Issue:
I used the onload event to display the first picture and its description,
but that's not working either. The picture displays, but I'm sure it's
because I put it in the img src of picDisplay. Seems this should work 'cuz
the button's onclick event fires it:
onLoad="moveFirst();"

So - if you have time and would be so kind as to take a look, the page is
at:
http://www.the-jam-factory.com/Forum/Default_Text.asp
and a text version of the code is at:
http://www.the-jam-factory.com/Forum...oup%20Help.txt

Thanks so much,
~ Sue
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
If you are happy with IE only:

<%
set conn = CreateObject("ADODB.Connection")
conn.open "<connection string>"
set rs = conn.execute("SELECT picURL, picDescription FROM pictures")
scr = "<script>" & vbCrLf & _
"var picURLs = new Array();" & VBCrLf & _
"var picDescs = new Array();" & VBCrLf
ctr = 0
do while not rs.eof
scr = scr & "picURLs[" & ctr & "] = '" & rs("picURL") & _
"';" & vbCrLf & "picDescs[" & ctr & "] = '" & _
server.HTMLEncode(rs("picDescription")) & "';" & _
vbCrLf
ctr = ctr + 1
rs.movenext
loop
scr = scr & "var lastPos = " & (ctr-1) & ";" & vbCrLf & _
"</script>"

response.write scr
%>

<button onclick='moveBack();'>&lt;</button>
<span id=picdisplay></span>
<span id=picDescription></span>
<button onclick='moveForward();'>&gt;</button>

<script>
var curPos = 0;

function moveBack()
{
if (curPos > 0)
{
curPos = curPos - 1;
showImage(curPos);
}
}

function moveForward()
{
if (curPos < lastPos)
{
curPos = curPos + 1;
showImage(curPos);
}
}

function showImage(pos)
{
document.all("picDisplay").innerHTML = "<img src=" + picURLs[curPos] + ">";
document.all("picDescription").innerHTML = picDescs[curPos];
}

showImage(0);
</script>

Very rudimentary, feel free to fix the size of the divs, use tables, what
have you, but the generic functionality is there.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Sue Barth" <Su*@nSytes.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
Hi Larry,

Yes, that's why I ended up wanting to use js in that it is VERY quick with no page reloading. After I got the .asp page working first, it was
disappointing to see it refresh with each request. I'm learning a bunch
here about client / server stuff!

I'm just toying now with sending an array of the pic descriptions from the recordset to a js array on the page's initial load. I don't know if it
will
work, but I thought I'd give it one last try. dlbjr's advice was a bit
over
my head...

Any other insights from the group would be welcome!


Jul 19 '05 #9
Aaron, just in case you see this post and want to help, I've resolved the
first issue from my last post (got the moveLast() function to work). All
that remains is firing the moveFirst or showImage function on the page
load... If you can figure that out for me, that would be awesome...

Thanks again - this is wonderful,
~ Sue

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
If you are happy with IE only:

<%
set conn = CreateObject("ADODB.Connection")
conn.open "<connection string>"
set rs = conn.execute("SELECT picURL, picDescription FROM pictures")
scr = "<script>" & vbCrLf & _
"var picURLs = new Array();" & VBCrLf & _
"var picDescs = new Array();" & VBCrLf
ctr = 0
do while not rs.eof
scr = scr & "picURLs[" & ctr & "] = '" & rs("picURL") & _
"';" & vbCrLf & "picDescs[" & ctr & "] = '" & _
server.HTMLEncode(rs("picDescription")) & "';" & _
vbCrLf
ctr = ctr + 1
rs.movenext
loop
scr = scr & "var lastPos = " & (ctr-1) & ";" & vbCrLf & _
"</script>"

response.write scr
%>

<button onclick='moveBack();'>&lt;</button>
<span id=picdisplay></span>
<span id=picDescription></span>
<button onclick='moveForward();'>&gt;</button>

<script>
var curPos = 0;

function moveBack()
{
if (curPos > 0)
{
curPos = curPos - 1;
showImage(curPos);
}
}

function moveForward()
{
if (curPos < lastPos)
{
curPos = curPos + 1;
showImage(curPos);
}
}

function showImage(pos)
{
document.all("picDisplay").innerHTML = "<img src=" + picURLs[curPos] + ">";
document.all("picDescription").innerHTML = picDescs[curPos];
}

showImage(0);
</script>

Very rudimentary, feel free to fix the size of the divs, use tables, what
have you, but the generic functionality is there.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Sue Barth" <Su*@nSytes.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
Hi Larry,

Yes, that's why I ended up wanting to use js in that it is VERY quick with no page reloading. After I got the .asp page working first, it was
disappointing to see it refresh with each request. I'm learning a bunch
here about client / server stuff!

I'm just toying now with sending an array of the pic descriptions from the recordset to a js array on the page's initial load. I don't know if it
will
work, but I thought I'd give it one last try. dlbjr's advice was a bit
over
my head...

Any other insights from the group would be welcome!


Jul 19 '05 #10
ps - just fyi: I just tested the page in Netscape 7.1 and Opera 7.23 - both
worked well!

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
If you are happy with IE only:

<%
set conn = CreateObject("ADODB.Connection")
conn.open "<connection string>"
set rs = conn.execute("SELECT picURL, picDescription FROM pictures")
scr = "<script>" & vbCrLf & _
"var picURLs = new Array();" & VBCrLf & _
"var picDescs = new Array();" & VBCrLf
ctr = 0
do while not rs.eof
scr = scr & "picURLs[" & ctr & "] = '" & rs("picURL") & _
"';" & vbCrLf & "picDescs[" & ctr & "] = '" & _
server.HTMLEncode(rs("picDescription")) & "';" & _
vbCrLf
ctr = ctr + 1
rs.movenext
loop
scr = scr & "var lastPos = " & (ctr-1) & ";" & vbCrLf & _
"</script>"

response.write scr
%>

<button onclick='moveBack();'>&lt;</button>
<span id=picdisplay></span>
<span id=picDescription></span>
<button onclick='moveForward();'>&gt;</button>

<script>
var curPos = 0;

function moveBack()
{
if (curPos > 0)
{
curPos = curPos - 1;
showImage(curPos);
}
}

function moveForward()
{
if (curPos < lastPos)
{
curPos = curPos + 1;
showImage(curPos);
}
}

function showImage(pos)
{
document.all("picDisplay").innerHTML = "<img src=" + picURLs[curPos] + ">";
document.all("picDescription").innerHTML = picDescs[curPos];
}

showImage(0);
</script>

Very rudimentary, feel free to fix the size of the divs, use tables, what
have you, but the generic functionality is there.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Sue Barth" <Su*@nSytes.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
Hi Larry,

Yes, that's why I ended up wanting to use js in that it is VERY quick with no page reloading. After I got the .asp page working first, it was
disappointing to see it refresh with each request. I'm learning a bunch
here about client / server stuff!

I'm just toying now with sending an array of the pic descriptions from the recordset to a js array on the page's initial load. I don't know if it
will
work, but I thought I'd give it one last try. dlbjr's advice was a bit
over
my head...

Any other insights from the group would be welcome!


Jul 19 '05 #11
> that remains is firing the moveFirst or showImage function on the page
load...


This didn't do it? That's what it was for:
showImage(0);


--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #12
Yes, I tried that line, but it gave an error if I left it where it was in
the code. Perhaps I should have put it somewhere else - and that's what I
was trying to accomplish on the onload event. Should it go somewhere else?

Thanks for your time; that's the only thing left! :)
~ Sue
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:en**************@TK2MSFTNGP12.phx.gbl...
that remains is firing the moveFirst or showImage function on the page
load...


This didn't do it? That's what it was for:
showImage(0);


--
http://www.aspfaq.com/
(Reverse address to reply.)

Jul 19 '05 #13
WHAT error? Can you show where this happens (the URL you provided earlier
gave a 404)?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Sue Barth" <Su*@nSytes.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
Yes, I tried that line, but it gave an error if I left it where it was in
the code. Perhaps I should have put it somewhere else - and that's what I
was trying to accomplish on the onload event. Should it go somewhere
else?

Thanks for your time; that's the only thing left! :)
~ Sue

Jul 19 '05 #14
Aaron,
So sorry about the url; bad typo (text instead of test) - the correct url
is: http://www.the-jam-factory.com/Forum/default_test.asp
and the code is correct at:
http://www.the-jam-factory.com/Forum...oup%20Help.txt

The error is "document.picDisplay" is null or not an object. When I take
that line away, it doesn't give the error... but my naive workaround isn't
what I really want either...

Any insight would be appreciated,
~ Sue
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:O5*************@tk2msftngp13.phx.gbl...
WHAT error? Can you show where this happens (the URL you provided earlier
gave a 404)?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Sue Barth" <Su*@nSytes.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
Yes, I tried that line, but it gave an error if I left it where it was in the code. Perhaps I should have put it somewhere else - and that's what I was trying to accomplish on the onload event. Should it go somewhere
else?

Thanks for your time; that's the only thing left! :)
~ Sue


Jul 19 '05 #15
Well, you changed the code! I didn't use the src property of an image. If
you're going to do this, then you need to say:

document.images["picDisplay"].src

Instead of:

document.picDisplay.src

I'm setting the follow-up to the jscript newsgroup because your issue no
longer involves ASP.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Sue Barth" <Su*@nSytes.com> wrote in message
news:O7**************@TK2MSFTNGP10.phx.gbl...
Aaron,
So sorry about the url; bad typo (text instead of test) - the correct url
is: http://www.the-jam-factory.com/Forum/default_test.asp
and the code is correct at:
http://www.the-jam-factory.com/Forum...oup%20Help.txt

The error is "document.picDisplay" is null or not an object. When I take
that line away, it doesn't give the error... but my naive workaround isn't
what I really want either...

Any insight would be appreciated,
~ Sue

Jul 19 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jiing.deng | last post by:
I have not learned Javascript,just copy & paste & revise <script language="JavaScript"> function confirmDelete{ re = confirm("Delete or not?(yes,cancel)"); if (re == "0"){<?php $re1 =...
0
by: Matt | last post by:
My problem is to allow ASP to interact with JSP, and I pass JavaScript object in my approach, but I wonder if it will work in network, not just in local machine. For testing purposes, the...
3
by: Nath | last post by:
Please help!? I am new to writing html, javascript, pretty new to MySQL but quite proficient at writing Perl and i'm a quick learner. I am building a database driven website and i am a little...
5
by: Seeker | last post by:
Newbie question here... I have a form with some radio buttons. To verify that at least one of the buttons was chosen I use the following code ("f" is my form object) : var btnChosen; for...
3
by: DCB | last post by:
Hello. I have an easy question, likely, that has me in a headspin. I have an include file to a frames based site that basically forces frames on the end user if they visit the site and hit a...
1
by: colleen1980 | last post by:
Hi: Can any one please tell me that how to i pass the two textbox values in the new page. If i use the form action in the popup window page then the new page is open in the same popup window as i...
1
by: msg2ajay | last post by:
hello , i have to pass a 'span' id to the javascript function'. how can i pass that. when i tried like below it is working!!! may the function is in the same page.... eg: ---- ...
4
by: IRC | last post by:
hey, i am pretty new on javascript as well as PHP, Hey, anyone can you help me, how to pass the javascript array value to php page......... i want to retrieve the values which are arrayed on...
5
by: JohnDriver | last post by:
Hi, I am having a form which has a text box and 3 radio buttons. I am using GET method in Ajax to pass the value. I can pass the value of the textbox fine but how to pass the value of radio...
8
by: BigZero | last post by:
Hello, i need to pass some variables or value to javascript from php script. well all i need to pass to value to javascript that is with in same php file the two values r in php i need to pass...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.