Adobe Dreamweaver Forums



Last 10 THreads :         RoboHelp hanging (Last Post : shawntrident - Replies : 6 - Views : 7 )           »          RoboHelp & Knowledge Bases (Last Post : Captiv8r - Replies : 3 - Views : 4 )           »          Re: export image in D11 (Last Post : DAVID NAJAR - Replies : 1 - Views : 2 )           »          Cannot import audio into Captivate 3.0 (Last Post : ebowman77 - Replies : 2 - Views : 3 )           »          Dreamweaver MX vs Dreamweaver 4 (Last Post : bw75 - Replies : 0 - Views : 1 )           »          this will come in handy here. (Last Post : P@tty Ayers ~ACE - Replies : 9 - Views : 10 )           »          Seeking advise on flv in Captivate 3 (Last Post : 9060 - Replies : 0 - Views : 1 )           »          Global variables (Last Post : jfb00 - Replies : 0 - Views : 1 )           »          catching errors from remotely invoked processes (Last Post : Cr99 - Replies : 4 - Views : 5 )           »          Dreamweaver CS4 Beta Uninstaller? (Last Post : _Burn_ - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Application Development
 
Tags: , , ,



Reply
  #1 (permalink)  
Old 08-27-2008, 06:43 PM
jlig
 
Posts: n/a
Diggs:
Default How to Change Spry Menu Links

I have a Spry Horizontal Menu on my page, and have a few questions on creating
customized Links:
- I know how to add a Link to my Reports, Pages, etc using the Link Properties
box
- I also know how to open the Link in a _blank page using the Target property
box

But

- How do I change the Menu Link in code to open my new page in a smaller, new
window?
(Right now, the TicketSummaryAcct.cfm page opens up fine, in a new
"full-sized" window)

Here is the code currently listed under that Menu button:

--------------------------------------------------------------------------------
-
[LI]<a href ="reports/TicketSummaryAcct.cfm" title="Click here to print the
report by Account Number to PDF" target=>_blank">by Acct# Prompt</a></li>

--------------------------------------------------------------------------------
-

Thanks,
jlig



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-27-2008, 08:20 PM
saviornt
 
Posts: n/a
Diggs:
Default Re: How to Change Spry Menu Links

In the header of the webpage:

<script type="text/javascript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "',
'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=350,h
eight=300');");
}
</script>

in the link section:

javascriptopUp('reports/TicketSummaryAcct.cfm')

don't use a target attribute, as it will break the javascript in my experience.

Reply With Quote
  #3 (permalink)  
Old 08-27-2008, 08:42 PM
jlig
 
Posts: n/a
Diggs:
Default Re: How to Change Spry Menu Links

Thank you saviornt,
That is exactly what I was looking for.

I noticed I could change the resizable=0 to a 1 (to allow the user to resize
if necessary)
I also wondered if there is an attribute to make it "Stay on Top of other
windows?" or make it Modal?

Thanks for the excellent tip!
jlig

Reply With Quote


  #4 (permalink)  
Old 08-28-2008, 05:51 PM
saviornt
 
Posts: n/a
Diggs:
Default Re: How to Change Spry Menu Links

for the print button, just use a

onClick="window.close()"

If you want it to stay on top of the other windows, you can also do a hidden /
visible DIV. I've had limited success (namely I can't figure out how to
position it relative to a users computer screen size).

Reply With Quote
  #5 (permalink)  
Old 08-28-2008, 09:25 PM
jlig
 
Posts: n/a
Diggs:
Default Re: How to Change Spry Menu Links

Thanks for the excellent help.
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk