Shape 5 Box

13 years 10 months ago #133637 by skullero
Shape 5 Box was created by skullero
Hi guys i am using cb and i have a little problem with hidden divs, i mean i use s5 box to show the login and register froms like a pop up, the problem is that when an author want write a article fail the form and gives me an error (typeError: form.onsubmit is not a method), but when i dissable one module (login/register) whic used s5 box i don't get the error, just one module can be used cb. there is a way to fix this?

P.S. Sorry for my english ;)

Post edited by: skullero, at: 2010/05/21 02:41

Please Log in to join the conversation.

13 years 10 months ago #133687 by krileon
Replied by krileon on topic Re:Shape 5 Box
Your 3rd party extension is more then likely causing JS errors. Please review your browsers error console for any fatal JS errors and resolve them as necessary.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 10 months ago #133768 by skullero
Replied by skullero on topic Re:Shape 5 Box
Hi krileon, i have two errors when send the article, console's errors mozilla gives me this scripts how guilty:

1. <script language="javascript" type="text/javascript">
<!--
function setgood() {
// TODO: Put setGood back
return true;
}

var sectioncategories = new Array;
sectioncategories[0] = new Array( '0','0','Sin categoría' );


function submitbutton(pressbutton) {
var form = document.adminForm;
if (pressbutton == 'cancel') {
submitform( pressbutton );
return;
}
try {
form.onsubmit();
} catch(e) {
alert(e);
}

// do field validation
var text = tinyMCE.get('text').getContent(); if (form.title.value == '') {
return alert ( "El artículo debe tener un título" );
} else if (text == '') {
return alert ( "Los artículos deben tener algo de texto");
} else if (parseInt('0')) {
// for articles
if (form.catid && getSelectedValue('adminForm','catid') < 1) {
return alert ( "Por favor elija una categoría" );
}
}
if (tinyMCE.get("text").isHidden()) {tinyMCE.get("text").show()}; tinyMCE.get("text").save(); submitform(pressbutton);
}
//-->
</script>

2.<script type="text/javascript">overlib_pagedefaults(WIDTH,250,VAUTO,RIGHT,AUTOSTATUSCAP, CSSCLASS,TEXTFONTCLASS,'cb-tips-font',FGCLASS,'cb-tips-fg',BGCLASS,'cb-tips-bg',CAPTIONFONTCLASS,'cb-tips-capfont', CLOSEFONTCLASS, 'cb-tips-closefont');</script>

i think that the last error it's cause the problem, but i don't know how fixed, can you help me? :blush: .

Post edited by: skullero, at: 2010/05/22 01:54

Post edited by: skullero, at: 2010/05/22 01:57

Please Log in to join the conversation.

13 years 10 months ago #133802 by skullero
Replied by skullero on topic Re:Shape 5 Box
Hi, well i was reading and i think i find the problem, it's a problem with the module s5 reister, this module show the register form of cb how a module and it's use CURL funcion then when the form Js do the validation cause an error, i know yet not how to fixed :sick: .

Post edited by: skullero, at: 2010/05/23 00:04

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.616 seconds