Jump to content

Safari Not Displaying Something In Input Box?


spiceydog

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.