I am testing my webpage on a server using preview dns. Just realized that preview dns automatically adds mootools library towards the end of any php page. Probably for their own statistics or something.
But the problem is that I am using jquery in my page. So My jquery code breaks because both mootools and jquery both use '$'.
I've ...
<form action="1.html">
<input type="radio" id="check1" name="check" />
<input type="radio" id="check2" name="check" />
</form>
What I want to implement is :
when "check2" is checked,change "action" value to "2.html"
when "check1" is checked,change "action" value back to "1.html"
...
I know this question has already been asked but mine is a little different.
I have a textarea whose value I have set like so:
<textarea><span>all this inside textarea</span></textarea>
now i am doing some ajax with jQuery and want to set the value of the textarea via jQuery.
Following is my jQuery code.
jQuery(function(){
jQu...
$('#check1,#check2').click(function() {
});
Live above,how to tell if "check1" or "check2" is clicked ?
...
Hello, I have a web page that uses jquery ajax to grab the table markup from another static page and insert it into my homepage and display it. The table I'm inserting contains images and the table displays before the images have been downloaded. So when my code displays the table, you can see the images showing up one at a time as they'...
$('<option selected="selected">something</option>')
.removeAttr('selected')
.wrap('<p></p>').parent().html();
results in
<option>something</option>
which is expected. But if I put back the 'selected' attribute after removing it (or to an <option> tag without 'selected' attribute), I get the same output.
$('<option selected="selecte...
I have a standard div that is set to both drag & resize within it's parent. I need to be able to resize the div as it is dragged into it's parent. I only need this to happen when it's dragged vertically to the bottom, so I have it setup like this:
$("#draggable").draggable({
drag: function(event, ui) { AtBottom(); },
axis:'y', c...
I have this jQuery code where I have a click event on a <tr>. This event should not trigger when I click on a specific <td>. The code that I have now does this just great, but now I want to add one more condition where the event on the <tr> should not trigger when it's clicked.
I want to add a <span></span> which, if clicked, does trigg...
I use jquery for a login, it has the gmail type ajax login affect so the user never actually see the login page they are posting to, on this login backen script I set a cookie to remember a users email address, I am curious if cookies are able to be set if the browser never actually goes to the page, it just post to it?
...
I have an ASP.NET page that contains three DIVs, each of which is initially displayed via partial page includes - this works fine.
Each DIV contains a grid of entries that can be paged through or sorted by a particular column. These updates are done via AJAX requests and this also works just fine.
My problem occurs when carrying out th...
Hi, I am wondering why $(this) does not work after a jQuery ajax call.
My code is like this.
$('.agree').live("click", function(){ // use live for binding of ajax results
var id=($(this).attr('comment_id'));
$.ajax({
type: "POST",
url: "includes/ajax.php?request=agree&id="+id,
success: function(response) {
...
Specify a $target,then it'll flash itself toward $target,
it's used to inform user which part is to be filled right when submitting a form.
EDIT:
particularly,what I want to blink is a .
...
Hi,
i am having Cakephp code like
<?php foreach ($viewfields as $r):
if($r['Attribute']['type']=='radio')
{
?>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($){
$("#"+<?=$r['Attribute']['id'];?>).each(function() {
type= "<?=$r['Attribute']...
Hi ,
i am having two divs ,
<div id="input text">
<fieldset>
</fieldset>
</div>
<div id=1>
</div>
in my JQuery i am trying to append some elements to the Div that is previous to #1 how to do so..
$("<p>title</p>").appendTo(previous to 1 and inside fieldset );
since i am having many such divs i am t...
Hi,
I'm using this plugin to enable drag and drop table rows on a page. The plugin comes with a serialize function, which passes the ID of each table row to an AJAX function, like this:
serializeTable: function(table) {
var result = "";
var tableId = table.id;
var rows = table.rows;
for (var i=0; i<rows.length; i++) {
...
Hi,
I'm using the flickr api to create a simple gallery based on images pulled in by their tag.
The gallery is working fine in every browser except ie6. When you navigate to the page (by clicking a link) in ie6, the $.ajax success/error code blocks refuse to fire, however when the page is reloaded, or navigated to directly (by entering...
Nearly have this working but...
the javascript calls django like this:
.sortable({
connectWith: '.object',
update: function() {
var order = $(this).sortable('serialize');
$.ajax({
type: "POST",
data: order,
url: "/fo...
Hi,
I have below code in my vb.net application!
<table cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse;" id="ctl00_ContentPlaceHolder2_FormView1" class="innerGridTable">
<tbody>
<tr>
<td colspan="2">
<tr>
<td>
<b>VenueID:</b>
...
I want to make stats for my website. One thing I want to do is to know how many people bookmark my website. What's the best way to do that without a survey?
...
Hello,
I have a index.html file which loads html files.
$('#content').load(url,function() {});
Inside those html files there is jquery code which works fine on all browsers but when i convert it to adobe air it doesn't work at all.
Any ideas?
...