Executing php code within an iframe

S

Steve

| Steve wrote:
|
| > <html>
|
| missing a <head> and a <title> here...


neither <head> nor <title> are required.


| > <script language="javascript">
|
| No, it's <script type="text/javascript">

you're a picky bastard, aren't you. it is also correct the way i have
written it as well.

| > var newSource =
| .
| .
| .
| .
| .
| > </script>
| > <body onload="initialize();" onunload="quit();">
| > <img id="imageToSwap"
| >
src="http://www.onzemaninteheran.com/uploaded_images/microphone-755244.jpg"
| > </body>
| > </html>
|
| This would not work of course if JS is switched off in the user's browser.

really? no shit! what the **** is up your ass, jojo?
 
J

jojo

Steve wrote:

I almost forgot it: your code is missing a doctype...
neither <head> nor <title> are required.


you're a picky bastard, aren't you. it is also correct the way i have
written it as well.

Just bullshit. It isn't anymore. The title attribute is required now.

Forgot it, too: missing alt="" (Yes, it *is* required!)
really? no shit! what the **** is up your ass, jojo?

Just wanted to point out that I wouldn't use JS for features I want to
work in every browser. You can use JS for things which aren't required
to view your site the right way. But you really shouldn't force the user
to switch on Javascript just to view your site. It's the users choice if
he wants to enable JS or not and every ste schould work without JS, too.
 
S

Steve

| I almost forgot it: your code is missing a doctype...

good for you...it's not required.

| >> <html>
| >>
| >> missing a <head> and a <title> here...
| >
| > neither <head> nor <title> are required.
|
| No, <head> isn't, but <title> is.

title is NOT required. learn w3c html 101 and get a fucking life...as well
as a fucking clue.

| >>> <script language="javascript">
| >>>
| >> No, it's <script type="text/javascript">
| >
| > you're a picky bastard, aren't you. it is also correct the way i have
| > written it as well.
|
| Just bullshit. It isn't anymore. The title attribute is required now.

your and idiot...and, no, it's not.

| >>> var newSource =
| >> .
| >> .
| >> .
| >> .
| >> .
| >>> </script>
| >>> <body onload="initialize();" onunload="quit();">
| >>> <img id="imageToSwap"
| >>>
| >>>
src="http://www.onzemaninteheran.com/uploaded_images/microphone-755244.jpg">
|
| Forgot it, too: missing alt="" (Yes, it *is* required!)

NOT required, you fucking amatuer!

| >>> </body>
| >>> </html>
| >>
| >> This would not work of course if JS is switched off in the user's
browser.
| >
| > really? no shit! what the **** is up your ass, jojo?
|
| Just wanted to point out that I wouldn't use JS for features I want to
| work in every browser. You can use JS for things which aren't required
| to view your site the right way. But you really shouldn't force the user
| to switch on Javascript just to view your site. It's the users choice if
| he wants to enable JS or not and every ste schould work without JS, too.

yet you forget/neglect to state, WHAT THE **** IS UP UR ASS? except
stupidity!

FOAD.
 
J

Jonathan N. Little

Steve said:
| I almost forgot it: your code is missing a doctype...

good for you...it's not required.

| >> <html>
| >>
| >> missing a <head> and a <title> here...
| >
| > neither <head> nor <title> are required.
|
| No, <head> isn't, but <title> is.

title is NOT required. learn w3c html 101 and get a fucking life...as well
as a fucking clue.

<snip rest of flame...>


Whow guys, count to ten, take deep breaths or something! Just for
clarification in 4.01 strict the HTML, HEAD and BODY elements are all
optional

http://www.w3.org/TR/html4/struct/global.html#edef-HTML
http://www.w3.org/TR/html4/struct/global.html#edef-HEAD
http://www.w3.org/TR/html4/struct/global.html#edef-BODY

However if you use a TITLE, both opening and closing tag are required
and is to be within the HEAD.
http://www.w3.org/TR/html4/struct/global.html#edef-TITLE

