I'm trying to include a validator on a form launched by the ModalPopupExtender control found in the AJAX toolkit. This is an ASP.Net 2.0 web application.
Several articles that show how to do this, include this reference:
<asp:ScriptReference Assembly="Microsoft.Web.Preview"Name="PreviewScript.js" />
This is the article I've based my page on for testing. http://usefulaspnet.blogspot.com/2007/03/modal-popup-with-textbox-and-validator.html
The problem I'm running into is that the file cannot be found when the page tryies to open.
Is there a better way to do what I want
Where can I find this file?
It turns out #1 is the correct answer.
All I had to do was make sure that the validators in the popup all were in the same validation group.
Related
My contact7 form is not working, none of the functionality is working, tha ajax and after post validation aren't working. I checked the console for a conflict but there's none. The html is the same i've used on other forms.
This is my form:
disennio.com/clients/lunata/reservaciones/
Looks like you are trying to manually insert the form code on your page. Instead, you'll need to use Contact Form 7's insert a form feature while you are editing that particular page in the WordPress dashboard.
It was mobile plugin related issue, will find another solution for mobile validations. Sorry.
While i was inserting a form into an article in Joomla, i had to place the forms target attribute as target="_blank" so that when the user submits the form, the form submits to a new page.
But as per Joomla's default configuration everything including form's markup went into the article html data except for the attribute target="_blank".
The editor used during the issue was Tinymce.
I'm trying to fix this issue without having to edit the source code in javascript or php.
I'm hoping for a quick fix from the Joomla's configuration somewhere.
Thanks everyone for the support.
Finally I got it figured out, without even having to change one single line of source code.
The issue was indeed by the extended valid elements options of the tinymce editor to be used.
But in Joomla, the tinymce plugin does allow to handle it from the plugin backend.
Goto Joomla plugin manager => Editor- TinyMce
Under the right Plugin configuration options, you can see at the bottom the configuration option:
Extended Valid Elements
There you can add the values
form[action|accept|accept-charset|enctype|method|target] & click save/apply.
Add the target="_blank" anywhere in your article html code & it will not be trucated anymore
:)
Cheers
I hope this helps someone who stumbled on this issue.
Community -
I'm stuck for couple days on this and decide to go with a iFrame solution and a regular embedded page with a basic reCaptcha plugin using a Page.IsValid {} on the server functionality.
Basiccaly I have an older WebForm ASP.NET 2.0 clients website with a Modal Dialog implemented using a Ajax/JSON call to a MailSend WebService and now integrating a clients wish having a reCaptcha functionality within the modal dialog gets a pain.
After several trials with some basic code and all over not completed code pieces on several blogs around the net I do give up - I go to create a separate page with a regular send to friend mail form and will call it from the parent page with jQuery in a iFrame.
Did anyone had some more luck consuming a reCaptcha Validate Web Service within a modal dialog without a Postback or without using the iFrame way?
I'm thankful for any idea.
Martin
Allright. Me and my co-worker gave up on validate re-captcha thru web service. We finished the task with a iFrame and a jQuery FancyBox modal dialog solution. It solved our problem and it looks good. But I will come back to do the research and try the first way to solve as well at a later point.
I am trying to use the Telerik datetimepicker in my own module of Orchard CMS.
everything seems working well except javascript. the datetimepicker control is unable to show the drop-down calendar.
I tried to use
Script.Include("~/Themes/Contoso/Scripts/2011.2.712/telerik.common.min.js").AtFoot();
Script.Include("~/Themes/Contoso/Scripts/2011.2.712/telerik.datetimepicker.min.js").AtFoot();
or created an ResourceManifest.cs in my module and called followings.
Script.Require("telerik_datepicker").AtFoot();
Script.Require("telerik_calendar").AtFoot();
I can see no run time errors against scripts i am refereing. but no document.ready() stuff in the html source for the page.
I dont know where got wrong. hope someone can crack the problems . thank you in advance.
All Telerik UI components for ASP.NET MVC require a ScriptRegistrar in order to work properly. The latter outputs the required JavaScript files as well as the JavaScript initialization code. You are probably missing a ScriptRegistrar hence the DatePicker does not work. Here is the minimum required code:
#(Html.Telerik().DatePicker()
.Name("DatePicker")
)
#(Html.Telerik().ScriptRegistrar())
Don't those Telerik helpers rely on some kind of HttpModule that you'd need to register in the global config?
I am using Drupal 7, and I am building a web site, that has a contact form in the footer which should appear in every page. The requirements was to make this form work via Ajax, all examples I found on Internet was form that related to node.
So when I tried to apply the same concept, I faced the problem of rendering the form, so I have passed it to the template as a parameter like this:
$vars['node']->contactForm = drupal_get_form('nilecode_form');
When I render the form by using drupal_render_children($node->contactForm), all the fields were rendered but with no wrapping form tag.
So after frustration, and not very useful IRC chats, I am thinking to do it by using normal Ajax request.
Before doing so is there any solution, before doing it the bad way?
Thanks.
Take a look at my ajax form examples, the best way of achieving this is using a theme function for the form:
http://monchacos.com/monchacos/code/creating-forms-template-file-ajax-included
Theres an attachment in the post, so you can get the full code example.