hi, can anybody tell me why is the following code not working?
<script type="text/javascript" src="../../Scripts/jquery.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.validate.js"></script>
<script type="text/javascript">
$(function() {
// validate contact form on keyup and submit
$("#myfo...
HTML:
<a href="#" rel="tooltip">Open Tooltip</a>
<div id="tooltip">Tooltip Content</div>
I checked out some tooltip plugins but my requirement is a really basic tooltip that shows a hidden div on hover. All plugins either have too many advanced options that I don't require and have already styled tooltips that might be difficult to mo...
Is there any jquery plugin (instead of incldeMany) or simple function to include js-files on demand ?
for example:
$.include('myscript.js');
?
...
I have a form with some input texts passed in GET, and i don't want to have in GET all the fields; i want to avoid empty fields.
So, a concrete example for:
<form method="GET" action="an_url">
<input type="text" name="field1"/>
<input type="text" name="field2"/>
<input type="text" name="field3"/>
<input type="submit" va...
Hi,
I am using AJAX to dynamically update a page with a data table.
When the table is successfully added to the page it contains some code reference to produce colorbox overlay pop ups.
However, after the table has been pulled into the page these overlays no longer function.
Any ideas? I assume they need to be re-initialised or some...
I'm trying to create a sort of "virtual gallery". I'm using Coda Slider 2.0 & jQuery v1.4.2
It behaves perfectly in IE, FF & Safari, but Chrome seems to reload/hang for a second when setting location.hash. This causes the jQuery animation to freeze for a second :S
Example: http://hardyernst.dk/gallery.html try clicking on the navigatio...
I want to filter based on two attributes, the first is id and the second is called level
i.e. id="someId" level="someLevel"
Shouldn't this code do the trick ... it doesn't seem to work.
$(".someClass").filter("#"+id, "[level='"+level+"']").someAction();
...
HTML:
<a href="#" rel="tooltip-1">Open Tooltip</a>
<div id="tooltip-1">Tooltip Content</div>
jQuery:
xOffset = $('#tooltip-1').height() + 10;
yOffset = -30 ;
$("a[rel=tooltip-1]").hover(function(e){
this.t = this.attr("href");
$("body").append("<p id='tooltip'>"+ this.t +"</p>");
$("#tooltip")
.css("top",(e.pageY ...
Is there any way to force the user's download-manager to start a download for .PDF instead of showing the .PDF in a new window/tab ? I've seen this function already several times, hope somebody knows a solution
...
I need a list of URLs to apply filters to and at the moment I write $('.classname a') but now I need only the first link of each list. How do I get this using jQuery?
...
How would I make the window snap to the top of the page on an event in jquery?
...
I want to show popupPanel when i click on slideDown button ,but at the start my popupPanel is hidden
using
popupPanel.getElement().setAttribute("style", "display:none");
but when i click on slideDown button it slide down very fast
& my onClick code is
@Override
public void onClick(ClickEvent arg0) {
if (arg0.getS...
Hi All,
I am using asp:button to create a keyboard with A-Z and 0-9 for touch screen using Java script. This keyboard is linked with one textbox. If we click one button corresponding text will be displayed on the textbox. Its working fine. I have included the autocomplete feature to this textbox using jquery JQuery Autocomplete.
Proble...
$(".blok").newWindow({
windowTitle:"Example1",
ajaxURL:"Action.php?task=BlokDuzenleFormGetirBlokId="+$(".blok").attr('id')
});
when first clicked on blok class a href, newWindow loads from data by $(".blok").attr('id'). Then every action sen same url to ajax, with not change. is there a way change url every single respond to call fun...
I developed some javascript enhanced pages that run fine on recent Firefox and Safari. I missed to check in Internet Explorer, and now I find the pages don't work on IE 6 and 7 (so far). The scripts are somehow not executed, the pages show as if javascript wasn't there, although some javascript is executed. I am using own libraries with ...
The page over here http://api.jquery.com/jQuery.unique/ suggests "Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers."
However i was able to remove duplicates with numbers using $.unique..why does it say that it does not work on strings on n...
I have this structure on form,
<input type="test" value="" id="username" />
<span class="input-value">John Smith</span>
<a href="#" class="fill-input">Fill Input</a>
when user click on the Fill Input ,
the data from span which has class input-value will be added to value, after clicking a tag the code should be look like this,
<...
I want to implement with jQuery a tabbed interface for my website (like the firefox ones). They should also be able to be moved like the ones FireFox has.
If anyone knows of an already written library, please give me a link.
...
Hello all,
I use jQuery and AJAX to load content from links and forms into a content div. In addition I use the Address plugin to enable the back button and refresh. On the server side I use Java and Spring MVC.
Since I'm using jQuery Address and AJAX the only page that is directly loaded is "index.html". Everything else is loaded into...
Is there another way to run a regular JS function with params passed than what I use below ?
It seems redundant use a on-the-way function to do this.
function regularJSfunc(param1,param2) {
// do stuff
}
$(document).ready(function(){
$('#myId').change(function(){
regularJSfunc('data1','data2');
});
}
Using a .bind event ...