Incorrect GET parameters after splitter load

4 posts, 0 answers
  1. Stijn
    Stijn avatar
    3 posts
    Member since:
    Aug 2013

    Posted 14 Aug 2013 Link to this post

    Hi,

    I have a splitter with 2 pages on a "default" page.

    Default.aspx?id=1234 -->

    $("#horizontal").kendoSplitter({
                                panes: [
    { collapsible: true, size: "300px", contentUrl: 'Page1.aspx?id=5678' },
    { contentUrl: 'Page2.aspx?id=8765' }
    ]
             });


    On my Page1 load & Page2 load I need to have my get parameters.
    But when I look in "window.location", I get the "Default.aspx?id=1234" instead of "Page1.aspx?id=5678" or "Page2.aspx?id=8765"

    How do I get the correct parameters?

    Thanks in advance

    Stijn
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 15 Aug 2013 Link to this post

    Hello Stijn,

    Using window.location will give you information about the current window that is opened inside the browser, and not the iframes within. However I was not able to understand exactly what functionality you are looking for, could please explain a bit more and provide us with a running code sample, that we can investigate?
     
    Regards,
    Kiril Nikolov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Stijn
    Stijn avatar
    3 posts
    Member since:
    Aug 2013

    Posted 15 Aug 2013 Link to this post

    In the attachment there are 3 files.
    Default.html that loads Page1 and Page2 async in the splitter.

    On Page1 and Page2 i need to get the value that i passed in Default. "pagename=Page1" and "pagename=Page2"
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 16 Aug 2013 Link to this post

    Hello Stijn,

    Using location.search will return the query string for the current window only. You can use the Splitter options to get the address of the loaded page inside. Please keep in mind that when loading content with Ajax, you do not need to load any jQuery files as they can cause incorrect behaviour. You only need the content that you need to show. I have prepared and example with your code, attached in the email.
     
    Regards,
    Kiril Nikolov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready