FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PEAR in Firefox
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
PEAR in Firefox [message #178365] Mon, 11 June 2012 18:49 Go to next message
Shelly[1] is currently offline  Shelly[1]
Messages: 16
Registered: March 2012
Karma: 0
Junior Member
I think this is more of a Firefox problem than a PEAR or PHP. I have
posted a question in the Firefox forum, but have not received
significant help. I am posting here in the hope that someone else has
come across the same problem and might have an answer. So, if you only
want PHP (Jerry), please just ignore this post.

I have an onload for a page that sends out JSON via PEAR HTML-AJAX.
Firebug is telling me that it gets back a proper response. The response
is to be painted into a <div> using inner-HTML. (Using a <span> makes
no difference). In Firefox it paints nothing. In Internet Explorer 8
it works perfectly.

I cannot give a URL as an example as this is for an intranet behind a
firewall that I access via VPN.

You probably can't help me, but it is worth a shot.

--
Shelly
Re: PEAR in Firefox [message #178366 is a reply to message #178365] Mon, 11 June 2012 19:19 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
You just asked for it, so …

Shelly wrote:

> I think this is more of a Firefox problem than a PEAR or PHP. I have
> posted a question in the Firefox forum, but have not received
> significant help. I am posting here in the hope that someone else has
> come across the same problem and might have an answer. So, if you only
> want PHP (Jerry), please just ignore this post.

"You know, I am just a stupid luser, but …"

Not a beginning that gives incentive to continue reading.

> I have an onload for a page that sends out JSON via PEAR HTML-AJAX.
> Firebug is telling me that it gets back a proper response. The response
> is to be painted into a <div> using inner-HTML. (Using a <span> makes
> no difference). In Firefox it paints nothing.

Presumably there is an error in Firebug's error console. Anyhow, you have
found Firebug, so how come you have not used its debugger?

> In Internet Explorer 8 it works perfectly.
>
> I cannot give a URL as an example as this is for an intranet behind a
> firewall that I access via VPN.

Luser. Surely you can upload a source code snippet for a reduced test case.
In doing so you might even solve the problem yourself.

> You probably can't help me, but it is worth a shot.

One could and probably would help you if you made it easy. First of all,
you are *way* off-topic here. If it works in one browser but not in
another, you have most certainly a *client-side* (script) problem, not one
related to server-side PHP or PHP at all. The newsgroup where this is
on-topic is quite obviously comp.lang.javascript (do you know what the "J"
in "AJAX" stands for?).

Second, remember that all our crystal balls are borken. Without you
providing enough input, one is left with guessing. But this is _not_ a
guessing game.

<http://www.catb.org/~esr/faqs/smart-questions.html>


PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
Re: PEAR in Firefox [message #178367 is a reply to message #178366] Mon, 11 June 2012 19:27 Go to previous messageGo to next message
Shelly[1] is currently offline  Shelly[1]
Messages: 16
Registered: March 2012
Karma: 0
Junior Member
On 6/11/2012 3:19 PM, Thomas 'PointedEars' Lahn wrote:
> You just asked for it, so …
>
> Shelly wrote:
>
>> I think this is more of a Firefox problem than a PEAR or PHP. I have
>> posted a question in the Firefox forum, but have not received
>> significant help. I am posting here in the hope that someone else has
>> come across the same problem and might have an answer. So, if you only
>> want PHP (Jerry), please just ignore this post.
>
> "You know, I am just a stupid luser, but …"
>
> Not a beginning that gives incentive to continue reading.
>
>> I have an onload for a page that sends out JSON via PEAR HTML-AJAX.
>> Firebug is telling me that it gets back a proper response. The response
>> is to be painted into a<div> using inner-HTML. (Using a<span> makes
>> no difference). In Firefox it paints nothing.
>
> Presumably there is an error in Firebug's error console. Anyhow, you have
> found Firebug, so how come you have not used its debugger?
>
>> In Internet Explorer 8 it works perfectly.
>>
>> I cannot give a URL as an example as this is for an intranet behind a
>> firewall that I access via VPN.
>
> Luser. Surely you can upload a source code snippet for a reduced test case.

No, I can't.

> In doing so you might even solve the problem yourself.
>
>> You probably can't help me, but it is worth a shot.
>
> One could and probably would help you if you made it easy. First of all,

If it were easy, I wouldn't ask.

> you are *way* off-topic here. If it works in one browser but not in
> another, you have most certainly a *client-side* (script) problem, not one
> related to server-side PHP or PHP at all. The newsgroup where this is

Not true. This problem appeared with Firefox 4 or 5, and was supposedly
fixed. The error there was in three PEAR modules (accessed on the
server side).

> on-topic is quite obviously comp.lang.javascript (do you know what the "J"
> in "AJAX" stands for?).

FO.

>
> Second, remember that all our crystal balls are borken. Without you
> providing enough input, one is left with guessing. But this is _not_ a
> guessing game.
>
> <http://www.catb.org/~esr/faqs/smart-questions.html>
>
>
> PointedEars


--
Shelly
Re: PEAR in Firefox [message #178368 is a reply to message #178367] Mon, 11 June 2012 19:43 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
Shelly wrote:

> On 6/11/2012 3:19 PM, Thomas 'PointedEars' Lahn wrote:
>> on-topic is quite obviously comp.lang.javascript (do you know what the
>> "J" in "AJAX" stands for?).
>
> FO.

*PLONK*
Re: PEAR in Firefox [message #178369 is a reply to message #178365] Mon, 11 June 2012 20:19 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 11.06.2012 20:49, schrieb Shelly:
> I think this is more of a Firefox problem than a PEAR or PHP. I have posted a
> question in the Firefox forum, but have not received significant help. I am posting
> here in the hope that someone else has come across the same problem and might have an
> answer. So, if you only want PHP (Jerry), please just ignore this post.
>
> I have an onload for a page that sends out JSON via PEAR HTML-AJAX. Firebug is
> telling me that it gets back a proper response. The response is to be painted into a
> <div> using inner-HTML. (Using a <span> makes no difference). In Firefox it paints
> nothing. In Internet Explorer 8 it works perfectly.
>
> I cannot give a URL as an example as this is for an intranet behind a firewall that I
> access via VPN.
>
> You probably can't help me, but it is worth a shot.
>
Without relevant information this is just a blurb.

/Str.
Re: PEAR in Firefox [message #178371 is a reply to message #178365] Mon, 11 June 2012 21:09 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 6/11/2012 2:49 PM, Shelly wrote:
> I think this is more of a Firefox problem than a PEAR or PHP. I have
> posted a question in the Firefox forum, but have not received
> significant help. I am posting here in the hope that someone else has
> come across the same problem and might have an answer. So, if you only
> want PHP (Jerry), please just ignore this post.
>
> I have an onload for a page that sends out JSON via PEAR HTML-AJAX.
> Firebug is telling me that it gets back a proper response. The response
> is to be painted into a <div> using inner-HTML. (Using a <span> makes no
> difference). In Firefox it paints nothing. In Internet Explorer 8 it
> works perfectly.
>
> I cannot give a URL as an example as this is for an intranet behind a
> firewall that I access via VPN.
>
> You probably can't help me, but it is worth a shot.
>

And what does PEAR have to do with it? Firefox has NO IDEA WHAT'S
RUNNING ON THE SERVER!

You get back the proper response, so the problem is not server-side -
and you're in the wrong group. But you already knew that, and asked anyway.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PEAR in Firefox [message #178372 is a reply to message #178365] Tue, 12 June 2012 00:02 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Shelly wrote:
> I think this is more of a Firefox problem than a PEAR or PHP. I have
> posted a question in the Firefox forum, but have not received
> significant help. I am posting here in the hope that someone else has
> come across the same problem and might have an answer. So, if you only
> want PHP (Jerry), please just ignore this post.
>
> I have an onload for a page that sends out JSON via PEAR HTML-AJAX.
> Firebug is telling me that it gets back a proper response. The response
> is to be painted into a <div> using inner-HTML. (Using a <span> makes
> no difference). In Firefox it paints nothing. In Internet Explorer 8
> it works perfectly.
>
> I cannot give a URL as an example as this is for an intranet behind a
> firewall that I access via VPN.
>
> You probably can't help me, but it is worth a shot.
>

Mmm. inner-HTML doesn't always work in firefox: the DOM is actually
slightly different.. Its been a while but innerhtml is I think IE specific.

So, rubbing salt in jerry's ass, this is actually a javascript issue.

Hmm. my javascript book says that innerhtml is supported, but there is
something about this that caught me out once: - teh parsing IIRC is
stricter in Firefox and innerhtml is not always usable with certain
elements.

Make up a test page that attempts to modify an element using innnerhtml
in an java script that happens on mouseover or something and see if you
can dupe it.

Note also that IE does not distinguish between the name ="x" and id="x"
element indentifiers: Sometimes that aloows nam,eing bugs to go
unnoticed in IE.



--
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.
Re: PEAR in Firefox [message #178377 is a reply to message #178372] Tue, 12 June 2012 07:26 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 12.06.2012 02:02, schrieb The Natural Philosopher:
> Shelly wrote:
--cut--

>> I have an onload for a page that sends out JSON via PEAR HTML-AJAX. Firebug is
>> telling me that it gets back a proper response. The response is to be painted into
>> a <div> using inner-HTML. (Using a <span> makes no difference). In Firefox it
>> paints nothing. In Internet Explorer 8 it works perfectly.
>>
>> I cannot give a URL as an example as this is for an intranet behind a firewall that
>> I access via VPN.
>>
>> You probably can't help me, but it is worth a shot.
>>
>
--cut--

> Make up a test page that attempts to modify an element using innnerhtml in an java
> script that happens on mouseover or something and see if you can dupe it.
>
> Note also that IE does not distinguish between the name ="x" and id="x" element
> indentifiers: Sometimes that aloows nam,eing bugs to go unnoticed in IE.

Looks like a good guess. I had some dev issues when everything looked okay but
assignments did not work - because of wrong id...


/Str.
Re: PEAR in Firefox [message #178383 is a reply to message #178367] Tue, 12 June 2012 13:09 Go to previous messageGo to next message
bill is currently offline  bill
Messages: 310
Registered: October 2010
Karma: 0
Senior Member
On 6/11/2012 3:27 PM, Shelly wrote:
> On 6/11/2012 3:19 PM, Thomas 'PointedEars' Lahn wrote:
>> You just asked for it, so …
>>
>> Shelly wrote:
>>
>>> I think this is more of a Firefox problem than a PEAR or PHP.
>>> I have
>>> posted a question in the Firefox forum, but have not received
>>> significant help. I am posting here in the hope that someone
>>> else has
>>> come across the same problem and might have an answer. So, if
>>> you only
>>> want PHP (Jerry), please just ignore this post.
>>
>> "You know, I am just a stupid luser, but …"
>>
>> Not a beginning that gives incentive to continue reading.
>>
>>> I have an onload for a page that sends out JSON via PEAR
>>> HTML-AJAX.
>>> Firebug is telling me that it gets back a proper response.
>>> The response
>>> is to be painted into a<div> using inner-HTML. (Using
>>> a<span> makes
>>> no difference). In Firefox it paints nothing.
>>
>> Presumably there is an error in Firebug's error console.
>> Anyhow, you have
>> found Firebug, so how come you have not used its debugger?
>>
>>> In Internet Explorer 8 it works perfectly.
>>>
>>> I cannot give a URL as an example as this is for an intranet
>>> behind a
>>> firewall that I access via VPN.
>>
>> Luser. Surely you can upload a source code snippet for a
>> reduced test case.
>
> No, I can't.
>
>> In doing so you might even solve the problem yourself.
>>
>>> You probably can't help me, but it is worth a shot.
>>
>> One could and probably would help you if you made it easy.
>> First of all,
>
> If it were easy, I wouldn't ask.
>
>> you are *way* off-topic here. If it works in one browser but
>> not in
>> another, you have most certainly a *client-side* (script)
>> problem, not one
>> related to server-side PHP or PHP at all. The newsgroup where
>> this is
>
> Not true. This problem appeared with Firefox 4 or 5, and was
> supposedly fixed. The error there was in three PEAR modules
> (accessed on the server side).

Firefox 5 changed display engines to one that is completely
intolerant of simple html errors. Leave off a tag close ">" and
it just ignores the tag without an error.
Use firebug to display the div and see if the tags look right.
You may see garbage - that will tell you there is a problem, but
not what it is.

bill
Re: PEAR in Firefox [message #178398 is a reply to message #178383] Wed, 13 June 2012 17:25 Go to previous message
Shelly[1] is currently offline  Shelly[1]
Messages: 16
Registered: March 2012
Karma: 0
Junior Member
On 6/12/2012 9:09 AM, bill wrote:
> On 6/11/2012 3:27 PM, Shelly wrote:
>> On 6/11/2012 3:19 PM, Thomas 'PointedEars' Lahn wrote:
>>> You just asked for it, so …
>>>
>>> Shelly wrote:
>>>
>>>> I think this is more of a Firefox problem than a PEAR or PHP.
>>>> I have
>>>> posted a question in the Firefox forum, but have not received
>>>> significant help. I am posting here in the hope that someone
>>>> else has
>>>> come across the same problem and might have an answer. So, if
>>>> you only
>>>> want PHP (Jerry), please just ignore this post.
>>>
>>> "You know, I am just a stupid luser, but …"
>>>
>>> Not a beginning that gives incentive to continue reading.
>>>
>>>> I have an onload for a page that sends out JSON via PEAR
>>>> HTML-AJAX.
>>>> Firebug is telling me that it gets back a proper response.
>>>> The response
>>>> is to be painted into a<div> using inner-HTML. (Using
>>>> a<span> makes
>>>> no difference). In Firefox it paints nothing.
>>>
>>> Presumably there is an error in Firebug's error console.
>>> Anyhow, you have
>>> found Firebug, so how come you have not used its debugger?
>>>
>>>> In Internet Explorer 8 it works perfectly.
>>>>
>>>> I cannot give a URL as an example as this is for an intranet
>>>> behind a
>>>> firewall that I access via VPN.
>>>
>>> Luser. Surely you can upload a source code snippet for a
>>> reduced test case.
>>
>> No, I can't.
>>
>>> In doing so you might even solve the problem yourself.
>>>
>>>> You probably can't help me, but it is worth a shot.
>>>
>>> One could and probably would help you if you made it easy.
>>> First of all,
>>
>> If it were easy, I wouldn't ask.
>>
>>> you are *way* off-topic here. If it works in one browser but
>>> not in
>>> another, you have most certainly a *client-side* (script)
>>> problem, not one
>>> related to server-side PHP or PHP at all. The newsgroup where
>>> this is
>>
>> Not true. This problem appeared with Firefox 4 or 5, and was
>> supposedly fixed. The error there was in three PEAR modules
>> (accessed on the server side).
>
> Firefox 5 changed display engines to one that is completely intolerant
> of simple html errors. Leave off a tag close ">" and it just ignores the
> tag without an error.
> Use firebug to display the div and see if the tags look right. You may
> see garbage - that will tell you there is a problem, but not what it is.
>
> bill
>

I have been tracking down many leads and it looks like the most
promising is that Firefox no longer (it did 4 years ago) supports
javascript injection coming back from an AJAX call. What comes back
from the server is a javascript that when run generates a menu
structure. IE8 supports it, but Firefox now blocks the running of that
script.

So, it appears that this is a Firefox/javascript problem and not PHP nor
PEAR. I will stop with it in this news group. I already have it in the
Firefox forum and I will present it in the javascript forum.

PS: there are not tag errors.

--
Shelly
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Query about WWW-Authenticate: Basic and bad UserID/Password recovery
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 13 07:06:08 GMT 2024

Total time taken to generate the page: 0.03601 seconds