Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. starway

    printing javascript dynamic data

    The script should be placed in a page where you want to print from. If it is a checkout page - it should be there, and some &quot;Print order&quot; button should activate it: <input type=&quot;button&quot; value=&quot;print order&quot; onclick=&quot;writeCheckout()&quot;> The script should be...
  2. starway

    form validation

    I'm afraid that none of the above posts are completely correct. This is the right way in most general case: <form ... onSubmit=&quot;return validateFunction()&quot;> . . . <input type=submit> </form> No buttons: type=submit should do this. Also, no any event handlers should be called on...
  3. starway

    printing javascript dynamic data

    Yes of course. Just do the same as for &quot;normal&quot; page - extract the data from cookie and write it to a new window using method I described, but without any graphics.
  4. starway

    CSS Problems

    You have to add CSS classes to your links, this will make them look the same regardless where they are placed: a.one:link { } a.one:hover { } a.one:visited { } a.one:active { } a.two:link { } a.two:hover { } a.two:visited { } a.two:active { } . . . <a href=... class=&quot;one&quot;> ...
  5. starway

    align = top ??

    If we talk about tables, all the content should be inside its cells. This is what you need: <td valign=&quot;top&quot;>it is vertically aligned</td>
  6. starway

    printing javascript dynamic data

    You can do it by opening popup window and writing there the checkout data. The idea is this: function writeCheckout(data) { a = window.open(&quot;&quot;,&quot;&quot;,&quot;width=200,height=200,toolbar=no,....&quot;) a.document.open(); a.document.write(&quot;<html><head></head><body...
  7. starway

    saving the dropdown value selected

    document.formName.hiddenFieldName.value = the_value;
  8. starway

    Read full URL text from browser window

    In order to get the URL of currently opened page, use this: url = document.location.href;
  9. starway

    saving the dropdown value selected

    Do there anything you want. You wanted to pass a value to the function? You did it. Then do with it whatever you need: function getvalue(the_value) { //example, in case it's numeric: if (the_value > 20) { // do something } //example, in case it's literal: if (the_value != &quot;some...
  10. starway

    List Box

    Use this: var new_element = new Option(); instead of this: var new_element= document.createElement(&quot;option&quot;);
  11. starway

    i wanted to create a page that will

    Read my FAQ about Opera detection: FAQ216-1512 Use this document as a reference for Opera specs: http://www.opera.com/docs/specs/
  12. starway

    Browser Compatibility &amp; JavaScript

    crazyboy, in order to make page with javascript that is compatible with other browsers, yuo don't need to detect every browser and give them different scripts. That's a bad way to go. Write scripts that will be supported by all browsers and will execute well in all of them - that's how it...
  13. starway

    Oops! Pop-up pages 'on the fly' ?

    This is what you need I think: function openPhoto(img, w, h) { var windowprops = &quot;location=no,scrollbars=no,menubar=no,toolbar=no,resizable=no&quot; + &quot;,left=300,top=100&quot; + &quot;,width=&quot; + w + &quot;,height=&quot; + h + &quot;;&quot; a =...
  14. starway

    How to pass three arguments in a function. PLEase help

    I don't understand you. You did it already - just looked at your first post. You checked that range for several form fields, and not all of them. In general, this is what you need to do: <form ... onsubmit=&quot;checkIt(this.txt1)&quot;> ... <input type=text name=&quot;txt1&quot;> ... This...
  15. starway

    How to pass three arguments in a function. PLEase help

    If you had paid attention to my post, you could see this. You had it already: function CheckValue(a,upper,lower) You should call it like this: ... onClick=&quot;CheckValue(document.myForm.field1.value, document.myForm.field2.value, document.myForm.field3.value)&quot;
  16. starway

    Regarding history.go() function

    Instead of if(!confirm ... do this: if(confirm ... Also, another aletrnative to document.location.href=this.href; is this: document.location.reload();
  17. starway

    saving the dropdown value selected

    It's impossible to tell anything with this piece of code.
  18. starway

    saving the dropdown value selected

    Using onchange is the most easy way: <select ... onchange=&quot;getValue(this.options[this.selectedIndex].value)&quot;> This way you'll pass the value of selected list item as a parameter of getValue() function.
  19. starway

    saving the dropdown value selected

    You have to use this: parent.hidframe.form1.uomdropdown.options[parent.hidframe.form1.uomdropdown.selectedIndex].value; Instead of that very long statement I'd use this: dropdown = parent.hidframe.form1.uomdropdown; and then: dropdown.options[dropdown.selectedIndex].value But remember that...
  20. starway

    Annoying browser redirect problem

    Here is more complete and correct info: browser | property used | value returned ----------------------------------------------- Opera | navigator.language | en Netscape 4.x | navigator.language | en IE | navigator.browserLanguage | en-us Mozilla/N6+ | navigator.language | en-US As you...

Part and Inventory Search

Back
Top