Firefox render php html

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
BillAnton
Posts: 33
Joined: Thu Jul 26, 2007 10:00 pm

Re: Firefox render php html

Post by BillAnton »

Hi Chris,

Yes, that is fine as to the subdirs. I sent an index.php in the group. I just check my sent email and it shows there. Did you not receive it?

I can resend if that will help.
If so, then I've created it fine.
Does that mean that it is working for you or just that you have it structured ok?
Regards,
Bill Antonacchio
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: Firefox render php html

Post by chrisjlocke »

I've no index.php in the 'webuilderfirefoxrenderproblem.zip' file you sent. It only contains 9 files.

I created a new .php file and as the image is in the body tag in your css, it appeared immediately. Looked fine.
Again, the .php file has to be saved. It won't appear in a 'new' .php file as it will exist in the wrong place.
BillAnton
Posts: 33
Joined: Thu Jul 26, 2007 10:00 pm

Re: Firefox render php html

Post by BillAnton »

OK, I think after a week and a half of this trying to determine how much of an idiot I am and how little I know about paths can someone help me fix my installed copy of WeBuilder. It is obviously corruped. I cannot render a simple PHP script in the FireFox viewer in WeBuilder using the internal web server. The same file renders fine in IE. It also renders fine in FireFox and IE when I uploaded the file to a web site.

I have uninstalled WeBuilder, reinstalled version 9.9.0.101 all to no avail. There has to be some other connection to FireFox, or configuration that needs to be deleted and reinstalled and/or parameters changed but I do not know what they may be and Gatis (who I believe is a programmer of WeBuilder along with Karlis) will not acknowledge or offer help with the problem. His only comment was
2) For built-in preview inside WeBuilder, it is also possible that some minor differences are caused because of the preview-rendering component we are using for Firefox. This component is slightly outdated, and does not produce 100% similar result of what you would see in real Firefox web browser. To test this, please try external preview for IE and also Firefox.
but here is the simplest code that still does not render in FireFox in WeBuilder test.php:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  <link href="assets/test.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<?php
 echo ('Hello, World')
?>
<h2>"Isn't life just grand?"</h2>
</body>
</html>
Now here is the test.css:

Code: Select all

/* CSS Document */

body {
    margin: 0;
    padding: 0;

    color: #333;
    text-align: center;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif
}

h1, h2 {
    margin: 0 0 10px 0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 140%;
    color: #036;
}
To me this should be working in WeBuilder and rendering in FireFox as well as IE. If it is not then my installed WeBuilder is corrupted and since I have uninstalled and reinstalled, there is more to fixing the problem.

Can someone please help.

Thanks and Merry Christmas to all.
Regards,
Bill Antonacchio
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: Firefox render php html

Post by chrisjlocke »

The Firefox control is open-source (so not created by Blumentals) and is based on old cut-down Firefox 1.x code. Its not going to produce accurate results produced by the proper Firefox browser. In this instance, the control isn't finding the files where it expects. This isn't a Blumentals issue.

The solution is to use full paths, and not relative ones. My previous tests above were using the IE preview, not Firefox. I just installed the Firefox preview and got the same result as you - it didn't show the image. However, using a full path of 'F:/Documents and Settings/Chris/Desktop/bill/images/fuji.jpg' in the CSS gave the correct image. However, it still didn't produce the same output as a preview in my Firefox browser, due to the reason I first mentioned.

I'd also like to ask how you feel Gatis didn't acknowledge or offer help with your issue, when he obviously emailed you back. I think thats quite insulting of you.
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: Firefox render php html

Post by chrisjlocke »

Its been mentioned elsewhere in this forum, but I may as well mention is here too. To get an accurate preview in Firefox, you're going to have to use Syrupcore's technique of 'save, alt-tab, refresh'. In Firefox, I'd also recommend you install the 'Firebug' addon, which lets you edit and amend HTML and CSS on the fly.
https://addons.mozilla.org/en-US/firefox/addon/1843
Cary
Posts: 82
Joined: Mon May 28, 2007 10:41 pm

Re: Firefox render php html

Post by Cary »

BillAnton wrote:I cannot render a simple PHP script in the FireFox viewer in WeBuilder using the internal web server.
My initial thought when you started this thread was that the Mozilla control was the problem, but your second post made it clear that you were "not rendering in Firefox rendering in WeBuilder" which meant that couldn't possibly be the problem. Correct info is really important.
BillAnton
Posts: 33
Joined: Thu Jul 26, 2007 10:00 pm

Re: Firefox render php html

Post by BillAnton »

Cary,
Correct info is really important.
Is this what you mean? It is the last paragraph in my first post.
I have used this to show that something is wrong with WeBuilder. How do I fix this?
Chris,
I'd also like to ask how you feel Gatis didn't acknowledge or offer help with your issue, when he obviously emailed you back. I think thats quite insulting of you
Didn't acknowledge this was a WeBuilder issue. What did he offer as help?

As to the overall problem (which is what I am only interested in) I thought WeBuilder COULD render in FireFox whatever you code in PHP, CSS, XML, etc. I will have to try my HTMLPad app, I thought it rendered the PHP-CSS files I had produced for another project :!:
Regards,
Bill Antonacchio
BillAnton
Posts: 33
Joined: Thu Jul 26, 2007 10:00 pm

Re: Firefox render php html

Post by BillAnton »

By the way, I am NOT trying to raise a stir. My interest is in getting on with my work and this app, WeBuilder, has huge potential for me to speed up the process.
Regards,
Bill Antonacchio
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: Firefox render php html

Post by chrisjlocke »

Blimey, I can't believe this is still going.

The issue isn't with WeBuilder, but in the 3rd party control used. Its a limited control, and it can't properly handle relative links in CSS files. The workaround is to use proper full path links. Easy.
BillAnton
Posts: 33
Joined: Thu Jul 26, 2007 10:00 pm

Re: Firefox render php html

Post by BillAnton »

Then WeBuilder should put that fact on their web site. We
can't properly handle relative links in CSS files
due to
3rd party control used
, but please buy our product for it's limited usefulness anyway.

I and I would presume others would have liked to have known this fact upfront.
Regards,
Bill Antonacchio
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: Firefox render php html

Post by chrisjlocke »

:?:

WeBuilder doesn't make my cups of coffee in the morning either - do you want us to put that on the website too?!

Closing this, as its going bonkers.
Locked