DropDown Events

BNDragon 26 Nov, 2014
Hi,

I have a strange problem in my form, I'm doing a form to Social Login/Register and I has doing the tests in a test Form, there I used a drop down with events to show/hide buttons to then use then to an EventSwicher action.

I almost finish my doubts, so I created a new form and added almost the same fields/buttons of the test form, the problem is that the events of the drop down is not working.

It's a big, big form, not much in designer tab but in setup tab is just big, I really don't want to remake it.

If you can give me an idea of why it is happen, I really appreciate.

Thanks,
BN
GreyHead 26 Nov, 2014
Answer
1 Likes
Hi BN,

That sounds like a JavaScript error on the page? Do you see anything in the JavaScript Console?

Bob
BNDragon 26 Nov, 2014
Hi Bob,

Thanks for your reply,

Do not give me any JS error in firebug, moreover, my menu works with JS and is working.
Always giving me a JS error, all the Js of the page does not work, which is not the case.

BN
BNDragon 26 Nov, 2014
Hi Bob,

Well, you actually right, it is a js problem, but i don't know why.

I have the same js scipt on a js action onLoad event in same forms, but in my new form if I use the script, the rest js of the form don't work.

this is the script
jQuery.ready(function () 
{
var cookies = document.cookie.split(";");

    for (var i = 0; i < cookies.length; i++) {
    	var cookie = cookies[i];
    	var eqPos = cookie.indexOf("=");
    	var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
    	document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
    }
});


BN
GreyHead 26 Nov, 2014
Hi BN,

Sorry there isn't enough info there to suggest anything else :-(

Bob
BNDragon 26 Nov, 2014
Hi Bob,

Please take a look in my onLoad Event.

If I remove the Load Javascript action (Only contains the code above) the dropdown events works.

BN
GreyHead 26 Nov, 2014
Hi BN,

It all looks OK. Please post a link to the form so I can take a quick look.

Bob
BNDragon 26 Nov, 2014
Hi Bob,

The form is here. If you need to go to admin, I'll send you the acess tokens.

Thanks,
BN
BNDragon 26 Nov, 2014
Hi Bob,

Just to say that I take the code of the form, so there is no problem now, but thanks anyway.

BN
This topic is locked and no more replies can be posted.