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

Pop up utilizing Querystrings

I need to find out how to incorporate a popup window that passes a
querystring, after some quick research I found that by using JavaScript that
you can pop up a window,

var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=400,width =200');
if (window.focus) {newwindow.focus()}
}

and using a link like this, you can pop the window,

<%Response.Write("<a
href=""javascript:poptastic('detailPastEvents.asp? RegNo='" &
rsEvents.Fields.Item("RegNo").Value & "');"">past events</a>")%>

My issue is that I need to pass a querystring when opening this page, and I
can't figure out how to make this work. Can anyone help me out?

Thanks,
Drew
Jul 22 '05 #1
1 1256
You are passing a querystring (?RegNo='" &
rsEvents.Fields.Item("RegNo").Value) but it looks like you are putting
single quote after the "=" which could cause problems. Do a "view source"
and see what you are actually getting. What you want is (from what you have
given):

<a href="javascript:poptastic('detailPastEvents.asp?R egNo=nnnn');">

"nnnn" should be the RegNo value.

--
--Mark Schupp
"Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:uy**************@TK2MSFTNGP12.phx.gbl...
I need to find out how to incorporate a popup window that passes a
querystring, after some quick research I found that by using JavaScript
that you can pop up a window,

var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=400,width =200');
if (window.focus) {newwindow.focus()}
}

and using a link like this, you can pop the window,

<%Response.Write("<a
href=""javascript:poptastic('detailPastEvents.asp? RegNo='" &
rsEvents.Fields.Item("RegNo").Value & "');"">past events</a>")%>

My issue is that I need to pass a querystring when opening this page, and
I can't figure out how to make this work. Can anyone help me out?

Thanks,
Drew

Jul 22 '05 #2

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

Similar topics

4
by: JA | last post by:
I have this little tell-a-friend script that will send out a link back to the site. I want to put a link on my product pages that will go to the script, and have the script display the product...
1
by: Amy | last post by:
I am having a strange problem. I pass data as a querystring from an aspx page to an asp page to generate an email. THe data is then used to go back to the original page and allow access based on...
5
by: TC | last post by:
Hello, Here is what I'm trying to do: -- Make sure both MS Excel and MS Word are running -- Create an Excel chart -- Save the Excel file -- Copy the Excel chart onto the clipboard using Ctrl...
1
by: ALPO | last post by:
ARe there any good articles or examples on using the querystirng or form requests in VB code behind?
0
by: Rob Meade | last post by:
Hi all, I read an article on ASP.Net website the other day which sent me off to this address : http://www.dotnetjunkies.com/HowTo/99201486-ACFD-4607-A0CC-99E75836DC72.dcik It gives a good...
11
by: thogek | last post by:
We've been working with the ASP.NET 2.0 sitemap functionality, and one problem we're currently having is a need to be able to generate a web.sitemap file that includes URLs containing querystring...
0
by: RJN | last post by:
Hi Sorry for the repeated posting. This is about using ServiceConfig class for utilizing COM+ servcies. In my application architecture, the business logic classes talk to the data access...
1
abehm
by: abehm | last post by:
Hi, I'm trying to pass multiple values through querystrings to another page where i will parse them to individual variables. I have one method to create the querystrings before they pass, but for...
2
by: =?Utf-8?B?cHJhZHk=?= | last post by:
Hi, Is it possible for me to create new users without using the wizard? I am using a custom membership as i want to capture more data other than the ones which are available in the wizard. Is it...
2
by: seanmatthewwalsh | last post by:
Hi Is there a way to use querystring links that don't look like typical querystrings? E.g. say I have a blog where the unique title of an article is "Dollar set to strengthen", and which has...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.