473,320 Members | 1,982 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,320 software developers and data experts.

Despratly need help

I have been stuck for 2 days now trying to get my queries opened in
popup window with certain size, no scroll and no address bar. Here is
my link that right now opens in a _blank target

< a href="video_pop.php?GenderID=**<?php echo
$row_rs_Gender['GenderID']; ?> " target="_blank"class ="centerTa*ble">
<img src="<?php echo $row_rs_Gender['Pic1']; ?>" border="0"></a>

Any help would be much appreciated
Drisco

Jul 17 '05 #1
7 1489
Drisco <db******@hotmail.com> wrote:
I have been stuck for 2 days now trying to get my queries opened in
popup window with certain size, no scroll and no address bar. Here is
my link that right now opens in a _blank target


This is not a within PHPs control, if you want to do this (any in many
cases annoy your users) you'll have to resort to clientside scripting
(in this case javascript would be appropriate).
So get a javascript reference and look for the open method of the window
object (window.open())

Jul 17 '05 #2
Thanks Daniel for the quik reply,

I have already posted help @comp.lang.javascript first, but didn't get
any answears, just some client side this server side that. I have
problems passing the variables when I use the javascript function
here is what I have

$maxRows_rs_Gender = 10;
$pageNum_rs_Gender = 0;

<SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
function vid_popup(name)
{
window.focus();
url = name + ".php?GenderID=<?php echo
$row_rs_Gender['GenderID']; ?>
";
pop_width = (name != 'video_pop'? 710:710);
pop_height = (name != 'video_pop'? 370:370);
param = "width=" + pop_width + ",height=" + pop_height
+
",resizable=no,scrollbars=no";
name += "_popup";
window.open(url,name,param);
}
</SCRIPT>

then
<a href="video_pop.php?GenderID=<*?php echo
$row_rs_Gender['GenderID'];?>" CLASS="vclip"
onClick="vid_popup('video_pop'*); return false" TARGET="_blank"><img
src=<?php echo $row_rs_Gender['Pic1']; ?> border="0"></A>

This brings up the pop up as expected but my table in empty

Thanks again

Drisco

Jul 17 '05 #3
Drisco <db******@hotmail.com> wrote:
[snip]
This brings up the pop up as expected but my table in empty


Nothing wrong with the code, appart from some '?' in strange places
(propably that crappy google groups fault) and undefined variables
(which are offcourse part of the whole script).

To debug this loose the param to window.open() to see what the result
URL actually is. A simple selfcontained "working" example of your code
online would be helpful.

Jul 17 '05 #4
Here's a working example:

<script LANGUAGE="JavaScript">
<!-- hide this script from non-javascript-enabled browsers
function open_window(url,w,h) {
var status_string =
"resizable=no,location=no,status=no,toolbar=no,scr ollbars=yes,left=10,top=10
,width="+w+",height="+h;
open(url, "_blank", status_string);
}
function open_window_menu_on(url,w,h) {
var status_string =
"resizable=no,location=no,status=no,menubar=yes,to olbar=yes,scrollbars=yes,l
eft=10,top=10,width="+w+",height="+h;
open(url, "_blank", status_string);
}
-->
</script>

<a href="javascript:open_window_menu_on('print1.php?n umber=<?php echo
$p_id_property ?>',750,800)">Print Brochure</a>

http://www.mozilla.org/docs/dom/domr...dow_ref76.html

hth,
John

"Drisco" <db******@hotmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I have been stuck for 2 days now trying to get my queries opened in
popup window with certain size, no scroll and no address bar. Here is
my link that right now opens in a _blank target

< a href="video_pop.php?GenderID=**<?php echo
$row_rs_Gender['GenderID']; ?> " target="_blank"class ="centerTa*ble">
<img src="<?php echo $row_rs_Gender['Pic1']; ?>" border="0"></a>

Any help would be much appreciated
Drisco
Jul 17 '05 #5
Hi guys,

After a long day today trying to capture network information from a
remote switch by running a "show cdp" 'Cisco descovery protocol' I was
only getting limited information from some devices and none of the
Cisco wireless access-points. After hours of frustration I then found
out the remote device was a Foundry, not a Cisco, you would think the
comand should be something like "show fdp," go figure! I don't mean
to ventilate, but I needed to get it off my chest.

Thank you very much John, you turned a bad day into a good one with
this function. It works perfectly. Bless you man!

Best regards . . . Drisco

Tex John wrote:
Here's a working example:

<script LANGUAGE="JavaScript">
<!-- hide this script from non-javascript-enabled browsers
function open_window(url,w,h) {
var status_string =
"resizable=no,location=no,status=no,toolbar=no,scr ollbars=yes,left=10,top=10
,width="+w+",height="+h;
open(url, "_blank", status_string);
}
function open_window_menu_on(url,w,h) {
var status_string =
"resizable=no,location=no,status=no,menubar=yes,to olbar=yes,scrollbars=yes,l
eft=10,top=10,width="+w+",height="+h;
open(url, "_blank", status_string);
}
-->
</script>

<a href="javascript:open_window_menu_on('print1.php?n umber=<?php echo
$p_id_property ?>',750,800)">Print Brochure</a>

http://www.mozilla.org/docs/dom/domr...dow_ref76.html

hth,
John

"Drisco" <db******@hotmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I have been stuck for 2 days now trying to get my queries opened in
popup window with certain size, no scroll and no address bar. Here is
my link that right now opens in a _blank target

< a href="video_pop.php?GenderID=**<?php echo
$row_rs_Gender['GenderID']; ?> " target="_blank"class ="centerTa*ble">
<img src="<?php echo $row_rs_Gender['Pic1']; ?>" border="0"></a>

Any help would be much appreciated
Drisco


Jul 17 '05 #6
Hi again,

I hope you guys can still look at this thread one more time. I need to
add a windows name, so all the popups show in a same windows. If you
could please show me how to add it to John's script I realy appreciate
it

Thank you so much
Drisco

Jul 17 '05 #7
Never mind guys I got it.

it was there in front of me, doh. Sorry .

John? you Rock man.....

Thank you
Best regards
Drisco

Jul 17 '05 #8

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

Similar topics

5
by: xuatla | last post by:
Hi, I encountered the following compile error of c++ and hope to get your help. test2.cpp: In member function `CTest CTest::operator+=(CTest&)': test2.cpp:79: error: no match for 'operator='...
9
by: Dom Boyce | last post by:
Hi First up, I am using MS Access 2002. I have a database which records analyst rating changes for a list of companies on a daily basis. Unfortunately, the database has been set up (by my...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
5
by: Steve Teeples | last post by:
Can someone point me to a document that clearly identifies the steps of creating a good help system for an application? I have a test tool that I'd like to add help to so that others will know how...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
8
by: skumar434 | last post by:
i need to store the data from a data base in to structure .............the problem is like this ....suppose there is a data base which stores the sequence no and item type etc ...but i need only...
16
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and...
15
by: Jay | last post by:
I have a multi threaded VB.NET application (4 threads) that I use to send text messages to many, many employees via system.timer at a 5 second interval. Basically, I look in a SQL table (queue) to...
10
by: JonathanOrlev | last post by:
Hello everybody, I wrote this comment in another message of mine, but decided to post it again as a standalone message. I think that Microsoft's Office 2003 help system is horrible, probably...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.