Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old November 4th, 2005, 12:14 PM
jleampark jleampark is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 jleampark User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
iframe / onClick="MM_openBrWindow" question

Hello, all...

I have an index page with a side menu. One of the items in the side menu is an iframe which calls another page (written in php). This other page accesses a MySQL database and displays all the supervisors who are out of the office (and who to contact in their absence).

The iframe sets the height and width so that it fits neatly into the menu table:

<iframe src="absencemakestheheartgrowfonder2.php" width="100%" height="80" scrolling="auto"></iframe>

However, I want to find SOME way to set the size of the window which opens (absencemakestheheartgrowfonder2.php).

If this was not an iframe but a simple hyperlink, I could use the onClick:

<a href="#" onClick="MM_openBrWindow('absencemakestheheartgrowfonder3.p hp','Out','scrollbars=yes,resizable=yes,width=450, height=250')">Out of the Office</a>

to define how large of a window to open (450 X 250) and what the window looks like (scrollbars, resizable).

But, is there any way to do this within the <iframe> ?!?!?

Please and thank you!

Joe

Reply With Quote
  #2  
Old November 4th, 2005, 02:09 PM
jleampark jleampark is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 jleampark User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: iframe / onClick="MM_openBrWindow" question

I also tried to call a different php page from the index page and open that one with the onClick but it doesn't want to work. Maybe my syntax is wrong...?

php Code:
Original - php Code
  1.  
  2. if ($num==0) {
  3.              echo "No one is out of the office today.";
  4.              }
  5. if ($num<>0) {
  6.              echo "<a href='#' onClick='MM_openBrWindow('absencemakestheheartgrow  fonder3.php','Out','scrollbars=yes,resizable=yes,w  idth=450,height=150')'>", "The following people are out of the office today:", "</a>", "<br />";
  7.               }


Thoughts? Suggestions?

Reply With Quote
  #3  
Old November 4th, 2005, 02:30 PM
jleampark jleampark is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 jleampark User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: iframe / onClick="MM_openBrWindow" question

Never mind... I got it

I used an include file on the index page:

php Code:
Original - php Code
  1.  
  2. <tr>
  3.           <td height="25" valign="top"><div align="center"><? include ('http://cww.census.gov/econdev/directorate/absent/absencemakestheheartgrowfonder1.php'); ?></div></td>
  4.         </tr>


which in turn called a php page that used an onClick:

php Code:
Original - php Code
  1.  
  2. if ($num==0) {
  3. echo "No one is out of the office today.";
  4. }
  5. if ($num<>0) {
  6. echo "<a href='#' onClick="MM_openBrWindow('absencemakestheheartgrowfonder3.p  hp','Out','scrollbars=yes,resizable=yes,width=450,  height=200')">", "The following people are out of the office today:", "</a>", "<br />";
  7. }


and I saw that I needed to use to make the onClick run correctly:

onClick=" ... ">",


Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > iframe / onClick="MM_openBrWindow" question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway