![]() |
A single page with JS that uses _request vars. I have tried to figure out the PHPWS way to do this: I need to make a single page that has some JS in it and also the JS must use some information provided via the $_REQUEST object. In a static page, this is pretty easy to do. I have NO IDEA how to do it in this system. Here's what I've tried so far: 1. Add the javascript to a page_smith template and use that template for this page. Have the javascript request look for {variables} passed from theme.php. Then add PHP to the theme.php file that will get the variables I need from the $_REQUEST and plug them into the correct {variables} The problems are: A: Doesn't work. I think because the {VARIABLE} is in the page_Smith template and not in the theme.tpl. This is because I don't want this stuff showing up on all pages, just the one page. B: Seems like a badly designed solution since it relies on third party mods (a pagesmith template) for application functionality and modifies the whole website for a function needed on only one page. Any ideas on how I should properly do this? |
| الساعة الآن 05:08 PM |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir