Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-07-2007, 07:01 AM   PM User | #1
snake_eyes
New Coder

 
Join Date: Mar 2007
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
snake_eyes is an unknown quantity at this point
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
snake_eyes is offline   Reply With Quote
Old 05-07-2007, 07:33 PM   PM User | #2
nikkiH
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
nikkiH is on a distinguished road
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/
nikkiH is offline   Reply With Quote
Old 05-07-2007, 08:07 PM   PM User | #3
snake_eyes
New Coder

 
Join Date: Mar 2007
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
snake_eyes is an unknown quantity at this point
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
snake_eyes is offline   Reply With Quote
Old 05-07-2007, 10:58 PM   PM User | #4
nikkiH
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
nikkiH is on a distinguished road
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/
nikkiH is offline   Reply With Quote
Old 05-08-2007, 07:02 AM   PM User | #5
snake_eyes
New Coder

 
Join Date: Mar 2007
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
snake_eyes is an unknown quantity at this point
Angry

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

Regards
snake_eyes is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:30 AM.


Advertisement
Log in to turn off these ads.