Insert HTML
newbuk |
|
---|---|
I need to insert some HTML code into a page. How can I do this? What BBCodes do I need before and after to ensure the HTMl gets run correctly.
Any help appreciated. KD |
esclkm |
|
---|---|
Use search
no bb. littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты |
ez |
|
---|---|
Is it static code or dynamic ?
What sort off things do you want to insert ? The most simple solution depends on your answers... You can use BBcodes, but the code must be somewhat static (there can be just a few dynamic parts) You could use a TPL file.. but that depends on some factors.. and more .... There could be an AJAX sort off thing (last resort) Anyway lots off ways.. depending on your answer there is a 'best' solution ==- I say: Keep it EZ -==
|
pieter |
|
---|---|
Or an iFrame
... can we help you ...
|
newbuk |
|
---|---|
Hi Guys,
I want to paste some html whichs reference a graphic/page on another site to pull up an advert. How would I reference a static page? Thanks |
ez |
|
---|---|
Add the html in your TPL.
==- I say: Keep it EZ -==
|
GHengeveld |
|
---|---|
Unless the advert should only be shown on one or a few pages, then you could just set the page encoding to HTML and use an iframe to load the external page.
Normally I don't like iframes (or frames at all) but in this scenario it seems the easiest solution. Alternatively you could use Javascript/jQuery to load the page/graphic (AJAX). Just to be sure: are you fetching an entire page (html) or just an image (jpg, png, gif etc) or perhaps flash (swf)? In the case of images you can just use the [ img ] BBcode, for flash you will need HTML encoding and include the flash code (<object>) or use a BBcode for loading flash if you have that configured. Only in the case of entire pages you will need to use an iframe or javascript. |