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...
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...
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...
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...
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")...
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...
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" ||...
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...
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...
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
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
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...
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...
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...
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
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>...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.