473,404 Members | 2,187 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,404 software developers and data experts.

PopUp giving blank page?

jm
<asp:HyperLinkColumn runat="server" HeaderText="To"
DataNavigateUrlField="calTo"
DataNavigateUrlFormatString="javascript:varwin=win dow.open('/MoreInfo.aspx?ID={0}',null,'width=400,height=400,l ocation=no');"
DataTextField="calTo" DataTextFormatString="{0}" />

gives the popup desired, but it also gives a blank page; taking the
target out(like above) navigates to a blank window; taking out the
varwin above gives a blank page with [object].

All the variations give the page desired, it just gives an extra page.

Any ideas?

I added a function:

function testlink(temp)
{

window.open("MoreInfo.aspx?ID=" + temp) //+
",null,'width=400,height=400,location=no");
}
But had to comment the last half off because it kept putting the
width, etc., in the address line; The first part works, it just
doesn't allow me to size the windows.

Thanks again.
Nov 17 '05 #1
4 4603
Hi
DataNavigateUrlFormatString="javascript:varwin=win dow.open('/MoreInfo.aspx?I
D={0}',null,'width=400,height=400,location=no');"

... cut...
gives the popup desired, but it also gives a blank page; taking the
target out(like above) navigates to a blank window; taking out the
varwin above gives a blank page with [object].


Try this:

DataNavigateUrlFormatString="javascript:varwin=if( window.open('/MoreInfo.asp
x?ID={0}',null,'width=400,height=400,location=no') );"

Ciao
Giorgio

Nov 17 '05 #2
jm
"Giorgio Parmeggiani" <gi******@gipadotnet.com> wrote in message news:<uQ**************@TK2MSFTNGP12.phx.gbl>...
Hi

DataNavigateUrlFormatString="javascript:varwin=win dow.open('/MoreInfo.aspx?I
D={0}',null,'width=400,height=400,location=no');"

.. cut...
gives the popup desired, but it also gives a blank page; taking the
target out(like above) navigates to a blank window; taking out the
varwin above gives a blank page with [object].


Try this:

DataNavigateUrlFormatString="javascript:varwin=if( window.open('/MoreInfo.asp
x?ID={0}',null,'width=400,height=400,location=no') );"

Ciao
Giorgio


Thanks for the help, but it gave a syntax error.
Nov 17 '05 #3
Hi

DataNavigateUrlFormatString="javascript:varwin=win dow.open('/MoreInfo.aspx?I D={0}',null,'width=400,height=400,location=no');"

Try this:

DataNavigateUrlFormatString="javascript:varwin=if( window.open('/MoreInfo.asp x?ID={0}',null,'width=400,height=400,location=no') );"


Excuse me I have post you a wrong code, but what is "varwin"?:

This one should work
DataNavigateUrlFormatString="javascript: if(window.open('/MoreInfo.asp
x?ID={0}',null,'width=400,height=400,location=no') );"

Ciao
Giorgio
Nov 17 '05 #4
jm
"Giorgio Parmeggiani" <gi******@gipadotnet.com> wrote in message news:<er**************@TK2MSFTNGP12.phx.gbl>...
Hi
>
DataNavigateUrlFormatString="javascript:varwin=win dow.open('/MoreInfo.aspx?I D={0}',null,'width=400,height=400,location=no');"

Try this:

DataNavigateUrlFormatString="javascript:varwin=if( window.open('/MoreInfo.asp x?ID={0}',null,'width=400,height=400,location=no') );"


Excuse me I have post you a wrong code, but what is "varwin"?:

This one should work
DataNavigateUrlFormatString="javascript: if(window.open('/MoreInfo.asp
x?ID={0}',null,'width=400,height=400,location=no') );"

Ciao
Giorgio


That did it! Thank you. Why is the "if" necessary?
Nov 17 '05 #5

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

Similar topics

2
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows...
38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
4
by: Sjaakie Helderhorst | last post by:
Hi, I wrote an ASP-page which allows friends to upload a datafile which will be processed and stored in a database. Because large files take some time to process I want to open a popup 'Please...
23
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div...
13
by: ldan | last post by:
Hi everybody, I would not consider myself an expert in javascript - but so far whatever I know, helped me reaching my goals. Recently I started to experience a lot of javascript errors related...
3
by: archvivek | last post by:
Hello I am doing a project using C#.Net. My doubt is, if a button is clicked.I have kept a poup box. But,once the buttton is clicked the page refreshes and shows a blank...
1
by: XP | last post by:
Hello Everyone, I was stuck with this really frustrating problem for sometime. Let me explain what I am trying to achieve: There is a form and an inner iframe. The form's target is set to the...
7
by: EManning | last post by:
I have an A2003 database linked to SQL Server 2005. My problem is with a popup form with a filtered table as a recordsource. I set the filter with an SQL statement like this: SELECT * FROM...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.