Results 1 to 4 of 4

Thread: ช่วยหน่อยค่ะ ทำการreloadหน้าที่ต้องการแต่มันไม่ด้ายยยย

  1. #1
    Junior Member
    Join Date
    Apr 2009
    Posts
    8


    คือใช้คำสั่ง <script>
    window.alert("บันทึก และ อัพโหลด Popup เรียบร้อยแล้วค่ะ");
    window.opener.location.reload(); window.close();
    </script>
    ต้องการให้กลับไปหน้าก่อนหน้านี้แต่มันไม่ได้อะค่ะ
    ทั้งๆที่fileอื่นที่ทำ เขียนคล้ายกันเลยยังได้อยู่เลย

    **Hidden Content: To see this hidden content your post count must be 1 or greater.**

    ไม่รู้ว่าจะเข้าใจคำถามรึปล่าวเลยเอาcode มาให้ดูด้วย
    ยังงัยช่วยแนะนำหน่อยนะคะว่าถูกรึปล่าว


  2. #2
    Senior Member retool2's Avatar
    Join Date
    Aug 2008
    Location
    Under Relocation
    Posts
    178


    location.replace ครับ ลองหาข้อมูลดู
    reload จะไม่มีข้อมูลข้างในครับ

  3. #3
    Junior Member
    Join Date
    Apr 2009
    Posts
    8


    ขอบคุณมากค่ะ

  4. #4
    Junior Member
    Join Date
    Jul 2008
    Posts
    5


    ผมว่าใช้อย่างนี้อย่างเดียวไปเลยก็ได้น่ะครับ

    <meta http-equiv=&#39;refresh&#39; content=&#39;จำนวนวินาทีก่อนที่จะเปลี่ยนไปหน้าที่กำหนดไว้;URL=ไปที่ไหน&#39;>

    โดยเปลี่ยนไปใช้แบบนี้แทนได้เหมือนกัน
    ตามอย่างที่คุณใช้นั้นแหละครับ

    <script>
    window.alert("บันทึก และ อัพโหลด Popup เรียบร้อยแล้วค่ะ");
    window.close();
    </script>
    <meta http-equiv=&#39;refresh&#39; content=&#39;จำนวนวินาทีก่อนที่จะเปลี่ยนไปหน้าที่กำหนดไว้;URL=ไปที่ไหน&#39;>




Similar Threads

  1. ช่วยหน่อยค่ะ
    By Anonymous in forum Java
    Replies: 0
    Last Post: 30-09-2004, 10:34 AM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •