Is there a script I can add to a button to close a pop up layer and return to the top of the page?
Is there a script I can add to a button to close a pop up layer and return to the top of the page?
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
Just tried Gary.
It is a bit tricky to understand first off but essentially you set the pop-up layer to not close automatically to be able to check what code the Close icon is using in Preview (looking at the browser status bar).
You then add an actual Close button to the pop-up layer and add that code, setting the pop-up layer to close automatically.
Finally, you add xr_top(); after the code your copied across to amble gently up to the top of the page.
All this goes into the Web Properties > Link > Link to web control box.
My example isI replaced the %27s with double quotes; either work.javascript:xr_ppc("xr_xp4"); xr_top();
Example file: JS_Popup Close & Top.xar
Acorn
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
The link returns to top but does not close the pop up. But I am probably doing something wrong.
At the top of the page is a blue rectangle with a quote and a link CLICK HERE TO READ ENTIRE REVIEW
Click this and scroll to the bottom of the review.
Thanks Acorn
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
Why not just paste the URL of the index page into the 'Link To Web Or Email Address' section of the button? This would make it refresh the index page.
Chris - This does indeed reload the page but not at the top. This is why it's tricky.
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
Bingo. Simple is better. That works fine. Thanks to both of you. http://www.tovah-miriam.com/index.html (My wife's author page)
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
Cheers Chris, I tried # and index but stopped before trying the full URL.
Acorn
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
I should add that I ignored the full URL initially as this involves a session with the server regardless if everything is cached locally.
Also repeat calls to the index page probably impact browser history and Google Analytics.
The other advantage to the "code" approach is the graceful ascend to the top of the page.
Acorn
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
Yes, and that would be swell if that is actually what it did. It did ascend to the top of the page but it did not close the layer. Download the test file from HERE and see for yourself.The other advantage to the "code" approach is the graceful ascend to the top of the page.
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
Bookmarks