Tomasz Piasecki

Greenhorn
+ Follow
since Dec 14, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tomasz Piasecki

From my experience, and do not get discouraged, if you have old box the win2000 will run a lot slower than for example win 98 or ME. And some of the software will not work until you get upgrade patch. I had set up Win2000 based network and internet sharing at home and it was running so slow tht I had to go back to Win98. I think that win2000 has some additional package security checking that it slows down all the network. Think twice before going to win2000 on old PC.
20 years ago
Hi,
I ran it through the XML Spy:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/1999/XMLSchema">
<xs:element name="contactdetails">
<xs:complexType>
<xs:sequence>
<xs:element ref="contact " maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="contact">
<xs:complexType>
<xs:sequence>
<xs:element name="name">
<xs:complexType>
<xs:sequence>
<xs:element name="firstname" type="xs:string"/>
<xs:element name="middlename" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="lastname" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="billingadress" type="Address"/>
<xs:element ref="mailingadress" type="Address"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="Address">
<xs:sequence>
<xs:element name="street1" type="xs:string"/>
<xs:element name="street2" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
<xs:element name="state" type="xs:string"/>
<xs:element name="zip" type="xs:integer"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
and it says that the document is well-formed, but
validation displayed error msg:
_____________________________
"element 'xs:' is undefined"
_____________________________
and that as a part of another schema it may be OK.
I couldn't find anything wrong with it either, but I hope this will help you to figure it out.
Q1.: It seems to me like you are calling 2 methods window.print() and gar() on confirm"Print?", one by one. Therefore, firstone is opening the browser Print box and you are able to print it out, and then right away you are calling the gar() method (see your code:
if(confirm "Print?"{
window.print();
gar():
}
else ...
That is why you are getting confimation of succesfull print, and at the same time (almost :-) the info "Do you want the Warranty?" thing.
Try to put the call to gar() method after "else" before window.close();
or do the "else if{ gar();}" before the last else.
Q.2: Look at your opening parents(") by the width:
newWin = window.open("my.jsp", "ladu",width="300,height=300" )
I think it should be:
newWin = window.open("my.jsp", "ladu","width=300,height=300")
and maybe add:
void(this, 'null');
newWin.focus();
so it will protect your main page to disepear, and will set the focus in the new Window.
I hope it will help.
I don't have ready to use solution for your problems, but it seems to me like you are trying to invent the wheel again.
Me myself, I use: http://www.ezwebdesign.com/javascript.html
for cool ideas on javascript. You can learn by trying to understand other people code. You can find plenty of the dynamic menues with mouseover, and try to see how it was done and adjust it for your need. With time you will have your own toolbox.
And for the counter try to use this:
var theRegExp = /[\r\n]+/g;
var myCarriage = myString.match(theRegExp);
var counter;
for (var counter=0; counter < Carriage.legth; counter++){
alert(counter);
}
I hope this will help you:
<script language = "JavaScript">
var myString = "apple \n 0.99_ _banana_ _0.50_ _peach_ _0.25_ _orange_ _0.75";
document.write(myString);
var theRegExp = /\s+/g;
var myFruitArray = myString.split(theRegExp);
document.write("<br>");
document.write(myFruitArray.join(" "));
</script>
I used Regular Expressions to extract all newline and carriage return from the fruit string. Then I joined the elements of the array with whitespace. Before you apply it run it first to see if this is what you wanted to achieve.
Q1.: Well, when you write text in your html code for multilanguage data you have to specify your meta data on top within the <head> tags ex.:
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-2"></meta>.
The "charset" is the most important part here the one I included here is Latin II extended, which inludes regular english character and all latin.
Once you did that than within the page you have to use ASCII equivalent for special character of different language.
Once the browser see the meta data you specified it will know how to encode the characters of the different language. (Research some ISO charsets befor doing it for the language you are going to write in, I think Microsoft had a list of ISO charsets, and also go to website of ISO - International Standarization Organization,they should have some info too :-)).
Re: Q1.: It all depends on the DataBase type you are using if it is Oracle 8-up, then, as far as I know, you must declare PK and FK otherwise you will receive errors when creating tables.
If you use mySQL I read some toutorials that did not specify any keys whatsoever, and it was working fine. However I've been tought that a good database design always requires declaring PK and FK. If you do not specify them it is a performance issue of finding data in your database. If the database is fairly small there shouldn't be a problem, but if you have to manage huge database then... lots of trouble.
Q2. If you don't do "order by" in your SQL query then you will get the data as is. (SEE: O'Reilley SQL*Plus reference for use of: "group by" and "order by").
Just trying if it is working, sorry
20 years ago
JSP