hey guys,
this may not be the right place, but i wanted to give it a shot.
i have an if statement, based on the data of a mssql db.
if the if is .eof
do nothing
else
<SCRIPT language="JavaScript">
function newwindow()
{
window.open('read_im.asp?ito=<%=vim1%>&ifrom=<%=vi m2%>&imessage=<%=vim3%>','jav','width=300,height=3 00,resizable=yes,titlebar=no,toolbar=no');
}
</script>
so this SHOULD make a popup if not.eof
it isn't working. i checked the retures, it is finding data in the db, so it
should make this popup, yet it isn't working.
can someone help? or should i move this to another NG
thanks
Bam 6 5269
Jeff wrote:
hey guys,
this may not be the right place, but i wanted to give it a shot.
i have an if statement, based on the data of a mssql db.
if the if is .eof
do nothing
else
<SCRIPT language="JavaScript">
function newwindow()
{
window.open('read_im.asp?ito=<%=vim1%>&ifrom=<%=vi m2%>&imessage=<%=vim3%>','jav','width=300,height=3 00,resizable=yes,titlebar=no,toolbar=no');
} </script>
so this SHOULD make a popup if not.eof
it isn't working. i checked the retures, it is finding data in the
db, so it should make this popup, yet it isn't working.
can someone help? or should i move this to another NG
thanks
Bam
Show the real code (preferable from a small repro page).
Actually, try getting it to work without the recordset involved.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jeff wrote on 25 mrt 2007 in microsoft.public.inetserver.asp.general:
hey guys,
this may not be the right place, but i wanted to give it a shot.
i have an if statement, based on the data of a mssql db.
if the if is .eof
That is pseudocode, what is your serverside code?
do nothing
Same.
btw, why not do:
<% 'vbscript
if not blablah.eof then
......
else
You should send this to clientside, so where is the closure of the ASP
code?
<SCRIPT language="JavaScript">
function newwindow()
{
window.open('read_im.asp?ito=<%=vim1%>&ifrom=<%=vi m2%>&imessage=<%=
vim3%>','jav','width=300,height=300,resizable=yes, titlebar=no,toolb
ar=no'); }
</script>
All kinds of derverside variables the are not declared to ouw knowledge.
So you build a clientside function, but where do you execute that
function?
so this SHOULD make a popup if not.eof
it isn't working. i checked the retures, it is finding data in the db,
so it should make this popup, yet it isn't working.
No, it SHOULD not, see the above remarks.
[additionally, the browser might not want to do pop-ups.]
can someone help? or should i move this to another NG
If you, due to debugging, think it is a serverside code problem, please
ask here.
First make real ASP code, either vbscript of jscript, and if that does
not work, tell us what debugging errors you found.
Show us the code you come up with including the database opening lines,
the sql string and the clientside SQL result string using a breakpoint
insert with:
<%
response.write SQL
response.end
%>
and a browser view source of the result of that breakpoint.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
>
Show the real code (preferable from a small repro page).
Actually, try getting it to work without the recordset involved.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
good idea... have to bolt for a bit, but will let you know the results.
thanks
"Jeff" <ba*@gig-gamers.comwrote in message
news:46**********************@roadrunner.com...
hey guys,
this may not be the right place, but i wanted to give it a shot.
i have an if statement, based on the data of a mssql db.
if the if is .eof
do nothing
else
<SCRIPT language="JavaScript">
function newwindow()
{
window.open('read_im.asp?ito=<%=vim1%>&ifrom=<%=vi m2%>&imessage=<%=vim3%>','jav','width=300,height=3 00,resizable=yes,titlebar=no,toolbar=no');
}
</script>
so this SHOULD make a popup if not.eof
it isn't working. i checked the retures, it is finding data in the db, so
it should make this popup, yet it isn't working.
can someone help? or should i move this to another NG
thanks
Bam
i am looking into this, and will probably have to got to javascript ng.
i took all wariables out, and am just trying to have the page run the
open.window script, and it isn't working. but before i did that, here is
what i limited the code to
varIMid = 6
if varIMid = 6 then
%>
SCRIPT language="JavaScript">
<!--hide
function newwindow()
{
window.open('read_im.asp','jav','width=300,height= 300,resizable=yes,titlebar=no,toolbar=no');
}
//-->
</SCRIPT>
<% else
end if %>
now this should return a popup since the variable DOES = 6.
so again, i don't know if the javascript is not correct, or if this is
something else.
"Jeff" <ba*@gig-gamers.comwrote in message
news:46***********************@roadrunner.com...
>
"Jeff" <ba*@gig-gamers.comwrote in message
news:46**********************@roadrunner.com...
hey guys,
this may not be the right place, but i wanted to give it a shot.
i have an if statement, based on the data of a mssql db.
if the if is .eof
do nothing
else
<SCRIPT language="JavaScript">
function newwindow()
{
window.open('read_im.asp?ito=<%=vim1%>&ifrom=<%=vi m2%>&imessage=<%=vim3%>','
jav','width=300,height=300,resizable=yes,titlebar= no,toolbar=no');
}
</script>
so this SHOULD make a popup if not.eof
it isn't working. i checked the retures, it is finding data in the db,
so
it should make this popup, yet it isn't working.
can someone help? or should i move this to another NG
thanks
Bam
i am looking into this, and will probably have to got to javascript ng.
i took all wariables out, and am just trying to have the page run the
open.window script, and it isn't working. but before i did that, here is
what i limited the code to
varIMid = 6
if varIMid = 6 then
%>
SCRIPT language="JavaScript">
<!--hide
function newwindow()
{
window.open('read_im.asp','jav','width=300,height= 300,resizable=yes,titlebar
=no,toolbar=no');
}
//-->
</SCRIPT>
<% else
end if %>
now this should return a popup since the variable DOES = 6.
so again, i don't know if the javascript is not correct, or if this is
something else.
If you use view source in the browser is the function present in the page?
What is calling the function?
Have you tried placing it in a HTM file to see whether it works there?
In what way is it not working, are you expecting a window with no titlebar?
Because that isn't likely outside of the trusted zone.
If you use view source in the browser is the function present in the page?
What is calling the function?
Have you tried placing it in a HTM file to see whether it works there?
In what way is it not working, are you expecting a window with no
titlebar?
Because that isn't likely outside of the trusted zone.
what i meant by not working, was it won't popup with the querystrings
attached.
i found a work around for this, by doing some other stuff. without the
strings, it works, but not with.
what i didn't know, was was there a different way to put querystrings into
javascript for the purpose of a popup.
thanks for the reply This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jeff T. |
last post by:
All,
Is there any way to access a separate IE 6.0 browser process via the
Javascript DOM ? For example, open IE once. Open IE again (not using...
|
by: Maria Bitsku |
last post by:
How do I deactivate a window using Javascript. For example if I have
a window that opens up another window, how do I prevent the user from...
|
by: Michael Hill |
last post by:
I created an element on-the-fly using javascript like:
myA=document.createElement("A");
myA.href="Javascript:acton(this)";
myA.className =...
|
by: Michelle Keys |
last post by:
I am trying to call a print function to print a string from a database
using javascript.
Which is RC_DATA of Varchar2(2500).
This is a javascript...
|
by: mg |
last post by:
I need to first open WebForm2 from WebForm1 and then
close WebForm1 without the end user having to press an OK
button before the close can occur....
|
by: Shashi |
last post by:
I have developed ASP.Net application using .Net 1.1 Framework.
When the user clicks image file through Java script I am using my search
window as...
|
by: Jawahar |
last post by:
I am trying to open a new window in two ways
1 - adding javascript to the onclick attribute of an Image button to open a
pdf document in a new...
|
by: John Scott |
last post by:
Ok..this a rather odd question/problem. I haven't really found a straight
forward answer to how to handle this scenario, so I hope someone here can...
|
by: bushi |
last post by:
hi everyone!
i have diplayed my hyperlinks in a iframe.when i redirect
to next page.the next page also open in the same frame,but i want to
open a...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
|
by: jalbright99669 |
last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
|
by: Matthew3360 |
last post by:
Hi,
I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
|
by: Oralloy |
last post by:
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the...
| |