View Single Post
ישן 18-09-13, 16:31   # 1
dabi
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Dec 2007
הודעות: 1,767

dabi לא מחובר  

איך אפשר ב JS שקישור ילחץ לבד?

אהלן
יש לי טופס פשוט שמוסיף ערכים למסד
אני רוצה שאחרי שהטופס נשלח יפתח פופ אפ שיציג לו את כל הערכים במסד
אז ראיתי את הפופ אפ הזה
http://www.jacklmoore.com/colorbox/example4/

אני משתמש ב Inline HTML
איך אני עושה מה שאני צריך? איך שזה עכשיו צריך ללוץ על הקישור בשביל שהפופ אפ יפתח....
אני רוצה שאוטומטי ישר אחרי שהטופס נשלח יפתח הפופ אפ
השורת קוד שבעצם עליה לוחצים היא
PHP קוד:
        <p><class='inline' href="#inline_content">Inline HTML</a></p
והיא פותחת את

PHP קוד:
        <div style='display:none'>
            <
div id='inline_content' style='padding:10px; background:#fff;'>
            <
p><strong>This content comes from a hidden element on this page.</strong></p>
            <
p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
            <
p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click meit will be preserved!</a></p>
            
            <
p><strong>If you try to open a new Colorbox while it is already openit will update itself with the new content.</strong></p>
            <
p>Updating Content Example:<br />
            <
class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
            </
div>
        </
div
תודה
  Reply With Quote