php-windows Digest 27 Sep 2005 16:42:27 -0000 Issue 2786

Topics (messages 26381 through 26383):

Re: MSIE problems
        26381 by: Bob Stout
        26382 by: Bob Stout

newbie XML question
        26383 by: cybermalandro cybermalandro

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Luis Ferro wrote:

Instead of doing a somefile.php#ref do a somefile.php?jump=ref and then in the somefile.php add a mix of javascript/php to perform the "jump"...

That is a workaround and should work in any browser that uses javascript.

Of course, if javascript is turned off the user is always stuck to the top of the document, which isn't a too bad degradation of funcionality... (specially if the top of the document has links for it's targets).


The problem seems to be endemic to MSIE. Reducing to its simplest form, entering any URL of the form "somefile.php#link" displays only the top of the file - i.e. the "#link" spec is ignored. Naturally, if the URL is "somefile.htm#link" or "somefile.html#link", everything works. This problem migrates when I use "somefile.php?section=link". Using PHP, I have to use...

print("<meta http-equiv=\"Refresh\" content=\"0;URL=comm_data.php#".$section."\">\n");

...and nothing works because it still presents an internal link to a PHP file to MSIE. Unfortunately, I don't know enough Javascript to code anything useful. (I've previously managed to avoid polluting my pages with Javascript.) I've prowled around trying to see if the file extensions MSIE recognizes are in a configuration file or the registry somewhere, but I haven't found them yet.

--
Bob Stout <[EMAIL PROTECTED]> - The rules of life:
"Either lead, follow, or get out of the way."
"It's easier to get forgiveness than permission."
"90% of everything is garbage."
"Never attribute to malice what can be adequately explained by
 stupidity."

--- End Message ---
--- Begin Message ---
Many thanks to Luis Ferro who finally tipped me off to what I was doing wrong.
Within the page, I was using NAME attribute within <A> tags only. Once I
changed to use both the NAME and ID attributes, everything worked just fine.
Obviously, MSIE no longer honors the NAME attribute in a PHP file.


-- 
Bob Stout <[EMAIL PROTECTED]> - The 3 rules of life:
 "Either lead, follow, or get out of the way."
 "It's easier to get forgiveness than permission."
 "Never attribute to malice what can be adequately explained by stupidity."


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

--- End Message ---
--- Begin Message ---
Hi! I need to read XML output from an URL such as "
http://myfoo.foo.org/cgi-bin/foo.pl?name=12345"; using PHP4 but I am not sure
how to do so and what way would be most efficient, can anybody give me some
ideas?

Thanks!

--- End Message ---

Reply via email to