Hello.I am allowing a string to contain only alphabets and underscore,but is i enter fist character as alphabet or underscore and later if i put any invalid character then this validation is being done.I have done validation as follows:
function permission_validate()
{var permission=document.permissionForm.permission.value;var allowedSt...
<form jwcid="@Form" listener="listener:updateStaff">
<select jwcid="staffselect@Select" multiple="ognl:false" validators="validators:required" onchange="this.form.submit()" listener="listener:updateStaff">
<span jwcid="@For" source="ognl:hrStaff" value="ognl:currentHrStaff" index="ognl:currentHrStaffIndex">
...
what is the best practice for DOM generation ? passing the full html as response from server or pass necessary values and create dom accordingly from client side ? Please suggest..
...
For my goals I'm using html5 and tag < video> to add a media content to page. I've found how to control video by JavaScript(stop, play, load). But is there any ways to modify processing video stream.
I'm trying to find a solutions how to add my sequence of bytes into downloaded stream: e.g modify header of file before playing.
Thanks
...
I'd like to create the same kind of function tumblr has for uploading images and then inserting them directly into the WYSIWYG editor.
I was planning on using uploadify to upload the image, then I am not sure of the method for inserting into the CKEditor.
Has anyone done anything similar or know of a plugin that could do this? Ideally ...
I’ve only been trying it in Firefox’s JavaScript console, but neither of the following statements return true:
parseFloat('geoff') == NaN;
parseFloat('geoff') == Number.NaN;
...
Hello folks,
I've got the issue to add a browser event to some input fields. The challenge I have to face is, that one parameter of my target function is the 'event'-variable and the second one an object.
For a better understanding here some codes:The HTML object:
<div id="1_dateFieldAdvanced" class="xp set">
<div id="1_dateFieldA...
Hi,
Take a look at this example: http://www.extjs.com/deploy/dev/examples/multiselect/multiselect-demo.html
On it, there are components rendered against a panel. I've been searching for a way to render components without a panel, so that they are laid out against empty background directly, without any window-like panels. Is there a way...
in javascript, how to make alert bold n use h1 to h5 headers? Is this possible or simply plain alert is option?
how to include bold and h1 to this alert?
function onlooad()
{
alert("wssup??");
}
...
Hi,
Can any one tell me when this error occurs . I suspect this is coming when added any new js in Grails .
I'm unable to dig this :
16 Apr, 2010 4:58:25 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load org.codehaus.groovy.grails.plu...
I'm using xval to use client side validation in my asp.net mvc2 web-application. Despite the errors it's giving when I enter text in a numeric field, it still tries to post the form to the database. The incorrect values are being replaced by 0 and saved to the database. But instead it shouldn't even be possible to try and submit the form...
I am taking a text file from user and then posting that file back to the browser using ajax storing the content in db and then showing the content back to user page using Jquery post response.
Now i want to something like this..
Read the text file from the user computer using javascript. Display the content and when he submits the page...
Is it possible in IE8 without using third party plugin like Java?
...
I use yui datatable in my asp.net application... I have a link button in one of my columns and it works fine but doesn't do a postback of a hidden button...
myDataTable.subscribe("linkClickEvent", function(oArgs) {
javascript: __doPostBack('ctl00_ContentPlaceHolder1_Button1', '');
YAHOO.util.Event.stopEvent(oArg...
What is the difference between document.location.href and document.location?
Is it the same across browsers?
...
Hi all
I'm working on a GMaps application to retrieve images, via getJSON(), and to populate a popup marker.
The following is the markup which I add to the marker dynamically:
<div id="images"></div>
<div id="CampWindow" style="display:none;width:550px;height:500px;">
<h4 id="camp-title"></h4>
<p>View... (all links o...
We have several fairly large JavaScript files embedded into a single script resources DLL. This is then consumed by multiple projects by way of a reference and page includes via the ASP.NET script manager. This keeps things nice and neat within our ASP.NET pages and requires very little work to integrate into new projects.
The problem i...
Hello,
I've got an XML file on my serveur, and my parteners have to access it via a javascript i'm coding.
It's working perfectly in local, but as soon as i do :
xmlDoc.async=false;
xmlDoc.load("/export/export.xml");
to
xmlDoc.load("http://www.something.com/export/export.xml");
It stopped working. I know that it's to avoid XSS...
Hello.
I want to receive value from parent's control to popup window's code behind.
for example
<asp:RadioButton ID="rdoRate" GroupName="CouponType" value="0" runat="server" checked/>Rate
<asp:RadioButton ID="rdoAmount" GroupName="CouponType" value="1" runat="server"/>dollar
and recive selected radiobutton's value from popup window'...
Hi, I have the following code running as part of my OnClientclick attribute on my custom ASP.Net button....
function clickOnce(btnSubmit) {
if ( typeof( Page_ClientValidate ) == 'function' ) {
if ( ! Page_ClientValidate() ) {
return false;
}
}
btnSubmit.disabled = true;
}
There is a...