Taking Action on Dynamic Menu Selection
How do i get an action to take place when a menu item is
selected from a dynamic menu? I want to move to a specific record
item in my database based on the selection in the dynamic menu. Can
anyone help?
Thanks anyway. I'm sorry that Apple didn't include a "repeat" keyboard shortcut - going to the Inspector and then the actions wheel and then "delete row" time after time wasn't fun.
I'm afraid I failed to communicate well about outline format - I didn't mean a bulleted or numbered list, I do know how to do that, but rather making a single character (or in my particular interest a symbol, the diamond and heart suit symbols) appear in outline text format. You can do it by going to format->font->outline, but if I want to do it for several occurrences of the same thing (or a few different things), it's not much fun to do it that way. But maybe I can define a character format that's outline and that will work. Still would prefer to have a keyboard shortcut to apply the character format though.
Incidentally, while I'm talking about diamonds and hearts, is there any way to change the amount of space that gets put in after the diamond and heart symbols if you insert them using Edit->Special Characters? I write a lot of documents that use those symbols and lines end up unevenly spaced because of the large amount of space below each symbol (I've figured out a partial work-around - I defined a style for "body after suit symbol" that is raised enough to get the line spacing right, but that only works when I want to have a hard return at the end of the line with the suit symbols, since if the lines wrap, both lines have to have the same paragraph formatting. This problem isn't really Pages related - I have the same difficult with Word .
Similar Messages
-
Hey everyone,
On the site I am working on here http://sunsweetuk.wsiefusion.net/ you can see right away the "About Us" menu item has the selected class turned on, even though it isn't the selected page.
If you go to this page: http://sunsweetuk.wsiefusion.net/sunsweet-story you can see it turns off...However if you select any menu item after About Us the About Us item keeps the "selected" class turned on.
I cannot quite figure out what is going on here. I do have 'flexnav' js added onto this site, as it is responsive. Any help would be appreciated. Thanks.
Regards, Brian RichardsFixed this myself. Thanks.
-
How to display content dynamically base on the menu selection?
I have only one XML file to populate my menus and display the
content base on the menu selection.
If I select anything by name on the menus, example Math all
the the Math products will display on the dsFeatures region.
I use istinctOnLoad: true, distinctFieldsOnLoad:['name']
function to remove duplicate rows from the data set when it loads.
So far so good.
Once I try to select from the grades menu this does not
display anything.
I'll need to dynamically change the dsFeatures.setPath when I
click on the menus some how.
dsFeatures.setXPath("products/product[grade =
'"+???+"']/features/feature");
Below is my code.
XML used to create the menus and the display the content.
<products>
<product>
<name>Math</name>
<category>Life Math</category>
<grade type="grade">Grade 6 - 8</grade>
<subject>Life Math Grade 6 - 8</subject>
<image>images/math_icon.png</image>
</product>
<product>
<name>Math</name>
<category>Division</category>
<grade type="grade">Grade 5</grade>
<subject>Life Math Grade 5</subject>
<image>images/math_icon.png</image>
</product>
<product>
<name>Science</name>
<category>Life Math</category>
<grade type="grade">Grade 6 - 8</grade>
<subject>Life Science Grade 6 - 8</subject>
<image>images/science_icon.png</image>
</product>
<product>
<name>Social Studies</name>
<category>Studies</category>
<grade type="grade">Grade 5</grade>
<subject>Social Studies Life Grade 5</subject>
<image>images/social_icon.png</image>
</product>
<product>
<name>Language Arts</name>
<category>Life Arts</category>
<grade type="grade">Grade 3 - 4</grade>
<subject>Life ArtsGrade 3 - 4</subject>
<image>images/language_icon.png</image>
</product>
</products>
// Get all the products data and use distinct() to filter the
names.
var dsProducts = new
Spry.Data.XMLDataSet("included/d_products.xml",
"/products/product", { useCache: false, distinctOnLoad: true,
distinctFieldsOnLoad:['name']});
// Get the menu by grade using distinct()
var dsByGrade = new Spry.Data.XMLDataSet(null,
"/products/product/grade", { useCache: false, distinctOnLoad: true,
sortOnLoad: "grade", distinctFieldsOnLoad:['grade'] });
// Create the dsFeatures data set, pass a null for the URL
parameter so that it doesn't load
var dsFeatures = new Spry.Data.XMLDataSet(null,
"/products/product[name = '{dsProducts::name}']/features/feature",
{ useCache: false });
// Define a function that to register as an observer on
dsProducts.
function updateCategoriesAndFeatures(notificationType,
notifier, data)
// Interested in "onPostLoad" notifications.
// If it is any other notification, just bail.
if (notificationType != "onCurrentRowChanged" &&
notificationType != "onPostLoad")
return;
// Received an "onPostLoad" or "onCurrentRowChanged
notification
// from dsProducts! Ask it for its XML document. If it has
one, tell
// dsFeatures to extract its data from that document.
var doc = dsProducts.getDocument();
if (doc)
if (notificationType == "onPostLoad")
dsByGrade.setDataFromDoc(doc);
dsFeatures.setDataFromDoc(doc);
// Register the function as an observer on dsProducts.
dsProducts.addObserver(updateCategoriesAndFeatures);
Menus:
Display by names:
<ul spry:region="dsProducts" id="nameRegion">
<li class="product" spry:repeat="dsProducts"
spry:setrow="dsProducts" spry:select="selected" spry:hover="hover"
>{name}</li>
</ul>
Display by grades:
<ul spry:region="dsByGrade" id="gradeRegion">
<li class="grade " spry:repeat="dsByGrade"
spry:setrow="dsByGrade" spry:select="selected" spry:hover="hover"
>{grade}</li>
</ul>
Content.
Display the features content:
<ul spry:region="dsFeatures">
<li spry:repeat="dsFeatures">{subject} <br />
{image}</li>
</ul>
Any idea on how to go about this or pointer to an example
would be appreciated.
~CheersDoes anybody have idea?
-
Retract Action Menu Selection for EQ - Does this require configuration?
We are currently on version 6.1.0.1 - under the eQ action menu of a sent eQ is the "Retract" action. When I select this action for an "InProgress eQ", nothing happens and the eQ status does not change.
When I searched the configuration, navigation, administrator, and eQ documentation, I did not find any information on the RETRACT action until release 6.1.1.x
I would like to figure out how to configure this action in my current version. Is there any information that is not in the 6.1.0 documentation that I can use to make this action menu seletion work as expected?Hi Beckie,
This is a Known issue, 'Retract' function is not supported in 6.1.0.x version. Sorry to bring any confusion. We will remove this button in later release of 6.1.0.x.
However, this function is fully supported in 6.1.1.x version. so please try on 6.1.1.x server.
Thanks,
Jessie
Edited by: Jessie C on Mar 5, 2013 2:59 AM -
Dynamic menu in tree structure in JSP
Hi,
1) I need to display a dynamic menu in JSP. The menu depends on the values received from database. I need to show the items in the structure of tree (like parents, child relation). The tree can have multiple levels (the parent can have children & these children too can have children). This tree structure would be on left side of the screen.
I would like to use some custom tags rather than javascript. Can somebody post the custom tags or some samples?
2) Also, once the user selects different items from menu, different action classes should be called. And accordingly, the right side of the screen will show different data.
So, there should be any way to set different action classes for the menu items. Please post any samples or helpful links.Hi,
1) I need to display a dynamic menu in JSP. The menu depends on the values received from database. I need to show the items in the structure of tree (like parents, child relation). The tree can have multiple levels (the parent can have children & these children too can have children). This tree structure would be on left side of the screen.
I would like to use some custom tags rather than javascript. Can somebody post the custom tags or some samples?
2) Also, once the user selects different items from menu, different action classes should be called. And accordingly, the right side of the screen will show different data.
So, there should be any way to set different action classes for the menu items. Please post any samples or helpful links. -
PHP: Dynamic Menu/List
I have a database that has a bunch of locations and I have
created a page using PHP that has a Dynamic Menu/list that pulls
the locations. Users have the option to select a location and
perform a search returning information. My problem is, I want to
create an option "Search All Locations." I have tried every special
character that I can think of and all results bring back nothing. I
am using Dreamweaver 8. I have pasted some of my code below:
<form id="form1" name="form1" method="get"
action="resultslocations.php">
<label></label>
<p>
<label>
<select name="neighborhood_list"
id="neighborhood_list">
<option value=""%"">Search by
Neighborhood</option>
<?php
do {
?>
<option value="<?php echo
$row_Location['Location']?>"><?php echo
$row_Location['Location']?></option>
<?php
} while ($row_Location = mysql_fetch_assoc($Location));
$rows = mysql_num_rows($Location);
if($rows > 0) {
mysql_data_seek($Location, 0);
$row_Location = mysql_fetch_assoc($Location);
?>
</select>
</label>
</p>
<p>
<label>
<input name="neighborhood_submit" type="submit"
id="neighborhood_submit" value="Submit" />
</label></p>
</form>Here's the code again, it seems it was cut off.
<?php
require_once('../../Connections/ResturantsDatabase.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
: $theValue;
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) :
mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
"'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
return $theValue;
mysql_select_db($database_ResturantsDatabase,
$ResturantsDatabase);
$query_Location = "SELECT Location FROM Locations ORDER BY
Location ASC";
$query_LocationFindAll = "Select * FROM Locations ORDER by
Location ASC";
$resultalllocations=mysql_query($query_LocationFindAll);
$Location = mysql_query($query_Location, $ResturantsDatabase)
or die(mysql_error());
$row_Location = mysql_fetch_assoc($Location);
$totalRows_Location = mysql_num_rows($Location);
mysql_select_db($database_ResturantsDatabase,
$ResturantsDatabase);
$query_Cuisine = "SELECT * FROM Cuisine ORDER BY Cuisine
ASC";
$Cuisine = mysql_query($query_Cuisine, $ResturantsDatabase)
or die(mysql_error());
$row_Cuisine = mysql_fetch_assoc($Cuisine);
$totalRows_Cuisine = mysql_num_rows($Cuisine);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Wigz Menu Venu Homepage</title>
<script src="../../Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
<style type="text/css">
<!--
body {
background-image:url(../images/background.jpg);
background-repeat:repeat-x repeat-y;
background-position:top left;
a:link {
color:#FFFFFF;
text-decoration:none;
</style>
<link href="navigation_menu_class.css" rel="stylesheet"
type="text/css" />
</head>
<body>
<table width="70%" height="522" align="center"
bgcolor="#FFFFFF">
<tr>
<td height="206" colspan="2" valign="top"><div
align="center">
<table width="100%" border="0">
<tr>
<td width="80%"><div align="left"><img
src="../images/logo2.png" width="613" height="192" alt="Wigz Menu
Venue Logo" /></div></td>
<td width="20%" align="right" valign="top"><img
src="../images/menu2.jpg" alt="menu2" width="277"
height="201"/></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td width="20%" height="270" valign="top"
background="../images/menu_back.jpg"><div id="navigation">
<ul>
<li><a href="search.php">Browse
Menus</a></li>
<li><a href="#">Home</a></li>
<li><a
href="advertise.php">Advertise</a></li>
<li><a
href="recommendations.php">Recommendations</a></li>
<li><a href="media.php">Media
Kit</a></li>
<li><a href="map.php">Site
Map</a></li>
<li><a href="about.php">About
Us</a></li>
<li><a href="contact.php">Contact
Us</a></li>
</ul>
</div></td>
<td width="80%" valign="top"><table width="100%"
border="0" background="../images/background.jpg">
<tr>
<td width="50%"><div id="browsebyheaders">Browse
by Neighborhood</div></td>
<td width="50%"><div id="browsebyheaders">Browse
by Cuisine </div></td>
</tr>
</table>
<table width="70%" border="0" align="center">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2"><font size="+2"><b>Wigz
Menu Venu.com </b></font> is your one-stop-shop to
locate resturants, menus, and bars in the Arlington, VA region.
Here you will be able to find your favorite resturant's contact
information along with viewing or downloading their current menu.
To begin your search, select one of the two search options below.
You may search by neighborhood or by food cuisine. </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="50%"><div align="center">
<form id="form1" name="form1" method="get"
action="resultslocations.php">
<label></label>
<p>
<label>
<select name="neighborhood_list"
id="neighborhood_list"></label>
<option value=""SearchALL""><Search by
Neighborhood></option>
IF (option value=="SearchALL")
{<?php echo$resultalllocations ?>
while ($row_Location = mysql_fetch_assoc($Location));
$rows = mysql_num_rows($Location);
if($rows > 0) {
mysql_data_seek($Location, 0);
$row_Location = mysql_fetch_assoc($Location);
?>
<?php
do {
?>
<option value="<?php echo
$row_Location['Location']?>"><?php echo
$row_Location['Location']?></option>
<?php
} while ($row_Location = mysql_fetch_assoc($Location));
$rows = mysql_num_rows($Location);
if($rows > 0) {
mysql_data_seek($Location, 0);
$row_Location = mysql_fetch_assoc($Location);
?>
</select>
</label>
</p>
<p>
<label>
<input name="neighborhood_submit" type="submit"
id="neighborhood_submit" value="Submit" />
</label></p>
</form>
</div></td>
<td width="50%"><div align="center">
<form id="form2" name="form2" method="get"
action="resultscuisine.php">
<label>
<select name="cuisine_list" id="cuisine_list">
<option value="'Cuisine'LIKE'*'">Search by
Cuisine</option>
<?php
do {
?><option value="<?php echo
$row_Cuisine['Cuisine']?>"><?php echo
$row_Cuisine['Cuisine']?></option>
<?php
} while ($row_Cuisine = mysql_fetch_assoc($Cuisine));
$rows = mysql_num_rows($Cuisine);
if($rows > 0) {
mysql_data_seek($Cuisine, 0);
$row_Cuisine = mysql_fetch_assoc($Cuisine);
?>
</select>
</label>
<label>
<br />
<br />
<input name="cuisine_submit" type="submit"
id="cuisine_submit" value="Submit" />
</label>
</form>
</div></td>
</tr>
</table>
<p> </p></td>
</tr>
</table>
<blockquote> </blockquote>
</body>
</html>
<?php
mysql_free_result($Location);
mysql_free_result($Cuisine);
?> -
How to call an action when the user selects a radiobutton
Hai
PLease help me in providing the information.
In my Project i have two radio buttons as
New
Asssessment
when the user selects new button, i want to automatically call an action in the controller(.jpf file)
Simalarly when he selects the other radio button i need to call a separate action in the controller.
Remember i dont have the submit button.
I want to dynamically call an action when the user selects the radio button.
i dont have any field inthe radio button which actually takes action as an attribute .
please provide me the necessaryHi,
You can use JavaScript to call the action in interest upon the Radio Button Element Being Selected.Should be simple, and if your controller is part of the portlet dont forget to use the jpfScopeId to asscoiate the controller instance with the one in the portlet.
Let me know if you have any further questions. -
Problem with invoking an Action in a Menu...
I wanted to make a program that would create a box of rectangles and have each rectangle change color when clicked.
I want the user to be able to decide which color you want the rectangle to be. I put choices in a menu.
However whenever an option is selected from the menu, I get exceptions:
Exception occurred during event dispatching:
java.lang.NullPointerException
at ShapeTest$ColorAction$ColorThread.run(ShapeTest.java:142)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
The code is displayed below. Am I missing something with the Swing thread? Please help.
Josh
import javax.swing.*;
import java.awt.*;
import java.awt.geom.*;
import java.awt.event.*;
// This Rectangle knows it's particular color
class ColorRectangle extends Rectangle2D.Float
private Color color;
public ColorRectangle( float x, float y, float w, float h, Color c )
super( x, y, w, h );
color = c;
public ColorRectangle( float x, float y, float w, float h)
super( x, y, w, h );
color = Color.white;
public void setColor( Color c )
color = c;
public Color getColor()
return color;
} // end ColorRectangle class
This is the main frame.
public class ShapeTest extends JFrame
private ShapeTestPanel panel;
public ShapeTest()
setTitle( "ShapeTest" );
setSize( 500, 500 );
setDefaultCloseOperation( EXIT_ON_CLOSE );
JPanel panel = new ShapeTestPanel();
Container cp = getContentPane();
cp.add( panel, BorderLayout.CENTER );
// Set up the menu
JMenuBar mb = new JMenuBar();
JMenu mColor = new JMenu( "Color" );
mColor.setMnemonic( KeyEvent.VK_C );
// Adding the actions to the menu
mColor.add( new ColorAction("Blue", Color.blue, KeyEvent.VK_B) );
mColor.add( new ColorAction("Green", Color.green, KeyEvent.VK_G) );
mColor.add( new ColorAction("Red", Color.red, KeyEvent.VK_R) );
mColor.add( new ColorAction("White", Color.white, KeyEvent.VK_W) );
mb.add( mColor );
setJMenuBar( mb );
} // end ShapeTest constructor
public static void main( String [] args )
JFrame frame = new ShapeTest();
frame.setVisible( true );
This action inner class will be added to the menu to change the main color
of the panel.
class ColorAction extends AbstractAction
private Color color;
private ColorThread thread; // this is used to change panel color
public ColorAction( String name, Color c, int keyEvent )
putValue( NAME, name );
putValue( MNEMONIC_KEY, new Integer(keyEvent) );
color = c;
thread = new ColorThread();
Here I want to change the main color of the panel, so that
clicking on a rectangle will now display a different color.
public void actionPerformed( ActionEvent evt )
I tried to just call the function panel.setMainColor( color ).
EXCEPTION!!!
I tried to make the mainColor variable public and access it.
EXCEPTION!!!
I tried to use SwingUtilities.invokeLater( thread ).
EXCEPTION!!!
I tried to use SwingUtilities.invokeAndWait( thread );
EXCEPTION!!!
try
SwingUtilities.invokeLater( thread );
catch ( Exception ex )
System.out.println( ex );
} // end actionPerformed( evt )
// Inner class of an inner class
class ColorThread extends Thread
public void run()
panel.setMainColor( color );
// panel is a member of the frame.
} // end ColorThread class
} // end ColorAction class
} // end ShapeTest class
class ShapeTestPanel extends JPanel
private Rectangle2D bigRect; // the outer rectangle
private ColorRectangle [][] araRects; // the inner rectangles
public Color mainColor = Color.blue; // will change inner rectangle
// color on mouseClicked
public ShapeTestPanel()
int x = 10;
int y = 10;
// Make the outer rectangle
bigRect = new Rectangle2D.Double( x, y, 401, 401 );
// Make the inner rectangles
araRects = new ColorRectangle [4][4];
int i, j;
for ( x = 11, i = 0; i < araRects.length; i++, x += 100 )
for ( y = 11, j = 0; j < araRects.length; j++, y += 100 )
araRects[i][j] = new ColorRectangle( x, y, 99, 99 );
addMouseListener( new ShapeTestMouseListener() );
} // end ShapeTestPanel constructor
// This will change the main color for clicking
public void setMainColor( Color c )
mainColor = c;
// Draw the outer rectangle and the inner rectangles in the right color
public void paintComponent( Graphics g )
super.paintComponent( g );
Graphics2D g2 = (Graphics2D)g;
g2.draw( bigRect );
for ( int i = araRects.length - 1; i > -1; i-- )
for ( int j = araRects[i].length - 1; j > -1; j-- )
g2.setPaint( Color.black );
g2.draw( araRects[i][j] );
g2.setPaint( araRects[i][j].getColor() );
g2.fill( araRects[i][j] );
} // end paintComponent( Graphics g )
// I want the color to change when someone clicks on a rectangle
class ShapeTestMouseListener extends MouseAdapter
public void mouseClicked( MouseEvent evt )
Point p = evt.getPoint();
for ( int i = araRects.length - 1; i > -1; i-- )
for ( int j = araRects[i].length - 1; j > -1; j-- )
if ( araRects[i][j].contains(p) )
araRects[i][j].setColor( mainColor );
repaint();
return;
} // mouseClicked( MouseEvent )
} // end ShapeTestMouseListener class
} // end ShapeTestPanelreplace the following line
JPanel panel = new ShapeTestPanel();
with
this.panel = new ShapeTestPanel(); in the ShpaeTest constructor -
Dynamic List Selection as a Parameter in another Recordset
Please help.
I have an ASP VBScript webpage. The first field on this page
is a dynamic menu / list which lists footballers from a recordset.
Whichever player is selected I then want to populate additional
fields on the page (e.g. team he plays for) based on the selection.
I was trying to extract the field value to a variable MM_Var6
= Cstr(Request.Form(("PlayerName2")) and then use MM_Var6 in the
WHERE statement of an additional recordset e.g. WHERE
Teams.Playername = MM_Var6
but can't help feeling there has to be an easier way of
getting the data from the table rather than using an additional
recordset. The above way doesn't seem to extract the value
correctly from the list field.
Am I just using the wrong syntax? or is there a better way of
doing this?
Can someone please point me in the right direction? Thanks,
Chris.Try below:
http://blogs.msdn.com/b/jackiebo/archive/2007/02/27/displaying-a-list-on-another-site-in-the-same-site-collection.aspx
http://sharepointgeorge.com/2009/display-sharepoint-list-site-data-view-web-part/
http://sharepoint.stackexchange.com/questions/37140/display-list-or-library-on-another-site-as-webpart
http://stackoverflow.com/questions/938580/showing-the-list-view-web-part-for-a-list-in-another-site -
Dynamic bandwidth selection for PPPoE over Ethernet/VLAN
Hello all, hope you are doing great.
I'm planning to deploy PPPoE Server (Cisco Router 7609) for a ISP. This ISP will provide Internet connection for customer over Ethernet.
I have to provide a solution to assign bandwidth to each customer by RADIUS and I find some clues that Dynamic Bandwidth Selection (DBS) should be the answer. Unfortunately, DBS only support PPPoA or PPPoE over ATM.
If you have any experience with equivalent function, please help me. Thank you very much.
Regards,
Hiep Nguyen.Hiep,
I think I have figured this out. Here is the test config on my PPPoE server:
int lo1
ip address 172.25.25.25 255.255.255.255
ip radius source-interface Loopback1
aaa new-model
radius-server host 172.16.1.55 auth-port 1812 acct-port 1813 key cisco$$$
aaa group server radius RADIUS-ACT
server 172.16.1.55 auth-port 1812 acct-port 1813
aaa authentication login default group RADIUS-ACT local
aaa authorization exec default group RADIUS-ACT local
aaa accounting exec default start-stop group RADIUS-ACT
aaa accounting delay-start
aaa authentication ppp default if-needed group RADIUS-ACT local
aaa authorization network default group RADIUS-ACT local
aaa accounting network default start-stop group RADIUS-ACT
aaa accounting update periodic 5
bba-group pppoe global
virtual-template 1
interface fa0/1
pppoe enable group global
ip address 172.30.0.1 255.255.0.0
no shut
interface Virtual-Template1
mtu 1492
ip unnumbered FastEthernet0/1
peer default ip address pool GLOBALPOOL
ppp authentication chap
ip local pool GLOBALPOOL 172.30.0.2 172.30.127.255
policy-map POLICE-128K
class class-default
police 128000
policy-map POLICE-512K
class class-default
police 512000
Here are the attributes on the radius server, for a group the PPPoE customer belonged to:
Service-Type = Framed
Framed-Protocol = PPP
cisco-avpair="ip:sub-policy-In=POLICE-128K"
cisco-avpair+="ip:sub-policy-Out=POLICE-512K"
Here is the show policy-map on the virtual-access interface the client connected on:
sho policy-map int virtual-a 3
Virtual-Access3
Service-policy input: POLICE-128K
Class-map: class-default (match-any)
1000 packets, 1402000 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
police:
cir 128000 bps, bc 4000 bytes
conformed 799 packets, 1120198 bytes; actions:
transmit
exceeded 201 packets, 281802 bytes; actions:
drop
conformed 0 bps, exceed 0 bps
Service-policy output: POLICE-512K
Class-map: class-default (match-any)
911 packets, 1137746 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
police:
cir 512000 bps, bc 16000 bytes
conformed 799 packets, 1136178 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps
I was able to generate enough traffic with ping to meet the exceed action in and have it drop packets. -
How do I make a drop down menu selection show up in another web page?
What I am trying to accomplish is this. I have a page with various drop down menu selections that I want to transfer the selection to a secured web page. What happens now is once the selection is made it goes to the secure page but then the user has to again select the choice again. Is there way to keep the selection chosen in the linked page?
You can set the "selected" value in the second page based on the input from the first page.
Ignor the language referance used below for the example and simple use the concept with your desired language.
Second Page form:
<form id="form1" name="form1" method="post" action="">
<select name="testing" id="testing">
<option value="Value 1" <% if ( Passed values == Value 1 ) { %>selected="selected"<% } %>>Lable 1</option>
<option value="Value 2" <% if ( Passed values == Value 2 ) { %>selected="selected"<% } %>>Lable 2</option>
</select> -
Adding a dynamic menu to a template
Can somebody tell me what I'm doing wrong please?
I have created a menu, I want to add it to a template (this template already has a dynamic menu which I added to it by the way, in case it's important to the answer).
I have selected the Template and have it ready to edit or do whatever next to it.
I thought the next step was to select "add modules to Template" and then I would get a panel appear on th right hand side with further options to select the menu I want and then go through the insert proceedure.
But nothing happens when I click on "add modules to Template".
I already have one menu on the page, I've done it once already, but for some reason it's not working any more. Or have I just completely forgotten what the correct steps are.
Yes I have researched and googled but I keep getting answers that just tell me how to create a menu or modify a template, or something other than what I need to know.
Cheers for any help.
GrantOkaaaaaaaaaaaaaaaaaaaaaaaaaay. So now it's working.
So if you experience the same problem, here's what happened and how I resolved the problem.
I closed the browser, started up again and tried adding a menu to a page using "Add modules to a web page" - it worked, but then BC still wouldn't let me have access to the "Add modules to Templates" button a second time when I tried it with the template - just wouldn't work. So, I shut the browser again but this time loaded the template and tried adding the the module to the template using the button, and it worked.
So I'm guessing that this is a bug that needs to be sorted Adobe? -
Hi,
I have to make a menu just like www.staple.com in my JSP. The main product category and sub-category are read from the database. I have classes written which retrieve the product and sub categories but dont know hot to proceed with building of dynamic menu in my JSP. Please let me know how to move forward for this one.
ThanksHi,
I tried to do something like this :
*******CODE*******
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@taglib uri="/struts-tags" prefix="s"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<style type="text/css">
body {
font-family: arial, helvetica, serif;
#nav, #nav ul { /* all lists */
padding: 0;
margin: 0;
list-style: none;
float : left;
width : 11em;
#nav li { /* all list items */
position : relative;
float : left;
line-height : 1.25em;
margin-bottom : -1px;
width: 11em;
#nav li ul { /* second-level lists */
position : absolute;
left: -999em;
margin-left : 11.05em;
margin-top : -1.35em;
#nav li ul ul { /* third-and-above-level lists */
left: -999em;
#nav li a {
width: 11em;
w\idth : 10em;
display : block;
color : black;
font-weight : bold;
text-decoration : none;
background-color : white;
border : 1px solid black;
padding : 0 0.5em;
#nav li a:hover {
color : white;
background-color : black;
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
left: -999em;
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul { /* lists nested under hovered list items */
left: auto;
#content {
margin-left : 12em;
</style>
<script type="text/javascript">
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls.onmouseover=function() {
this.className+=" sfhover";
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
</head>
<body>
<ul id="nav">
<s:iterator value="productList" id="products">
<li> <s:url id="getProductCategoryCodesURL" action="listProductCategoryCodesByProductCd">
<s:param name="productCd" value="%{productCd}"></s:param>
</s:url>
<s:a href="%{getProductCategoryCodesURL}" ><s:property value="productNm" /></s:a>
<input type="hidden" id="prodCd" value="<s:property value="productCd" />"/>
</li>
</s:iterator>
</ul>
</body>
</html>
****END CODE******
So i was able to get the product categories in the menu but on mouse hover for a particular product category it should show sub-categories also. I can't think of a way to do that , can anyone please suggest ? -
Dynamic Menu error when saving to Crystal Reports Server R2 & Developer XI
Hi All
Product Version 11.5.9.1076
In Crystal Reports XI developer I installed SP 4 the other day and when I save a report to the reporting server it seems to corrupt the dynamic menu when we open the report in the info view page the first selection in the cascading menu is OK but when I select items from the first menu it is just populating the second select box with what I selected in the first box
I have it set to multiple
If I run the report in the developer the menu selection work OK ?
Also is any one else having a problem in the developer when selecting a date in using the calendar?
The error is file://C:\Documents and Settings\simon hardstaff\Local Settings\Temp\prompting1.html
Many thanks for any support givenJust to update
SP4 CR XI R2 seems to be changing some Date Parameters from Date to DateTime has any one else installed SP4 and using CR Server ? -
File Upload/Menu Select Option
I have a form that needs to have a combination of a file
upload or a menu select option. The client I have been
working with wants to use an insert form to insert a new
record. If the file that they want doesn't have the filename
their looking for in the menu list, they want to use the
option of uploading a file. I'm having trouble combining the
processing script for this and was wondering if anyone can
help me put this together; it's an interesting challenge.
PHP:
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" .
htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) &&
($_POST["MM_insert"] ==
"form1")) {
define('UPLOAD_DIR', '../../photos/staff/');
$file = str_replace(' ', '_',
$_FILES['staff_photo']['name']);
$permitted = array('image/gif', 'image/jpeg',
'image/pjpeg', 'image/png');
$typeOK = false;
foreach ($permitted as $type) {
if ($type == $_FILES['staff_photo']['type']) {
$typeOK = true;
break;
if ($typeOK) {
switch($_FILES['staff_photo']['error']) {
case 0:
if (!file_exists(UPLOAD_DIR.$file)) {
$success =
move_uploaded_file($_FILES['staff_photo']['name'],
UPLOAD_DIR.$file);
if ($success) {
$insertSQL = sprintf("INSERT INTO staff (staff_name,
staff_position, staff_subposition, staff_desc, staff_photo,
staff_spec_1, staff_spec_2, staff_spec_3, staff_spec_4,
staff_spec_5) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s,
%s)",
GetSQLValueString($_POST['staff_name'], "text"),
GetSQLValueString($_POST['staff_position'], "text"),
GetSQLValueString($_POST['staff_subposition'], "text"),
GetSQLValueString($_POST['staff_desc'], "text"),
GetSQLValueString($_POST['staff_photo'], "text"),
GetSQLValueString($_POST['staff_spec_1'], "text"),
GetSQLValueString($_POST['staff_spec_2'], "text"),
GetSQLValueString($_POST['staff_spec_3'], "text"),
GetSQLValueString($_POST['staff_spec_4'], "text"),
GetSQLValueString($_POST['staff_spec_5'], "text"));
mysql_select_db($database_wvgsadmin, $wvgsadmin);
$Result1 = mysql_query($insertSQL, $wvgsadmin) or
die(mysql_error());
if ($Result1) {
$insertGoTo = "staff_list.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
} else {
$result = "Error uploading $file. Please try again.";
break;
case 3:
$result = "Error uploading $file. Please try again.";
default:
$result = "System error uploading $file. Contact
webmaster.";
} else {
$result = "$file cannot be uploaded. Acceptable file
type: .gif, .jpf, .png";
HTML FORM:
<form method="post" name="form1"
enctype="multipart/form-data" action="<?php echo
$editFormAction; ?>">
<table width="80%" align="center" cellspacing="0"
border="0">
<tr valign="baseline">
<td nowrap align="right">Select Photo:</td>
<td><select name="staff_photo">
<option selected="selected"></option>
<?php buildImageList('../../photos/staff/'); ?>
</select>
<span class="small"> (If
there is no photo
available, please choose 'No-Phot-Available.jpg' or 'No
photo')</span></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Upload Photo: </td>
<td><input name="staff_photo" type="file" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right"> </td>
<td><input type="submit" value="Insert
record"></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1">
<input name="staff_photo" type="hidden" id="staff_photo"
/>
</form>In this case, I think you might need to
1) Create a transient attribute in the VO.
2) Either create a method in AM to get the file id based on the attachment entity name/id(using PL/SQL) and set the view attribute accordingly
or call a PL/SQL procedure to get the file id in the getter method of the transient attribute.
Look at this forum entry to get the file id.
How to display Attachments on OAF page for different entities
Regards,
Peddi.
Maybe you are looking for
-
I am digitizing from a Sony HDV-FX! using the stard HDV 1080i/60 compression and am experiencing Low image quality with gradations of large smooth backgrounds. Even if I Blur/Gausian the compression band won't go away the footage still looks heavily
-
Select employee id from ldap server
Hello Everyone, I don't know LDAP. Because of sorry. If I say about my question incorrectly, please correct and ask me. I use authentication LDAP server in my APEX application. Employees have username, password and employee_id. Firstly, employee entr
-
How to reset the Apple ID security questions?
When applying for an apple ID I was asked to answer the three security quesitons in German! If I now try to answer these questions I'm always asked in English and the server doesn't accept my answers! Does somebody have a hint for me? I'm actually no
-
Hello, I'm really interested in buying a Passport, but it seems I can't find actual evidence on the Internet whether Japanese language input is natively supported by its 10.3 os. I don't have access to a physical Passport in department stores, so I c
-
I'm not seeing Numbers in order to update ... ?
Hi! I upgraded to Mavericks a few hours ago, and both keynote and pages updated. However, Numbers has not. I went to the app store and see "19.99" for numbers as opposed to "installed." Any ideas what's going on here ? Thanks!!!