How do you embed a webpage within another?
Any ideas on what the best method is for embedding a webpage within another?
We have a new piece of tracking software at work and this is acessed through a normal web browser. The 'input' form is therefore as a webpage (very much like a normal html form in appearance but using some funky javascript/frame/scripty thing).
I want to embed it into the company Intranet so that this form looks part of the Intranet and not just a few text fields in a big white screen. I can't just copy the page source into a webpage due to the way the program codes the page to be able to call up various bits from the database it uses (I think it uses it's own scripting language for this).
My only option is to embed the whole 'webpage' into another page so that the Intranet's theme can be applied around it.
I guess I could use frames but I've been taught that they should be avoided at all costs (not looking at anybody in particular... Jeeves lol). Cheers guys
Renegade posted this at 22:55 — 1st May 2007.
He has: 3,022 posts
Joined: Oct 2002
What about a PHP include? Does your web server have PHP at all?
mmoglobal posted this at 23:06 — 1st May 2007.
They have: 11 posts
Joined: May 2007
php code
<? include('filename.ext'); ?>
- OR -
<? require_once('filename.ext'); ?>
asp code
client side html code
Included File
these always work for me, pm if you still have problems
mmoGlobal - MMORPG Gaming Networks
aka Rohan posted this at 09:48 — 8th May 2007.
He has: 200 posts
Joined: Feb 2006
Thanks for the replys guys.
I gave it a try but doesn't seem to work. Refuses to show the included file. The problem is it's not anything simple like /page.html, it's like this:
/page.dll?AnonymousSubmitPage&projectid=1
'The only way I have found of getting it to show is using frames (horrible I know). This works fine in IE (you click submit and get a 'sending successful' page come up) but not in FireFox. In Firefox the form shows fine but will not submit. Well the onclick doesn't do anything but if you click it again it says 'submit form again?', however, it doesn't actually submit anything and you don't get the 'sending successful' page.
The program the form is part of uses it's own scripting language which is apparently based on VB (The program is TeamTrack in case anyone has had any experience with it). I've read that FF doesn't support VBScript however, if you open the form in it's own window it works fine... it just falls down when in a frame... and only in FF.
Any Ideas why that is? I could just leave it on it's own but management being management, they want it integrated into the Intranet more .
kb posted this at 13:48 — 8th May 2007.
He has: 1,380 posts
Joined: Feb 2002
I'm not sure how you've written this, but the fact that the extension of the file is .dll and you've mentioned VisualBasic...that tells me that you're probably depending on Windows itself, and not so much the browser. If that's the case, you're looking at probably being stuck with IE.
Why is it written in VB? Is that really necessary? I don't mean to berate you, but VB isn't really used for the internet...even though it can be, it's typically a terrible idea. Terrible.
If the only solution is this program has to be written the way it is, and it won't work in other browsers... you can always consider slapping up a "Browser Not Supported" page using some real quick JavaScript to detect the browser.
Something else just came to mind... If you're banking on the user having Windows installed, will that be an issue? I realize it's an Intranet, so you are 100% sure of your target client, but are there going to be Mac or Linux users that are possibly using this? If that's the case, and your program assumes they're running IE on some form of Windows.... you're going to screw over those users.
To be really helpfuly, we're probably going to need some actual code, or at least psuedocode. At a minimum, we're going to need more specific details than 'it doesn't work in FF' and 'something based on VB'... the small details are the ones that count.
aka Rohan posted this at 15:23 — 8th May 2007.
He has: 200 posts
Joined: Feb 2006
Thanks Brady. Unfortunately the operation of this program is out of my control as it is a externally produced piece of software. It is an Issue management and tracking program that runs on a central server and is interfaced using your web browser.
What I don't understand is why the submit form seems to fall over in FireFox when run through a frame (or iframe) when it works fine in a browser normally.
I personally would be happy to leave the form as is (although looks a bit naff with so much white screen showing) however the boss wants it integrated into the current Intranet theme. The only way I can see to do this is with frames (much though i disapprove of them).
Looking at the pages code, it is already using frames (in fact a frameset of 3 frames!) to display the form so the whole frame-in-a-frame thing might be causing the issue.
I guess I'll really have to get on to the products support but was hoping it was a simple fix as I don't ever use forms or frames.
Now where's the support number gone
kb posted this at 15:24 — 8th May 2007.
He has: 1,380 posts
Joined: Feb 2002
Yeah, sorry this just sounds like it's screwed up. I would suggest starting over?
ablaye posted this at 14:18 — 9th May 2007.
They have: 140 posts
Joined: Apr 2006
Nothing wrong with using frames. Just make sure that your frame fits well into the page and has no border or scrolling needed.
jesse1 posted this at 17:02 — 9th May 2007.
They have: 26 posts
Joined: Mar 2007
If you want to you can use an Iframe.
If you don't like the IFRAME border and height, you can style it with a css class to be borderless so it will blend into your page.
you might not even be able to tell it is IFRAME content.
Iframes usually look unsightly, especially if they have a border and scroll bars...but if you use CSS you can completely control the look of it!
hope this helps!
Free HTML, Dreamweaver, & FrontPage Video Tutorials
http://www.Resource-Website.com
FREE WEBSITE TRAFFIC from YouTube
http://www.TubeTraffic.com
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.