Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Mar 2007
    Posts
    74
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile submit the form while its position absolute

    Hello,

    I have the following form:
    Code:
    <style type="text/css">
    .guest_book {
    width: 590px;
    right: 174px;
    position: absolute;
    display: none;
    border-style: solid;
    border-width: 0px;
    border-color: #000000;
    font-family: ms sans serif;
    font-size: 8pt;
    font-weight: bold;
    color: #000000;
    text-align: right;
    vertical-align: bottom;
    </style>
    
    <table id="guest_book" class="guest_book" cellspacing="0" cellpadding="0" dir="{L_DIRECTION]">
    	<form action="ajax_common.php?action=guest_book" method="POST" name="guest_book">
    		<tr>
    			<td width="97%" class="cell38">{L_GUEST_BOOK_ADD}</td>
    			<td width="3%" class="cell39">
    			<span class="click_span" onclick="ControlDiv('guest_book','none')">
    			<img border="0" src="images/icons/ws_close.gif"></span></td>
    		</tr>
    </form></table>
    My question is: How do I submit the data in this form while its on position absolute, and how I can make the background table disabled like hotmail or yahoo

    Regards heaps

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Submitting a form has nothing to do with its CSS position.
    Give it a button, or a link, or whatever to submit it. I don't see anything there that is supposed to submit to begin with? Then again, I don't see an end form tag, either.

    You can submit with javascript, but that will effectively disable it for a portion of users.
    e.g.
    <a href="noscript.html" onclick="document.forms['guest_book'].submit();">submit</a>

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #3
    New Coder
    Join Date
    Mar 2007
    Posts
    74
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    Thanks for your reply,

    Dear, in order to to get what in my mind please see the following example:

    http://particletree.com/examples/lightbox/

    and click on Submit an Inquiry, what I supposed to do with the form.html in order when I submit the form without reload or effective the main page.

    Scenario:

    I logged in into my account and I want to update my personal profile (like the windows live hotmail) after I clicked on the Update Profile there is a form will same like the above example and when I finish I will click on update without reloading the page.

    Hope my reply is cleared.

    Cheers

  • #4
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Ah, okay. Your subject line was a lot off as to what you really wanted.
    They have sample code right at that site.
    http://particletree.com/features/lightbox-gone-wild/

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #5
    New Coder
    Join Date
    Mar 2007
    Posts
    74
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry

    Dear, your example was redirected to http://particletree.com/examples/lightbox/ Is it possible to post a small code showing me it

    Regards


  •  

    Posting Permissions

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