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="JavaS cript">
function newwindow()
{
window.open('re ad_im.asp?ito=< %=vim1%>&ifrom= <%=vim2%>&imess age=<%=vim3%>', 'jav','width=30 0,height=300,re sizable=yes,tit lebar=no,toolba r=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 5365
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="JavaS cript">
function newwindow()
{
window.open('re ad_im.asp?ito=< %=vim1%>&ifrom= <%=vim2%>&imess age=<%=vim3%>', 'jav','width=30 0,height=300,re sizable=yes,tit lebar=no,toolba r=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.publi c.inetserver.as p.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="JavaS cript">
function newwindow()
{
window.open('re ad_im.asp?ito=< %=vim1%>&ifrom= <%=vim2%>&imess age=<%=
vim3%>','jav',' width=300,heigh t=300,resizable =yes,titlebar=n o,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="JavaS cript">
function newwindow()
{
window.open('re ad_im.asp?ito=< %=vim1%>&ifrom= <%=vim2%>&imess age=<%=vim3%>', 'jav','width=30 0,height=300,re sizable=yes,tit lebar=no,toolba r=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="JavaS cript">
<!--hide
function newwindow()
{
window.open('re ad_im.asp','jav ','width=300,he ight=300,resiza ble=yes,titleba r=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="JavaS cript">
function newwindow()
{
window.open('re ad_im.asp?ito=< %=vim1%>&ifrom= <%=vim2%>&imess age=<%=vim3%>', '
jav','width=300 ,height=300,res izable=yes,titl ebar=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="JavaS cript">
<!--hide
function newwindow()
{
window.open('re ad_im.asp','jav ','width=300,he ight=300,resiza ble=yes,titleba r
=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
File->New). Can the second IE browser/process access the DOM objects
of the first, if so, can someone please post a bit of sample code?
thanks.
-Jeff
|
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
clicking (doing anything) in the original window until the new window
has been closed. Any insight will help. Thank you very much in
advanced.
|
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 = "smallLink";
myText=document.createTextNode('sometext');
myA.appendChild(myText);
Then when I pressed the link I'd like to change the 'className' of this
link from 'smallLink' to 'biggerLink', but nothing happens.
|
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 is not being used. I have a thing that needs to be
modified:
if(e.CommandName =="Print")
{
string parsedreceipt = null;
parsedreceipt = DecodeReceipt (e.Item.Cells.Text);
Session = parsedreceipt;
|
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.
For example, possibly
Response.Write("<script language='javascript'>window.open
('WebForm2.aspx','two','menubar=no');</script>")
Is there code that will accomplish this without using 3rd-
| |
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 below.
QueryString = "frmMySearchWebForm.aspx?DOBDate=" + txtDOBDt
popUp =window.open(QueryString,null,
"height=50,width=80,status=no,left =0,top
=0,toolbar=no,menubar=no,location=no,scrollbars =yes");
When the user picks a certain customer in the frmMySearchWebForm I am
|
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 window as
javascrit:window.open('MyPage.aspx',status=1,location=1,resizable=yes,scrollbars=yes)
2 - I am using a HyperLink and using the NagigateUrl property to open a pdf
in a new window with the targer set as "_Blank"
The trouble I am having is trying to keep the focus on the new window....
|
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
help.
Here it is:
I have an application that allows users to log in. Each user can have
multiple roles within the application. Each role allows the user to access
different sections of the app and allows/denies them certain functionality.
|
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 new browser window,when i click on the link.actually i 'm using
link button control to diplay the hyperlinks.i cant use java script
"window.open()".i need some server side code behind the linkbutton,if
any one knows plz rply soon.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |