Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (Pilgrim), 38 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/22/06
Posts: 163
Top Posters (30 Days)
Ruben 51
DennyP 24
Gizmo 24
Dunny 15
SteveS 14
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#187893 - 06/20/07 01:58 PM Post Islands and .jsp
harry Offline
journeyman
Registered: 12/25/03
Posts: 70
Loc: CA
Our site was created using JSP. I'm trying to get a post island working on our main page but the page is .jsp NOT .php. Are there any work arounds for .jsp pages? My web guy suggests javascripts. Is there a javascript version I can use?

Simply changing the file suffix to .php won't work, at least according to him.

Any help would be appreciated.

-Harry
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#187940 - 06/20/07 05:57 PM Re: Post Islands and .jsp [Re: harry]
Ian Spence Offline
Registered: 06/04/06
Posts: 255
You could create a php script that did the normal includes and just printed out the result, escaped with javascript

Something like
 Code:
<?php
ob_start();
// This is where the include code specified in the control panel would go
$out = ob_get_contents();
ob_end_clean();

header('Content-type: text/javascript');
echo "document.write('" . str_replace("'", "\\'", $out) . "');";
?>


You would include this script as such

 Code:
<script type="text/javascript" src="/script_i_just_made.php"></script>
Top
#188440 - 06/23/07 11:51 AM Re: Post Islands and .jsp [Re: Ian Spence]
harry Offline
journeyman
Registered: 12/25/03
Posts: 70
Loc: CA
Ian,
I really appreciate the help. You have to pardon me as I know very minimal html. So would you mind giving me step by step directions.

For example, the two pieces of code you provided, where do I put that? Thanks for your help. I'm sure I'm going to have more questions.
Top
#191979 - 07/19/07 01:21 PM Re: Post Islands and .jsp [Re: harry]
harry Offline
journeyman
Registered: 12/25/03
Posts: 70
Loc: CA
The above suggestion doesn't make sense to me because a .jsp page wouldn't be able to read php coding, right?

I need advice. Is it impossible, as my friend suggests, that the content islands which are now in php cannot be installed in jsp pages? Is there another work-around?

I really like this feature before the upgrade to php. We've not had this feature in a awhile and I miss it. I think it added a lot of value to our jsp-enabled site.
Top
#192041 - 07/19/07 08:00 PM Re: Post Islands and .jsp [Re: harry]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
You could use a php include to snag the parsed version of your jsp page
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Due Date Calculator-Calculate When Your Baby is Due
by StewartMyduedate
Today at 12:54 AM
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
Forum Stats
10491 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image