Hey, my script seems to be getting this warning message whenever I run it.
This happens when I call a jquery function in the script. I have included the script below and put - Warning: Unresponsive Script - comment where I called the function. I don't really know why I'm getting the warning message.
Here is the project Im working on, i...
I am trying to bypass the ConfirmButtonExtender depending on the value of another field in the page.
Basically, when a user click on my "Cancel" button, I normally display a modalpopup using the confirmbuttonextender and the modalpopupextender to display a dialog box confirming that they wish to cancel any changes they have made and ret...
I have created a search field on a mobile app i am creating via PhoneGap. I've tried using with no luck. I also know that i could get around the visual aspect of the input field via CSS & Javascript, however how do i get the Keyboard to have a "SEARCH" button on the bottom right instead of it saying "RETURN"
...
In aspx I have a querystring - www.mysite.com/enter.aspx?dest=#. When I click "enter" I go to main.aspx. I want to get this "?dest=#" in main.aspx with a request.querystring or something in javascript. I need to use the querystring in javascript in main.aspx for another action.
Any ideas?
let me explain in detail -
I have enter.aspx pa...
I have seen many webbrowser based games with players playing simultaneously.
Usually after waiting some time you can join a room where everyone is playing or you can play against one other player.
All those games use Flash.
How they achieve that?
It would be very complex to accomplice without Flash?
There are any toolkit (rails, etc) o...
"During the "energy crisis" years, Congress enacted earlier starting dates for daylight time. In 1974, daylight time began on 6 January and in 1975 it began on 23 February. After those two years the starting date reverted back to the last Sunday in April. "
(via http://aa.usno.navy.mil/faq/docs/daylight_time.php )
There appears to be a ...
I have an application, where I am displaying some stuff in javasctip modals using jquery.
It req. user to login for certain flows; but we never leave modal for user.
So here is what we do currently.
During user flow if user needs to be logged in, we hide current div and show a login div
Keep a hidden iframe with Source link as that of...
I'm creating a online training 'powerpoint' like series of pages. It will be pretty straight forward and have the pages set out as such:
page1.php
page2.php
page3.php
...
page20.php
I'll be going old school and use an iframe to hide the address bar as people shouldn't be able to catch onto the naming convention and skip ahead. (Its not...
I would like to use fx and functions
I have a animation, and i would like to, at the end of the queue, do an ajax call.
I can't seem to make it work...
I have absolutely no idea how to procede...
that would a very very rough example, but
$('#dvHeader').queue(function() {
$('#dvLeftContent').slideDown(2000);
$('#dvRightC...
Hey guys,
this is my jquery code
jQuery(document).ready(function(){
jQuery('.start_video').click(function(){
jQuery(this).fadeOut("slow", function(){
jQuery('#video').animate({ opacity: 'show' }, "slow");
jQuery('#video_stream').animate({slideDown: 'slow' },...
Given the following string:
htmlStr1 = " <div>This is a string with whitespace in the beginning</div> ";
htmlStr2 = "<div>This is a string with no whitespace in the beginning</div> ";
Is there a way to write a function that can detect if this string has a whitespace in the very beginning only?
e.g., it should do the following:
alert...
Does anyone else find the online documentation to CKEditor woefully inadequate?
I upgraded to CKEditor 3.1 (from v3.0.1) and lost my toolbar. What other surprises can I expect? Have you upgraded to v3.1?
...
I have a single form field and I need to be able to detect when the field changes and execute some additional code using the new value of the field. I only want to execute the code if the key pushed actually changes the value of the text box. Here's the solution I came up with.
function onkeypress(e) {
var value = this.value;
// do ...
I am using the Cycle plugin for JQuery to create a banner rotator with the pauseOnHover functionality. I have it working properly and even have the pageAnchorBuilder working correctly so that it displays an image vs '1,2,3, etc. The problem is it can't find the images because I am not using images as the selector but divs.
How can I ch...
How can I access the scrollHeight using mootools or some other property that contains the height so I can resize it to make an autogrow textarea?
...
Below is some code I am working on for a navigation menu, if you are on a certain page, it will add a "current" css class to the proper tab.
I am curious if there is a better way to do this in PHP because it really seems like a lot of code to do such a simple task? My pages will also have a jquery library already loaded, would it be ...
Are you able to halt JavaScript execution without locking up the browser? The way you would normally halt execution is to do an infinite while()-loop, but in the case of FireFox, it locks up the browser until the loop has ended.
What's your take on this?
I am trying to override window.confirm() to implement my own dialog using HTML. ...
It seems like no matter what input I give this, it always only matches 1 character. m.index is always 0 on a match and m.length is always 1. what am I doing wrong here? I have tried it at(and ripped off some code from) http://www.regular-expressions.info/javascriptexample.html and it works as expected there and matches an entire number.
...
Is there any String manipulation function in Javascript or JQuery for object lowercasing / uppercasing?
I need to lowercase a string object.
...
I have the following HTML w/Javascript code (note: this only works in Internet Explorer):
<script type='text/javascript'>
function changeIt() {
var startTag = "<span class='h' id='123abc'>";
var endTag = "</span>";
var htmlStr = document.selection.createRange().htmlText;
document.selection.createRange().pasteHTML(startTag + htmlStr...