当前位置: 首页>>代码示例>>PHP>>正文


PHP Validator::set_javascript_validation_handler方法代码示例

本文整理汇总了PHP中Validator::set_javascript_validation_handler方法的典型用法代码示例。如果您正苦于以下问题:PHP Validator::set_javascript_validation_handler方法的具体用法?PHP Validator::set_javascript_validation_handler怎么用?PHP Validator::set_javascript_validation_handler使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Validator的用法示例。


在下文中一共展示了Validator::set_javascript_validation_handler方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: init

 /**
  * Load all the custom jquery needed to run the custom 
  * validation 
  */
 public function init()
 {
     parent::init();
     // block prototype validation
     Validator::set_javascript_validation_handler('none');
     // load the jquery
     Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js');
     Requirements::javascript(NEWSLETTER_DIR . '/thirdparty/jquery-validate/jquery.validate.min.js');
 }
开发者ID:roed,项目名称:silverstripe-newsletter,代码行数:13,代码来源:SubscriptionPage.php

示例2: init

 public function init()
 {
     // Initiate the parent class
     parent::init();
     // jQuery for select menus
     // Validation Engine
     Requirements::themedCSS('validationEngine');
     Requirements::themedCSS('dataform');
     Requirements::javascript("mysite/js/jquery.validationEngine.js");
     Requirements::javascript("mysite/js/jquery.validationEngine-en.js");
     Requirements::block("mysite/javascript/jquery.jqtransform.js");
     // Set no validator(frontend) this is just for the Entry form
     Validator::set_javascript_validation_handler('none');
 }
开发者ID:SustainableCoastlines,项目名称:loveyourwater,代码行数:14,代码来源:DataEntryPage.php

示例3: init

	/**
	 * Load all the custom jquery needed to run the custom 
	 * validation 
	 */
	public function init() {
		// block prototype validation
		Validator::set_javascript_validation_handler('none');
		
		// load the jquery
		Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js');
		Requirements::javascript(THIRDPARTY_DIR . '/jquery/plugins/validate/jquery.validate.min.js');

		parent::init();
	}
开发者ID:neopba,项目名称:silverstripe-book,代码行数:14,代码来源:UserDefinedForm.php

示例4: init

 public function init()
 {
     parent::init();
     // Note: you should use SS template require tags inside your templates
     // instead of putting Requirements calls here.  However these are
     // included so that our older themes still work
     Requirements::themedCSS('layout');
     //Requirements::themedCSS('layout-sandra');
     Requirements::themedCSS('main');
     //Requirements::themedCSS('typography');
     Requirements::themedCSS('form');
     Requirements::themedCSS('fancybox.jquery');
     Requirements::themedCSS('jflow.style');
     Requirements::themedCSS('galleryview');
     //validation
     Requirements::themedCSS('validationEngine.jquery');
     //javascript
     //Requirements::javascript("mysite/javascript/jquery.js");
     //Requirements::javascript("mysite/javascript/jquery-1.4.2.min.js");
     //Requirements::javascript("mysite/javascript/jquery-1.9.1.js");
     Requirements::javascript("mysite/javascript/jquery-1.7.js");
     Requirements::javascript("mysite/javascript/owl-carousel/owl.carousel.js");
     Requirements::javascript("mysite/javascript/jquery-ui-1.8.6.custom.min.js");
     Requirements::javascript("mysite/javascript/jquery.timers-1.2.js");
     Requirements::javascript("mysite/javascript/jquery.easing.1.3.js");
     // jqTransform Form Transform
     Requirements::javascript("mysite/javascript/jquery.jqtransform.js");
     Requirements::javascript("mysite/javascript/fitvid/jquery.fitvids.js");
     Requirements::javascript("mysite/javascript/main.js");
     // facebook connect
     //Requirements::javascript("facebookconenct/javascript/fbconnect.js");
     //Requirements::javascript('http://connect.facebook.net/en_US/all.js#xfbml=1');
     //
     //init jqTrans on all forms
     //Sort out dd issue
     //Requirements::javascript("mysite/javascript/CreateDropdown.js");
     //
     //set no validator(frontend)
     Validator::set_javascript_validation_handler('none');
     //set validationEngine addded case by case on each form
     Requirements::javascript("mysite/javascript/jquery.validationEngine.js");
     //validation engine
     Requirements::javascript("mysite/javascript/jquery.validationEngine-en.js");
     //validation engine
     // SWF Object
     //Requirements::javascript("mysite/javascript/swfobject_modified.js");
     // jFlow Sliding Content
     Requirements::javascript("mysite/javascript/jflow.plus.js");
     // Custom jQuery
     Requirements::javascript("mysite/javascript/jquery.custom.js");
     // GalleryView
     Requirements::javascript("mysite/javascript/jquery.galleryview-2.1.1.js");
     Requirements::javascript("mysite/javascript/gallery_init.js");
     // Fancy Box
     Requirements::javascript("image_gallery/gallery_ui/fancybox/javascript/jquery.fancybox.js");
     //Requirements::javascript("image_gallery/gallery_ui/fancybox/javascript/jquery.pngFix.pack.js");
     Requirements::javascript("image_gallery/gallery_ui/fancybox/javascript/fancybox_init.js");
     //Requirements::javascript("mysite/javascript/fbml.js#xfbml=1");
     //THESE REQUIRE BLOCKING!!
     Requirements::block('sapphire/thirdparty/jquery/jquery.js');
     //Requirements::block('sapphire/thirdparty/prototype/prototype.js');
     Requirements::block('sapphire/thirdparty/behaviour/behaviour.js');
     Requirements::block('sapphire/javascript/prototype_improvements.js');
     Requirements::block('sapphire/javascript/ConfirmedPasswordField.js');
 }
开发者ID:SustainableCoastlines,项目名称:loveyourwater,代码行数:65,代码来源:Page.php

示例5: UploadifyForm

 public function UploadifyForm()
 {
     Validator::set_javascript_validation_handler('none');
     $fields = $this->Can('upload') ? $this->getUploadifyFields() : new FieldSet(new HeaderField($title = sprintf(_t('DataObjectManager.ADD', 'Add %s'), $this->PluralTitle()), $headingLevel = 2));
     $className = $this->sourceClass();
     $childData = new $className();
     $form = Object::create($this->popupClass, $this, 'UploadifyForm', $fields, new RequiredFields('UploadedFiles'), false, $childData);
     $uploader = $form->Fields()->fieldByName('UploadedFiles');
     $action = $this->Can('upload') ? new FieldSet(new FormAction('saveUploadifyForm', 'Continue')) : new FieldSet();
     $form->setActions($action);
     return $form;
 }
开发者ID:nicmart,项目名称:comperio-site,代码行数:12,代码来源:FileDataObjectManager.php

示例6: init

 /**
  * Load all the custom jquery needed to run the custom 
  * validation 
  */
 public function init()
 {
     parent::init();
     // block prototype validation
     Validator::set_javascript_validation_handler('none');
     // load the jquery
     //Requirements::javascript(SAPPHIRE_DIR .'/thirdparty/jquery/jquery.js');
     Requirements::javascript('userforms/thirdparty/jquery-validate/jquery.validate.min.js');
 }
开发者ID:nicmart,项目名称:comperio-site,代码行数:13,代码来源:UserDefinedForm.php


注:本文中的Validator::set_javascript_validation_handler方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。