With SCRIPT element the TYPE attribute _is_ required
http://www.w3.org/TR/html4/interact/scripts.html#edef-SCRIPT
and LANGUAGE is _deprecated_.

Now for the IMG the ALT attribute _is_ required
http://www.w3.org/TR/html4/struct/objects.html#edef-IMG
http://www.w3.org/TR/html4/struct/objects.html#adef-alt

Your page will not explode if you leave it off, but it is an error...
 
I

I V

Whow guys, count to ten, take deep breaths or something! Just for
clarification in 4.01 strict the HTML, HEAD and BODY elements are all
optional

I don't think that's quite right. The HEAD _element_ is required,
but neither start nor end tags are required:

--- begin quote ---
<!ENTITY % html.content "HEAD, BODY">

<!ELEMENT HTML O O (%html.content;) -- document root element -->
--- end quote ---
(from http://www.w3.org/TR/html4/sgml/dtd.html#html.content )
However if you use a TITLE, both opening and closing tag are required
and is to be within the HEAD.
http://www.w3.org/TR/html4/struct/global.html#edef-TITLE

The TITLE element is also required:

--- begin quote ---
<!ENTITY % head.content "TITLE & BASE?">

<!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
--- end quote ---
(from http://www.w3.org/TR/html4/sgml/dtd.html#head.content )

And further:

--- begin quote ---
Every HTML document must have a TITLE element in the HEAD section.
--- end quote ---
(from http://www.w3.org/TR/html4/struct/global.html#edef-TITLE )

jojo is quite right here.
 
J

jojo

I said:
I don't think that's quite right. The HEAD _element_ is required,
but neither start nor end tags are required:

[quote from from http://www.w3.org/TR/html4/sgml/dtd.html#html.content ]
The TITLE element is also required:

[quotes from (from http://www.w3.org/TR/html4/sgml/dtd.html#head.content
and from http://www.w3.org/TR/html4/struct/global.html#edef-TITLE ]
jojo is quite right here.

Just for the ones who are interested in: a document without a <head> but
a <title> validates fine. A document with a <head> but no <title> or
with neither a head nor a title doesn't. Try it out:

<title> only:
http://validator.w3.org/check?uri=www.hafner-web.de/Jojo/Test/title_only.htm&ss=1

<head> only:
http://validator.w3.org/check?uri=www.hafner-web.de/Jojo/Test/head_only.htm&ss=1

neither <head> nor <title>:
http://validator.w3.org/check?uri=www.hafner-web.de/Jojo/Test/neither_nor.htm&ss=1
 
A

Andy Dingley

Steve said:
title is NOT required. learn w3c html 101 and get a fucking life...as well
as a fucking clue.

Your cluelessness about HTML is tautological with your abuse.

<plonk>
 
S

Steve

|
| Steve wrote:
|
| > title is NOT required. learn w3c html 101 and get a fucking life...as
well
| > as a fucking clue.
|
| Your cluelessness about HTML is tautological with your abuse.
|
| <plonk>


plonk whatever! there's a difference in writting html for a demo of how
someone can accomplish something in javascript, as i had done, and in
showing someone how to write html. my point was to show the former. jojo
took it upon himself, in trollish fashion, to assume the latter...offering
NOTHING but criticism benefiting NEITHER the op NOR anyone else involved in
addressing the op's questions.

so, to both of you (and again, jojo), FOAD
 
G

Guest

Markus Ernst said:
Ouf - you have a quite serious HTML problem, not a PHP one. Use
http://validator.w3.org/ to find out how to fix your HTML source. Once
it validates, post the URL to the page if the problem still exists. Just
a hint: Meta refresh does refresh the page itself, and not the contents
of an iframe. Anyway I agree with other posters that neither an iframe
nor a meta refresh tag are useful for image swapping.

Would you have an example for image swapping (in a window) ideally using php
if failing that any other way?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top