|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
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? __DEFINE_LIKE_SHARE__ |
مواقع النشر (المفضلة) |
| |
![]() | ||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
Single page Registration form | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 05-05-2010 04:40 PM |
Forum How to make 'Search Single Content Type' the default tab on Advanced Search page? | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 03-23-2010 11:10 PM |
Forum Single page Registration form | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 03-10-2010 09:20 PM |
Forum Single page Registration form | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 03-10-2010 08:30 PM |
Make 'Search Single Content Type' the default tab on Advanced Search page | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 02-16-2010 09:50 AM |