Help with URL Parameters and HTML DataSet please.

Hello everybody!
Looking at the example page: "Using URL Parameters to Control Data Regions", towards the bottom it gives an example of "Set by Product Name", from an XML DataSet using the following sample code:
    //Data set for the second example. var ds2 = new Spry.Data.XMLDataSet("../../demos/products/products.xml", "products/product");    //If the URL parameter 'product' has a value, set the XPath that includes a filter and then load the data. if (params.product){    ds2.setXPath("products/product[name = '"+params.product+"']");    ds2.loadData(); }
Can anyone please explain how to amend this to work with a HTML Dataset rather than XML?
The first example on the page (Set by RowID) works unchanged for the HTML DataSet, but I don't know what I should replace the 'setXPath' line with.
I see this has been asked before, but I'm afraid I can't find any answer that works (or, more often, that I can understand properly!)
Grateful for any suggestions.
Len

Wow! Thanks Ben.
I hadn't thought about using Stacked Containers.
I'll test this out tonight and let you know how I get on.
Cheers,
Len
A few days later and at last I've been able to test your suggestions.
I think I must be doing something wrong as the links and content don't work at all:
http://www.myosanthe-bernhard-huber.com/html/stack1.php
I know that the stacked containers do work (http://www.myosanthe-bernhard-huber.com/html/stack0.php), so I guess there are some errors in the coding somewhere.
Would you mind reviewing, please?
The important thing for me (in this case, anyway) is to get the called page's content using its 'Ref', and I'm not sure what benefit there is in using stacked containers as opposed to master-detail containers.
The master-detail method works reasonably well for me at
http://www.myosanthe-bernhard-huber.com/html/fotoalbum.php and sub-pages.
Perhaps I am betraying my lack of knowledge, but as I said in my original post, I think that I just need the HTMLDataSet equivalent to:
    //Data set for the second example.
var ds2 = new Spry.Data.XMLDataSet("../../demos/products/products.xml", "products/product");
   //If the URL parameter 'product' has a value, set the XPath that includes a filter and then load the data.
if (params.product){
   ds2.setXPath("products/product[name = '"+params.product+"']");
   ds2.loadData();
which as you can see uses an XMLDataSet, but does exactly what I need.
(see http://labs.adobe.com/technologies/spry/samples/data_region/DataWithURLParams.html)
Thanks again for your help, Ben.
Len
Message was updated by: ec1lennie

Similar Messages

  • Help with iWeb 09 and ftp publishing please?

    I'm using iWeb09 and when I publish my website via ftp, the address it publishes to is my web address, followed by / and the name I gave the website on iWeb.  So its not showing on my actual website.  When I go to visit the website via the successfully published screen, the message I get is the requested url is not found on this server.  Any help please?

    Make sure you entered the correct URL in the Publishing Settings page and that you have left the Directory/Path field blank as shown on the first example on this page...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    To remove the sitename from the URL...
    http://www.iwebformusicians.com/iWeb/URLs-Favicons.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • Help with formatting parameters in html output?

    Hi --
    I would like to use a style sheet to adjust the way that javadoc displays lists of parameters below each method. In the HTML output, the code around the parameter name and description looks like this:
    <dd><code>filterContainers</code> - True if the containers within the database
    are to be considered individually during task assignment; false if the entire database is to be assigned as a single task.
    </dd>
    I apologize if this is basic CSS question, but I don't understand how to change the way 'filterContainers' is formatted -- maybe make it italic or something. I was also hoping to increase the padding below each parameter name/description because they seem to squished together.
    Any help is greatly appreciated.
    Jen

    Add this to stylesheet.css to make "filterContainers" italic:
    dl dd dl dd code {
    font-style: italic;
    }This adds space below lines inside dd
    dl dd dl dd {
    padding-bottom: 3px;
    }(You could change it to padding-top to add the space above instead.)
    The sequence "dl dd dl dd code" is the nested hierarchy of HTML tags relative to body.
    Here are the CSS elements defined above: (CSS 2.0)
    http://www.w3.org/TR/2005/WD-CSS21-20050613/propidx.html

  • Help with instantiating objects and validating them please

    Hello,
    im working on an assigment where i have to make a milk tank object that simulates a Milk tanker (one of those things that carrys milk :P)
    It has a specific constructor that you can pass the volume and capacity to it. I was wondering how i could validate this and make it so the object doesnt instantiate and maybe return an error message if the volume of milk exceeds the capacity of the milk tanker?
    basically i just want to make sure an object is valid while it instantiates, otherwise bomb out and return an error..
    Thank you,
    Phill
    PS: im still learning java so some stuff might be over my head, but ive got a book next to me to help me understand :) (yes, ive checked and i cant find anything on this subject)

    public MilkTanker(int volume, int capacity) throws
    InvalidArgumentException
    if (volume > capacity)
    throw new InvalidArgumentException("Volume can't be greater than >capacity");
    this.volume = volume;
    this.capacity = capacity
    }This means that while trying to create a new object of this class you need to handle a possible exception:
    public static void main (String [] args){
       try {
          MilkTanker tank = new MilkTanker(100, 1000);
       catch (InvalidArgumentException _){
          System.err.println(_.getMessage());
    }In the case that an exception is thrown the object of this class will not be created and every line of code you might have after the constructor call (inside the try clause) will not be executed.
    Hope that helped
    afotoglidis

  • Help with Wireless Keyboard and Mighty Mouse please!

    Hello. I own the wireless Mighty Mouse as well as the wireless keyboard for Mac, and while ago I set them up to work on my Mac, but I don't use them very much so I want to give them to my parents for their Mac. The thing is, I forgot how to set it up or install it or whatever. Can anyone tell me how to get the wireless mouse and keyboard to work, or what the install process is for them? Was there a CD that came with them that I need to install drivers with or something? Anyways, I have the mouse and keyboard sitting up here next to this computer, and I've turned them on with the switches on the back, but they're not working. What do I do next? Thank you!
    -- Andrew

    Solution
    Turn your Bluetooth keyboard and/or mouse off for 30 seconds, then back on.
    If the keyboard or mouse doesn't respond, or if an alert message appears again:
    Connect a USB keyboard or mouse.
    Open Bluetooth preferences (choose System Preferences from the Apple menu, then click Bluetooth).
    Verify that Bluetooth is turned on. (You can also do this with the Bluetooth menu bar item, if enabled).
    Pair the keyboard or mouse by setting it up as a new device.

  • Start IC WebClient with URL Parameters

    Hi,
    we are currently implementing IC WebClient 5.0. One of the customer needs is it, to start the IC WebClient with a service order ID, so that the order is displayed immediately without searching and confirming an account. Is it possible to start the IC WebClient with URL parameters to solve that issue?
    Thank you for you help in advance!
    Marcus Walena

    Hallo Marcus,
    This is currently not possible.
    However, you don't need to always confirm the customer. You can use the agent inbox to do the search and navigate directly to the service order. However, if you want to do any processing after that, then you will need to identify the customer. The other option is to implement this yourself.
    BTW: It is possible to navigate via a URL to the service order directly using PC UI.
    Regards,
    Shiv

  • Live view doesn't correctly pass URL parameters from HTML docs?

    Running into something that I wonder if anyone else has seen.  I've created a site in DW CS5 with a local testing server (XAMPP on Win7), and if I use LiveView to view an HTML page that has a link to a PHP page that includes a URL parameter, the parameter shows up in the LiveView address bar, but the page doesn't seem to use it (trying to display an image where the file is built using $_GET to retrieve the parameter).  The same HTML page, displayed in a browser, works.  And if I then save the HTML page as a PHP page in DW, identical code, LiveView works.  Sure looks like LiveView will does not properly handle URL parameters from HTML documents...

    Sorry if I wasn't clear... the navigation works correctly; I get to the page I'm tyring to get to.  One of the things that page should do is display an image, the I use a URL parameter to build the image file name to retrieve.  The link in the first page is something like <a href="gallery.php?pg=1">.  Works fine if the first page (the one I'm navigating from) is a PHP page, doesn't work (with the same code which is only HTML) if the page is an HTML page.

  • Need help with Blog, Wiki and Gallery

    Hi Team,
    Need help with Blog, Wiki and Gallery startup. I have newly started visiting forums and quite interested to contribute towards these areas also.
    Please help.
    Thanks,
    Santosh Singh
    Santosh Singh

    Hello Santhosh,
    Blog is for Microsoft employees only. However, you can contribute towards WIKI and GALLERY using the below links.
    http://social.technet.microsoft.com/wiki/
    http://gallery.technet.microsoft.com/

  • Still Can't Figure Out Returning to Page with URL Parameters

    Hi,
    I am trying to figuring out how after submitting a form to
    return to a previous webpage with URL parameters in it.
    Any ideas?
    Thanks,
    Craig

    I am using dreamweaver and coldfusion. I have been searching
    everywhere for the answer so if you can shed some light on this
    that would be great.
    Thanks,
    Craig

  • HTTP Receiver with URL Parameters

    Hi, I need to pass the following parameters when I do an HTTP post
    1. Data
    2. DataType
    3. Protocol
    4. Security
    5. DataFormat
    Here the Data will have the payload to be sent to HTTP receiver. Can anybody tell me, how I can pass the payload using URL Parameter.

    in the HTTP reciever CC
    from the help...
    - If you want to use URL parameters, select Apply URL Parameters and enter the parameters in the fields Parameter 1 to Parameter 6.
    The parameters are included in the HTTP request under the names specified here.
    The technical names of the fields are URLParamOne, u2026, URLParamSix
    Also check this blog
    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part III
    Edited by: Anand on Oct 15, 2008 8:40 PM

  • What's the phone number I should call for help with my iPhone and ihome dock?

    What's the phone number I should call for help with my iPhone and ihome dock?

    http://www.ihomeaudio.com/support/

  • Help with photoshop quitting and AMD graphics

    help with photoshop quitting and AMD graphics
    im not a techy, but it appears i have to do someting with my amd graphics card - this might be why my software is crashing - ive no idea what to do though

    Hi Chris
    I have tried to go on the website, then i tried to download the automatic detect because i wasnt sure which driver i had or needed - but it has just downloaded a load of game software - which i dont want ( i dont think)
    i have find out my laptop has a amd radeon HD 8750M card, but i dont know what im doing! i would hate to mess my computer up as i am in thailand with no one to help me!
    its frustrating as i am paying for CC but cant use it!

  • HT4199 I need help with getting my printer to print, PLEASE.

    I need help with getting my printer to print, Please.

    What have you done so far?
    I suggest you connect it via a usb  cable first.  Once you get the printer working, move to wifi.  You will have to use an existing printer usb cable or purchase a cable.  Be sure to get the correct cable.  Ask for help.
    The warrenty indicates there is phone support.  Give HP a call.
    Warranty
    One-year limited hardware warranty; 24-hour, 7 days a week phone support
    Robert

  • HT4623 hi i have an iphone 4s and has not been a year yet no water damage but there is a white cloudy screen around the edges and will start going crazy with different colors and all someone please gel what is wrong with it?

    hi
    i have an iphone 4s and has not been a year yet no water damage but there is a white cloudy screen around the edges and will start going crazy with different colors and all someone please gel what is wrong with it?

    I switched the usb port and did the whole recovery holding of the buttons ect... And it worked, the computer detected the phone and i was able to click restore. However, the computer says preparing iphone for restore and it is still doing the restarting thing where the apple fades away and then comes back like it is restarting. If i can somehow get past this i will be able to go back to factory settings and resolve my problem, but this is where i am stuck.

  • MOVED: need help with my k7n2 delta series motherboard please

    This topic has been moved to AMD SocketA based board.
    need help with my k7n2 delta series motherboard please

    "...the other memory ive been using is  memorymaxx 512mb ddr 3200..." If I understood right, your'e actually using both memories at same time so, your'e lucky if it works. We have said thousand times that mixing dif. brand/make/speed memories is a bad idea, most with this Mobo that is very picky about ram. If you want to avoid slowdown problems, stay with only one stick ( the better one ) until you can buy at same time in same store, 2 identical memories to replace the old one.

Maybe you are looking for

  • Issue in parsing MYSAPSSO2 Cookie -Certificate Serial no is in Hexadecimal

    Hi All, We are trying to establish SSO with a non SAP web application using MYSAPSSO2 cookie. Plan is to write a java class which can parse out the MYSAPSSO2 cookie, extract the user Id and use it for single sign on. Following Libraries are used: log

  • No music in ipod, but says there is!?

    when i was updating my ipod and charged it i disconnected it and left it alone then i wantd to listen to it and nothing was on it. then when i plugged it in my computer it said i have no space on my i-pod but nothing was on it. i cant figure it out s

  • Getting subscription fees from user. Implementing this?

    I'm wondering what options are there and what would be the best option to handle receiving subscription payments from users of a business J2ME app? I would like to have them charged to their phone bill. If the user has been using the app for 6 months

  • Appearance of links in IE

    This webpage details the idiot attempts of the British Government to change facilities for sterilising surgical instruments. It works very well when viewed with Safari but when the world looks at it using Internet Explorer the hyperlinks look very od

  • How to install NWDS in ECC 6.0

    i have pre installed ECC 6.0 image . I am able to login to SAP EP. But i am not finding NWDS for creating. Please help me how to install NWDS in that image. Kindly let me know asap. Naveen