I have a form, if nothing is submitted then it should't show the table #mytable
Only when the form has been submitted is should show the table #mytable
How do i do that?
<form action="" id="myform" method="get">
<strong>Søg på fritekst :</strong>
<input type="text" name="searchword" id="searchword" value=""/>
<input type="subm...
Hi,
I have run the following through JSLint:
$(document).ready(function() {
/*
Add paragraph on page load
*/
// Get all header elements
var header = document.getElementsByTagName('h1'),
parent,
newP,
text;
// Loop through the elements
for (var i=0, m = header.length; i < m; i++...
Hi
Is it possible to show multiple Fancybox alerts on one page i.e. A user triggers one alert, then within the alert, he can trigger another which will appear without closing the first.
Example
Click the zoom icon on the products and then click the 'Tell a friend' link
Thanks
...
Is there any real world working example that uses JSON in Galleria plugin to fetch images from?
...
Hello
I have a problem as the topic name says: Lets say i have gallery on site with 4 photos, they have set z-index for all images in this div. Anyways, i'd like to make my action of enlarging clicked image, to force z-index of rest of images go down (because i'm using fading in black background as part of image view)
Thanks in advance...
This code works PERFECTLY in Firefox, and in IE the line ending 'negative'); breaks. I have no idea how to fix it! Argghhh!
$(".topline strong").digits().each(function () {
s = $(this),
c = "change";
if ($(s).hasClass(c) & $(s).text().replace(/%/gi, "") > 0) { $(s).addClass("positive"); }
if ($(s).hasClass(c) & $(s).text().trim().charAt...
Hello,
i have the following code example (see below), my problem is that the tooltip doesn't show the "old" text after i go away with the cursor - any ideas? Regards
<style type="text/css">
#tooltip {
position: absolute;
background: #FFF;
display: none;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.c...
I have a bunch of links that I want to load dynamically within the page. Instead of writing out a massive statement for every link I want to grab the URL from the attribute and pass it where I need it.
The code below works if I put an address instead of the variable name linkURL so I know the code works. Firebug shows it looks for the r...
Heh,
I'm using jQuery AJAX Call to pull data from a self hosted webservice (same domain), but it always return 0, which indicates a cross domain problem. But this shouldn't be a problem.
Any suggestions how to fix this? Thanks!
Website running my Script
http://www.mysite.com/facebook/el_login
My AJAX Call:
var data = 'username='...
I'm adding alot of buttons at runtime to my form. When i push these buttons i want a confirm window to pop up and ask if i'm sure to delete this item.
How would i go by doing this.
Every button is added dynamically so i expect that the confirmbuttonextender should also be added that way.
Do i have to add a extender for each button or sh...
I haver the following HTML:
<div class="community-topic">
<h2><b>Ask</b> a Question</h2>
<p class="ask">+</p>
<div class="addtitle">
<p>Give your Question a great title</p>
<form name="input" action="submit.php">
<input id="title" type="text" name="title" />
<input id="go" type="submit" value="Go"...
I need to make a quick demo showing how to do interactivity on an ASP.NET MVC page.
I opened an ASP.NET MVC project in Visual Studio 2010, put the view in design mode, dragged in a button, double-clicked on it and looked at the view again. I was expecting to see some ingenious JQuery code generated but instead an <asp:Button> and a <scr...
My problem is that predefined jQuery UI classes like .ui-state-error and .ui-state-highlight doesn't change visual style if applied after (document).ready.
I have tab control that loads it's tab content after user has selected a tab. What happens is that after this selected tab has loaded it's content (containing items with .ui-state-er...
I have an application script that is working correctly, but I have a few eval() statements in order to make things work. I don't really understand why "eval is evil", as I keep reading, but what I really don't understand is how to avoid using it when it's the only thing that does what I need it to do.
In my script, I have a bunch of pro...
I found this snippet when i was looking at jQuery plugins and wonder what it actually does
A jQuery plugin skeleton:
(function($) {
...
})(jQuery);
And more recently in nettuts:
var STICKIES = (function () {
...
}());
...
I have a date that I would like to convert to String format. /Date(1281067200000)/ is supposed to be 08/06/2010 12:00:00:00. How do I convert /Date(1281067200000)/ to 8/6/2010?
...
<li style="display: block;" class="selectlist-item">fsdafkds</li>
how can i disable a controller by class by jquery
...
I have the following HTML in a JSP file:
<div class="custList">
<table class="dataGrid">
<c:forEach var="cust" items="${custList}">
<tr>
<td>${cust.number}</td>
<td>${cust.description}</td>
<td>${cust.type}</td>
<td>${cust.status}</td>
</tr>
</c:forEach>
</...
I have a very large website that I need to refactor the front-end of due to maintainabilty concerns and performance issues:
Whats tricky:
Lots of overcomplicated scripts
Over-complicated CSS with a whopping filesize
No selenium tests in place
No js tests in place
Back end developers concerned anything breaking
The site has been live f...
Hi,
how to run the second function only when the first will be completed in?
$(document).ready(function() {
$("#first").load("first.php?id="+ Math.random());
$("#second").load("second.php?id="+ Math.random());
});
...