Need to control page view to 20 from an html data source for a spry data repeating region

</style>
<script src="SpryAssetPan/SpryData.js" type="text/javascript"></script>
<script src="SpryAssetPan/SpryHTMLDataSet.js" type="text/javascript"></script>
<script src="SpryAssetPan/SpryPagedView.js" type=”text/javascript”></script>
<script type="text/javascript">
<!--
var ds1 = new Spry.Data.HTMLDataSet("wrapAround_master2.html", "wrap2", {distinctOnLoad: true, sortOnLoad: "Item", sortOrderOnLoad: "ascending"});
var pv1 = new Spry.Data.PagedView( ds1 ,{pageSize: 20 });
//-->
</script>
</head
<body>
<div id="wrapper">
  <div spry:region="ds1">
    <div id="repeatOne" spry:repeat="ds1">
      <p>{Photo_2}<br />
      {Item}</p>
    </div>
Here you can find the file that I need to Create Paged View data set navigation
http://www.hohmangraphics.com/masterProductGuide/WrapAround_art/joestest_2.html

Thank you,
With some adjustments it worked, see source code below,
<script src="SpryAssetPan/SpryData.js" type="text/javascript"></script>
<script src="SpryAssetPan/SpryHTMLDataSet.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" src="SpryAssetPan/SpryPagedView.js"></script>
<script language="JavaScript" type="text/javascript">
var ds1 = new Spry.Data.HTMLDataSet("wrapAround_master2.html", "wrap2", {distinctOnLoad: true, sortOnLoad: "Item", sortOrderOnLoad: "ascending"});
var pv1 = new Spry.Data.PagedView( ds1 ,{pageSize: 10});
//-->
</script>
</head>
<body>
<div id="wrapper">
<p>
  <input type="button" value="First" onclick="pv1.firstPage();" />
  <input type="button" value="Prev" onclick="pv1.previousPage();" />
  <input type="button" value="Next" onclick="pv1.nextPage();" />
  <input type="button" value="Last" onclick="pv1.lastPage();" />
  <br />
</p>
<div spry:region="pv1 ds1">
    <div id="repeatOne" spry:repeat="pv1">
      <p>{Photo_2}<br />
      {Item}</p>
    </div>

