If in jgrowl.css the position is changed to 'center', how do I override this to default i.e, 'top-right'
$.jGrowl(data, { header: 'data' ,animateOpen: { height: 'show'}, life: 10000,position:'top-right' });
Currently, Position doesn't work right now in the above
Thanks..
...
I have a toggle button, with a show/hide feature in javascript. How do I change the text when the button is clicked?
<button id="ShowHide">Show</button>
...
I have recently started learning unobtrusive JavaScript. Using JQuery its really fun.
However with this thinking of writing JavaScript code has come a real long way from traditional ways. Also adding quick onclick="fun()" is helpful sometimes and as the application grows 100% unobtrusive code "sometimes" become difficult to write. Like ...
I would like to create views, similar to MVC, whereas I can plug HTML into a DIV shadow box that is not originally loaded with the page. The site would need to retrieve the markup via an ajax call upon request. I can invision it being possible retrieving direct html from a data source, but I would like to design the site to be able to c...
Hay guys, I'm making a simple preload function
(function($) {
$.fn.preload = function(settings) {
var config = {
before: function(){ return; },
end: function(){ return; },
after: function(a){ return; }
};
if (settings) $.extend(config, settings);
var limit = this.length - 1;
var counter...
Is it possible to ignore the html elements when doing a replace?
Sample code:
$myText.replace(new RegExp( $searchString, 'gi' ), '<span class="highlight">'+ $searchString + '</span>');
$myText is a large string of html e.g.
var $myText = "<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has ...
Can anyone recommend any particularly compelling propoganda (papers or even better, video) on jQuery that would be suitable for a manager who knows very little about the technology?
My manager seems very reluctant to consider letting us use it, seeming to think it is yet another technology flavor of the month / flash in the pan.
...
Hi all, I had a hard time with the title, so let me explain.
What I'm doing is using the jQuery UI to create sortable list elements on a page. Once the order is submitted, php assigns an incrementing value to the list elements based on their order, drops the existing id column, creates a new id column and inserts each list elements valu...
I have a show hide table rows feature but would now like to change my text.
<script language="javascript" type="text/javascript">
function HideStuff(thisname) {
tr = document.getElementsByTagName('tr');
for (i = 0; i < tr.length; i++) {
if (tr[i].getAttribute('classname') == 'display:none;') {
if (t...
I've been working on a popup window that interacts with the window.opener. I found a specific problem with IE not working when trying to append an object. I've set up a demo page here.
Basically what the demo does is opens a popup window with a button. It is intended to highlight portions of the page as I described in my previous questi...
I am trying to grab all selected items in the following select multiple and separate them by a comma. The code is below:
<select id="ps-type" name="ps-type" multiple="multiple" size="5">
<option>Residential - Wall Insulation</option>
<option>Residential - Attic /Crawl Space Insulation</option>
<option>Residential - Foundatio...
How can i uncheck all radio button using jquery or javascript?
The radio buttons i want to uncheck begins with the id=favoritepreferred12333 and the name favorite12333 the numbers 12333 can be different on other radio buttons, but they all begin with id=favoritepreferred{number} and the name=favorite{number}
I think i have to use some r...
I've been pulling my hair out (and going way over allotted hours) to try and figure out why Colorbox isn't working properly on the following page: [link removed]
I've set up a Colorbox test link on the very bottom right that says "Web Design By All Web Cafe", which should open up a small logo image. In Firefox, Safari, etc the modal be...
This might be tricky.
Php will generate:
<li>element</li>
<li>element</li>
<li class="alt">element</li>
<li class="alt">element</li>
<li class="alt">element</li>
<li>element</li>
<li>element</li>
<li class="alt">element</li>
<li class="alt">element</li>
<li class="alt">element</li>
<li>element</li>
What I need is a way to find the li...
Here's the issue I'm running into. I have a list of names, if a name is clicked on, I need jQuery to pass the variable to another page.
This is what I have, but of course it only pulls the first name.
$('.nameLink').live('click', function() {
var coachName = $('.coachName').val();
$('#grayBorder').load('/team.php?coachName='+...
I have a web page and I want to add a nice turning page effect. I have seen lots of jQuery plugins but I had some issues and dislikes.
This is what I want:
While the animation is running, I have to be able to see the content in the turning page.
I don't want just to slide the content. I need something that looks like a book page tur...
Following on from a previous question where I asked about disabling a submit button until all ajax calls have finished returning...
It seems that people are still managing to submit the form even with the button disabled and a warning sign. I guess it could be from pressing 'enter' in a text input.
How do I go about disabling the whole...
First off I have read the pertinent posts here on Stackoverflow but I am still stuck.
I have a page that loads data using a custom grid plugin. That data needs to have a link in it that will launch a modal window (using the jqModal plugin). The window is present in the html, not retrieved by some ajax call. So if I attach the event hand...
I have a two level JSON object
EX:
var regexDefs = {
"alpha": {
"regex" : /^[A-Z]+$/,
"errMsg" : "Alpha Only" }
}
I want to do something akin to searching an array for a key.
(using jQuery's inArray)
var key = "alpha";
alert($.inArray(key,regexDefs));
if the key is in the array then I want to ...
Hello, I'm working on function, that takes a select from html and replaces it with multi-column ul - it's one list, but has float:left; on li children, so the number of columns is based on calculations (if ul width is 600 and li width is 200, i will obviously have 3 columns).
That's theory - the easy part.
Example: 5 items, 2 columns
...