473,394 Members | 1,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Javascript question

Similar to a post before me, I have my website divided into 2 halves, the left half is the navigation area, and the right half is where the content shows up. I want to know how to use javascript to make it so when I submit a form the page refreshes into the right half of the screen instead of refreshing the whole page.
Jun 21 '06 #1
4 1440
Banfa
9,065 Expert Mod 8TB
The minimum unit of refresh is 1 page, you can't only refresh half the screen.

You could refresh to a page where the left hand side contains the same left hand side as the previous page (which is how a lot of menus are done nowa days).
Jun 21 '06 #2
Its fine if it refreshes the whole page, I just want the confirmation that the form has been sent to appear on the right hand side where the form was.

The way the site is set up is that when you click on a part of the menu on the left the url looks like this:

www.website.com/index.php?location=form

when the form gets submited it takes the user to:

www.website.com/form.html

instead of refreshing in the same location of the php code.

Do you know how to fix this?
Jun 21 '06 #3
Banfa
9,065 Expert Mod 8TB
it's not clear exactly what you mean since either of those links are working, however have you set the "action" attribute of your form

[html]
<form ... action='www.website.com/index.php?location=form' >
...
</form>
[/html]
Jun 21 '06 #4
sorry, those weren't the links to the site, those were just examples. Here is the real site.

http://www.jenz0r.com/keoland/index....ation=register

When I tried to do what you did with making the action the location address it just refreshed the page and didn't even process the form.
Jun 21 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.