הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   [JS] בעיות עם דפדפנים.. (https://hosts.co.il/forums/showthread.php?t=53412)

O-B 07-09-07 21:54

[JS] בעיות עם דפדפנים..
 
אממ..
יכול להיות מצב שבו סקריפט מסויים יעבוד כמו שצריך ב firefox וב- internet explorer 7
אבל לא יעבוד ב internet explorer 6?..

Daniel 07-09-07 22:02

הכל יכול להיות. תוכל להראות לנו את הסקריפט?

RS324 08-09-07 08:17

אני מנחש שהבעיה קרתה לך עם AJAX שהוא לא מרענן את המידע ב IE 6 נכון ?

O-B 08-09-07 16:13

HTML קוד:

<select style="width:150px;" name="type">
        <option value="">בחר סוג</option>
        <option value="text" onclick="type('text');">טקסט</option>
        <option value="poll" onclick="type('poll');">סקר</option>
        <option value="else" onclick="type();">אחר</option>
</select>               
<div id="text">טקסט</div>
<div id="poll">סקר</div>
<script type="text/javascript">
        type();
        function type(type) {
                if (type == "text") {
                        document.getElementById('text').style.display= 'block';
                        document.getElementById('poll').style.display= 'none';
                        document.getElementById('article').style.display= 'none';
                }else if (type == "poll") {
                        document.getElementById('text').style.display= 'none';
                        document.getElementById('poll').style.display= 'block';
                        document.getElementById('article').style.display= 'none';
                }else{
                        document.getElementById('text').style.display= 'none';
                        document.getElementById('poll').style.display= 'none';
                        document.getElementById('article').style.display= 'none';
                }
        }
</script>

הינה זה הסקריפט

DorWD 08-09-07 16:21

אתה קורא לסקריפט עד לפני שהגדרת אותו

Kfir.G 08-09-07 17:12

ציטוט:

נכתב במקור על ידי O-B (פרסם 553493)
אממ..
יכול להיות מצב שבו סקריפט מסויים יעבוד כמו שצריך ב firefox וב- internet explorer 7
אבל לא יעבוד ב internet explorer 6?..

בלי קשר לשאר ההודעות פה ובכלל לפי היגיון פשוט - כן ומצב כזה גם מאוד הגיוני אחרי הכל אם הגרסה החדשה לא מכירה דברים נוספים (במקרה הזה פקודות נוספות בJS) אז מה הטעם לפתח גרסה חדשה? (פרט לעיצוב ונוחות השימוש)

O-B 08-09-07 18:21

ציטוט:

נכתב במקור על ידי DorWD (פרסם 553699)
אתה קורא לסקריפט עד לפני שהגדרת אותו

זה לא קשור..
אם יש לך IE6 תעתיק את זה לקובץ HTML ותבדוק אם זה עובד..


כל הזמנים הם GMT +2. הזמן כעת הוא 14:00.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