I have a simple link click simulation that I want to do using jquery. From what I've read, this should work, but the below code doesn't seem to work. Nothing happens if I do the same thing as a part of some other event or something either. Thoughts?
<script type="text/javascript">
$(function() {
$("#lnk_0").click();
});
</scrip...
I have defined an <a> tag with css. I'm trying to stop default stylesheet :hover changes on the a tag. How do I disable the hover changes on the a tag in Jquery?
...
I am using the following HTML fragment to load a different stylesheet for smartphones:
media="only screen and (min-device-width: 4801x)"
media="only screen and (max-device-width: 480px)"
I would like to disable a certain javascript script for smartphone users as well. Is that possible? I don't think i can do:
<script media="only scre...
Hi there,
I have a sortable list(jquery ui), could you advise if it is possible to implement 'undo/redo' base on sortable?
Imagine that, a item is dragged to a new placeholder, then I click "undo" button and the item will move to its original position. If I click "redo" button and the item will move to that new placeholder.
Maybe some...
There is a one section of orders page where users can add new fields to add new products. The problem here is, every time user adds new fields, new fields should have names as PRODUCTNAME1, PRODUCTNAME2, PRODUCTNAME3, and so on. Right now, every new field added has 1 value. Its stuck there. I hope I made some sense.
$('#AddProduct').cli...
I am trying to process a json version of a rss feed but I need to access an array labeled "data.channel.item". I suspect because this name seems to conflict with the reserved word item in javascript, the script doesn't work with only this particular json file. It does work in other cases.
Is there a way to use "item" but escape it someh...
According to https://developer.mozilla.org/en/HTTP_access_control#Requests_with_credentials, Firefox will only send credentials along with cross-domain posts if invocation.withCredentials = "true"; is set… But it doesn't seem like jQuery's Ajax API provides any mechanism for this.
Is there something I've missed? Is there some other way ...
Hello I am using autocomplete to allow users to search venues stored in a MySQL database. The autocomplete plugin is currently listing the venues when the user begins typing and prints the selected venue using the result handler.
I would like to also print the address, phone number and website of the venue as well but I am not sure how ...
I have a control that is loaded via an update panel and there are items in it that are not initially displayed when the user first loads the page. I’m using some jquery with this control and the problem that I’m having is a typical one where I’m not able to fire the jquery ready event in order to rebind the elements in the control. It ...
Here is my checkbox group
<input type="checkbox" name="checkGroup" id="all" value="0" >All
<input type="checkbox" name="checkGroup" id="one" value="1">One
<input type="checkbox" name="checkGroup" id="two" value="2">Two
<input type="checkbox" name="checkGroup" id="three" value="3">three
how to get array of checkbox by name "checkGr...
This is more or less a CSS question but I am using it with jQuery. OK, so basically what I have is this:
<div
style="overflow: hidden; width: 1000px; height: 450px; background-color: rgb(0, 0, 0); position: relative;"
id="wrapper">
<div
style="background-color: rgb(255, 255, 255); opacity: 0.9; top: 0pt; left: 0pt; width: ...
Hi All,
I am creating Accordion menu using JQuery. I want to hide links according to the user status. How to pass values from code behind to jquery during pageload?
Eg:
UserA:
Menu header: headerA and HeaderB
UserB:
Menu header: headerB and HeaderC
I want to pass header names to jquery to hide it.
Geetha
...
I'm interested in having my LIs toggle when a user clicks in the blank area of the LI. The LI does contain links that redirect, but in the case when the user clicks on a blank area of the LI I would like the LI to toggle
<li id="58" class="records">
<a href="adadad">Title</a>
<div class="expanded" style="display:none;" id="expanded_58">...
i am trying to use the jquery POST function but it is handling the request in AJAX style. i mean its not actually going to the page I am telling it to go.
$("#see_comments").click(function() {
$.post(
"comments.php",
{aid: imgnum},
function(data){
});
});
this func...
Hey guys, I have some code that I found that I would rather use as jQuery instead of direct JavaScript. Hopefully you guys can help me convert it:
var sub = document.getElementById('submit');
sub.parentNode.removeChild(sub);
document.getElementById('btn-area').appendChild(sub);
document.getElementById('submit').tabIndex = 6;
if ( typeof...
My code works perfectly in FF, Safari and Chrome... just in IE 7 and 8 this happens...
My JQuery AJAX post looks like this:
$.post( 'page.php', { test: 'testing' }, function(r){
alert('Data: ' + r);
});
Now, in IE, if the response (r) comes back blank, it will display the alert. However, if there is anything returned in the r (ev...
arr[key] = value;
where key is a jQuery object and value is an array.
...
I'm embedding a PDF in a web page with the following html
<object id="pdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="1024"
height="600">
<param name="SRC" value="/GetDoc.ashx?SOID=<%=Html.Encode(Model.OrderID)%>" />
<embed src="/GetDoc.ashx?SOID=<%=Html.Encode(Model.OrderID)%> "
...
Hallo,
I would appreciate your advice. Given the following snippet:
<div id="parent"><div id="child">ChildText<span id="subchildtext"><b>SubChildText</b></span></div></div>
I want to:
Extract the span Element
==>var span = $("#child").find("span");
Prepend some Text ("foobar") and a new HTML element ("<b>foorbarbold</b>)
==>span.in...
I have a text field that I'm binding the paste event to using JQuery. When I first paste something into the form field and log its val() it returns a blank string. Likewise, if I paste again into the field, it returns the previous value before pasting. Essentially I have a race condition or sequencing issue, for lack of a better term....