There are some ready JavaScript (jQuery) splitters, but they require panels height to be set. The problem is, that my website doesn't support fixed height, it just can't. Other thing is that this container can change it's height dynamicly, so I'd like to this splitter to adjust to the panels height.
Is there a script or a way to avoid t...
I have the following command to delete button.
DeleteButton.Attributes.Add("Onclick", "javascript:return confirm(Are you sure?" + ");");
I want to know what the user has clicked(Ok/Cancel) on the server side to continue with delete.
How can this be achieved? code snippet or example would be great.
...
I'm getting syntax errors while trying to add an if/else statement the onclick attribute. What is the syntax for this?
<div onclick="var element = $('#selector'); if (element.val() == 'something') { alert('hello'); } else { alert('goodbye'); } ">
Click here
<input type="hidden" id="selector" value="something" />
</div>
...and...
I'd like to use WMD with PHP Markdown Extra. I don't need any new buttons in the editor, but I need the live preview to reflect the use of the extra markdown features, most notably tables.
Is there a WMD configuration option to use a preview generated server-side? Similar to the previewParserPath value for MarkItUp? If not, what are my ...
I'm trying to use MathJax to convert text into mathematics while typing, using a textarea field. However when I send the typed text to a database to retrieve the text through a php file back to the original file, I can't get MathJax to convert the text into LaTeX-like symbols.
This is the main part (using jQuery):
$(document).ready(fun...
i have this js bookmarklet that makes all the current page's font colors black.
what i wanted is to maintein the effect of the bookmarklet even clicking on the page's links
javascript:(
function(){
var newSS, styles='* { color: black !important }';
if(document.createStyleSheet) {
document.createStyleSheet("javascript:'"+styles+"'"...
I have been trying to learn how to write faster more efficient jQuery and would like to get some insight on how I should write this function so it will work faster. Should i use variables, I am most concerned with speed on a page so what will run more optimal cross browser and why is the answer I would like to see.
$("#div-one, #d...
How would I find out if a string starts with a lowercase letter by using an 'if' statement?
...
I've come up with the following but it predictably doesn't work.
var t = new Array(a.length);
var r = 4;
var b = 64;
var count = new Array(1<<r);
var pref = new Array(1<<r);
var groups = Math.ceil(b / r);
var mask = (1 << r) - 1;
var shift = 0;
for(var c = 0; c < groups; c++)
{
shift += r;
for(var j = 0; j < count.length; j...
I am using JQuery Tools Scrollable to build a full-page-width scrollable form, such that each page of the form scrolls all the way across the page, replaced by the next page sliding in from the right.
The problem I'm having is how to center each page such that it stays centered amidst browser resizing and in-browser zooming (Ctrl +/-). ...
Is there a good Javascript library for generating an automatically scrolling list like the "Top Tweets" on the Twitter homepage? Preferable as jQuery plugin. It should also support AJAX functionality (to add new list items dynamically).
...
If you have a site that uses Javascript with no mention of a license in the Javascript, is it legal to take that Javascript, package it, and redistribute it?
I'm looking to write a Google Chrome extension for Stackoverflow -- I've recently requested permissions on master.js to eliminate this ambiguity; but, now I'm curious if I had to d...
I am using jquery ketchup form my forms and i am having problems with the positioning of the error messages. The forms have different styles, so one is more of a
label
input
structure. while another one is on a
label input
structure. this totally messes up my ketchup plugin since it is assuming im using the same styles on both ...
When 'things' in the following code is an array of paths...
things.square = [ RM.path("m 154.21525,71.431259 74.32805,0 0,70.496711 -74.32805,0 0,-70.496711 z").attr(attr),
RM.path("m 271.25132,77.933263 58.07304,0 0,56.409037 -58.07304,0 0,-56.409037 z").attr(attr2) ];
...then this code does not work:
things....
I am trying to manipulate a javascript date object, to increment it by one day:
var now = new Date(+1 day);
What are the javascript options for something like this...
EDIT: cheers
...
I have 2 elements - "span" (named "divLikedX") and "a" (named "aLikeX"). I have the following javascript (occurs clicking by "a"):
function CommentLike(CommentID, aLink) {
if (CommentID != null && CommentID > 0)
$.post("/Home/LikeComment", { CommentID: CommentID },
function () {
//aler...
For a long time I have been throwing around the idea of making my JavaScript more object oriented. I have looked at a few different implementations of this as well but I just cannot decide if it is necessary or not.
What I am trying to answer are the following questions
Is John Resig's simple inheritance structure safe to use for prod...
I have a form with four different fieldsets. For jQuery validation, I would like the errors from the inputs in each of the fieldsets to be placed in an error block at the top of the specific fieldset. For example:
<fieldset id="contact">
<legend>Contact Information</fieldset>
<ul id="errors_contact" class="messages"></ul>
<!-- i...
Effect I'm trying to achieve:
In Twitter's new redesign, they implemented a "sticky" dropdown menu for the account settings area.
Basically, when you click on your username in the black global nav bar at the top, a menu is toggled open and stays open until you click on one of the links or on your username name again to toggle it close...
How do you retrieve unlisted "My Map" data using the Google Maps Data API in Javascript without needing to authenticate the user?
I want everyone that goes to my website to use the same map feed.
Thanks
...