|
 |
|
อีกแล้วครับพี่ๆ ผมมีปัญหาเรื่อง browser อีกแล้วครับ เข้าไปดูในกระตู้ละกัน ผมมีภาพประกอบ |
|
 |
|
|
 |
 |
|
แต่ถ้า error มีนิดเดียวก็แก้เองได้ครับ แต่ถ้าเยอะๆ ก็คงไม่ไหว คงต้องเปลี่ยนไปใช้ของเจ้าอื่นครับ
|
 |
 |
 |
 |
Date :
2009-08-21 15:06:50 |
By :
num |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมตอบปัญหาอยู่อีกบอร์ดนึง และแล้วผมก็กลับมาเห็นปัญหาของตัวเอง ว่ามีลักษณะเดียวกันคือ การเข้าถึง แบบ DOM
fireFox มันมีปัญหา ไม่สามารถที่จะ เข้าถึงค่าแบบ DOM ได้มีท่านผู้ไดรู้มั้งครับว่าต้องทำอย่างไรจึงจะให้เจ้า firefox
มันเข้าถึงค่า แบบ DOM ได้บ้างครับ
<input name="dc1" id="dc1" value="<?=$date; ?>" size="11" />
<input onclick="gfPop.fStartPop(this.form.dc1,this.form.dc2);" type="button" value=" V " />
<input name="dc2" value="end date" size="11" style="display:none;" />
<input style="display:none;" onclick="gfPop.fEndPop(this.form.dc1,this.form.dc2);" type="button" value=" V " />
this.form.dc1 มีวิธีการใหนที่จะเอาค่ามันมา แทนตัวนี้ใหมครับ
เปลี่ยนไป ใช้ getElement แล้วก็ไม่เวิร์ค ครับ
|
 |
 |
 |
 |
Date :
2009-08-21 15:22:41 |
By :
DownsTream |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตรงนี้ไม่มีปัญหานะครับ หมายถึง this.form.dc1 ใช้ไม่ได้ หรืออะไรใช้ไม่ได้หรือครับ
<script>
function f1(e1,e2){
alert(e1.value+','+e2.value);
}
</script>
<form>
<input name="dc1" id="dc1" value="start date" size="11" />
<input onclick="f1(this.form.dc1,this.form.dc2);" type="button" value=" V " />
<input name="dc2" value="end date" size="11" style="display:none;" />
<input style="display:none;" onclick="f1(this.form.dc1,this.form.dc2);" type="button" value=" V " />
</form>
|
 |
 |
 |
 |
Date :
2009-08-21 15:42:37 |
By :
num |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Error: gfPop.fStartPop is not a function
Source File: http://localhost/polball/stat_viewpoint.php
Line: 1
แต่มัน error แบบนี้ นะครับ เป็น เฉพาะ firefox
|
 |
 |
 |
 |
Date :
2009-08-21 16:29:37 |
By :
DownsTream |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<FORM name="demoform" onSubmit="alert('form submit');">
<table width=600>
<tr>
<td>
Start Date: <input class="plain" name="dc1" value="" size="12" onFocus="this.blur()" readonly><a href="javascript:void(0)" onClick="if(self.gfPop)gfPop.fStartPop(document.demoform.dc1,document.demoform.dc2);return false;" ><img class="PopcalTrigger" align="absmiddle" src="DateRange/calbtn.gif" width="34" height="22" border="0" alt=""></a>
</td>
<td>
End Date: <input class="plain" name="dc2" value="" size="12" onFocus="this.blur()" readonly><a href="javascript:void(0)" onClick="if(self.gfPop)gfPop.fEndPop(document.demoform.dc1,document.demoform.dc2);return false;" ><img class="PopcalTrigger" align="absmiddle" src="DateRange/calbtn.gif" width="34" height="22" border="0" alt=""></a>
</td>
</tr>
</table>
</FORM>
นี่เป็นโค้ด จาก Demo นะครับ ผมรันบน firefox 3.5 ก็ไม่มีปัญหานะครับ
|
 |
 |
 |
 |
Date :
2009-08-21 17:01:26 |
By :
lozomac |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พี่ไปโหลดมาจากไหน อะครับ ถ้าไม่เป็นการรบกวนจนเกินไป พี่ช่วย upload ให้ผมหน่อยได้หรือป่าวครับ ตัว demo ที่พี่มีนะครับ
พอดีอันนี้ผมได้มาจากพี่เค้าอีกทีนึงนะครับ เลยไม่รู้ว่าเค้าเอามาจากไหน แต่ ที่จริง แล้วผมอยากได้แค่ ปฏิทินอันเดียวอะครับ
แต่ตัวนี้มันต้องรัน เป็น คู่ ผมชอบ style มันสวยอะครับ
ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2009-08-21 17:36:46 |
By :
DownsTream |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เวิร์คๆ ครับพี่ ขอบคุณมากมายครับ ว่าจะบวกให้อีก 1 แต่ วันนี้ ผมบวกให้พี่ไปแล้วครับ หุ หุ  
|
 |
 |
 |
 |
Date :
2009-08-21 19:04:53 |
By :
DownsTream |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|