How can i open a url link within a modal dialog like on Chrome Web Store when opening a Chrome App. Notice the background ramains in shaddow but it’s still the home page. And the URL changes in Chrome Web Store.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For dialog use jQuery UI
http://jqueryui.com/demos/dialog/#modal-message
For changing URL with JS use History API
http://html5demos.com/history
Also check Good tutorial for using HTML5 History API (Pushstate?)
For older browsers you may have to use location.hash, the above jQuery UI site is a good example for this.
For opening all links in a dialog you may code like below
For pointing all URLs to homepage you have to do server side tricks, point all URLs to index.php. Like
example.com/index.php/subpageand check with on Document ready if the URL is not justindex.phpI mean something likeexample.com/index.php/subpagethen openexample.com/index.php/subpage?content_onlyin a dialog. Inindex.phpuse a criterion,content_onlyis specified then return only the content ofsubpagewithout template and JS.