Using Checkboxes in spry:detailregion
I like the visual effect and ease of use that checkboxes in a
multiple select box provide. Example code for what I mean is below
(this css is for Firefox by the way, it renders uglier in IE but I
use another css for that anyway):
Hi,
can you please just paste the code you give us without
escaping? It is very hard to follow the code you give us.
If you have a link, also is very helpful.
Thanks,
Diana
Similar Messages
-
How use Spry detailregion inside script ?
Hi everybody, someone can help me how can i do that work ? I am trying to send information to Flickr API to create image galleries with information from my database...
<div id="content2" spry:detailregion="ds1">
<script src="badge.js" type="text/javascript"></script>
<script src="http://api.flickr.com/services/feeds/photos_public.gne?id=23366962@HU5&tags={ds1::flickr}&format=json" type="text/javascript"></script>
</div>
Thank YOU !!!!OK... nobody yet...
I am trying something different now using PHP, but still not getting what i want:
<?php $recentPhotos = $gallery->findRecentPhotos(30,?> {ds1::url}<?php ); ?>
Someone can help me in that ?
Thanks !!! -
Spry:detailregion confusion
So I've manage to adapt what I learnt in my previous question to a web site that I am just messing with (http://pbox.mine.nu/R/MyR.html). I've looked at other examples of how to use the detailregion and using it with spry:setrow() but I think i'm missing something simple because its just not working. What should happen is a dynamicly populated accordian on the left (Check). When clicking one of these the detailregion should update to display the text/html that is in the xml file. Thats not working. Any help would be appreciated.
Spry 1.6.1
Browser: Mozilla, Google Chrome, IE 8
P.S. As much as a answer is nice if anyone can explain to me what I did wrong I would appreciate it. Would rather know what i'm doing wrong then getting an answer.Okay figured it out... seems white text on a white background isn't a good combination
-
ERROR: spry:region or spry:detailregion attribute has no data set!
here's the basics...
i'm running fusebox for php (if that makes any difference)
i'm also reusing the same gallery for multiple fuseactions,
and using my circuit.xml file to set the var $gallery
depending on which fuseaction has been called.
the photos already exist in a database and full size and
thumbs have already been created by imagemagick
i plan on writing a script that uses imagemagick to get the
dimensions of the imagefiles and saves them to four respective new
columns in my db table (so i hope the problem isn't related to the
height attributes not being set in my xml.... let's hope it's
somthing else, ok?)
i'm creating my datasets like this
quote:
var dsGallery = new Spry.Data.XMLDataSet("/index.php",
"gallery", { method: "POST", postData: "do=m.get<?php echo
$gallery ?>Gallery", headers: { "Content-Type": "text/xml" });
var dsPhotos = new Spry.Data.XMLDataSet("/index.php",
"gallery/photos/photo", { method: "POST", postData:
"do=m.get<?php echo $gallery ?>Gallery", headers: {
"Content-Type": "text/xml"});
the output xml is perfect... here's an example
http://www.inkincnewyork.com/index.php?do=m.getFlashGallery
since i'm reusing the gallery, and have no need for the
dsGalleries related functionality i did this.
using the long way of referencing each piece of data, just to
make sure it's all kosher
quote:
<div id="thumbnails" spry:region="dsPhotos dsGallery">
<div spry:repeat="dsPhotos"
onclick="HandleThumbnailClick('{ds_RowID}');"
onmouseover="GrowThumbnail(this.firstChild,
'{dsPhoto::photo/@thumbwidth}', '{dsPhoto::photo/@thumbheight}');"
onmouseout="ShrinkThumbnail(this.firstChild);"><img
id="tn{ds_RowID}" alt="thumbnail for {dsPhoto::photo/@thumbpath}"
src="{dsGallery::thumbnail/@base}{dsPhoto::photo/@thumbpath}"
width="24" height="24" style="left: 0px; right: 0px;"
/></div>
<p class="ClearAll"></p>
</div>
but i am now getting this error
spry:region or spry:detailregion attribute has no data set!
for each XMLDataSet
anyone have any ideas?A few things I noticed when looking at your sample source
above:
The "Content-Type" should be the type for the post data, not
what you expect to get back. So in your case, you should be using:
"Content-Type": "application/x-www-form-urlencoded";
which is the default type so you don't really have to pass it
to the constructor unless you are posting something other than that
type.
Next, your {ds_RowID} data references are missing the data
set prefix. If you use more than one data set for a given region,
you need to use the prefix to make sure you are getting the
ds_RowID from the correct data set.
The error: "spry:region or spry:detailregion attribute has no
data set!" tells me that the data sets are not defined at the time
Spry first processes the region. Are your data sets being created
in a script tag in the head? Or are you creating them in some
function that gets fired off at a specific time?
--== Kin ==-- -
Interaction using Flash an Spry possible?
Hello,
I am just curious, if there is a possibility to use Spry from a flash movie. For example, I like to have the Spry datagrid on a website using a typical master and detail area like this:
<div class="MasterDetail">
<div spry:region="dsccare2" class="MasterContainer">
<div class="MasterColumn" spry:repeat="dsccare2" spry:setrow="dsccare2" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{name}</div> </div>
<div spry:detailregion="dsccare2" class="DetailContainer">
<div class="DetailColumn">{links}</div>
<div class="DetailColumn">{navcontent}</div>
</div>
<br style="clear:both" />
Is there a way to use a Flash swf on the page that interacts with spry. I know, that you can call JavaScript commands from Actionscript, but is there a special way to use Spry tags or attributes from Flash? What is the code I need for Flash to include in the Actionscript of button for example to change the {navcontent}?
I think you thought of something like that doing Spry ;)
Thanks MichaelHi Diana,
do you know what the parameters that "updateContent" accepts?
I didn´t find good documentations about Spry. In the Adobe
site, there are only few examples but doesn´t explain all the
aspects of the Spry. I also looked for this in search sites, but
there are only basics examples and texts explaining how to use it.
Maybe you´ve already observed that everyone that uses
the Spry are looking for better documentations. I understand that
the guys from Adobe are developing and writing the documentation at
the same time, but we all need better documentations and tutorials
to learn the Spry framework. I think this is the best feature in
the Dreamweaver CS3.
If you know someone at Adobe, please tell them to pay more
atention about this.
I will try to insert the AC_FL_RunContent function as a
parameter inside "updateContent". If it works, I will tell here.
Thank you for your help,
Luciano Popó, from Brazil -
1 Spry DetailRegion loading from 3 separate Datasets
I have three <div>s on a page, each containing a
different dataset of thumbnail images. Then I have one <div>
that contains the detailregion that shows a large image of which
ever thumbnail is being rolled over.
When I write the code for the detail region only the first
dataset works with the rollover.
spry:detailregion="dsGallery1 dsGallery2 dsGallery3"
Each dataset will work if placed first. After hours of
searching online I have tried numerous combinations of {} and ::
with dataset names and nodes to no avail.
During my hours of online searching I found the Spry
framework for Ajax Change Log itemizes a change for Spry 1.7 that
sounds like the solution I need:
http://labs.adobe.com/technologies/spry/ChangeLog.html
Changes for Spry 1.7 - 2008/??/??
* Data
o Modified Spry.Data.getDataSetByName() to use
Spry.Utils.getObjectByName() so that folks can use namespaced data
set names.
Any chance of getting this modification now?
Thanks.toni7 wrote:
> During my hours of online searching I found the Spry
framework for Ajax Change
> Log itemizes a change for Spry 1.7 that sounds like the
solution I need:
>
http://labs.adobe.com/technologies/spry/ChangeLog.html
> Changes for Spry 1.7 - 2008/??/??
> Any chance of getting this modification now?
As far as I'm aware, Spry 1.7 hasn't been made a public
release. I'd suggest asking this question in the Spry forum,
perhaps someone may be able to give an accurate answer to you:
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert -
How to modify a lookup field-type to use checkbox instead of radiobutton?
How to modify a lookup field-type to use checkbox instead of radiobutton?
I would like to modify the behavior for the lookup field.
Normally you get a screen where it is possible to search through a lookup. The items resulted from the search are listed as radiobutton items. Therefore you can select only one at the time to be added.
Is it possible to have the items to be listed as checkbox instead? So that you can check multiple items and therefore be able to add multiple items at the time?
For example:
To add the user to 10 different groups on MS-AD.
It is desired to have the ability to check multiple groups to be added instead only one at the time.
My client would like to use this feature in many other situations.Displaying will not be a big deal but with that you have to customize the action class and its working as well.
-
How do I display on-the-fly generated XML on a web page using DW CS4 Spry regions?
On a main web page I'm trying to display formatted data from an ASP page that generates XML on-the-fly from a query.
When I run the ASP page from the browser, the XML formatting of the data works. But when I run the main web page, the data doesn't display.
I'm using DW CS4 Spry regionsto display the data on the main page from the XML data generated by the ASP page. Here's the main page code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" >
<html>
<head>
<script type="text/javascript" src="SpryAssets/xpath.js"></script>
<script type="text/javascript" src="SpryAssets/SpryData.js"></script>
<script type="text/javascript" src="SpryAssets/SpryUtils.js"> </script>
<script type="text/javascript">var A1D1xml = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.asp", "tests/test");</script>
<title>Test XML Main</title>
</head>
<body>
<div id="A1D1xml" spry:region="A1D1xml">
<table id="A1D1">
<tr>
<th>ID</th>
<th>Last Name</th>
<th>Final Status</th>
</tr>
<tr spry:repeat="A1D1xml">
<td>{acr_id}</td>
<td>{acr_lastName}</td>
<td>{acr_final_status}</td>
</tr>
</table>
</div>
</body>
</html>
Here's the code for the page that generates the XML: A1D1ACRs_testWxmlCode.asp
<html>
<%
set objConn=server.CreateObject("ADODB.Connection")
objConn.Open application("web_test")
set rs = objConn.Execute( "SELECT acr_id, acr_lastName, acr_final_status from acr_records_grid_view where acr_changeOption = 'A1D1'")
Response.ContentType = "text/xml"
Response.AddHeader "Pragma", "public"
Response.AddHeader "Cache-control", "private"
Response.AddHeader "Expires", "-1"
%>
<?xml version="1.0" encoding="utf-8"?>
<tests>
<%While (NOT rs.EOF)%>
<test>
<ID><%=(rs.Fields.Item("acr_id").Value)%></ID>
<acr_lastName><![CDATA[<%=(rs.Fields.Item("acr_lastName").Value)%>]]></acr_lastName>
<acr_final_status><![CDATA[<%=(rs.Fields.Item("acr_final_status").Value)%>]]></acr_final_s tatus>
</test>
<%
rs.MoveNext()
Wend
%>
</tests>
<%
rs.Close()
Set rs = Nothing
%>
</html>
Thanks.Thanks, but no; I'm using the correct case and folder.
With this code on the main page, The region flashes the table column header names
and the code as written for the spry repeat; then instantly disappears from the screen.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="SpryAssets/xpath.js"></script>
<script type="text/javascript" src="SpryAssets/SpryData.js"></script
<script type="text/javascript">var A1D1x = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.xml", "tests/test");</script>
<title>Test XML Main</title>
</head>
<body>
<div id="A1D1" spry:region="A1D1x">
<table id="A1D1a">
<tr>
<th>ID</th>
<th>Last Name</th>
<th>Final Status</th>
</tr>
<tr spry:repeat="A1D1x">
<td>{acr_id}</td>
<td>{acr_lastName}</td>
<td>{acr_final_status}</td>
</tr>
</table>
</div>
</body>
</html> -
How to use Checkbox and radio buttons in BI Reporting
Hi BW Experts,
My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I dont know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
Thanks,
RamHi..
Catalog item characteristic
- Data element
- Characteristic type
Entry type
List of catalog characteristics
Designer
Format (character)
Standard characteristic
Alternative: Master characteristic
(used for automatic product
assignment)
Simple entry field
Alternatives:
Dropdown listbox or radio button
list -
Using Images in Spry Dropdown Menus??????
I am in the middle of making a web site that needs a drop down menu for one of the top navigation menu buttons, when I designed the web site I created my own buttons (images) in photo shop. When I went to create me navigation bar I tried to insert images in the spry menu bar, so that I can have my imaged and have the drop down menu but that didn't work, so then I tried to use a table and insert the images there and in the cell that needs the drop down bar I put in a spry menu bar but that through the whole navigation bar off. Can anyone help or does anyone know how to use images in spry drop down menus that can help me have the look I want and the drop down menu?
Have a look here http://www.adobe.com/devnet/dreamweaver/articles/spry_widgets_design_04.html
I hope it helps.
Ben -
"Enable Disk Use" checkbox is grayed out, can't untick.
Hi,
I just got my new iPod 30 GB video today! I've been reading these discussions, but haven't found an answer for this tiny problem of mine.
"Do Not Disconnect" constantly shows on the iPod screen when it's connected on the computer. Many have suggested ticking off "Enable Disk Use", but here's the problem: it's grayed out, and I can't change it, no matter what. I've gone through iTunes prefs, by right-clicking on the iPod in iTunes and selecting "iPod Options". My system seems to show iPod as a movable disk, but iTunes recognises it and I can easily put music into it, so I guess that isn't a problem (or is it?).
But how could I get my hands on the "Enable Disk Use" checkbox? It just isn't "tickable" now.
Thanks!
Windows XPIf you have your iPod set to manual update, the "Enable Disk Use" box will be greyed out and ticked by default, in that case use Safely remove Hardware icon or check this link: "Disconnecting iPod from your computer
" http://docs.info.apple.com/article.html?artnum=61135
For Info:
The iPod offers three ways to transfer music from your computer. You can select one of the following update modes from the iPod Preferences menu in iTunes (Edit=>Preferences=>'iPod' tab):
1) Automatically update all songs and playlists. This is the default mode, in which your entire music library, including playlists, is automatically synced to your iPod. If the music library on your computer exceeds the iPod storage capacity, you are prompted to select a different update method.
2) Automatically update selected playlists only. With this option, iTunes automatically copies the playlists you have selected to the iPod when you connect it to the computer.
3) Manually manage songs and playlists. You can also choose to transfer music to the iPod manually. This allows you to drag and drop individual songs and playlists from iTunes to the iPod. -
Using checkbox at selection screen
I used checkbox at selection screen and i want output as per selected checkbox. How to do that??
hiii
use following code
AT SELECTION-SCREEN.
IF p_char EQ 'X'.
w_check = 'X'.
WRITE: w_check.
ELSE.
w_check = ' '.
WRITE: w_check.
ENDIF.
SELECT b~carrid "Carrier Id
b~connid "Connection id
b~fldate "Flight date
b~price "Price
b~currency "Currency
b~seatsmax "Maximum Seats
INTO TABLE t_flight
FROM spfli AS a
INNER JOIN sflight AS b ON a~carrid = b~carrid
INNER JOIN sbook AS c ON c~carrid = b~carrid AND
c~connid = b~connid AND
c~fldate = b~fldate
WHERE b~carrid IN s_carrid AND
c~cancelled EQ w_check.
regards
twinkal -
Using checkboxes as datasource of TileList - how do I then receive selected checkboxes?
I've been googling and searching for this and it should be simple I'd imagine... (I'm new to Flex so that probably doesn't help:)...
I have an array that I create using CheckBox components. I then use this array as the dataprovider for a TileList and then also create a CheckBox itemrenderer.
The issue I'm having is that, I thought if I went over the underlying checkbox array at a later point (say a button click) - that I'd be able to see some selected items yet none of them show up selected as I iterate over them (even though I've checked some of the checkboxes.)
I have an event on the checkbox rendererer itself and when it fires I do see the selected property set - It's just going over the whole array that I'm not seeing them set. It's as if the underlying dataset is not being modified. What do I need to do so that I can capture the selected checkbox items? (Is the issue something to do with the renderer being reused?) I'm thinking getting a handle to checkbox items from from a TileList would be somewhat common so any help/examples appreciated.
Below is the pertinent code:
[CODE]
dataArray is an array of type [B]CheckBox[/B]
<mx:TileList id="reportMetricsBox"
borderStyle="solid" height="100%" width="100%" maxColumns="3"
columnWidth="110" paddingLeft="0" textAlign="left" borderThickness="0"
dataProvider="{dataArray}">
<mx:itemRenderer>
<mx:Component>
<mx:CheckBox click="handleClick(event)">
<mx:Script>
<![CDATA[
import com.foo.event.CheckBoxEvent;
private function handleClick(event:Event):void {
dispatchEvent(new CheckBoxEvent(CheckBoxEvent.CLICKED, CheckBox(this)));
]]>
</mx:Script>
</mx:CheckBox>
</mx:Component>
</mx:itemRenderer>
</mx:TileList>
[/CODE]Here's what I did to fix it...
in my item renderer click handler I set the data selected item:
private function onChange(event:Event):void {
dispatchEvent(new CheckBoxEvent(CheckBoxEvent.CLICKED, CheckBox(this)));
data.selected = !data.selected;
I'm assuming that's what I should be doing? -
Hi Experts, Crystal report mutiple value selection using checkbox in 8.81
Hi,
I am using Crystal report multiple value selection option using checkbox in 8.81 sap b1 pl 05.but i want default all check box value should be selected.
How do we achieve same.
Thanks
Rajkumar Gupta
Edited by: Rajkumar Gupta on Jul 11, 2011 5:45 AMDear Raj,
As per me, this can't be done in current version of SAP 8.81.
Alternate way is use SDK
Thanks
Kevin -
How to use checkboxes in jtable ?
I am trying to use checkboxes in
JTable,I set the property in the jtable column to boolean.The proplem is that i do no know how to use this property in java program.My intension is that,I will have a java form and a java button on it,by clicking the button, i will have to write a code,for example a code that fetches records from a table and displays them on the jtable(on the user interface),when I select the check box corresponding to any row,It should let me either delete or edit that row and this modification has to be reflected to the table in the database. At this time,i can fetch and display but i can not delete or modify any row because I do no know how to use the check box inside the jtable.
Thank you for your help!Multi-post: http://forum.java.sun.com/thread.jspa?threadID=5273661&tstart=0
Maybe you are looking for
-
XML file is not being displayed in browser? Why?
Hi all! I have a secnario file->XI->J2EE appl. I am using File sender adapter and HTTP Receiver adapter. I placed XML file in D:\somedir of my machine, it is picking up well by XI, <b>all i want to know is how XI sends this XML file to my J2EE Appl.
-
Transfer photos from Samsung cel to iPad
How can I transfer photos from my Samsung cel to my iPad
-
My 9.5.1 iPhoto "freezes my entire computer" iMac OS X 10.9.5 when I crop my photos. This happens after I edit my photos 10-20 minutes. It does not happen immediately. I have to turn off my computer using the back computer button...as the Force Qui
-
BT Landline Activation Accountability
I feel that the BT customer service lacks a sense of accountability. I was supposed to be having my BT landline activated by an engineer between 8am and 1pm today and as I had been given around four weeks notice I was able to book the morning off wor
-
How do i change display sleep keyboard shortcut
I know that to sleep display i can use ctrl-shift-eject this is fine but i would ideally like to change it to a simple bind. like like cmd-§ or some other two button bind. I've check the keyboard shortcut tab in system preferences and i either can't