No Form Submitting with SPRY:REPEAT?

After getting more and more spry in my code, I run into a
problem while combining a <tr spry:repeat> with a
<form> generated for each row:
Idea / Code is like this:
<table spry:region="dsSample">
<tr spry:repeat>
<form name="myForm" action="detailPage.php?ID=hiddenID"
method="post">
<input type="hidden" name="hiddenID" id="hiddenID"
value="{dsSample::ID}">
<input type="submit" value="Show all infos" >
</form>
<td>{dsSample::ID}</td>
<td>{dsSample::column1}</td>
<td>{dsSample::column2}</td>
</tr>
</table>
The problem is that the submit button doesn't submit! I tried
also with <input type="button" onClick="sendviaJS();")
I would like to use this for a list/detail view.
Ist posting a HTML-Form with a sry:region not allowed /
possible?
Michael

Hi Gunter,
Thanks for the help. I've decided, based on your accurate assessment of the work involved in getting all this to work with spry, to ditch that and just refresh the damn page after all new entries are made. I appreciate your help, probably saved me many hours.
I do have a wierd issue with the ADDT editaqble dropdown behavior. I actually use this one a lot and it always works well. I have one dropdown that only showsw the first 2 characters of the contents. A swcreenshot is avaiable here: http://www.zenwebguru.com/editabledropdown.jpg
All of the other editable dropdowns on the page, and the site, work fine, but this one is shruken for some reason. I'm wondering if there is a size limitation in the css or the js that can't handle larger records? The largest field in the table contains the value:
"Flat Guarantee; Purchaser to provide one Fender Amplifier (see rider for list of amps) at no cost to Artist."
This really shouldn't present a problem, but maybe it's something else?
Thanks, as always for your great help.
Tony

