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 John Tel 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 macca2424

  1. macca2424

    firefox form submit issue

    i have 2 buttons inside my form, next and previous next submits the form and previous goes back to the previuos page, this works fine in IE in firefox the previuos button actually submits the form aswell when it should redirect to the previuos page any ideas what i can do? <button...
  2. macca2424

    update form value on submit

    ok thanks, got it working just last thing i have 2 buttons inside my form next and previous next submits the form and previous goes back to the previuos page, this works fine in IE in firefox the previuos button actually submits the form aswell when it should redirect to the previuos page...
  3. macca2424

    update form value on submit

    ok debugged it i get this error var qText = document.forms['form1'].element ['qtext'].value; has no properties
  4. macca2424

    update form value on submit

    ok thanks i have installed firebug where do i go to debug javascript? also just wondering if you know why the button below would be subitting the form in firefox? it works fine in IE <button class="NavButtons" onClick="window.location='ModuleQuestions.asp?ques=<% Response.Write prevpag...
  5. macca2424

    update form value on submit

    hi yes i already did add a alert and it shows the alert but does not validate the text box
  6. macca2424

    update form value on submit

    ok i have it working after lots of playing around. now back to the orginal function below, which i have changed slightly by adding another form element and using that to compair the qtext value. but it is not validating the form even if it qtext is empty? function TextType() { var qText...
  7. macca2424

    update form value on submit

    yes thats exactly what i tried to do in the first place but then anything below that code does not get diplayed on my page, but i thought that would work?
  8. macca2424

    update form value on submit

    ok yes i understand that, the only issue is onsubmit="return ValValue();" will not work as i need to use the reponse write function. <% Response.Write ValValue %> but this causes a issue, so how can can i display the function from the database?
  9. macca2424

    update form value on submit

    i dont understand if i have a function called formcheck you would use onsubmit="return formcheck();" so what i am trying to do is have onsubmit="return "ValValue"();" and the ValValue will be formcheck in the database. if this cant work, what else could i do?
  10. macca2424

    update form value on submit

    o yes forgot to say the include with the submit button will be outside the form tags
  11. macca2424

    update form value on submit

    ok i just thought can i have a different form on each page which i then can use static functions. but then i have a server include with my submit button on. so how can i submit the form from my include, would a onclick submit event work?
  12. macca2424

    update form value on submit

    yes but as i was saying the value "ValValue" will change dyamically from my database, depending what page is being displayed, the "ValValue" will equal the name of the function. so in my table i will have a column called functions with a list of the functions and a content column with my html...
  13. macca2424

    update form value on submit

    Hi Dan thanks for yuor help, just need to know if what i surgest is a good way of doing it, if so i will play around with it. so.. have my 4 different javascript functions, then call then using my new variable. would this be a good way?
  14. macca2424

    update form value on submit

    so if i set a variable called ValValue which equals what i have in my database ie the function name (TextType) then jsut use that variable in the form? so it would be <form name="form1" method="post" onsubmit="return ('ValValue');">
  15. macca2424

    update form value on submit

    i have 10 dynamic pages with 4 differnt types of form elements each requires a different validation so can i have the onsubmit pointing to a function, then in that function can i specify the 4 different validations but then how would i know which validation is required?

Part and Inventory Search

Back
Top