This is a migrated thread and some comments may be shown as answers.

Incorrect GET parameters after splitter load

3 Answers 59 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Stijn
Top achievements
Rank 1
Stijn asked on 14 Aug 2013, 04:33 PM
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

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 15 Aug 2013, 11:16 AM
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!
0
Stijn
Top achievements
Rank 1
answered on 15 Aug 2013, 12:24 PM
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"
0
Kiril Nikolov
Telerik team
answered on 16 Aug 2013, 11:17 AM
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!
Tags
Splitter
Asked by
Stijn
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Stijn
Top achievements
Rank 1
Share this question
or