Similar Messages

  • ADDT Dependent Dropdown SB with Spry Repeat Lists

    Hi,
    I first want to say that this forum is fantastic and full of very bright folks willing to help us not so bright types.
    Next, of course, I have a problem. I'm using spry repeat lists as dropdowns in a form. There are 3 that need to be dependent on each other. I had been using the ADDT dependent dropdown SB and it works great for normal selects. It doesn't seem to work at all on spry repeat lists. I was hoping these two would play nicely together, and maybe they do and there's some trick to this.
    If the ADDT SB's don't work with Spry repeat lists, maybe there's a way to do this using javascript?
    Thanks in advance for any help,
    Tony Galfano

    Hi Gunter,
    Thanks for the help. I've decided, based on your accurate assessment of the work involved in getting all this to work with spry, to ditch that and just refresh the damn page after all new entries are made. I appreciate your help, probably saved me many hours.
    I do have a wierd issue with the ADDT editaqble dropdown behavior. I actually use this one a lot and it always works well. I have one dropdown that only showsw the first 2 characters of the contents. A swcreenshot is avaiable here: http://www.zenwebguru.com/editabledropdown.jpg
    All of the other editable dropdowns on the page, and the site, work fine, but this one is shruken for some reason. I'm wondering if there is a size limitation in the css or the js that can't handle larger records? The largest field in the table contains the value:
    "Flat Guarantee; Purchaser to provide one Fender Amplifier (see rider for list of amps) at no cost to Artist."
    This really shouldn't present a problem, but maybe it's something else?
    Thanks, as always for your great help.
    Tony

  • Help With Spry Repeat Regions

    Hello everyone,
    I've recently started using Spry for a project I've been
    asked to work on and I've run in to a few issues since my spec
    changed on me today. So any help or advice anyone has is very much
    welcome as I'm very much out my comfort zone at the moment.
    Original Spec
    The idea originally was to have a drop down of roles which
    was created from the role tag within a xml file which I was able to
    do as you can see below in the attached code. Once the user had
    picked a role it would then
    ds2.setCurrentRowNumber(this.selectedIndex) and this would trigger
    the spry detail region I have to populate the fields I setup to get
    out of the xml the role, process and info.
    At the time I was told a role would only appear once in the
    file but this is now not the case :(
    My problem / New Spec
    Unfortunately with the xml now having a role more then once
    I've been asked to include a dynamic region which will display the
    process and info fields from other records which have this role
    name. Which is the bit I'm having problems with. I've been playing
    with creating a spry:repeat for each field and then using
    Spry:if="'{Role}'.search(^/myVar/) != -1; but I've had no luck
    getting a value into a variable and I'm lack of experience is
    running out of ideas.
    Hope I've made sense this is my first time using spry and
    JavaScript, so any help is greatly welcome.
    Thanks Nick.
    Example of the XML file - Please note this is very much a cut
    down version.

    tried changing the Region HTML table cell attributes to width:75pct, but this has no effect.Unsurprisingly. Use a valid CSS length specification.

  • AIR: Problem with Spry Repeat and JavaScript Action

    Hi there,
    I've tried to convert my Spry Intranet application to AIR but
    there are some issues with my "hacky" JavaScript function calls.
    AIR does not allow to execute them. How can i solve that problem?
    It seems to that AIR Runtime don't like the generated Functions by
    Spry:repeat.
    code:
    <div spry:repeat="banCategory" id="{ban_cat_name}"
    class="{ban_cat_name}"> <img src="pic/{ban_cat_icon}.png"
    /> {ban_cat_name}, {ban_cat_colorcode}, {ban_cat_icon} <a
    href="#" onclick="editCat('{ban_cat_id}')">edit </a>|<a
    href="#" onclick="removeCat('{ban_cat_id}')"> remove</a>
    </div>
    </div>

    Which version of Spry are you using?
    We made changes in 1.6.1 specifically for AIR compatibility.
    Have you seen this?
    http://labs.adobe.com/technologies/spry/articles/air/photo_gallery.html

  • Problem with Spry:Repeat and Slide Effect on IE6

    I run the website for my kids' hockey association and I'm not
    a web programmer. I am trying to display events in a Spry region
    using spry:repeat. The data is coming from a Google Calendar . I
    display the event date and title on the main page. I have the
    onclick set to call a javascript function that exposes the details
    using the spry slide effect. It works ok except in IE6.
    The following creates my dataset from a method call to a
    Coldfusion component that returns the XML I need:
    <script type="text/javascript">
    var ds1 = new Spry.Data.XMLDataSet("
    http://tornadoyouthhockey.org/Events.cfc?method=EventXML",
    "events/event",{distinctOnLoad:false});
    </script>
    The following function slides open the detail:
    <script type="text/javascript">
    function startBlind(rid) {
    var contentdiv = document.getElementById('panel'+ rid
    +'Content');
    var panel_height = contentdiv.clientHeight;
    if (panel_height<100){
    var bd = new Spry.Effect.Blind('panel'+ rid +'Content',
    {duration: 800, to: '100px', toggle: true});
    else {
    var bd = new Spry.Effect.Blind('panel'+ rid +'Content',
    {duration: 800, to: '0px', toggle: true});
    bd.start();
    </script>
    Within the repeat I have:
    <div class="EventPanelLabel"
    onclick="startBlind({ds_RowID});">{startDate} &mdash;
    {title}</div>
    I think the XML looks OK but for some reason when the page
    loads, IE6 returns:
    Exception caught while loading
    http://tornadoyouthhockey.org/Events.cfc?method=EventXML:
    [object Error]
    The page seems to work fine in Safari and Firefox on the Mac
    and IE7 as well as Firefox on Windows. Just IE6 seems to be having
    the problem. Could you please take a look at
    http://tornadoyouthhockey.org
    and provide any suggestions you may have?
    Also, is there a way to hide the {startDate} - {title} I'm
    seeing while the page loads?
    Thanks,
    Kevin

    Kin:
    Thanks for your reply. I made the changes you suggested but,
    unfortunately, IE6 is still giving me the same error when the page
    loads:
    Exception caught while loading
    http://tornadoyouthhockey.org/Events.cfc?method=EventXML:
    [object Error]
    Could this be part of the problem an need to be changed as
    well? :
    <div id="panel{ds_RowID}Content"
    Any other ideas? The page is live if you'd care to look...
    http://tornadoyouthhockey.org
    Kevin

  • AJAX Multiple Form Submitted with Attachments.

    Hi Everyone and Anyone
    I have an issue with a form when using ajax I cannot get the File Attachment to upload.
    <tr>
    <td><label for="FileAttachment">Attach File (250Mb Limit)</label><br />
    <input type="file" name="FileAttachment" id="FileAttachment" class="cat_textbox" /></td>
    </tr>
    Well that is not exactly true but if I use the standard BC form FormProcessV2 with ajax it is a no files upload.
    But if I put this little bit of code in the form validation ( if (theForm.FileAttachment) theForm.FileAttachment.value = theForm.FileAttachment.value )then the files upload correctly ONLY I get redirect to a page with this:
    {"FormProcessV2Response": { "success": true, "entityId": "28589333", "objectTypeId": "Cases", "objectId": "4686492", "message": "<table class=\"tabledefault\"><tr><td id=\"title\"><strong>Summary of web form submission:<\/strong><br\/><!-- IP Address: 27.252.113.60 --><\/td><\/tr><tr><td id=\"name\"><strong>Your Name<\/strong><br\/>Daniel Telfer<\/td><\/tr><tr><td id=\"email\"><strong>Email Address<\/strong><br\/><a href=\"mailto:[email protected]\">dtug.co.nz<\/a><\/td><\/tr><tr><td id=\"casenumber\"><strong>Case Number<\/strong><br\/>4682<\/td><\/tr><tr><td><strong>Attachment<\/strong><br\/>People .pdf (31.06kb)<\/td> .........Deleted..............<\/tr><\/table><\/td><\/tr><tr><td id=\"innerform_95487\"><table class=\"tabledefault\"><tr><td id=\"CAT_Custom_293_957\"><strong>Upload your CV<\/strong><br \/><\/td><\/tr><\/table><\/td><\/tr><\/table>" }}
    I can also do this and ( if (theForm.FileAttachment) theForm.FileAttachment.value = theForm.CAT_Custom_264793_95487.value; ) which I would like to do but also gives the above error. Even though when I go to the case the file are there.
    I need to do this because the client wants to be able to click on these files and open them and the extend CRM database field just give a part url and the client has issues with this when they want to view the files (having to copy and paste it into the url especially when the url is incorrect as bc alters this in the CRM page without being in edit mode. PLEASE ADD THIS ADOBE! a FILE LINK so it is the same a the case related files.
    I also want to do this because I want all the customer details on the same page and so need to use ajax to submit two forms at the same time which works as long as I do not upload a file, one way works but I get an error and the other the files do not upload and no error. ABODE PLEASE CASES FOR USER DETAILS FORM WOULD BE GREAT ie. name, username, password etc.
    I am trying to keep things as simple as possible for the client and customers. I am so close but so far away.
    1) Does anyone else know if ajax should submit the images automatically or is there some addition code necessary?
    2) Does anyone know why my validation code works but gets an error in ProcessFormV2.aspx (except that it is a hack as I know this)?
    3) Am I going about this completely the wrong and there is a better way.
    Any HELP! would be great? 

    Thanks Liam
    I will have to do this another way.
    It is so close to working it is frustrating. Place this if (theForm.FileAttachment) theForm.FileAttachment.value = theForm.FileAttachment.value  in the form validation and the form fields and files get uploaded you just get redirected to a page with formResponse HTML. But like you say not supported. So another way then.
    BC any chance you can support this, it would be handy.
    Cheers Daniel

  • Creating Single/Multiple Form(s) With Spry Tabbed System

    I hope I'm in the right area:
    I would like to know if anyone has any success with create a multiple form or a single form with a Spry tabbed system?
    The project I'm doing requires an ordering system with the use of Spry tabs and I'm not sure if it will work. I'm familiar with creating forms, but unfamiliar with processing it with this kind of system.
    I would appreciate some insight.
    Thank you.

    Okay, I've reviewed the example you gave me and tested it and it worked fine. But when I tried to implement it on my form, the radio button selection didn't post. I'm going to go through this little by little:
    <?php
        if ((isset($_POST['WebPkg']))) {
        echo ($_POST['WebPkg']);                                           
    ?>
    <form id="form1" name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    <div id="TabbedPanels1" class="TabbedPanels">
    <ul class="TabbedPanelsTabGroup">
    <li class="TabbedPanelsTab" tabindex="0">Choose A Plan</li>
    <li class="TabbedPanelsTab" tabindex="0">Website Add-Ons</li>
    <li class="TabbedPanelsTab modif" tabindex="0">Premium Upgrades</li>
    <li class="TabbedPanelsTab modif" tabindex="0">Review &amp; Complete</li>
    </ul>
    <div class="TabbedPanelsContentGroup">
    <div class="TabbedPanelsContent">
    <table width="875" border="0" cellpadding="1" cellspacing="1" class="select-plan-table">
      <tr>
        <td class="plans-price"> <span class="price-big"><input value="39.99" title="" class="radio" id="WebsitePkg1" name="WebPkg" type="radio" />$39</span><span class="small-price">.99/mo</span></td>
      <td class="plans-price"><span class="price-big"><input value="79.99" title="" class="radio" id="WebsitePkg5" name="WebPkg" type="radio" />$79</span><span class="small-price">.99/mo</span></td>
        <td class="plans-price"><span class="price-big"><input value="114.99" title="" class="radio" id="WebsitePkg10" name="WebPkg" type="radio" />$114</span><span class="small-price">.99/mo</span></td>
        <td class="plans-price"><span class="price-big"><input value="149.99" title="" class="radio" id="WebsitePkg15" name="WebPkg" type="radio" />$149</span><span class="small-price">.99/mo</span></td>
      </tr>
    </table>
    <div class="additional-pages">
          <p><input class="cf_inputbox" maxlength="150" size="30" title="" id="addpages" name="addpages" type="text" value="0"/></p>
    </div>
    <p><input type="image" src="../images/stories/add-ons.png" width="135" height="33" border="0" style="background: none; border: none; width: 135px; height: 33px; border: none; float: right; cursor: pointer;" onclick="TabbedPanels1.showPanel(1); return false;" name="websiteaddons" alt="Website Add-Ons" ></p>
    </div>
    <div class="TabbedPanelsContent">--second tab--...more parts to the form...</div>
    <div class="TabbedPanelsContent">--third tab--...more parts to the form...
    <input type="image" src="../images/review-and-complete.png" height="33" width="135" style="background: none; border: none; width: 135px; height: 33px; border: none; float: right; cursor: pointer; margin-right: 3px;" onclick="TabbedPanels1.showPanel(3); return false;" name="gotoreview" alt="Review & Complete" />
    </div>
    <div class="TabbedPanelsContent">--fourth tab--
    <p><?php echo((isset($_POST["WebPkg"]))?$_POST["WebPkg"]:"") ?></p>
    <p><input type="checkbox" name="agreement" id="agreement" />Yes, I have completely read, understand, and agree to all articles and policies as outlined in Rewebbed's <a href="#">Terms & Agreement</a>.</p>
    <input name="submit" type="button" value="Account & Billing Info" />
    </div>
    As you can see on Tab 4, I'm expecting  <p><?php echo((isset($_POST["WebPkg"]))?$_POST["WebPkg"]:"") ?></p> to post the sent information with the 'Review & Complete' button clicked in Tab 3. Then in Tab 4, this will be another form that has the posted information to be sent to a payment gateway.
    So why wouldn't it post in the fourth tab?

  • Send Form to Email with Spry & PHP

    Hi there,
    i dont understand this page
    Submit
    forms with XHR
    What is in this page: SubmitChecker.php?
    How do I send the Form Information to an Email?
    Is there a tutorial from start to finish. All this tutorials
    or sample stop at the most important part. How to send.
    Thanks for help
    Denis

    Thanks for your little advice. I got it. And the send code
    should be placed in the php file called by the form ;-)
    TestPage
    Thanks a lot !!!
    Denis
    Which download? Can you please post a link to the download
    I know how to send forms with PHP. But now i want to try it
    without load a new page. The problem is, that i dont understand how
    to merge all the things. Spry, Form and PHP.
    I guess i have to put the sendscript inside here:
    // Callback function that will update the response_form1 div
    with the response that comes from the server
    function updateResponseDiv(req)
    Spry.Utils.setInnerHTML('response_form1',
    req.xhRequest.responseText);
    Or is this only the place for the message that the form has
    been submitted?
    Do i have to send the form inside the SubmitChecker.php
    It's a pity that all the samples stop at the important part.
    And that they are all in english.
    It will be greatful if you have a simple sample with
    Submitting a Form with Spry and PHP. Just to see how it works and
    where to place the code.
    cheers
    denis

  • Help with Spry form and Validation

    We have a form with shipping and billing information. When
    you fill out the billing and select same as billing radio button.
    Then it fills out the shipping fields properly using focus to make
    sure the spry validation recognizes the input. Everything on the
    form appears to be valid in Firefox Windows and Mac and Safari but
    the submit button does not work. Before we started we go the
    shipping fields to populate with the billing data the form
    submitted fine.
    On IE 7 the 1st Zip code fields shows the error messages and
    then only some of the hints show up in the spry validate fields
    below. This is only on IE. When you populate the shipping section
    in IE with the radio button in fills in everything but that
    shipping zip again on IE only. You actually have to manually type
    in the zip.
    Is this IE bug related to the form not submitting in the
    other browsers?
    I don't understand why the form in all the other browsers
    appears to have all fields validate but will not submit.
    I bet between three of us we have 60 hours in the stupid form
    and 2/3rds of it is not billable.
    On the other hand we need to finish this today!!. We will all
    be around at about 3 on Sunday. I am happy to pay someone to look
    at this and help us get through this last step.
    I wish there was some debug tool we could use to see what is
    going on. I look at the debug.js file in 6 in the meantime. I can
    be reached at 610-256-2843 and best email is [email protected]
    Help!!
    You can see all the by going to
    http://vv.dss-demo.com/
    then add something to your cart and go to checkout. you will
    get the form.

    Florin,
    Thanks for the response. We were looking for a way to remove
    the hints but did not see anything in the documentation.
    But I am still having issues.
    A. Not sure how you are not seeing the text &quot;Zip is
    required.Invalid format.&quot; in the grey area next to zip
    code fields. It is there on IE 6 and 7 4 different users with
    different computers see it.
    B. As soon as I add you code you suggested and comment out
    what we had it throws and error in IE and the debug says it is at
    the 1st instance of your method sprytextfield20.removeHint();
    Object does not support method.
    C. A new problem we did not notice last night on all browsers
    is that the form now does not respect the spry validations. It
    submits no matter what. I am using this to submit the form.
    &lt;input name=&quot;submit&quot;
    id=&quot;submit&quot; type=&quot;image&quot;
    src=&quot;images/complete_checkout.png&quot;
    onclick=&quot;document.forms['checkout_signup'].action='&lt;@appfilepath&gt;checkout_sign up.taf?_function=signup';document.forms['checkout_signup'].submit();&quot;
    /&gt;. We for sure don't want. It seems to have occured once we
    added the document.forms['checkout_signup'].submit(); in the 1st
    place but that without that the form would not submit even when
    everything appeared to be validated. So was adding
    document.forms['checkout_signup'].submit(); =seems to have just
    covered up another issue that is keeping the form from submitting.
    I still would like to have someone really look at this form
    with me and pay them if I have to. But it really does not seem that
    the path we are talking really works.
    I am going to roll this back to where it was till I can get
    some help.
    my guess at this point
    Hints have to go because if we fill down with fields that
    have hints then the hints become the values and are submitted. And
    it also breaks the spry validation.
    I would hope that the way we are rebuilding the zip and state
    fields would be possible with spry. It sure looks like it works. My
    hope is it is not causing the submit to not work.
    Anyway I still need help from someone who would be willing to
    take the time ort has the time to look over the page and al lthe
    logic we are using and see if there is a better way to do this
    even. This form is ending up costing me more time in non billed
    hours then the job itself. Yipes!!!
    As far as the HTML tags I will look at that again there are a
    bunch of includes build some of this page but I do see the
    beginning &lt;html&gt; seems to have been lost and I put it
    back in.
    D. I realize there is a fault with this method in the 1st
    place since it replaces the hints with values even if the value is
    the hint. Any suggestion on how to deal with that? are these hints
    more trouble then they are worth when used as field names. Should
    we just redisgn and use the field names in the 1st place?

  • Help with Spry Rating Widget within a Spry Repeating Region

    My link  http://www.youthinkyougotitbad.com
    This is a long question, but it seems to me if answered somewhere it could help alot of people in the spry community creating comment boards as it uses three important spry widgets: rating, repeating, and tabbed panels. I am trying to use spry rating widget within a spry repeating region within a spry tabbed panel with xml. I was trying to go with the pulse light script (http://forums.adobe.com/message/3831721#3831721) but Gramps told me about the spry rating widget. But I have ran into a couple more problems. First, I couldnt find that much information on the forums or online about how to do the php page with the spry rating widget. None of these have any information on how to do it:
    http://labs.adobe.com/technologies/spry/articles/rating_overview/index .html
    http://labs.adobe.com/technologies/spry/articles/data_api/apis/rating. html
    http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.ht ml
    And it seems that the official examples are so poor (or I am just ignorant, which def could be a possiblity) it shows
    to set the initial rating value from the server, but uses a static value of 4
    http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.html
    <span id="initialValue_dynamic" class="ratingContainer">
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>      
             <input id="spryrating1_val" type="text" name="spryrating1" value="4" readonly="readonly" />
             <span class="ratingRatedMsg sample">Thanks for your rating!</span>
    </span>
    <script>
    var initialValue_dynamic = new Spry.Widget.Rating("initialValue_dynamic", {ratingValueElement:'spryrating1_val'});
    </script>
    I finally found a site that has the php and mysql setup.
    http://www.pixelplant.ro/en/articles/article-detail/article/adobe-widgets-for-download.htm l
    But its not perfect. It has the same problem that I ran into with Pulse light, that you had to use php echo within the spry repeating region to set the initial value from the server:
    <span id="spryrating1" class="ratingContainer">
             <span class="ratingButton"></span>
                <input type="text" id="ratingValue" name="dynamic_rate" value="<?php echo $row['average']?>"/>
            </span>
            <script type="text/javascript"
                var rating1 = new Spry.Widget.Rating("spryrating1", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id=spryrating1&val=@@ratingValue@@'});
            </script>
    So instead, I tried with three of my panels (www.youthinkyougotitbad.com) to get the average rating from xml by using the following queries:
    Recent
    Returns the blurts in most recent order along with average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC
    Wet Eyed
    Returns the blurts in highest ratings order along with the average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r Desc
    Dry Eyed
    Returns the blurts in lowest rating order along with the average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r
    These all return the correct xml in the correct order.And they return the average rating of each blurt which I can send to my page with xml.
    My first question is that I dont know how to configure the query on my fourth panel Empathized & Advised the same way because it already has a Group By for the Comment Id.
    SELECT `Comment`.id_Blurt, COUNT(*) as frequency, Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt, `Comment` WHERE Blurt.Id_blurt = `Comment`.id_Blurt GROUP BY `Comment`.id_Blurt ORDER BY COUNT(*) DESC";
    Not sure if you guys need more information to understand that all, if so just ask.
    So after I get my average value through xml to the first three panels, I set my spry repeating region up like this:
    (Blurt panel)
    <div spry:region="pv1" spry:repeatchildren="pv1">           
               <div class="blurtbox">
                <!--  most recent blurt tab-->
                <h3> "{pv1::Blurt}"</h3>
                <p> Blurted from {pv1::Location} at {pv1::Date}</p>
                <p>Empathize or Advise about {pv1::Name}'s Blurt #<a href="detailblurt.php?blurtid={pv1::Id_blurt}"> {pv1::Id_blurt}</a></a></p>
               <span id="{pv1::Id_blurt}" class="ratingContainer">
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingRatedMsg">Thank You! Your tears have been tallied.</span>
                <input type="text" id="ratingValue" name="dynamic_rate" value="{pv1::average_r}"/>
            </span>
            <script type="text/javascript">
                // overview of available options and their values:
                // http://labs.adobe.com/technologies/spry/articles/rating_overview/index.html
                var rating1 = new Spry.Widget.Rating("{pv1::Id_blurt}", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id={pv1::Id_blurt}&val=@@ratingValue@@'});
            </script>
                 <br/>
               </div>
              </div>
    Ok, it registers the right vote in the database with the right blurt id each time. But I am having two problems so far:
    One, even though {pv1::average_r} returns the correct average through xml, it doesn't show the initial rating value for each of the repeating blurts. It seems to show the first one correct, and then just repeat that same value to the other ones that follow. I just dont understand since it can get the correct server value right after you vote (afterRating:'serverValue), that I can't manipulate spryrating.js in some way that I could just replace 'ratingValue' in ratingValueElement:'ratingValue' with something to give me the initial server value.
    Two: Is even more mysterious to me, if you play around with voting on the site, sometimes you are unable to vote on different blurts. Its weird. It seems like that the javascript is completely off just on those blurts. And sometimes its a whole row, sometimes none. But so far its never a problem on the first tabbed panel (Recent), only on the other three. As far as I know, the coding is exactly the same in each tab's repeating region except for the different xml input.
    And, now on the live server, sometimes the pics of tears used to voting dont show up until you click.
    Any help on those three questions (how to query the fourth panel, how to show the initial server value, and the glitches with voting) would be greatly appreciated!! I looked pretty hard on adobe forums and other sites, and didnt see much on how to really use the spry rating widget with php and xml.
    Thanks!!

    Update:
    Ok, the first query on the Recent tab doesnt work for me because it wont show unless its already voted, and since these are supposed to be new blurts, that kind of breaks the whole site:
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC";
    So I replaced it with what I originally had.
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt ORDER BY Blurt.`Date` DESC";
    But this doesn't provide me with the initial average rating:(

  • Is possible to take the Infopath form with two repeat section in one SharePoint list

    Is possible to take the Infopath form  with two repeat section in one Sharepoint list 
    Take two repeat section and put them one bellow to other one in a SP list.
    The motive is that the first repeat section is based in account own by the requestor and the second repeat section is when the requestor is doing backup time for some one else where need to log the amount of time that spend in the peer account.
    I have basic logic in the form when requestor said Are you doing backup for some else? and press YES it is be able to use the second repeat section.
     Le me know how much pain full is going tobe or not..
    –Q1: Is possible to do this ?  With codeless or not
    –Q2:What steps I need to do to accomplish this?  feasible or not
    the following picture give a better idea of what I am looking to accomplish:
    CRISTINA&amp;amp MICROSOFT Forum

    Hi,
    Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Contact form with Spry 'Tabbed Panels' and 'Validation TextField'

    Hello
    I am considering making a form using Spry tabbed panels (as step 1, step 2, etc.) and the form validation to process name, email, address, credit-card, accept terms and conditions, etc.
    This is instead of a multi-page form, because there could be security flaws there (i.e. passing sensitive information from one page to the next) and it would take longer for the user - needing to open each page, etc. where this is to be used as a buy form (for a single product), sort of like one-click order (but not exactly).
    Overall, it seems like a good idea, someone else has tried it, but I do have some questions that haven't been covered there - relevant for anyone that'd ever want to do this with Spry - that didn't come up there:
    1. Will it degrade gracefully, and still work? For example, when you turn JavaScript, CSS, images, and other things off?
    2. Is it possible to go from Step-to-Step (using the top tabs, or 'Submit' and 'Back' buttons added on the bottom) without entering all of the required information? Because I would like to disable this - perhaps also have the future Steps grayed out and un-clickable.
    3. Is it safe to use this form to enter credit card details, and then email those to the website's account? I am new to SSL, so I'm not sure if I could implement some security feature here? Where should I look?
    4. Does it load the page fast, despite having multiple steps all pre-loaded? Can we make subsequent steps require some 'loading' (without refreshing the page)?
    5. If it doesn't do either of these, how could we make it do that?
    I hope to hear from you!

    Hello
    I am considering making a form using Spry tabbed panels (as step 1, step 2, etc.) and the form validation to process name, email, address, credit-card, accept terms and conditions, etc.
    This is instead of a multi-page form, because there could be security flaws there (i.e. passing sensitive information from one page to the next) and it would take longer for the user - needing to open each page, etc. where this is to be used as a buy form (for a single product), sort of like one-click order (but not exactly).
    Overall, it seems like a good idea, someone else has tried it, but I do have some questions that haven't been covered there - relevant for anyone that'd ever want to do this with Spry - that didn't come up there:
    1. Will it degrade gracefully, and still work? For example, when you turn JavaScript, CSS, images, and other things off?
    2. Is it possible to go from Step-to-Step (using the top tabs, or 'Submit' and 'Back' buttons added on the bottom) without entering all of the required information? Because I would like to disable this - perhaps also have the future Steps grayed out and un-clickable.
    3. Is it safe to use this form to enter credit card details, and then email those to the website's account? I am new to SSL, so I'm not sure if I could implement some security feature here? Where should I look?
    4. Does it load the page fast, despite having multiple steps all pre-loaded? Can we make subsequent steps require some 'loading' (without refreshing the page)?
    5. If it doesn't do either of these, how could we make it do that?
    I hope to hear from you!

  • Form Submission with Results on Same Page

    Hi there,
    I am new to Spry, well, have used an accordion and thats
    about it. I
    want to create a page that has a form that submits to an ASP
    page, all
    the ASP does is insert a record. After the ASP has inserted
    the data, it
    will return the data, I want this to appear on the same page
    that
    submitted it without refreshing the page. The page will allow
    another
    set of data to be submitted, and again this data needs to be
    displayed,
    but below the previous data displayed.
    Is this possible with Spry? If it is, which part of Spry do I
    need to
    investigate?
    Are there any gotchas I should know about whilst using this
    technique?
    Thanks in advance!
    Dooza

    V1 Fusion wrote:
    > Hello Dooza,
    >
    > Check out these examples:
    >
    >
    >
    http://labs.adobe.com/technologies/spry/samples/form_submission/Submit_and_Valid
    > ate_Form.php.html
    I like the validation, and the demo works well.
    >
    http://labs.adobe.com/technologies/spry/samples/form_submission/SubmitFormWithXH
    > RSample.asp.html
    For some reason I don't see the response from the server as I
    do with
    the PHP example, all I see is:
    <%
    Response.Expires = -1
    Sub dump_object_irequestdictionary(ByRef var)
    If var.Count<>0 Then
    Dim i
    For each i in var
    quote = """"
    If var(i).Count = 1 Then
    Response.write i & " = " & quote & var(i) &
    quote &
    vbNewLine
    Else
    Response.write i & " = " & vbNewLine
    For j = 1 to var(i).Count
    Response.write vbTab & "(" & j & ") = " &
    quote
    & var(i)(j) & quote & vbNewLine
    Next
    End If
    Response.write vbNewLine
    Next
    End If
    End Sub
    Response.Write "POST:" & vbNewLine
    dump_object_irequestdictionary Request.Form
    Response.Write "GET:" & vbNewLine
    dump_object_irequestdictionary Request.QueryString
    %>
    Which looks like the code to get the response, or is the
    intended output?
    Dooza

  • Work around for spry:repeat="ds1 ds2" limitation

    I need to have both data sets repeat when using a Spry repeating region:
    <div id="apDiv4" spry:region="ds1 ds2">
        <table class="sprytable" border="1">
          <tr>
            <th spry:sort="Q#">Q#</th>
            <th spry:sort="Category">Category</th>
            <th spry:sort="Question">Question</th>
            <th spry:sort="You">You</th>
          </tr>
          <tr spry:repeat="ds1 ds2">
            <td>{ds1::Q#}</td>
            <td>{ds1::Category}</td>
            <td>{ds1::Question}</td>
            <td>{ds2::You}</td>
          </tr>
        </table>
    </div>
    If I use ds1 in the spry:repeat, ds1 data will repeat (but ds2 will use the first value); or if I specify ds2, ds1 will use the first value.
    I need them both to repeat.
    I have spent so much time in forums, etc. and can't seem to find a workaround.
    My only work around is to combine ds1 and ds2 and reload them together from the server - yuk!
    ds1 is fixed and large. ds2 is small and dynamic so reloading really sucks.
    Following are the ds Vars - probably irrelevent:
    var ds1 = new Spry.Data.HTMLDataSet(null, "rsfamily", {sortOnLoad: "Q#", sortOrderOnLoad: "ascending" }); ds1.setColumnType("Q#", "number"); var ds2 = new Spry.Data.HTMLDataSet("youranswersIRtab.php", "youranswerstab", {}); I will worship the person who gives me an idea.
    Thanks

    Thanks V1, timkho and coolsanwa for your thoughts.  Since you've been so patient (and understanding) let me briefly tell you what I'm trying to do.
    I'm considered good at multi-dimensional databases and have recently fallen in love with DreamWeaver to build a pretty complex site so I don't have to be a real expert at PHP, Spry, Ajax, JavaScript, DOM, HTML, CSS etc (I suck, but most everything is working).
    I wish I could point you to a site but I need to keep it secret for a bit - its strictly on my PC for now.
    Let me explain the snippit, which I still don't have working .
    ds1 has three columns and ds2 has one.
    ds1          ds1               ds1                         ds2               ds3
    Q#          Category         Question                 You               Compare1
    1          Boats               How big?                    24               36
    2          Boats               What color?               Blue               Red
    3          House               Number rooms?          3                    6
    4          House               Sq feet?                    1000               3000
    5          House               Have garage?               No               Yes
    etc to 200+
    ds1 doesn't change and I don't want to reload it
    ds2 are your saved answers (I will have a form to fill in and a Submit-  different subject)
    ds3 is user selected comparisons, retrieved from a MD database (academic because ds2 has me stopped).
    Category has table row classes (to whole row), which will drive Tabbed Panels.
    ds1, ds2, ds3 data have the class assigned to each row (setRowSelector) classes for columns(setColumnSelector).
    I want a Spry Table with its many neat features (eg. sorting) that combines the 3 ds's (lets worry about 2 for now).
    Incredibly simple but I'm stuck.
    Timko suggestion results in syntax error- removing single quotes.
    Collsanwa suggestion creates new columns so repeat is done for each row after You column:
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    200+ times
    (I'll repeat the snippit) . Could you point me to an explanation for the spry:if  id/mmid
    Thanks so much.
    <div id="apDiv4" spry:region="ds1 ds2">
        <table class="sprytable" border="1">
          <tr>
            <th spry:sort="Q#">Q#</th>
            <th spry:sort="Category">Category</th>
            <th spry:sort="Question">Question</th>
            <th spry:sort="You">You</th>
          </tr>
          <tr spry:repeat="ds1">
            <td>{ds1::Q#}</td>
            <td>{ds1::Category}</td>
            <td>{ds1::Question}</td>
            <td spry:repeat="ds2" spry:if="'{ds1::id}' == '{ds2::mmid}'">{ds2::You}</td>
    <!--    <td spry:repeat="ds2" spry:if="{ds1::id} == {ds2::mmid}">{ds2::You}</td>   Syntax error w/o quote-->
          </tr>
        </table>
    </div>

  • Failed to retrieve data set (dsLibrary) for spry:repeat

    I've tried to make this work with an external xml file,
    external html table, and finally this version with an internal html
    table for the data set source. The source table shows up in the
    browser along with the error message in a box with red header
    "Failed to retrieve data set (dsLibrary) for spry:repeat".
    I used one of the Adobe Samples as a base for my page. I've
    checked and recheck, and I can't find the source of my problem.
    Please help!!!
    My code is below and the url to the page is
    http://www.healthy-horse.info/articles.html
    Thanks!
    <!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"
    xmlns:spry="
    http://ns.adobe.com/spry/">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>hh1</title>
    <link href="matt_layout.css" rel="stylesheet"
    type="text/css" />
    <link href="matt_style.css" rel="stylesheet"
    type="text/css" />
    <link rel="stylesheet" type="text/css"
    href="chromestyle.css" />
    <script type="text/javascript"
    src="SpryAssets/SpryHTMLDataSet.js"></script>
    <script type="text/javascript"
    src="SpryAssets/SpryData.js"></script>
    <script type="text/javascript">
    var dsLibrary = new Spry.Data.HTMLDataSet(null,
    "ArticleLibrary");
    </script>
    <style type="text/css">
    .style1 {color:black}
    .product {
    cursor: pointer;
    .hover {
    background-color: #A6C4E1;
    .selected {
    background-color: #D5C897;
    </style>
    </head>
    <body>
    <div id="masthead"><img class="title"
    src="images/articles_title.gif"/>
    <div class="headerinfo">Great informational articles
    that cover a wide variety of topics relating to
    <strong><em>Horse Health</em></strong> and
    <strong><em>Natural Horse
    Keeping</em></strong>. </div>
    </div>
    <!-- end masthead -->
    <div class="chromestyle" id="chromemenu">
    <ul>
    <li ><a href="default.html"
    >HOME</a></li>
    <li><a
    href="articles.html">ARTICLES</a></li>
    <li><a
    href="faqs.html">FAQ'S</a></li>
    <li><a
    href="links.html">LINKS</a></li>
    <li><a target="_blank" href="
    http://www.healthy-horse.info/forum">FORUM</a></li>
    <li><a href="mailto:[email protected]"
    >EMAIL</a></li>
    </ul>
    </div>
    <div id="wrapper">
    <table width="100%" border="0">
    <tr>
    <td width="30%" valign="top">
    <ul spry:region="dsLibrary"
    spry:repeatchildren="dsLibrary">
    <li class="product" spry:setrow="dsLibrary"
    spry:select="selected" spry:hover="hover">{category}</li>
    </ul>
    </td>
    <td width="70%" valign="top">
    <div spry:detailregion="dsLibrary">
    <div><strong>Articles:</strong>
    {articles}</div>
    </div>
    </td>
    </tr>
    </table>
    <br/>
    <!--SOURCE TABLE-->
    <table id="ArticleLibrary" border="1" cellspacing="0"
    cellpadding="10">
    <tr>
    <th>category</th>
    <th>articles</th>
    </tr>
    <tr>
    <td>Adobe Photoshop CS2</td>
    <td>
    <ul>
    <li>Revolutionary Vanishing Point</li>
    <li>Multiple layer control</li>
    <li>Smart Objects</li>
    <li>Multi-image digital camera raw file
    processing</li>
    <li>Image Warp</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe Illustrator CS2</td>
    <td>
    <ul>
    <li>Live Trace</li>
    <li>Live Paint</li>
    <li>Control palette</li>
    <li>Custom workspaces</li>
    <li>Photoshop layer comp support</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe InDesign CS2</td>
    <td>
    <ul>
    <li>Object styles</li>
    <li>Adobe Photoshop and Adobe PDF layer
    support</li>
    <li>InDesign snippets</li>
    <li>Adobe InCopy CS2 assignments</li>
    <li>Save backwards to InDesign CS</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe GoLive CS2</td>
    <td>
    <ul>
    <li>Enhanced live rendering</li>
    <li>Simple visual tools to build and edit CSS-based
    pages</li>
    <li>Visual CSS authoring for mobile devices</li>
    <li>Visual SVG-t inspection and authoring for
    mobile</li>
    <li>Total site management</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe Fireworks 8</td>
    <td>
    <ul>
    <li>Get top-quality design results.</li>
    <li>Produce highly optimized files that still look
    great.</li>
    <li>Slice and export page comps.</li>
    <li>Create sophisticated web navigation.</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe Acrobat Professional</td>
    <td>
    <ul>
    <li>Enjoy improved performance</li>
    <li>Extend commenting capabilities</li>
    <li>Easily design Adobe PDF forms</li>
    <li>Enjoy improved attachment capabilities</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe Acrobat Standard</td>
    <td>
    <ul>
    <li>Create Adobe PDF documents from Microsoft
    Outlook</li>
    <li>Enjoy improved performance</li>
    <li>Use enhanced headers, footers, and
    watermarks</li>
    <li>Enjoy improved attachment capabilities</li>
    <li>Organize Adobe PDF documents</li>
    </ul></td>
    </tr>
    </table>
    <!--END SOURCE TABLE-->
    </div>
    <!--end wrapper-->
    <div id="footer"><p class="footer">Mathew Baker
       <a
    href="mailto:[email protected]">[email protected]</a>   
    *     Waynesville, OH</p>
    </div>
    <!--end footer-->
    <br/>
    <p class="center" style="font-size:9px"><img
    src="/cgi-sys/Count.cgi?df=matt.dat|display=Counter|ft=6|md=5|frgb=228;224;224|dd=E"/>
    <span class="style1">Web Design by:   Maria Lee
      -  <a
    href="mailto:[email protected]">[email protected]</a> 
    -   (937)554-4116</span></p>
    </body>
    </html>

    Try moving the SpryHTMLDataSet.js script tag below the
    SpryData.js script tag.

Maybe you are looking for

  • All creative suite (cs3) programs quit unexpectedly upon startup

    Hey there, Been having some issues with Photoshop, Dreamweaver, Indesign and Illustrator. Whenever I open I immedietly get the error message 'Photoshop quit unexpectedly'. I have tried repairing my permissions, no updates have been installed, everyth

  • ORA-00933 - Error in PL/SQL for Form with report.

    Hello, I am getting this error : failed to parse SQL query: ORA-00933: SQL command not properly ended and my PL/SQL function body returning SQL is as follows: Declare q varchar2(32767); w varchar2(4000); v_total varchar2(10); Begin v_total:='TOTAL' ;

  • Redo log backup through DB13

    hello, if i try to use DB13 for relo log backup it gives error as Job started                                                                   Step 001 started (program RSDBAJOB, variant &0000000000286, user name BASIS)  Execute logical command BRAR

  • MC$4 Vs FK10N

    HI Why there is difference between  MC$4 and FK10N Values. If I compare the debit amount from FK10N with Invoice amount figure from MC$4 for a prticular period there is huge difference. What is the basic fictionally between these two and If I want to

  • Prompt values At the top of OBIEE reports

    Hi All, Actually we have a requirement like we have to display the values which is entered by the user in the prompt , at the top of the answers report. For eg: If the user enters the "Name" as "x" and "Number" as "1″ in the prompt, at the top of ans