0

I feel its strange error !

I am developing WordPress widget for My site.In my widget i have the Highslide Popup form.While submitting form i want to call the particular function.the function is included in header,But it says function is not found.

My form

<form method="post" name="contact_vendor_contact_frm" 
onsubmit="return contact_vendor_contact_frm(this);">
 .....
 </form>

contact_vendor_contact_frm functions included in header contact_vendor.js.You can see this in page source

Working place Here.My page

Help me!

asked Jul 8, 2011 at 9:42

2 Answers 2

1

In your code name attribute of form is equal to function name and it overwrite your function. If you write:

console.log(contact_vendor_contact_frm); // this would be point to form element not to your function
answered Jul 8, 2011 at 9:50
Sign up to request clarification or add additional context in comments.

Comments

0

User Firebug and check if this returns function

 typeof contact_vendor_contact_frm;

If not, then check what the returned value is, to solve the problem.

answered Jul 8, 2011 at 9:54

1 Comment

In that case, can you show us more code? The page you sent is not opened. Can you show us how and where did you define your function?

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.