Jump to content

Recommended Posts

The only browser i've found to have this problem is Safari on PC and a few different browsers on Mac. It seems that when the query returns more than one result the input boxes after the first are all shown empty in certain browsers. Here is a picture of what i'm talking about:

 

Working:

workingzu5.jpg

 

Not Working:

problemen4.jpg

 

The Relevant Code:

<script>
function SelectAll(id) {
    document.getElementById(id).select(); 
}
</script>
<?php
$dlcount = 1;
$resultdl = mysql_query("SELECT * FROM albuminfo WHERE post='$id' GROUP BY albumname");
while($rowdl = mysql_fetch_array($resultdl)) {
$dl = split("\r", $rowdl['dl']);
foreach ($dl as $value) {
?>
<input type="text" id="dl<?php print $dlcount; ?>" onFocus="SelectAll('dl<?php print $dlcount++; ?>');" value="<?php print htmlentities($value); ?>">
<?php
}
}
?>

 

Now like i said above, the code is in the source with safari browsers but it just isn't shown! Here is the relevant source:

<input type="text" id="dl1" onFocus="SelectAll('dl1');" rows=1 cols="15" value="http://site.com/1.html">
<input type="text" id="dl2" onFocus="SelectAll('dl2');" rows=1 cols="15" value="http://site.com/2.html">

I went to the website and went to

http://validator.w3.org/check?uri=http%3A%2F%2Fmuzicwarez.info%2Fviewpost.php%3Fid%3D550&charset=%28detect+automatically%29&doctype=Inline&group=0

 

I get 59 errors and 26 warnings but i dont think any of them relate to my problem. Why would it not work in safari but work in Opera, Firefox, and IE?

 

 

I get 59 errors and 26 warnings but i dont think any of them relate to my problem. Why would it not work in safari but work in Opera, Firefox, and IE?

 

Well why don't u spend some time and fix them because trust me they are important and probably 1 of em relates to your problem.

I get 58 errors but i dont think any of them relate to my problem.

 

Well php definately doesn't relate to your problem.

 

Why would it not work in safari but work in Opera, Firefox, and IE?

 

Different browsers render things differently. I would suggest fixing your errors and seeing if that helps.

blade why would an alt tag for an image have anything to do with a mysql query and an input box? i know i'm going to get in trouble for saying this sense you have alot of posts and seem important but why not contribute something to a thread rather than just claiming to by saying "our advice"? really not very helpful.

 

but to seriously answer your question "How do you know what one relates to your problem". Well I used process of elimination and found that the first 9 errors are bogus.

 

end tag for element "A" which is not open .

menu2[0]='<a href="/inbox.php">Inbox</a>'

 

looks to be like the A was pretty open.

If you want help dont act like a jerk, W3C compliancy is what you should aim for when coding , and it can cause wierd display errors in some browsers.

 

If you dont want to listen to our advice , dont ask for it.

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.