473,396 Members | 1,707 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,396 software developers and data experts.

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 1585
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?arg1=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.html>
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
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...
14
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...
15
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...
2
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...
2
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...
3
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...
0
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...
1
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...
1
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...
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:
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.