當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。