473,698 Members | 2,370 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Updating a database without opening a new window

Hi,

I have a Javascript heavy application that I need to record stats from
for each click that the user makes. For all intents and purposes this
is a shopping cart application that employs a neat visual DHTML page
turning. This comprises an online brochure with all content loaded in
to client on page load.
I had to avoid requesting new pages so that I could use this fancy
page-turn feature hence the bulky use of Javascript.

I would like to store my stats directly in to a database (MySQL or SQL
Server probably), but I clearly don't want to be launching a new page
as the animation feature would be lost.

Does anybody have any idea how I can execute some ASP or server-side
Javascript that updates the database without actually opening a new
window?

Thanks for any and all help.

Mark W.

Sep 25 '05 #1
3 1597
Does anybody have any idea how I can execute some ASP or server-side
Javascript that updates the database without actually opening a new
window?

Thanks for any and all help.


hidden iframe ?
Sep 25 '05 #2
hi,

hidden iframe ?


Yes that's the way I habe done it. I have a hidden ifram that gets
information from my javascript and return the information from the
database. I the put the information with javascript / dom in the page
that is visible. So only the informations are transfered.

So long Alexander
Sep 25 '05 #3


MarkW wrote:

Does anybody have any idea how I can execute some ASP or server-side
Javascript that updates the database without actually opening a new
window?


Almost everwhere possible is using an Image object to make a request
var imageForHTTPGET = new Image();
imageForHTTPGET .src = 'whatever.asp?a rg1=value1&arg2 =value2';
Of course that way you can't receive any information then from the
server back (well unless you wanted the server to answer with an image).

In newer browsers you have XMLHttpRequest (for Mozilla 1.x and later,
Netscape 7 and later, Firefox 1.x, Opera 8.x, Safari 1.2 and later,
Konqueror (3.3 and later I think)) respectively XMLHTTP in IE/Win, see
<http://www.faqts.com/knowledge_base/view.phtml/aid/17226/fid/616>
<http://jibbering.com/2002/4/httprequest.htm l>
so that way you can make HTTP requests and receive the response the
server makes, allowing you to read out the HTTP response status, the
headers, the response body.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Sep 25 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2303
by: Robert Nurse | last post by:
Hi All, I'm trying to alter the contents of a drop-down (select) list on the parent window from a child window in IE 6. After opening the child window, I set its opener to reference the parent like this: childwin = window.open(...) if (childwin == null) childwin.opener = self;
14
11086
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
15
6847
by: dixie | last post by:
I have a command to open the Access Options dialogue from code: DoCmd.RunCommand acCmdOptions It also opens the Database Window behind it. Is it possible to open the Options without having the database window open as well? dixie
2
11904
by: Len4ik | last post by:
If I open Microsoft Access project without database window, how can I show it from VBA? I don't use startup option "Show database window". In the project disable option "special key". How can I show database window from VBA in opening Access project? Any ideas?
2
1697
by: Zlatko Matiæ | last post by:
Hi! How to prevent opening the database window (tables, queries, modules) in MDE? I have created MDE and set in Startup that database window is not visible. I also disabled Access shortcut keys, but nevertheless, sometimes database window is shown just before closing aplication... I want to be 100% sure that ordinar user can't see any tables ad queries. Is there some programatic aproach for disabling database window ? Thanks.
3
3259
by: Zammy | last post by:
I have a database on a server that many people access repeatedly during the day. I have set up the switchboard form with code to minimize the database window, but when I try to open the database window it opens off screen so far that I have to close the switchboard and go find the database window, open it and reopen the switchboard form. Is there any possibility of fixing the position of the moinimized database window relative to the...
0
3889
by: Johnny | last post by:
I have a PocketPC mobile application that gets its data from the Sql Server database via a web service. The web service returns a dataset that I need to load into the SqlCe database on the mobile device. I have a method to perform this task but it doesn't load the data into the SqlCe database. The data is downloaded into the dataset from the web service just fine but I can't get the data into the SqlCe database. Any suggestions would be...
1
1970
by: Robert Hooker | last post by:
Hi All, After moving to VS2005, we've noticed that opening an existing (large) solution and being able to type code takes a lot longer than in VS2003. Typically, the IDE will open, and all the windows will appear, but then the hour glass will flick on and off for about 1 minute. If the "Pending Checkins" window is open, I can see a message that says "Updating. xxx file(s) to process" with the 'xxx' portion slowly counting down from 800...
1
11073
by: sandy21380 | last post by:
Hello, Is there a way of opening an Access form without opening the Access window? Right now when I open the form, the Access window is a lot bigger than the form so I have to resize the Access window so it doesn't take up my whole screen (the form is about 2" x 3"). If there is no way to open only the form without the Access window opening, is there a way to automatically set the size of the Access window and close the menu bar?\ Thanks!
0
8674
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, 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...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8893
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,...
0
8861
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 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...
1
6518
isladogs
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...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4366
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...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2328
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.