php - jQuery and IE8: Form action and submit problem -


I have some code that I do not want to do in IE8. When you press the "Preview" submit button, jumps in a bit of javascript and changes the action of the franchisepreview.fpp form. This sets a session variable, when you go back to the form you will not loose anything "pressing" or "insert" to go directly to a query that contains a franchise.

Do not jump in javascript in IE8. This ever submits form without changing the action.

The jQuery bit I'm using:

Tie:

  jQuery ("# ​​preview"). Tie ("click", changeForm);  

function changeForm :

  function change form (event) {warning ("before:" + jQuery ("# Franchiseform ") .attr (" action ")); JQuery ("#franchiseformform"). Ether ("action", "franchiseprech. Php"); Warning ("After:" + jQuery ("#FranchiseFormform"). Entry ("Action")); JQuery ("# ​​franchiseform") presented (). }  

Probably try to make sure that before submitting the form Attribute is set:

  jQuery ("#franchiseformform"). Ether ("action", "franchiseprech.php"). Submit ();  

It does not look like .attr () accepts callback


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -