Hi,
I'm using the google youtube chromless api to create custom play controls for yotube vids on my site. Using the chromless player doesn't seem to get rid of the play icon that sits over the video at the start. I cant hide all the other controls using this:
swfobject.embedSWF("http://www.youtube.com/apiplayer?&enablejsapi=1&...
So I declare an ExtJS radio button object like this:
.AddExtObject("{xtype:'radiogroup', ref:'../AndOr', defaults:{name:'rdo-payee2'}, width:120, items:[{boxLabel:'And', checked:true, inputValue:'and'},{boxLabel:'Or', inputValue:'or'}]}")
When I do this:
if (checkWin.Payee2.AndOr.getValue() == 'and') {
fundingRec.set(...
There is a debugging syntax error, but I can’t see it! im a bit of a newbie, so excuse my code!!
$(document).ready(function(){
/* fetch elements and stop form event */
$("form.follow-form").submit(function (e) {
/* stop event */
e.preventDefault();
/* "on request" */
$(this).find('i').addClass(...
I'm trying to get the value of an input (text/textarea) and document.getElementById('rtext').value returns nothing. If I set a default value (value="XXX"), it returns that value, eve if i edit it.
Here's some sample:
<div class="forms">
<p><textarea id='rtext'></textarea></p>
</div>
I'm mentioning that the form element <textarea>...
I am experiencing this issue with IE7 but not in Chrome or firefox:
I have several page elements that are loaded via ajax. This elements are dynamically displayed on the page as hyperlinks to another page. As I have many such elements loading, I can sometimes see the progress of the page load (i.e. I can see the elements getting popula...
If I have a simple button:
<ice:panelGroup>
<ice:commandButton value="foobar"
action="#{fileManager.openNoFlashVisiblePopup}" />
</ice:panelGroup>
Is it possible to trigger the action openNoFlashVisiblePopup using just javascript? I know that there IceFaces has a JavaScript bridge but I don't know see a...
I use event delegation in such way:
elWraper.onclick = (function(){
//how to get here "event" object
e = e || window.event;
var t = e.target || e.srcElement;
//event handler
return function(){
//manipulations with "t" variable
}
})();
how to get "event" object within the immediately executed function?
...
Hello everyone,
I have function like this in my header
function bingframe() {
var iframe = document.getElementById('bframe');
iframe.src = 'http://www.bing.com/search?q=' + document.searchForm.search.value.replace(/ /g,'+') + '&go=&form=QBLH&filt=all&qs=n&sk=';
}
So now when i call this function it responds in Google Chrome,Firefo...
Here is a plug-in that binds a click event on an element, which generates a container with a <textarea> and then i bind a keypress event on this new <textarea>, all is ok, but inside the keypress handler i can only get the state of text().length from when the initial click happened.
How do i get the onKeyPress function to get the state...
Hi,
I have to read the first couple of lines of a csv file client side to present the user with a preview before uploading a large file.
I'm using c# with ASP.Net (VS2010)
Does anyone know how this can be done? Also that it works in all browsers!?!
(It's not possible to use activeX or so, we do not want our clients to install somethi...
First of all , I use MVC 2 with Entity Framework 4.
I Have 2 Entities.
Customers and Emails
There is a Relation 1 to many between Customer and Email. One customer ca have many Email.
My question : In the Customer Creation page form, I have all the info related to the customer. ex:
<%: Html.LabelFor(model = model.FirstName) %>
<%: Ht...
Hi,
i was using object literal to create an object with methods.
Here a simple example.
var SizeManager = {
width : 800,
height : 600,
ratio : this.width / this.height,
resize : function (newWidth) {
width = newWidth;
height = newWidth / ratio;
}
}
My issue is that SizeManager.ratio returns "NaN". ...
if i am using below static values than my code is working fine:
ohlc = [[090300, 25.75, 25.75, 25.75, 25.75],
[090400, 25.75, 25.75, 25.75, 25.75],
[090700, 25.73, 25.73, 25.73, 25.73],
[091300, 25.76, 25.76, 25.76, 25.76]];
but if i am using below code than my code is not working
var labels = xmlDoc.getElementsByTagName('no...
On the following line:
alert ( "Apenas os números 0, 1, 3, 5, 7 e 9 são permitidos." );
it prints like this:
Apenas os n?meros 0, 1, 3, 5, 7 e 9 s?o permitidos.
The problem is that the characters ú and ã are not showing correctly.
In HTML I did something like:
Apenas os números 0, 1, 3, 5, 7 e 9 são permitidos.
...
Hi,
I am using jQGrid.
When I delete a row with:
jQuery('#jobList').delRowData(row);
after it has delete the row, the page reload himself.....?
Why it happens?
Thanks.
...
I'm using TopUp to make a simple slideshow. Unfortunately they don't expose the image index.
Is there a way I can access the local variable "index" without having to modify the original script?
TopUp = (function() {
var index = null;
...
}
...
What we are trying to do here is that we have a form with an id of upgrade_form. We also have a form called 'paypal_submit' form. This form is blank. 'upgrade_form' has billing detail fields(address, name, expiry etc)
We then have just one submit button, and the logic was that it will submit the form if a credit card radio button is che...
What is the DOM expression to get current page where the cursor is:
app.activeDocument.currentPage ?
...
Hi folks,
Could you please tell me, if it's possible to read Environment Variables using Javascript from a page running on Firefox.
...
Hey everybody,
I am trying to replace all special characters except alphanumerics using js.
function checkWholeString(string,len){
if(string != null && string != ""){
var regExp = /^[A-Za-z0-9-]+$/;
for(var i=0; i < string.length; i++){
var ap = string.charAt(i);
if(!ap.ma...