Default sort order Spry data set
I have implemented a Spry table in Dreamweaver with two columns sortable and wants to control the sort order until the user calls a kind. (Example: www.gregorys.org) Is this possible?
You must place the Builder at the bottom of your document, just above the closing body tag (). The constructor is
var dsDestiList = new Spry.Data.HTMLDataSet("Destdata.html", "DestData", {firstRowAsHeaders: false, sortOnLoad: "VIEW", sortOrderOnLoad: "ascending", columnNames: ['DATE', 'PLACE', 'VIEW']});
var dsHike = new Spry.Data.HTMLDataSet("Hikedata.html", "DestData", {firstRowAsHeaders: false, sortOnLoad: "VIEW", sortOrderOnLoad: "ascending", columnNames: ['DATE', 'PLACE', 'VIEW']});
The sort order is / can be adjusted in the constructor.
Although the datasets in Spry are robust and can be used even today, I agree with Nancy that Spry is disgraced because there has been no updates/upgrade since its inception in 2006, 10 years ago. Having said that, apart from using other tools like jQuery plugin: Tablesorter 2.0, I don't know all other equivalent to the use of SpryHTMLDataSets.
Tags: Dreamweaver
Similar Questions
-
I watched the two videos and it looks very simple and easy create a Spry data set. I imported my CSV data into a table in a table and have an html page showing all my data in a table like in the videos. When I start the process of 'Insert Spry Dataset' I select this html table as my data file, I get an error message that says: it takes a unique id. Although no other information I looked at including two videos say is that 'unique id' or how to create one or the fact that I really need one. The exact error message is "no selectable items found.
Make sure that you have assigned ID for the items you want to select. I even created a table from scratch, thinking imports has created a problem. Same error message and the result. Read the help file basically said the same thing. I found nothing that says what he meant by "unique id".
TIA
two
tags at the beginning of the code with only a closing
at the end.Change
TO
Or convert the table to xml and use xml DataSet
-
I have a question to anyone who is familiar with the data sets spry - a link below for the example I use:
http://www.thecreativeadvantage.com/clientzone/ca_portfolio_test/print.html
The source of the dataset is:
http://www.thecreativeadvantage.com/clientzone/ca_portfolio_test/print_source.html
----------------------------------------------------------------
My question is:
Is it possible to make the first button appear 'active' when the page opens. For example, each button corresponds to a State of 'Black' when it is not active, a reddish "stable" condition and a dark gray "active" State. All the buttons are black 'inactive' when the page opens, but the first description of the image and it is visible, then I would be the first button to appear 'active' (gray dark instead of black).
The way it is now, if you click the first link after the page opens, the button changes to the 'active' State and/or colour, but its content does not change it looks like a mistake...
Any help would be greatly appreciated - Please note: this is a demo page, I'm trying, please disregard the appearance and content - just trying to get the feature...
Thank you very much!
Jesse
----------------------------------------------------------------
The associated style sheet is less necessary:
@charset "UTF-8";
/ * SpryMasterDetail.css * /.
/ * Copyright (c) 2007. Adobe Systems Incorporated. All rights reserved. */
/ * This is the selector for the main container of master-detail structure.
*
* If you want to limit the width of the structure, master-detail, set a width on
* the master/detail container. By default, our structure expands horizontally to fill
* a space available.
*/
. MasterDetail
{
font: 12px Verdana, Geneva, without serif.
margin: 2px;
}/ * This is the selector for the master container element that houses all the MasterColumn
* classes. By default the column Captain occupy about 35% of the width of the
* whole structure.
*/
. MasterDetail. MasterContainer
{
background-color: #cccccc;
border: 1px solid gray;
Width: 250px;float: left;
overflow: hidden;
}/ * This is the selector for an element master column that contains data for
* a main column.
*/
. MasterDetail. MasterColumn
{
do-size: 11px;
/ * background-color: #000000; * /
Background: url (.. / images/rollover.gif) no-repeat;
text-indent: 20px;
color: white;
Width: 250px;
height: 10px;
padding: 5px;
cursor: pointer;
}/ * This is the selector for an element highlighted in the main column.
*/
. MasterDetail. MasterColumnHover
{
/ * background-color: #1e1e1e; * /
Background: url (.. / images/rollover.gif)-250px 0px;
color: white;
}
/ * This is the selector for an element selected in the main column.
*/
. MasterDetail. MasterColumnSelected
{
/ * background-color: #464646; * /
Background: url (.. / images/rollover.gif)-500 px 0px;
color: white;
}/ * This is the selector for the element of retail container containing all the DetailColumn
* classes. By default, the Details column occupy about 60% of the width of the
* whole structure.
*/
. MasterDetail. DetailContainer
{
border: 1px solid gray;
background-color: #ffffff;
padding: 10px;
Width: 500px;
/ * float: right; * /
overflow: auto;
}/ * This is the selector for an element of detail column that contains data for
* a detail column.
*/
. MasterDetail. DetailColumn
{
margin-bottom: 1px;
}I could be wrong, and right, you might get your answer here, but isn't the Spry forum here >?
-
With the latest updates for VISTA 64 Home Premium, Service Pack 1, when I try to sort the files in chronological order, it sorts by month (1-12), then day (1-31), THEN year, so that on 01-02-08 shows as more recent than 01/01/09 and 01/03/09 is less recent of the foregoing. Y at - it a patch or fix? It is majorly annoying. As far as I know, I have all the current patches and updates. Sort order must be the YEAR, MONTH, DAY, even if the screen is in the format DAY, MONTH, YEAR. Help, please.
M.Nelder
Hello M.Nelder,
If you have your order of sorting by type it will sort the date depending on the file first, then by Date.
When you try to sort by modified Date, try this:
Mouse over the modified Date header in order to see the menu drop down.
Select the drop-down arrow, and then select group.
You should now see all group by time period regardless of the type of file.
-
I have a large set of data created with Spry in Dreamweaver CS6 and want to scroll in rows. Put a Div inside the data set and adding the overflow/ScrollBars property adds a scroll bar that includes the header of the data set and who is compensated. Is it possible to create a scroll bar that scrolls all lines except the header and is not compensated for that?
Table of vertical Scrolling.
Fixed the Table header - http://alt-web.com/
Nancy O.
-
Hand cursor with the line of the Spry data set
I carefully built a Spry - a table - with a corresponding region of detail data set, following the instructions in the Adobe video workshop. Everything works, including the row headers clickable to use lines and activation of the changes in the retail area. BUT I can't get the hand cursor appears (at the place of arrow or the sliders of the i-beam) on interactive areas. Tried creating null links (href = "#") to activate the hot words (it works) but which causes actual links on the page to insert the root of my site in front of the URL to other sites.
Here's the example page
I looked at the code on the model and may not know what I am doing wrong.
Help! and thank you.I carefully built a Spry - a table - with a corresponding region of detail data set, following the instructions in the Adobe video workshop. Everything works, including the row headers clickable to use lines and activation of the changes in the retail area. BUT I can't get the hand cursor appears (at the place of arrow or the sliders of the i-beam) on interactive areas. Tried creating null links (href = "#") to activate the hot words (it works) but which causes actual links on the page to insert the root of my site in front of the URL to other sites.
Here's the example page
I looked at the code on the model and may not know what I am doing wrong.Help! and thank you.
-
Add icon w/link to the table of the Spry data set
I placed an icon inside a table data cell, then tried to give him a hyperlink to a clip. However, the link appeared as underlined text in the cell of the table under the icon.
Then I tried to type the HTML code in code view, and this is what it looked like. It also did not work the display page:
"< td align ="center"> < img src =" graphics/speaker.jpg"width ="29"height ="30"/ > < img src =" graphics/movie.jpg "a href="graphics/melanoma1.wmv"/ > < table >
How I would make the icon itself launch the WMV clip?
Thank you!
How I would make the icon itself launch the WMV clip?
By using the appropriate syntax.
If you do not border link Hypertext for image links, add this to your CSS:
an img {border: none ;}}
--
Mark A. Boyd
Keep-on-Learnine :-) -
Using XML Export to create dynamic Spry data sets
I followed this tutorial
http://www.Adobe.com/devnet/Dreamweaver/articles/spry_xml_export_03.html
And the end result looks like this
http://www.Adobe.com/devnet/Dreamweaver/articles/spry_xml_export/fig04.gif
Mine looks like this
http://76.163.23.86/export.php
That is to say all the data is just print line after line
Any ideas?
Thank you
Hurst VanroojSorry about this I've been viewing in SAFARI but in Firefox, it works!
Bizare!
Hurst Vanrooj
-
When I select an Album in Photoshop Elements (ss14), he has "Last" as the default sort order. I know that I can change this by selecting 'Order of the Album' in the dropdown menu, but it's rather tedious. Would it not possible to change the sort order by default for the Albums to for example "order of the Album? When I browse through the forum, I have the impression that this problem is as old as PE8.
Any help would be appreciated.
Rik
Van_Epscheuten wrote:
Hi Michael,
Thank you very much for your explanation. I don't know, however, that I understand. You claim a sort order is preserved when switching from a thumbnail view (all media) a view of the album. For me, it does not: the sort order on the selection of an album is always "descending", regardless of the previous sort parameters. It hurts you?
Rik
You are right...
Except that if I'm in "ranking album" in an album and if I switch to another album, I'll stay in sorting "album". Several tests will be required...
P.S. We are talking about the same version of PE? I do not recognize the ability to sort by 'a far more recent everything first, with the more old/new first for every day'.
I'm on version 14, but this is not new. The option is set in the Edit menu > Preferences > general tab.
A glance at 6 elements indicates that the option was already there.
-
I create a kind of image gallery. I'm trying to change an example provided by David Powers in his book The Essential Guide to Dreamweaver CS3, in chapter 19. I can get his example works very well. Then when I try to edit it, I get where the last step. She leaves work when I put in the code to bring up the menu drop-down functional. When I do this, all the photos disappear from the page, the miniatures and the main image with its legend. I believe that my files xml is correct, my code is his example, except the names of xml tags, etc., which must be different to give a meaning to my page. I don't see what I'm doing wrong.
I did a search on this forum and help a general search on google for the spry data set, but cannot find the help I need.
I put this page up at lakesareacc.com/facilitiesg2.php. I can post all the relevant files here if necessary.
I spent about 3 days trying to get this to work. Any help is greatly appreciated.
MikeMike-H wrote:
> When to create the dsRoom dataset, spry does not know or remember that
> dsFacility is located in the xml directory, based on its definition in the
> previous line?No, it has nothing to do with it. dsFacility::@file contains the value
attribute of file in the label of each piece. So this is '{dsFacility::@file} '.
simply kitchen.xml or something else. You must add the path to the variable
inside the file or in the XMLDataSet() constructor attribute as I
have done so.--
David powers
Adobe, Dreamweaver community expert
http://foundationphp.com -
Is it possible to change the sort order of the Windows Explorer?
When you use windows Explorer to search for files I find things I named by date are sorted incorrectly.
Here is an example of how that fate (sorted by name, having consulted the details page): names of files in the following orderTidbits200710001b
Tidbits200710001a
Tidbits20100207a
Tidbits20100201a
tidbits20080300s
tidbits20080300rI would like to than years (at least) to be in order. Is it possible to change the sort order in windows Explorer?
http://support.microsoft.com/kb/319827 :
- Click Start, click run, type regedit, and then click OK.
- Use one of the following methods, depending on your situation:
- To configure the policy for all users of the computer, locate and then click the following registry key:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
- To configure the policy for the current user, locate and then click the following registry key:HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Currentversion\Policies\Explorer
- To configure the policy for all users of the computer, locate and then click the following registry key:
- On the Edit menu, point to newand then click DWORD value
- Type NoStrCmpLogical, and press ENTER.
- On the Edit menu, click modify.
- To set the order of sort that you want to use for files and folders whose names contain numerals, use one of the following methods, depending on your situation:
- To configure Windows XP or Windows Server 2003 to use the method used by Windows 2000 for sorting files and folders, in the value data box, type 1, and then click OK.
- To configure the default Windows XP or Windows Server 2003 method for sorting files and folders, in the value data box, type 0, and then click OK.
Note When the NoStrCmpLogical value does not exist or it is set to 0 (zero), the Windows XP default sort order is used.
- Exit the registry editor and restart the computer.
You want the first option 6.
Noel
-
is there a sort order global for all folders?
I have a lot of mail files, and I want them all to sort of the same way. However I can't find a way to set the sort order in the world, only individually per-folder. Is there a global sort order?
Are you familiar with the configuration of Thunderbird Editor?
If you change the wrong setting, or the incorrect value, you can make unusable Thunderbird, but if you're very careful...Read this article...
http://superuser.com/questions/13518/change-the-default-sorting-order-in-Thunderbird
TB - 38, 3 Win10-PC
-
Placement works does not in reports of paging and default sorting
Hello - I have 2 pages of report (an a law report, a tabular form). On both, I updated all report columns sortable. The unique ID field is the default item to be sorted by (sort order 1). No other columns have a specified sort order.
The default sort order doesn't work. Once the report is in place, if I click on the column header for a sortable column, correct sorting occurs. But the sorting is random when the report is rendered first.
I also in these reports, the paging from base must be aligned to the left, not the right. I have change down to the bottom left, and nothing happens: still displayed on the right.
Ideas?
Thank you
Carol
PS I had a previous post about these same report... pages where notes appear and disappear column header when the sort column is changed (pass yet). Don't know if it's related... Stress behavior in column headers sortable reportHi Carol,.
I just set up a report on my workspace OTN. It is a report 'SQL Query (PL/SQL function body return SQL query)' that has a source of:
DECLARE vSQL VARCHAR2(1000); BEGIN vSQL := 'SELECT * FROM EMP'; RETURN vSQL; END;
I have "use generic column names (analysis of query runtime only)" selected.
My report attributes have the headers as "Column names" (that is to say, the columns view COL01, COL02 etc.) and I checked the option of sorting for the first 15 (the EMP table has 14 fields, but I wanted to check if this may be a problem).
I put the report model for ' model 4: Standard "(it is a theme application 4) and paging display Position of"bottom-left ".
Here is what I get: http://htmldb.oracle.com/pls/otn/f?p=45958:2
This seems to work ok in FireFox3 and IE7.
So, I think there are one or more of the following:
1 - the returned SQL statement is not quite correct - have you checked the output and run it manually?
2 - the version of the Summit you are using is different from the version of my OTN (3.1.2) and there is a bug that is fixed between two versions
3 - the theme contains errors concerning the underlining of links
4 - the model does no paging on the left
5. you are using different browser versionsYou can run the page above and see if everything works correctly for you - if that's the case, then this may limit.
Andy
-
Enable sorting (Order by) in the table tree ADF
Hello
How can I sort ADF tree using a temporary Variable... ?
'Name' is a temporary variable in my VO... I want to sort the ADF tree with the attribute "Name"...
Thank you
SwathiHello
check this hope it helps
http://Hazem-ADF-tips.blogspot.in/2012/06/define-default-sorting-order-of-ADF.htmlConcerning
-
Make the spry data in a hyperlink?
I use a Spry data set that uses a doc xml created by another program. What I want to do is make this: < td > {name} < table > wise into a hyperlink like www.somesite\name\anotherpage.htm where the name is taken from repeating data in line with the table...?
Any suggestions?
TIA!
In the markup, use the anchor tag as in
http://www.somesite/name/ {name} .htm "> {name}"
Maybe you are looking for
-
Firefox is exhausted before but cannot start more
Firefox is exhausted before but cannot start more.I tried the solutions, but it does not work
-
I have read several similar problems. Still the same thing. Only none of the solutions have worked for me. Disabling hardware acceleration has changed nothing.With me, this problem started after the update of the display drivers. I have Ati ah3650. T
-
I have updated and now when I try to log on to Web sites with fingerprint reader, I get "Firefox doesn't know how to open this address, because the Protocol (dpql) is not associated with any program."
-
When I click on the link for http://www.vienna.at/resource.aspx/ResourceID/news-20080805-01032166-image (found in the http://forum.openstreetmap.org/viewtopic.php?id=1777), I get the dialog box "That FF should do with this file," where I can choose t
-
Hello. I just bought my iphone 6. When I tried to put serial number on the website of the iphone, he said "this is the serial number of the product that has been replaced" what does it means? I worry a lot. Thank you