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 strongm 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. SuperSal

    Getting the value of form items when the page loads

    Hi Jason, At the moment most of the pages are written in asp but we are trying to move over to .NET so a solution in either would be fine. Can you explain what you mean by "you're better of storing the initial state of the object in viewstate/session, editing, saving, emailing with old values...
  2. SuperSal

    Getting the value of form items when the page loads

    Hi everyone, I have got a form which opens when a user wants to edit a customers details. When the page initially loads the customers details are displyed in text boxes and the user can edit any of these details and press an update button. After this has been done as well as the details being...
  3. SuperSal

    Saving form data from a select box

    Its really strange because its working for all the object elements apart from the select boxes. The other values are all gathered when the onchange is set to save apart from for the select boxes. The only difference in the code is when the select box is being created here: function...
  4. SuperSal

    Saving form data from a select box

    Sorry Dan, I should have been clearer. Basically I am creating a URL so that I can send the form data which needs saving to the server. In the get_formdata function I am looping through the elements which have the onchange set to save. From checking the html created when i run the code, the...
  5. SuperSal

    Saving form data from a select box

    Hi everyone, for some reason the form data from the select boxes are not saving. The code is a bit strange (I apologise) but its just javascript creating the form elements dynamically. here's the code(cut down): function menu_list () { this.JPEGHighRes = new create_menu("JPEGHighRes")...
  6. SuperSal

    Replacing whitespace with a + character

    Thanks tsuji.....YOU ARE A STAR!!! Sally
  7. SuperSal

    Replacing whitespace with a + character

    Hi everyone, I know this seems a really simple thing to do but I just can't get it working correctly. Basically the code is creating a URL CGI form submission. The code gathers all the form elements names and values and appends it to the pages URL. The problem is that I need to replace...
  8. SuperSal

    Looping through form elements + creating a URL for cgi form submission

    Thanks but I have done this now, just needed to move the alert out of the inner loop. Here is the code: function get_formdata(form_data) { var theForm = document.forms[0] var textData = "" for(i=0; i<theForm.elements.length; i++){ if(theForm.elements[i].type == "text" ||...
  9. SuperSal

    Looping through form elements + creating a URL for cgi form submission

    Thanks Adam, I have been told to do it this way (by my boss) so I darn't really argue. He has said that we are going to need to manage other content to be sent to the server such as bitmasks. I wasn't well up on form submission so I didn't argue the case at the time, although I'm sure there...
  10. SuperSal

    Looping through form elements + creating a URL for cgi form submission

    Hi everyone, I have a form which i need to loop through all of the elements in the form and display them as one long string (for cgi form submission). I have written the code below which loops through the different types and displays them into an alert box. How do I now get all the data in one...
  11. SuperSal

    getting the value of a form item

    Thanks Adam after a closer look I had put 2 form tags in...one when rendering the table and one then one in when rendering the object. i took out the form tag in the object then gave the other form a name and referenced it how you suggested. Ta Sally
  12. SuperSal

    getting the value of a form item

    Hi Adam, thanks for replying, I did actually try that but it still didn't work. Do you think its something to do with the fact that the tables being rendered rather than just through html? Sally
  13. SuperSal

    getting the value of a form item

    Hi everyone, ok this is a bit strange the way its been done so bare with me! I am dynamically creating menu items and need to create a save function to save the values of form items on the server only I cannot seem to access the values of the dynamically created form items and I'm not sure why...
  14. SuperSal

    Getting the values of an array from a javascript file into a combobox.

    Thanks Dan and Monksnake, much appreciated. Sal
  15. SuperSal

    combobox list from array not working correctly

    Thanks feherke, If you are ever selling your brain then let me know! Sal
  16. SuperSal

    combobox list from array not working correctly

    Hi everyone, I have written some code to get the values from an array to populate a combobox(with help from monksnake) The code works, however it puts all the array values in for each list. eg like below High 2, High 3, High 4, High 5 High 2, High 3, High 4, High 5 High 2, High 3, High 4...
  17. SuperSal

    Getting the values of an array from a javascript file into a combobox.

    monksnake(or anyone else), thanks for your post 11 Jul 07 11:06. Sorry I have only just got round to testing this :) The code works, however it puts all the array values in for each selection. I have tried playing around with the code but have been unsuccessful. The code is as follows: <BODY...
  18. SuperSal

    Stysheet not applying to code generated on onload event.

    Thanks pix, thats great, i will change the code around to the same structure. The problem with using document.body.innerHTML is that it doesnt seem to work in firefox. Thanks again for your help, much appreciated Sally
  19. SuperSal

    Stysheet not applying to code generated on onload event.

    Feerke, I did actually try calling the function this way to begin with which was where I noticed that the stylesheet wasn't rendering. Otherwise this is the way I would normally call a javascript function. <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript" src="../Scripts/menuitems.js"></SCRIPT>...
  20. SuperSal

    Stysheet not applying to code generated on onload event.

    Thanks Feherke, using document.body.innerHTML=dstr works, Actually I have only been working as a web developer for 2 weeks before that I was using vb.net so its a bit of a change for me! I did try what pix suggested and it didn't work. In fact the page gets jammed each time it is opened and...

Part and Inventory Search

Back
Top