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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by JoliM

  1. JoliM

    avoid similar value

    I have some similar code that moves text from one box to another. To check if something already exists I use: //check to see if item is already in list //where tbox is to box and fbox is from box j = 0; while ((j < tbox.options.length) && (!(itemexists))) { if (tbox.options[j].value ==...
  2. JoliM

    eval function not working in Netscape (works in IE)

    Tracy, Thanks for the quick reply. I am using &quot;document.forms[0].elements[i]&quot; in a later statement so wanted to assign the object to a variable to make it easier. I liked your suggestion of using document.forms[0].elements[FieldName] instead of the eval statement I was trying to use...
  3. JoliM

    eval function not working in Netscape (works in IE)

    I have a function that pulls the form element names on submit to validate the fields. The form is built dynamically so I don't know which of the 58 element names might be on the form. I'm looping through the element array to pull the name, then checking if the value has data. This works like a...
  4. JoliM

    HELP! function works in IE but not Netscape

    Thanks. That fixed it! JoliM
  5. JoliM

    HELP! function works in IE but not Netscape

    I have an ASP page that calls a javascript function and passes a variable to the function at the same time. The variable is used to update a hidden field in the form. After the hidden field is updated, the form is submitted. It works like a charm in IE, but Netscape does not submit the form...
  6. JoliM

    Possible to use Excel Object when Server does not have MS Excel instal

    However, it is possible to create an instance of excel in the user's browser (provided it is installed on their computer) using: Response.ContentType = &quot;application/vnd.ms-excel&quot; as the first line in the page. You cannot use include files on this page. The excel file is built in...
  7. JoliM

    Select AND/OR

    You probably should use a CASE statement in either SQL or in your ASP code. http://www.sqlindex.com/books/sample_chapter/3.asp for SQL Case information and http://learnasp.com/learn/case.asp for ASP case syntax. Regards, Joli
  8. JoliM

    Need suggestions for a validation script

    Check to see which radio button is checked, then set a variable for destination.value. Check to see if the variable has data, if not, pop-up an alert. //after checking radio button Dest = document.FormGroupName.Destination.value; //add alert if name is blank if (Dest == &quot;&quot;){...
  9. JoliM

    Split function problem

    You can check for a value like if arySplit(i) = &quot;&quot; then arySplit(i) = &quot;Null&quot; end if Joli
  10. JoliM

    dynamic checkboxes

    Looked like you had an extra quote after the comma. Do you need the comma in your SQL statement? sqlupdinvacct = &quot;Update tbl set flag = '&quot; & vacctflag & &quot;' , where id = to_number('&quot; & vid &&quot;')&quot; Joli
  11. JoliM

    ASP object model and javascript...

    Sorry, I jumped to an assumption that you were talking about Javascript on the client side. We use a mixture of Javascript (for client side) and VBScript (for server side) which is where the example came from. I'm not familiar with javascript on the server side. Joli
  12. JoliM

    Determining List Box Contents in ASP

    Since the list now resides only client side and in Javascript, you need to send it back to ASP. Here is an example of one we've used: //create the list as comma delimited var listtext = &quot;&quot;; var i; var j = document.FormList.list1.options.length; for(var i=0; i<j; i++) {...
  13. JoliM

    Multiple Forms in one asp page

    Another way you can do this is by using a CASE statement. Send a variable to the page either hidden or set as the name of a button. We name our buttons Action and set the value as the text of the button. So: <% SELECT CASE Request(&quot;Action&quot;) Case &quot;&quot;%> <form...
  14. JoliM

    ASP object model and javascript...

    Since Javascript is client-side, and ASP pages are created server-side, you have to be creative in how the two scripts interact. For example, to get data from a database or datafile into Javascript, the .ASP page will need to write out the information into a Javascript function. For example...
  15. JoliM

    dynamic checkboxes

    There is an eval function for ASP, but I think it is in ASP scripting version 5.0. See http://www.4guysfromrolla.com/webtech/030300-1.shtml for more details. To get by without using eval, if you name all the checkboxes the same, the value will be passed to the next page delimited with commas...

Part and Inventory Search

Back
Top