Is there a way of restricting operations such as links, buttons etc. to
within the <DIV> only ?
Let me clarify the problem a little.
I am doing an AJAX like operation inside a DIV. I do a server trip
without refreshing the page and get new HTML code that includes links
forms etc back from server. I need to confine operations within this
DIV without refreshing the whole page without using IFRAME.
Am i asking the right question or is there a known solution to such
problems
thanks for your help 3 1333
Mel wrote: Is there a way of restricting operations such as links, buttons etc. to within the <DIV> only ?
Let me clarify the problem a little.
I am doing an AJAX like operation inside a DIV. I do a server trip without refreshing the page and get new HTML code that includes links forms etc back from server. I need to confine operations within this DIV without refreshing the whole page without using IFRAME.
Am i asking the right question or is there a known solution to such problems
Your question is a little bit confusing...
Are you asking if it is possible to use your AJAX response-data
to update only the content of a specific div element, and not the
whole page?
If so, the answer is yes.
If your AJAX call ie. return some html-fragment, and you want a
specific div element to be updated to show this, do something like this
<div id="updateDiv" >
....
</div>
....
function ajaxResponse() {
....
var updtDiv = document.getEle mentById("updat eDiv");
updtDiv .innerHTML = xmlHttpObj.resp onseText;
....
}
--
Dag.
Dag Sunde wrote: Mel wrote: Is there a way of restricting operations such as links, buttons etc. to within the <DIV> only ?
Let me clarify the problem a little.
I am doing an AJAX like operation inside a DIV. I do a server trip without refreshing the page and get new HTML code that includes links forms etc back from server. I need to confine operations within this DIV without refreshing the whole page without using IFRAME.
Am i asking the right question or is there a known solution to such problems Your question is a little bit confusing...
Are you asking if it is possible to use your AJAX response-data to update only the content of a specific div element, and not the whole page?
If so, the answer is yes.
If your AJAX call ie. return some html-fragment, and you want a specific div element to be updated to show this, do something like this
<div id="updateDiv" > ... </div>
...
function ajaxResponse() { ...
var updtDiv = document.getEle mentById("updat eDiv"); updtDiv .innerHTML = xmlHttpObj.resp onseText; ... }
Well Yes and NO !
I have already displayed the result of my server response in the DIV
(which i think is what you showed me). The question is, if the returned
HTML within this DIV has links and the user clicks on them, can i
display the result within this DIV itself and not a refresh on the
whole page ? -- Dag.
Mel wrote: Dag Sunde wrote: Mel wrote: Is there a way of restricting operations such as links, buttons etc. to within the <DIV> only ?
Let me clarify the problem a little.
I am doing an AJAX like operation inside a DIV. I do a server trip without refreshing the page and get new HTML code that includes links forms etc back from server. I need to confine operations within this DIV without refreshing the whole page without using IFRAME.
Am i asking the right question or is there a known solution to such problems Your question is a little bit confusing...
Are you asking if it is possible to use your AJAX response-data to update only the content of a specific div element, and not the whole page?
If so, the answer is yes.
If your AJAX call ie. return some html-fragment, and you want a specific div element to be updated to show this, do something like this
<div id="updateDiv" > ... </div>
...
function ajaxResponse() { ...
var updtDiv = document.getEle mentById("updat eDiv"); updtDiv .innerHTML = xmlHttpObj.resp onseText; ... }
Well Yes and NO !
I have already displayed the result of my server response in the DIV (which i think is what you showed me). The question is, if the returned HTML within this DIV has links and the user clicks on them, can i display the result within this DIV itself and not a refresh on the whole page ?
-- Dag.
Yes, you can, but not automatically or simply. You would have to do
something that would modify the link action|event|be havior so that you
can capture it and control it to get the results and display back to the
div. Not a simple task if you ask me. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: J.Beaulieu |
last post by:
Hi
I'll have probably to use sql server soon but prior to that I have a
question concerning priviledges and security.
Is it possible for someone to do like in access, ie creating a
db/table that is locked with a password? My guess is that it will be
yes but in cas of... Now is it possible for someone to make a db/table
read only rather than to lock it totally?
Also can the guy who has an administrator priviledge on the server
determine...
|
by: Dave |
last post by:
Hi,
With this code, I thought that any 'click' with the mouse would be captured
on the window level and nothing would happen, but a click on the button
triggers nevertheless the function hit(). Why is it not directed to the
function IgnoreEvents instead of the function hit?
....
<script>
window.top.captureEvents(Event.CLICK)
window.top.onclick=IgnoreEvents
|
by: Shaun McKinnon |
last post by:
HI...Here's my problem...I have a popup window that loads when i want it to,
but it's not sized properly. I've set the size, but it doesn't seem to
work. I've been on 8 different websites to find out what i'm doing wrong,
and so far it seems i'm doing it the right way. Here's my code...any
suggestions would be appreciated.
<script language="javascript">
<!--
window.open("256fx/index.htm", "", "height=400, width=600");
//-->
|
by: Tim Mulholland |
last post by:
Hello all,
Our company is trying to write some code in C#/.NET that we don't want an
end user to be able to see. The algorithms are not that complex, but are
sensitive such that if a user could decompile them, they'd be able to bypass
alot of things we don't want them to bypass.
We've looked at some obfuscators and, although they make it more confusing,
they certainly don't make it impossible for someone to figure out if they
have enough...
|
by: Howard |
last post by:
I am currently looking at the various packages that are available for
software protection. I have a particular question that I'd welcome
your feedback on.
Background info:
I work for a company that develops software, and typically releases
software SDKs. Development is in C++ using MS Visual C++. We need to
apply software encryption/protection to achieve:
1) Time-limited versions (e.g software expires after X days)
| |
by: Rhino |
last post by:
I am writing Java UDFs using DB2 V8.2 (Fixpack 8) on Windows XP.
I would like to create some common code classes that are visible to the UDFs
on my system but I'm not having a lot of luck so far. I'm wondering if I'm
trying to do the impossible or if my technique is just wrong.
One of the common code classes I want to write contains code to open, write
and close a flat file that can be used for debugging. I'd like that class to
be...
|
by: Alan |
last post by:
hi all,
I want to define a constant length string, say 4
then in a function at some time, I want to set the string to a constant
value, say a
below is my code but it fails
what is the correct code?
many thx!
|
by: Sandeep |
last post by:
http://www.faqs.org/faqs/C-faq/abridged/
3.1: Why doesn't the code "a = i++;" work?
A: The variable i is both referenced and modified in the same
expression.
Here is the code that I have written:
#include <stdio.h>
int main ()
|
by: Amar Kumar Dubedy |
last post by:
implement a c++ class such that it allows us
to add data members at runtime.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |