Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

V 5.0.1 seems to ignore <br /> tag depending on what was printed before the tag. Code works in IE8 and earlier. What info do I need to give you?

  • 1 odpoveď
  • 3 majú tento problém
  • 1 zobrazenie
  • Posledná odpoveď od newtomozilla

more options

Adult warning - the site to which I refer is adult in nature - no pics or porn, but may link to content some might not like. Problem is demonstrated at http://officialeventlocator.com/bdsm/state_pages/bdsm_gz.php . I print info from a MySQL DB with PHP. I've just started using FF and I discovered that it often does not recognize the
tag that is printed after the information on the line that begins with the word "Where" in each listing. If there is no information in the "Other Location Info" field, the tag is not recognized and the next line prints on top of the first. This is true not just on this page but throughout the site. My code works in IE8. I've played with this for a couple of days without success. Any pointers? Also, "View Source" shows the slash in
in red, but none of the other slashes are highlighted. Do I need to drop the slash?

Adult warning - the site to which I refer is adult in nature - no pics or porn, but may link to content some might not like. Problem is demonstrated at http://officialeventlocator.com/bdsm/state_pages/bdsm_gz.php . I print info from a MySQL DB with PHP. I've just started using FF and I discovered that it often does not recognize the <br /> tag that is printed after the information on the line that begins with the word "Where" in each listing. If there is no information in the "Other Location Info" field, the tag is not recognized and the next line prints on top of the first. This is true not just on this page but throughout the site. My code works in IE8. I've played with this for a couple of days without success. Any pointers? Also, "View Source" shows the slash in <br /> in red, but none of the other slashes are highlighted. Do I need to drop the slash?

Všetky odpovede (1)

more options

Please read the adult content warning in my original post...

I was able to cure my problem after a bit of flailing around. This may not be a "problem"; it may result from a difference in the way Mozilla sees the end of a line of text vs. how IE sees it.

Please refer to http://officialeventlocator.com/bdsm/state_pages/bdsm_ca.php to follow along...the page cited above has no data.

I looked at all of the pages on the site that had information. I found that the error only occurred on pages where the field labeled "Other location information" was blank, and it ALWAYS happened when that field was blank. I do not understand why that caused a problem, but my solution was to alter my PHP script so that I avoided printing blank/null fields. It simply meant checking the field for a non-null value before printing, and the problem went away.

Hope this helps someone else.

Steve E.

Upravil(a) newtomozilla dňa