Similar Messages

  • Help needed with Browser page views

    I have a Curve 3G, and my browser has full page views. I want to change to column views. I just updated my OS to 6, and must say that I HATE it!!! However, according to Blackberry help, I should be able to push the menu button and simply click on column view. That is not an option on my menu. There is nowhere to change the view, that I can find. Any suggestions? Thanks in advance.

    Hi guys
    As a mere 8520 user I cannot ever have OS6, but having looked into the question of column view, it seems its now officially available for the 9780 and possibly the 9700 (it was a leaked version I saw) so its on its way.
    Blackberry Best Advice - Back-up weekly
    If I have helped you please check the "Kudos" star on the right >>>>

  • Need to protect page views from showing CF coding

    I am building an application for a client that involves a
    considerable amount of cfml. I've spent a hundred hours building
    and testing this code. I would like to somehow protect this code
    from being copied (or downloaded) and re-used (or modified once
    downloaded) by someone other than me. In other words I don't the
    client cloning my code and making it work in-house. Not that they
    would but... you never know who they may hire down the road. Since
    I'm a novice ColdFusion user I need a simple solution. Protecting
    on a file-by-file or directory basis would be great. Any help would
    be greatly appreciated.

    ColdFusion has the encode utility that can be run on your
    templates to
    make them harder to read. The documentation will tell you
    how.
    http://livedocs.adobe.com/coldfusion/8/htmldocs/appSecurity_02.html
    At the bottom of the page: "Note: You can also use the
    cfencode utility,
    located in the cf_root/bin directory, to obscure ColdFusion
    pages that
    you distribute. Although this technique cannot prevent
    persistent
    hackers from determining the contents of your pages, it does
    prevent
    inspection of the pages. The cfencode utility is not
    available on OS X."
    I believe CF8 and maybe CF7 now supports the ability to just
    export the
    compiled Java byte code for your application so you do not
    have to give
    the source code, but I have never done this.
    http://livedocs.adobe.com/coldfusion/8/htmldocs/deploying_5.html#117556
    Neither of these are full proof. There are known tools that
    are capable
    of un-encoding encoded ColdFusion templates and reverse Java
    byte code
    back into source code. But it at leasts inconveniences the
    casual
    sneak, just like locking your doors does.

  • How do I reset the furthest page read in iBooks from an HTML Widget?

    Our training department just got a bunch of iPads and I'm writing some custom HTML widgets for iBooks for them for testing, in-class activities, etc.
    On the last page I have a link to clear all the forms and return to the first page.  Like this: <a href="ibooks:///#page(1)">Click here</a>
    That all works fine but the next time the book is opened it auto-syncs to the FURTHEST page read (the last page with the test on it) instead of the LAST page read (the first page- from the link mentioned above).
    Basically we want the link to reset the furthest page read to the first page of the book when they finish the test so that the next person to use the iPad goes to page one automatically.
    Does anyone have an idea of how to do something like completely clear the iBook cache?
    Much obliged!

    This was hand-coded HTML, CSS, jQuery/Javascript with a PHP file on our server that processes answers and emails them to our training director.
    I use Brackets exclusively for coding.
    Hope this helps you.

  • Need you help !!! -- Convertion from Char to Date

    Dear experts:
    I am new to abap and here is one thing need your help:
    Currently I have a char type field defined in the source table, after I retrive this field into my work area, I need to convert it to Date type and then calculate the last day of this date.
    for example: WA_TEST-CHAR = '20100801'. This value in orignal ECC table is char type.
    Then How can I convert this value to a date type, and calculate its last day?
    My expected result is "20100731".
    BTW, does anybody know how to convert a date type field to a number type field like To_number() or something?. If I need to get the period between 2 different date, how can I get this?
    Any post will be appreciate and thank you all in advance!
    Best Regards
    Tim
    Moderator message: sorry, date conversion and date calculation are very basic and FAQs, please search for available answers, also read ABAP online documentation.
    locked by: Thomas Zloch on Aug 23, 2010 9:56 AM

    Hi,
    For your question:
    BTW, does anybody know how to convert a date type field to a number type field like To_number() or something?. If I need to get the period between 2 different date, how can I get this?
    use this FM FIMA_DAYS_AND_MONTHS_AND_YEARS.
    regards,

  • Need to refresh materialized view from procedure and pl/sql block

    Hi,
    I need to refresh materialized view (complete refresh)from procedure and pl/sql block .can some one help.
    MV name:MV_DGN_TEST_SESSION
    Thanks,
    Rajasekhar

    dbms_mview.REFRESH ('MV_DGN_TEST_SESSION', 'C');Regards,
    Mahesh Kaila
    Edited by: user4211491 on Dec 1, 2009 10:41 PM

  • Pass values to OAF search page (View Purchase Order History)

    I need to call a OAF page from a PO Approval Notification. I need to call page View Purchase Order History (func:ICX_PO_REVISIONS).
    I am able to create the URL (using function FND_RUN_FUNCTION.get_run_function_url) and when I click on the link it opens the page fine, but it’s a page that contains simple search region and I need to populate the Operating Unit and PO Number fields (I can easily get from the PO) of the search fields, this will allow the user to just click the go button.
    Is it possible using the function FND_RUN_FUNCTION.get_run_function_url and passing parameters (field values) or setting the URL to JSP:/OA_HTML/OA.jsp?OAFunc=ICX_PO_REVISIONS&akRegionApplicationId=177&addBreadCrumb=Y&CorePO=Y and then passing the parameters?
    How would you achieve this if possible, call the page and populate the search field values? It does not seem to work, I have been able to pass paramaters to an OAF page that does not contain a simple search region to return results.
    Function paramaters:
    FND_RUN_FUNCTION.get_run_function_url (
    p_function_id => 3101,
    p_resp_appl_id => 201,
    p_resp_id => 50598, -- MS Purcahsing Superuser
    p_security_group_id => 0,
    p_parameters => 'PoNum=' || l_document_id || '&' || 'retainAM=Y' || '&' || 'addBreadCrumb=Y',
    p_override_agent => NULL,
    p_org_id => 101,
    p_lang_code => NULL,
    p_encryptParameters => FALSE);
    Thanks,
    Shaun

    What I found is there are 2 variables SiteName and SiteName1, if you use SiteName1 then it shows proper value as a site description. I replaced SiteName with SiteName1 and it works. This might help to all who are like me and trying Tutorial example.
    I am not sure how many may have tried OAF - Tutorial examples. They are really complicated and not easy and in most cases they are not coming out in first try but if you really try then it will give lot of understanding.

  • Why can't I get one track to open in page view?

    Hi all, I am having trouble in the score getting only one track to display in the score editor. I select the track,which has 47 bars with one extra region [bar 34-triplets] that must remain as a separate region because the triplets won't work when joined to the regions in back or in front of bar 34.So I click hold shift and select the 3 regions or just select the track[which selects all regions on that track]
    But I get a complete score instead of just the one track I want. So far no amount of fiddling with the controls[page view, hierarchy button, chain linked button] will give me the one track alone in page view. Has any one had this happen? Would some one like to help? Have any of you seen this behavior before?

    I don't know what I did to solve this, but I think it's solved by making a "duplicate of each track, then the tracks are all independent , got that from the LUG too

  • Page Viewer Web Part with horizontal scrollbar

    Hi,
    I added a page viewer webpart to a sharepoint 2013 website and placed a reporting services report url on it, however in some users the browser shows a horizontal scroll bar and cuts the report area. This is not version related because
    I can see it well in IE10 in one user and in others it shows the reported problem.
    Seems to be browser settings. Any ideas?
    Thank you

    Hi,
    According to your post, my understanding is that some users’ browser shown a horizontal scroll bar in the page view web part.
    You can disable the horizontal using the CSS style as the following.
    <style type="text/css">
    #WebPartWPQ3 {
        OVERFLOW-X: hidden !important
    </style>
    Note: the WebPartWPQ3  is the webpart ID.
    You can find the ID as the following thread:
    http://sharepoint.stackexchange.com/questions/29649/disable-horizontal-scroll-bar-on-navigation-web-part-in-sharepoint-2010
    Instead of using page viewer web part, you can also use the content edit web part with IFrame, and some JavaScript to achieve it.
    For more information:
    http://majidbaig.blogspot.in/2012/07/page-viewer-web-part-dynamic-height.html
    There is a similar thread for your reference.
    http://stackoverflow.com/questions/368480/removing-scrollbars-from-content-editor-page-viewer-webpart
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Call view's method from component_controller

    Hello,
    I need to call a view's method from a component controller.
    Does anybody know how this can be done?
    Thank you.

    Hello,
    Thanks for the info.
    In this case. If I have a button on my ALV that takes a user to a different view how would that work?
    Navigation is done using plugs. ALV is initialized in COMPONENT_CONTROLLER and it does no not have plugs. Would I have to create an object of a view where ALV is initialized and than call FIRE_TO_XXXXX_PLG method?
    Thank you.

  • Controling Page Breaks through EDD

    Hi All,
    I'm authoring DITA in FrameMaker using the DITA-FMx plugin and wonder to what extent it's possible to control page breaks (keep withprevious/next) through the EDD? For example, I need to keep everything that belongs to the same <step> together (which are usually <cmd> and <info>).
    The paragraph format for <cmd> is called NextStep. In the ideal world, I would need to modify settings of this format and define "Keep with Next" in the template. This would solve the issue. However, due to some business limitations, I'm not allowed to make in any changes in formats themselves. It seems like the only place where I could do it is the EDD.
    In the EDD, I would have to define the context rule for <cmd>, something like :
    Use paragraph format: NextStep
    This would apply NextStep for the <cmd> contents. Then I need to dynamically modify NextStep and override its Pagination settings. As far as I can understand, I can do this using the format changle list. However, I can't apply BOTH a paragraph AND a format change list to modify the specified
    format for thje same context rule?  I can either say "Use paragraph format" or "Use format change list", right?
    Is yes, is there any alternative way to ahieve what I need without altering the format itself?
    Many thanks in advance!

    Biker,
    You can have either a pgf fmt reference or a implicit format change list in a single context rule. But you can have as many context rules as you like. Also, you can specify a default pgf fmt before all text formatting rules start.
    I use this to specify pagination overrides depending on more complex contexts.
    - Michael

  • Captivate 5.5 Is it possible to import PPT slides in Notes Page view?

    Hello experts,
    This may seem like an odd question. I'd like to display all the notes in the page of a PowerPoint deck that provides samples of code and explaintions of what the code is doing. It is too much information for the slide, which just has discussion point bullets, and I think it is too much for the closed caption pane. It this possible to import PPT slides in Notes Page view?
    Thank you so much in advance for any hints, tips, and replies.
    Kindest regards,
    P

    I found an alternative but circuitous way of achieving the desired result. In PowerPoint I opened, then I printed the PPT presentationto a PDF selecting the Notes Page option instead of Full Slide. By then using a PDF converter to convert it back to PPT I was able to insert the  PPT as is. In other words it "looks" just like the PPT Notes Page view, which is exactly what I wanted. The code snippet and notes were intact.

  • What is the best practise for setting dirty flag of a page/view?

    For a page/view, normaylly there are 2 things to do for diry data:
    1. when it's clean, Save button is disabled, when it's dirty, save button is enabled.
    2. when it's dirty and the window is closed, a popup says "you have unsaved data, close will lose the data".
    My thought is: it must be handled at client side, because not all valuechange is auto submitted. E.g., you type the 1st letter of a string in a input box, the server side does not know it, but save button should be enabled immediately.
    Is it possible to capture all valueChange events in a page or a view at client side?
    I'm not sure what is the best practise for setting dirty flag? If there is better solution? Does ADF provide facility for this?

    public void save(ActionEvent event){
    boolean formValid = isFormValid();
       if (formValid) {
      save button is enabled.
        private boolean isFormValid() {
            boolean valid = true;
            if (Check Condition 1) {
                valid = false;
               showErrorMessage1();
            if (Check Condition 2) {
                valid = false;
               showErrorMessage1();
            return valid;
        private void showErrorMessage1() {
                    when it's dirty and the window is closed, a popup says "you have unsaved data, close will lose the data".

  • Getting links and its names from a html file

    Hi everyone
    My problem about the a getting links with name from a html file. For example
    &#304;n a web page in this site ?SUN? when use click SUN the browser open http://java.sun.com
    &#304; want both of them, so the links and name. I can succeeded the get link but i don t know how to get the link name.
    For example :
    <B>setRightComponent(Component)</B>
    &#304;n this code segment i want to get B tag. But how i don t know. To get A tag i used this code
    List result = new ArrayList();
    try {
    // Create a reader on the HTML content
    URL url = new URI(uriStr).toURL();
    URLConnection conn = url.openConnection();
    Reader rd = new InputStreamReader(conn.getInputStream());
    // Parse the HTML
    EditorKit kit = new HTMLEditorKit();
    HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
    kit.read(rd, doc, 0);
    // Find all the A elements in the HTML document
    HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
    while (it.isValid()) {
    SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
    String link = (String)s.getAttribute(HTML.Attribute.HREF);
    if (link != null) {
    result.add(link);
    it.next();
    &#304; can use B tag but i don t know hot to get its value because it has no prefix such as HREF....
    i am sorry if i use a bad explanation style or incorrect word.

    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    class GetLinks
        public static void main(String[] args)
            throws Exception
            // Create a reader on the HTML content
            Reader reader = getReader( args[0] );
            // Parse the HTML
            EditorKit kit = new HTMLEditorKit();
            HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
            doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
            kit.read(reader, doc, 0);
            // Find all the A elements in the HTML document
            HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
            while (it.isValid())
                SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
                String href = (String)s.getAttribute(HTML.Attribute.HREF);
                int start = it.getStartOffset();
                int end = it.getEndOffset();
                String text = doc.getText(start, end - start);
                System.out.println( href + " : " + text );
                it.next();
        // If 'uri' begins with "http:" treat as a URL,
        // otherwise, treat as a local file.
        static Reader getReader(String uri)
            throws IOException
            // Retrieve from Internet.
            if (uri.startsWith("http:"))
                URLConnection conn = new URL(uri).openConnection();
                return new InputStreamReader(conn.getInputStream());
            // Retrieve from file.
            else
                return new FileReader(uri);
    }

  • Reading Values from Listbox and data source into MS Office Toolkit

    Hi,
    Been trying to get this to work but making no progress and my lack of experience on labview is becoming a hinderence.
    Does anyone know how I can read the values from the listbox example attached into MS Office Toolkit for Excel?
    The values from the listbox need to be compared to mulitple values from a strain data source.
    Cheers,
    Mike.
    Attachments:
    Capture.PNG ‏62 KB

    Hi,
    Ok in the attached vi I want value from the listbox "0kg through to 10kg" to be put into the excel table in the report generation toolkit along side data from the convert strain gauge reading.
    Cheers,
    Mick.
    Attachments:
    Strain Gauge Edit2.vi ‏112 KB

Maybe you are looking for

  • Iphoto '11 cannot show slideshow for files on NFS (Faces fails, too)

    Hello, please help me see my pictures in slideshow!  I get black pictures, but I have a unique error (google has zero hits on '"NULL CGImageSource" iphoto').  See details below.  Thanks! I'm using iPhoto '11 (9.1.5 (615)). My preferences have UNCHECK

  • Help needed to access site using safari

    I am new to Mac and there is this one perticular site that I am un able to log on to. I am using a macbook air with Safari 6.0.5 (8536.30.1) I have tried changing the user agent on safari but this did not help. After I type in my username and passwor

  • Configuring Apache HTTP as an RPS

    Longback i configured Apache HTTP as an Reverse proxy to weblogic for singlesignon with OAM. that time i downloaded the Apache HTTP server Plugin from the below link http://e-docs.bea.com/wls/docs92/plugins/apache.html but after oracle aquiring the o

  • BI Server performance too slow

    Hi experts, I am facing an issue, my OBIEE sits on a Unix Platform. And many time the server performance is too slow, when I check the processes, Java under Orabi user is using more than 50% of the CPU utilization. I need to find the root cause behin

  • Adobe Illustrator CS5 15.0.2

    Keep getting this message ... Adobe Illustrator CS5 15.0.2 Update There was an error downloading this update. Please quit and try again later. Error Code: U43M1D207