| [+] HTML Pages with CSS and JavaScript » How to make a HTML TABLE's column size fixed (Go to) | | zheng yu |
Hi Zheng ... as far as I know, the browser will try its best to render your columns at 20% width. It will automatically break on spaces where it can to preserve the proper proportion. However, if your user's browser is too narrow, or you have large strings of data (or wide images) that don't break cleanly, your columns will stretch to accommodate. I'm not aware of a way around this. Good Luck. |
| [+] Meaningless Drivel » the fraud with palestinians' joy on NY disaster (Go to) | | Guennadiy VANIN |
I cannot get to the link posted above to read the interview, but snopes debunked the "fake footage myth" in September. http://www.snopes2.com/rumors/cnn.htm Claim: CNN used old footage to fake images of 'Palestinians dancing in the street' after the terrorist attack on the USA. Status: False. Origins: No, CNN did not air decade-old footage of Palestinians dancing in the streets. Eason Jordan, CNN's Chief News Executive, confirmed that the video used on CNN was in fact shot on Tuesday, 11 September 2001, in East Jerusalem by a Reuters TV crew, not during the Persian Gulf conflict of 1990-91 -- a fact proved by its inclusion of comments from a Palestinian praising Osama Bin Laden (whose name was unlikely to have come up ten years earlier in connection with the invasion and liberation of Kuwait) as well as the appearance in the video of post-1991 automobiles. The person who made the claim quoted above has since recanted. |
| [+] HTML Pages with CSS and JavaScript » Downloading only after prompt... (Go to) | | Connie Boyd |
I'm not sure if this will work for you, but we have done it in the past. If you remove the extension of the file, or give it a strange extension (on both the actual physical file to be downloaded and in the HREF of your html code), the browser will usually not know what to do with it and will prompt the user to download. In order to do this though, you should clearly indicate what kind of file you are pointing to so the user knows what he/she is getting. Hope this helps. |
| [+] HTML Pages with CSS and JavaScript » Netscape Line Spacing when Printing (Go to) | | Connie Boyd |
I'm not sure why you may getting larger line spacing, but have you tried printing using PRE or TT tags? Using those tags will display your data in a fixed width font, and you probably wouldn't even have to use tables, you could just print the lines out with the appropriate tabs/spacing. |
| [+] HTML Pages with CSS and JavaScript » Pop up window with forms (Go to) | | Connie Boyd |
This should work: <FORM ACTION="Servlet" TARGET="_blank"> If you want to actually set the properties of the new window, height and width and stuff, you might try: <FORM NAME="myform" ACTION="Servlet" TARGET="resultWin"> <INPUT TYPE=" button" VALUE="Submit" onClick="javascript:newWindow()"> where newWindow creates a new window called resultWin, then calls document.myforms.submit(). My syntax may not be exactly right, but it should be close. Hope this helps. |
| [+] HTML Pages with CSS and JavaScript » Zoom In a map : Help needed (Go to) | | Shreya Menon |
Hi Maya, it's me again. The zoom in and zoom outs you see on places like mapquest or others are probably dynamically generated images, allowing the zooms to be done on the server side. If you want to do this on the client side, you would probably have to create the zoomed in and zoomed out images by hand, then write a client-side script to access those individual files. Is this what you are thinking of? I am not aware of any client-side scripts that would actually redraw the images for you. Let me know if you've actually manually created the images and I'll see if I can help. - Connie |
| [+] HTML Pages with CSS and JavaScript » Rounding the float value (Go to) | | prakash muthu |
You're getting this problem because floating point numbers are inexact, so you really can't count on doing the math without adding some checks to your code. I don't know of any straight up workarounds, but something we have done in the past is this: Given a number such as 5.7045630, if you want precision to two places, do the following: num = 5.7045630 ; hundredths = Math.floor( (num*100) % 100 ); //hundredths = 70 wholeNum = Math.floor( (num*100) / 100 ); //wholeNum = Math.floor( 570 / 100 ) = 5 It's a really simplistic solution, and you'd obviously have to work harder if you want to be able to handle a larger range of numbers, but it's a start. Good Luck! |
| [+] Meaningless Drivel » Economic Impact of Attack (Go to) | | Saran Vel |
Hi all ... considering yesterday's sad market performance, I wanted to pass along something I received in my inbox. Not sure if anyone else has posted it. My apologies if that is so: Here are some pragmatic thoughts and suggestions for you and yours (please consider forwarding all or part of this email to others): A. ECONOMIC IMPACT As a country, we have been paralyzed and mesmerized by the attacks. Rather than work, we watch, listen, and grieve. As a consequence, the economy is going to feel a real impact and it may not be very good . . . unless we collectively do something. This weekend (not next weekend) and in the coming days, consider doing the following (and extrapolate to fit your world): 1. For every person who has a birthday, wedding, shower or other gift giving occasion in the next 90 or 120 days, BUY the present NOW. You would spend the money anyway, just spend it a bit early. Give our economy a boost when it needs it. Buy the greeting card, gift wrap, heck get your Christmas gifts now. (And consider buying American made products if it makes sense to do so.) 2. Consider buying the things you know you will consume in the next 120 days; e.g., paper towels, Kleenex, cosmetics, laundry detergent, anything that doesn't get stale or have a short shelf life. Stock up on soft drinks, bottled water. Yes, it does make a difference if you spend $50 because x millions of us rather than NOT spending $50 is actually a difference of $100 x millions of us. 3. Plan your winter and spring vacations and holiday travel and buy your airline ticket now (you may even get a great deal). Take a trip you've been considering. Visit family and friends in the coming weeks. The airlines need the revenue; we need to see family and friends. Consider vacationing in the U.S. this year. Sure, the Caribbean has the best dive sights, but ski in the U.S. go somewhere you haven't been. Consider even Broadway (fears abound that tourism in NYC will be down substantially - well, do something, go to NYC!) 4. Have auto maintenance coming up in the next 30 or 60 days? Do it this week. 5. Know of a concert or theater performance you want to see? Even if in January, go ahead and buy the tickets now. Subscribe to a series at the symphony, ballet, or local theater (if you even thought about doing so, do it this week). (Don't forget Broadway tickets, see #3 above). 6. House maintenance? New appliance you know you need to replace? Gutters? HVAC check up before winter comes? Think ahead - go to your checkbook from last October, November and December and see what you spent last year and go ahead and consider doing it this week or next. 7. Go OUT THIS WEEKEND and have dinner, buy drinks, buy a shirt or blouse, wash your car, see a movie, go bowling, do something both for fun and to make sure all those who are in business do not also suffer because of those demons who would disrupt our world! B. WANT TO HELP? BEST LINK I'VE SEEN How to Help C. REALAGE.COM SENT THIS PIECE ON GRIEVING: Getting Past Grief During difficult times, finding ways to express your feelings may be one of the keys to dealing with grief. Traumatic events can take both a physical and psychological toll due to increased stress levels. However, spending time with loved ones, talking through disturbing experiences, or writing about your feelings in a journal can help you cope with upsetting events and ease their effects. RealAge Benefit: During stressful times, strong friendships can make your RealAge up to 30 years younger. D. NOSTRADAMUS DID NOT PREDICT THE ATTACK If you've received an email about Nostradamus predicting the attack, the information is incorrect. Urban Legends Snopes and see USA Today, September 13, 2001, page 8, Section D. Hug someone today. Hug yourself. As long as we are all going to be forever changed by the attack, let's make it a positive change in our everyday attitude and direction. |
| [+] HTML Pages with CSS and JavaScript » How can I split an Image ? (Go to) | | Shreya Menon |
Hi Maya ... here goes ... 1. Open your image. (Say, Image1.gif) 2. View --> Rulers 3. Assume my image is 2 inches tall and 5 inches wide. 4. I want two images, 2 inches tall and 2.5 inches wide. 5. Go to Image-->Crop 6. For Crop Margins enter, Left: 0 , Top 0, Right, 2.5, Bottom 2. 7. Save image as Image1_slice1.gif 8. Open original image again. 9. Go to Image-->Crop 10. This time enter, Left 2.5, Top 0, Right 5, Bottom 2. 11. Save this image as Image1_slice2.gif PhotoEditor is not the most intuitive program in the world. If you had photoshop, you could just draw a select box around the image and crop. Hope this helps! |
| [+] HTML Pages with CSS and JavaScript » How I can referenced to a varible (Go to) | | Connie Boyd |
Why do you have the script in the frameset anyway? Can you store it in an external file? If so, you can reference the variable from any page. For example: external.js var i_Variables_Cargadas = "foo"; Inicio.html <SCRIPT SRC="external.js"> <FRAMESET> ... </FRAMESET> Menu.html <SCRIPT SRC="external.js"> <SCRIPT LANGUAGE="JavaScript"> document.write(i_Variables_Cargadas); </SCRIPT> Hope this helps. If not, please provide more information and restrictions and I will try to help. |
| [+] HTML Pages with CSS and JavaScript » How can I split an Image ? (Go to) | | Shreya Menon |
If you have Microsoft PhotoEditor, you should just be able to crop your image and save each piece as its own image. You could probably also do it in Paint, but I don't think it has rulers, so you might not get an exact slice. |
| [+] Meaningless Drivel » On the veggie/vegan subject.... (Go to) | | Tim Baker |
hi Andrew. I believe the African Hebrew Israelites of Jerusalem promote a vegan lifestyle. And even though not all Buddhists are vegan or even vegetarian, it's not an uncommon path to follow and is totally consistent with the Buddhist views of peace and non-violence. --- The main point is really that we only live by ending the life of something else. (Ending the life in a very limited understanding of ending and life, of course) Becoming truly conscious of this fact is profound. To say that killing an animal is cruelty but killing plants is not, is simply a function of our ability to more easily anthropomorphize the animals. Your argument is purely metaphysical (read: cop out  ), and once you're out there, anything is valid either for or against eating meat. To say that killing plants could be just as cruel as killing animals is to relegate the physical display of pain and the desire of all animals to preserve/extend their own lives into the ether. I'll grant you cold weather or certain living conditions as a reason to eat meat. I've seen disparaging comments by vegans who don't know better regarding the Dalai Lama, who eats meat at his doctor's advice. Living in the south, I fortuntely don't have to contend with those forces of nature. In terms of the activity part, I have to whole-heartedly disagree. I don't think a vegetarian diet should necessarily be coupled with "a life of contemplation/meditation." I lead a fairly active life and have not noticed any detriment to my performance since abstaining from animal products. To cite one famous example and one I hope to follow, Dave Scott is a five-time Ironman Triathlon winner and vegan. (And by following his example, I mean finishing an ironman, not winning, and certainly not winning five times.) If that's not a life of pure physical activity, I don't know what is. But anyway, I'm not really arguing anything. After a rocky start, we seem to have come to the conclusion that we generally agree, but are opposed on certain finer points. Enjoy! Connie |
| [+] Meaningless Drivel » On the veggie/vegan subject.... (Go to) | | Tim Baker |
Dear Andrew, That's great that your were a veg and I'm sorry that it didn't work out for you. I respect your position and am glad that you have worked out your diet in a way that serves your needs. To readdress your point, I think it's a cop out to say that plant death and animal death are equal. Are you saying that we can't know how either plants or animals experience death, so we might as well eat either or both? I choose my food based on my taste buds. I like being a vegetarian. I feel that I eat a more varied range of foods and that by eating locally grown, seasonal vegetables I am reducing my impact on the environment and helping local farmers prosper. If I had certain goals, I might consider an omnivorous diet again, but I don't see it happening. As for what has been implied in this thread: 1) vegetarians are inconsistent in their views Everyone is inconsistent in their views (except Peter Gragert --see the comfort care thread  ). Many vegans are dogmatic because omnis are always trying to catch them at something. The point is not the inconsistency, but the need to always have to defend your diet just because it is not the norm. 2)vegetarians are malnourished Often? I hardly think so. Maybe the teenage potato chips and coke vegetarians, but there are millions of people who thrive on vegetarian diets. Cultures / religions in which a vegetarian diet is the norm have existed for ages. Many cities boast pure vegetarian indian or chinese restaurants. These are diets based on culture, not the latest trends. Being a vegetarian has neither been hard nor expensive for me. 3)deluded into thinking that plant life is less sacred ... I was referring here to your point about anthrocentric projections, or our vain attempts to qualify the difference between plant life (or death) and animal life. As far as trendiness, it seems as though your experiences have colored your perceptions of vegetarians. I mean, you're judging vegetarians for choosing a diet without knowing much about nutrition, but the average joe probably knows even less. I know people who drink six cokes in one day. I'd rather be a trendy vegetarian! Most omnis eat without any thought as to how their food will affect their health, weight or well being. There are exceptions. As for pets and meat, what is the difference? There are people who own pot-bellied pigs, and I would hope that those same people don't eat pork, but who knows? The pork chop on their plates are from different kinds of pigs after all. Why do people get so horrified when they hear of other cultures that eat dogs? It doesn't make a difference. If you're going to eat one animal, you might as well eat them all if they taste good. Finally, I hope I haven't come off as confrontational, but I felt that some comments in this thread were patronizing, however thinly veiled. I also think that a negative experience with a vegetarian diet shouldn't lead one to believe that the diet is inherently flawed, rather it is a diet that is not right for everyone. Vegfully yours, Connie |
| [+] Meaningless Drivel » On the veggie/vegan subject.... (Go to) | | Tim Baker |
Qualification of plant life(or death) as different from animal life is an anthrocentric projection of our limited understanding of life onto the situation. What's your point? Does that mean we should eat humans too? From beyondveg.com: "We hope the range of views presented here will encourage--perhaps even force--you to think for yourself and go beyond the need for reliance on any single authority in evaluating the worth and workability of a diet. " Actually, I've already done that. I've experienced life as both an omni and a veg. On the other hand, how many omnis have tried veg diets, other than having a salad for dinner once in awhile. This thread is barely even off the ground and we've already implied that vegetarians are inconsistent in their views, malnourished, and deluded in thinking that plant life is any less sacred than animal life. Excellent. |
| [+] Meaningless Drivel » On the veggie/vegan subject.... (Go to) | | Tim Baker |
Ever since I went veg I haven't purchased any leather products. I still wear and use all the leather things I owned before changing my diet, but I haven't yet come across a situation where I HAD to buy a leather product. As for animal testing, I don't purchase personal care products tested on animals, and I have a tendency to think that human subjects would provide far more meaningful results in scientific research. But when will that ever happen? Many drugs are given the FDA seal of approval only to be sent back to the drawing board when it is realized that the effects on animals do not always mirror the effects on humans. It's not a perfect world, and I'm not a perfect person, but I do what I can, right? |
| [+] HTML Pages with CSS and JavaScript » frames in html (Go to) | | Connie Boyd |
If I understand correctly, your middle frame is showing scrolling, but you think it shouldn't be because the page appears to fit? If that is the case, there may be some invisible elements on the page that are making it larger than it seems. Do you possible have any height tags set in your tables, or empty <P> tags that could pushing the page to be larger. That's about all I have as far as ideas. Good Luck. |
| [+] HTML Pages with CSS and JavaScript » onClick in netscape (Go to) | | Connie Boyd |
I would try this: <a href="javascript:openForCSP('configure');"> <img src="/tndportal/images/button_configure.gif" border="0" alt="Configure"/></a> And if that doesn't work, I would think that the problem is in your function and not in how you are calling it. IE is sometimes too forgiving so you have to be sure your syntax is letter perfect. [This message has been edited by Connie Boyd (edited August 06, 2001).] [This message has been edited by Connie Boyd (edited August 06, 2001).] |
| [+] HTML Pages with CSS and JavaScript » absolute size of Frames (Go to) | | Connie Boyd |
Isn't a numeric value absolute? If you need to have the whole thing non-resizable, you could create an outer frameset of relative sized black borders, then create an inner frameset with an absolute height and width. This way the inner frameset stays an absolute size while the outer borders resize with the user's browser window. |
| [+] HTML Pages with CSS and JavaScript » JavaScript and JSP (Go to) | | Connie Boyd |
But then what is calling your function? Is there a reason you are not using plain javascript with the HTML form? Why not check the value of "quantity" before you process the page? You can use onSubmit or onClick with your form to check the value before submission. As far as refreshing the page, if your page has already been submitted and what you are looking at is the results after returning from form processing, you are always going to resubmit the form on refresh. You'd have to use your back button to get back to the original form. Does that make sense or sound like babbling? I hope this helps. |
| [+] Cattle Drive » Question for Marilyn (Go to) | | Marilyn de Queiroz |
Hey Marilyn! My code passed for Sum, but then you asked for an explanation of the results. Well, I sent it, but does that mean I should wait for an ok on the explanation or can I go ahead and submit Java-8? I am anxious to hear the bars of Pomp and Circumstance ...  Connie |
| [+] Meaningless Drivel » Cappuccino (Go to) | | Nanjangud Nanjundaiah |
Cappuccino is 1/3 espresso, 1/3 steamed milk, 1/3 froth. I gave up trying to get cappuccino at those corporate coffee chains because they never get the froth right, so now I order lattes which is 1/3 espresso, 2/3 steamed milk. |
| [+] HTML Pages with CSS and JavaScript » rendering onto an gif/jpeg image???? (Go to) | | Connie Boyd |
Couldn't you just reload a new image with the points connected, similar to a mouseover, but fired from an onClick (or other) event? --Connie |
| [+] Meaningless Drivel » Death Penalty (Go to) | | Tony Alicea |
Jesus said do unto other as you would have them do unto you, NOT do unto others what they have done to you. There's a pretty big difference there. And he also said to turn the other cheek, but quoting the bible to support anything is a pretty useless endeavor as you can interpret just about any part of it however you want. I'm not going to get into this thread too deeply, as there are some sentiments and undercurrents that I find somewhat frightening. I would like to say in sravana's defense that I wouldn't be at the execution either. I'm in no position to judge how other people will deal with their grief, but for me personally, I have no interest in watching anyone or anything die before my very eyes. |
| [+] HTML Pages with CSS and JavaScript » Setting up a file Download from my site (Go to) | | Dave Vick |
I think if you give your file an odd extension, the browser will prompt the user to open from the location or save to disk. I was able to get Netscape and IE to prompt for a download by giving a text file my intials as the extension: myFile.cub Hope this helps.  |
| [+] HTML Pages with CSS and JavaScript » Creating Text File Using Java script!! (Go to) | | Connie Boyd |
You can read and write to a file on the server using server-side JavaScript. You cannot access or create files on a client machine. As far as I know anyway. |
| [+] HTML Pages with CSS and JavaScript » Javascript.. (Go to) | | Chuck Meduri |
This should work as long as you are opening the second document with window.open(). Usually IE is more lenient than Netscape, so you could be violating syntax and IE is just ignorning it. Can you post the code you use to open the window, and also the code you are using to update the form? |
| [+] Programming Diversions » Puzzle anyone (Go to) | | Varun Khanna |
Okay, I attempted an answer, and then deleted it because I was pretty sure it was wrong, but I'll buck up and leave this one. If you fold each rope in half, you should be able to measure out 30 minutes on one and 15 on the other. |
| [+] Meaningless Drivel » Divorce > Marriage? (Go to) | | Anonymous |
Oh, and on the topic at hand, I don't know much about polygamy, but I think that consenting adults should be able to participate in such relationships if they so desire. Some may argue that you are violating certain values and raising children with a perverted sense of what a family should be, but there are a ton of kids raised in much worse environments.  |
| [+] Meaningless Drivel » Divorce > Marriage? (Go to) | | Anonymous |
This is way off topic now, but when I was in a high school, a friend of mine got busted for dress code violation for wearing a concert T-shirt that said Farm Road 666. (Basically a black t-shirt, with a white Texas and the black numerals 666. That's what some major road signs look like in TX.) So, he got busted, but other teens could wear their church T-shirts with graphic representations of the crucified Jesus. I never really found that to be fair, particularly since there isn't anything inherently evil about the number 666, other than that it is the number of the beast. |
| [+] HTML Pages with CSS and JavaScript » Unable to load resource in Netscape (Go to) | | Connie Boyd |
Try to change the css reference as though you were calling it from the web server instead of the file system: filePath = "/ServerRoot/Path/(some resource)" |
| [+] HTML Pages with CSS and JavaScript » Changing the target of a form (Go to) | | Dave Vick |
Do you need to change the action, or the target? Srini's code above changes the action of the form, but if you're trying to send the results of a form to a different frame or window, you could do it by adding the target attribute like so: <FORM ACTION="MyAction" METHOD="POST" TARGET="ResultsFrame"> Where the target is the name of the frame or window you want the results to be sent to.  [This message has been edited by Connie Boyd (edited May 16, 2001).] |
| [+] HTML Pages with CSS and JavaScript » How to set Target for frames (Go to) | | Connie Boyd |
Hi Raajesh! Try something like this: <A HREF="javascript:changeFrames('http://www.javaranch.com')">My Link</A> (Say, in Frame3) calls: My syntax may be a little off, but this should get you on the right track. Hope it helps!  |
| [+] HTML Pages with CSS and JavaScript » problem using javascript with checkboxes (Go to) | | Florence Cheung |
Hi Florence, That's weird. Is it the javascript debugger that's complaining or is it a java debugger? Since it is working in HTML, I can only think that maybe your debugger is trying to interpret it as Java code, in which case it would not be an object. I fooled around with the code and the closest match I could get in an error was that document.MyForm.foo1 did not have any properties, and that was a result of inserting a typo into the field name. I'm sorry I can't be of more help, but the javascript shouldn't complain because the form field is an object. I'll try to think on it some more and see if I can come up with anything. Good Luck! |
| [+] HTML Pages with CSS and JavaScript » How to pass value to JavaScript function (Go to) | | Connie Boyd |
If you mean the actual value of the radio button, I think this should work: <input type="radio" name="MyRadio" value="cool" onClick="myFunction(this.value)"> Cool |
| [+] HTML Pages with CSS and JavaScript » How to import style sheets in Netscape? (Go to) | | Connie Boyd |
Try to change the css reference as though you were calling it from the web server instead of the file system: <link rel='stylesheet' href='/PathToCSS/vpiStyle.css' type='text/css'> |
| [+] HTML Pages with CSS and JavaScript » Convey information from one window to another through form fields (Go to) | | Connie Boyd |
Assuming you have control over the form in window x, just define a function in x that is fired when the user clicks submit on that form. Hope this helps.  [This message has been edited by Connie Boyd (edited May 11, 2001).] |
| [+] HTML Pages with CSS and JavaScript » image tag (Go to) | | ak amanushya |
In your actual page did you type "SRC" instead of "SCR"??  [This message has been edited by Connie Boyd (edited May 11, 2001).] |
| [+] HTML Pages with CSS and JavaScript » problem using javascript with checkboxes (Go to) | | Florence Cheung |
Hey Florence ... I think you may have to name all your checkboxes differently. Then use a for loop and counter to see how many items have been checked. This little test appears to work properly: Hope this helps!  |
| [+] HTML Pages with CSS and JavaScript » get parameter value with javascript (Go to) | | Connie Boyd |
According to the documentation, "Static methods and properties declared in an applet are available to JavaScript as methods and properties of the Applet object. You can get and set property values, and you can call methods that return string, numeric, and boolean values." With that in mind, I think you would get the parameter value more like this: document.AppletName.getParam(ParamName) Hope this helps ... |
| [+] HTML Pages with CSS and JavaScript » How to select a portion of text in a textarea using javascript? (Go to) | | Connie Boyd |
Can you be a little more specific? Are you looking for a specific string? Can you use pattern matching? What do you need to select the text for and how will you use it? |