473,666 Members | 2,250 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trapped on IE Data Island


I have an XML document containing 400+ quotations, in the format:

quotes
qtnum
title
author
comment
quotes
...400+ more
XML file size 156Kb
The tag <xml id="quotes" src="qtsxml_br. xml"></xml> is on the htm page.
The "quotenum" is obtained from a form on the html page.

The code snippet:
var numOfQuotes = 402; // needs to be changed manually as quotes are added
//numQuotes needs to be global for both functions
function FindQuote()
{

var qutNum = parseInt(quoten um.value);

while (!quotes.record set.eof)
{
//script is working to this point - it is the next line that is problem
var findNum = quotes.recordse t("qtnum");// always bombs out!!
if (findNum.indexo f(qtNum) >= 0)
{
ResultHTML +=" ...

I have a "random quote" script that bombs out at the same line.

The page is at http://www.bishfish.co.nz/quotes/fishquotes2.htm if it helps.

Any help would be appreciated, so would pionting me to a cross-browser
script to
get me out of IE's Data Island clutches.

--
Tony Bishop
www.bishfish.co.nz
New Zealand
Jul 23 '05 #1
3 1602
Bishfish wrote:
I have an XML document containing 400+ quotations, in the format:

quotes
qtnum
title
author
comment
quotes
...400+ more
XML file size 156Kb
The tag <xml id="quotes" src="qtsxml_br. xml"></xml> is on the htm page.
The "quotenum" is obtained from a form on the html page.

The code snippet:
var numOfQuotes = 402; // needs to be changed manually as quotes are added
//numQuotes needs to be global for both functions
function FindQuote()
{

var qutNum = parseInt(quoten um.value);
parseInt() should always be used with a radix (I'll presume you want
base 10):

var qutNum = parseInt(quoten um.value, 10);

Some reading:
<URL:http://developer-test.mozilla.or g/docs/Core_JavaScript _1.5_Reference: Functions:parse Int>

An alternative is:

var qutNum = +quotenum.value ;

while (!quotes.record set.eof)
{
//script is working to this point - it is the next line that is problem
var findNum = quotes.recordse t("qtnum");// always bombs out!!
var findNum = quotes.recordse t["qtnum"];

Complete guess as I can't access your site - classified entertainment
for internet monitoring [i.e. blocking!!] purposes.

It is probably more efficient to not initialise findNum on each
iteration:

var findNum;
var qutNum = parseInt(quoten um.value);
while (!quotes.record set.eof)
findNum = quotes.recordse t["qtnum"];

Any help would be appreciated, so would pionting me to a cross-browser
script to
get me out of IE's Data Island clutches.


<URL:http://www.xml.com/pub/a/2005/02/23/sarissa.html>
--
Rob
Jul 23 '05 #2
Thanks Rob,

will make the changes and do some reading.

Can't understand why you cannot access the site, works this end, maybe try
going in via the home page www.bishfish.co.nz.

Thanks again
Jul 23 '05 #3
Bishfish wrote:
Thanks Rob,
Please quote what you are replying to (there's been a bit of discussion
on that recently ...)

Since you seem to be using a reasonable UA, that should not be
difficult.

will make the changes and do some reading.

Can't understand why you cannot access the site, works this end, maybe try
going in via the home page www.bishfish.co.nz.
from my post:
I can't access your site - classified entertainment for internet
monitoring [i.e. blocking!!] purposes.


In other words, my employer blocks anyone on the network from accessing
sites with certain classifications - your site is classified as
"entertainment" , so I can't get access to it.

Presumably I don't need entertainment at work.

--
Rob
Jul 23 '05 #4

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

Similar topics

2
3932
by: Simon | last post by:
Hi, I am having a little problem with my PHP - MySQl code, I have two tables (shown below) and I am trying populate a template page with data from both. <disclaimer>Now I would like to say my skills, especially with MySQL are rudimentary</disclaimer> However my code (link below) fails, the nested database call does not return any data and this has me stumped. Any help will be much appreciated. Many thanks in advance
3
2242
by: Nicole Schenk | last post by:
I need to know the code I must write to respond xml to a data island as a result from a src request from the data island. Thanks so much
2
2682
by: Dnna | last post by:
I have a table which is bound to an Internet Explorer XML data island. I'm using ASP.NET's client-side validators for an input field in the table. The problem is that if the input fields are in a table that is bound to the island (such that the rows are dynamically generated by IE from the XML data island), the validators do not work. If the table is not bound, the validators do work, but then I don't have the table iterating through...
1
1093
by: Mark Goldin | last post by:
Is there a control that would act as an xml data island? Another words, it can store static xml data and deliver it to the client side? Thanks
3
3252
by: Pat Alessi | last post by:
I want to use an XML data island to display editable records to a user on the cleint side. The user should be able to scroll through the records, modify any or all fields in any or all records, add records, and delete records. As far as I can see, there are a couple of ways to implement this. I could persist the original data island and create a duplicate data island that the user would modify. When the modifications were complete, I...
2
1894
by: adolf garlic | last post by:
I have an aspx which has some client side script. The client side part of the page also features an xml data island What I want to be able to do is to get at the data island from the server side part of the page. I've managed to do it with a simple text field using client side <input type="hidden" runat="server" id="funcParam" NAME="funcParam">
5
4219
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
string connectionString1 = "server=(local); user=sa;password=sa; database=sonic"; System.Data.SqlClient.SqlConnection dbConnection1 = new System.Data.SqlClient.SqlConnection(connectionString1); System.Data.SqlClient.SqlCommand dbCommand1 = new System.Data.SqlClient.SqlCommand();
0
2013
by: tavares | last post by:
(Our apologies for cross-posting. We appreciate if you kindly distribute this information by your co- workers and colleagues.) *************************************************************************** Symposium “Image Processing and Data Visualization” 2nd South-East European Conference on Computational Mechanics (SEECCM 2009) Island of Rhodes, Greece, 22-24 June 2009
0
8440
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
8866
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...
0
8781
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 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...
0
8638
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...
0
7381
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6191
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
4193
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...
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.