I use http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
but some compaty may block this site, so in this case I want to use my local version on jquery
/JavaScripts/jquery.min.js.
How can I do it?
...
I'm trying to integrate a script file hosted by a third party into a new web site.
Currently, I'm adding a SCRIPT tag to the DOM for that third-party script file on document ready:
$(document).ready( function() {
var extScript = document.createElement('script');
extScript.type = 'text/javascript';
extScript.src = '...
Hi all.
I have a form in a shadowbox, and when the user clicks the submit button (or a link with an onclick, i don't mind) i want to step in, close the shadowbox, then submit the form data from the parent window. Can anyone tell me how to do this? I can't work it out.
Something like this semi-pseudocode...
$("#my_form").submit(funct...
On my new customer page, I have successfully implemented a jQuery show/hide toggle alongside a Prototype script using jQuery's .noconflict. (Thanks to all for answers!)
But as the world of the net is, IE's not playing ball.
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript">
</script>
<script type="text/javas...
The DOM structure looks like this (existing website ... cant modify it):
<table>
<tr><td>
<br><hr size="1"><strong>some heading 1</strong><br>
<br>some text 1<br>
<br><hr size="1"><strong>some heading 2</strong><br>
<br>some text 2<br>
</td></tr>
</table>
I want to manipulate it so that it looks like this
<table>
<tr><td>
<br><hr si...
<div id="myDIV">
<div>
<span>
<a href="#">Seek me!</a>
</span>
</div>
</div>
How can I find A tag using jQuery selector (not looping through children())
If I know only myDIV id.
Well, it really sounds a bit awkward. For example I've clicked #myDIV and i need to get text from the last child tag. It could A, span, div, p, what...
Hi,
Regarding to jQuery utility function jQuery.data() the online documentation says:
"The jQuery.data() method allows us to
attach data of any type to DOM
elements in a way that is safe from
circular references and therefore from
memory leaks. "
Why to use:
document.body.foo = 52;
can result a memory leak -or in what ...
Hey All
Hope you can advise I would like to add some simple fade in out of an image replacement which I have hooked into a select menu.ie,
$("#vehicle").change(function(){
var selected = $(this).val();
$("#selectedVehicle").attr('src', '/assets/images/mini/'+selected+'.png');
});
<img id="selectedVehicle" src="/assets/v2/image...
What's the best way to make an element unselectable using jQuery?
I know you can use onselectstart="return false;" ondragstart="return false;" in the HTML, but I'm not sure how cross browser compatible that is.
I also see someone's made a jQuery plugin: http://plugins.jquery.com/project/Unselectable .. would a plugin like that be neces...
I have a selector that could look like this:
<label for="testselector">Test</label><br />
<select id="testselector" name="test[]" size="5" multiple="multiple">
<option name="test_1" value="1">Test Entry X</option>
<option name="test_3" value="2">Test Entry Y</option>
<option name="test_5" value="5">Test Entry Z</option>
</se...
I am working with Hijaxing and I will have three buttons, Prev, Add, and Next. The hijaxing works with both the Add, and the Next button.
Prev button is set to 'onclick="history.back(-1)" '.
Add button is triggered by a '(Html.BeginForm("Add","Home"))' form with hijacking Jquery, which works fine.
Next button does does the same as th...
I just found out that the jQueryUI now has it's own built-in auto-complete combo box. Great news!
Unfortunately, the next thing I found is that making it multi-column doesn't seem nearly that simple (at least via documentation).
There is a post here where someone mentions that they've done it (and even gives code), but I'm having troub...
Hi, i'm having a problem with dynamically loaded forms - instead of using the action attribute of the newly loaded form, my jquery code is still using the action attribute of the first form loaded. I have the following code:
//generic ajax form handler - calls next page load on success
$('input.next:not(#eligibility)').live("click",...
I have a table populated via a DB and it renders like so (it could have any number of columns referring to "time", 5 columns, 8 columns, 2 columns, etc):
<table id="eventInfo">
<tr>
<td class="name">John</td>
<td class="date">Dec 20</td>
<td class="**time**">2pm</td>
<td class="**time**">3pm</td>
<td class="*...
I would have a dialog with the following
$("#statusbox").dialog({
autoOpen: false,
bgiframe: true,
modal: true,
width: 'auto',
height:'auto',
title:"Check Order Status",
buttons: {
Find: function() {
get_status();
},
Close: funct...
For example, i associate following function with some element
$('table#users tbody tr:first #save').click(function(){
$(this).closest('tr').remove();
});
Now, if i don't know where this function is stored, is there a way to view associated with click() code? In above example, i want a way to view that in firebug, or in another way...
Hello, I have a button that has a image and uses a MVC Ajax Form(Not Jquery) but I want change the button image to a loading element via Jquery, how can I do this using a element img that is already loaded in the page (if load from server it lost the purpose of immediatly show a loading element).
...
I have the following code, and am at my wit's end because the dialog always appears under the overlay. Any advice will be most appreciated:
<head runat="server">
<title></title>
<link href="../Styles/jqModal.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#shift-edit-popup
{
disp...
Is it possible to load an external HTML file into a variable and then use this variable to load the SimpleModal dialog? Something like this:
$(document).ready(function($) {
var externalPage $.get("Renderer.htm");
$('#basic-modal .basic').click(function(e) {
$(externalPage).modal();
return false;
});
});
A...
I've got a table that you can edit, and I've got a simple code saving that list when you're done with editing it.
(the tables have the contenteditable on)
The problem I've stumbled upon is that if I double click on enter, the table gets divided into two separate tables with the same ID. This causes the code I'm using to set the localSt...