i was downloading the jqGridPHP 3_6_3 and i was following step by step of the quick installation guide in READMEPHP file. but why I can’t see anything in my browser when i tried.
when i’m trying to use jqGridPHP 3_7 trial version i found the same problem. i was following the steps in READMEPHP file but my browser show me this message “F...
I got bunch of LI elements animating (slideDown) inside UL. After LI finish their animation I want to add A-HREF element below UL.
There is a problem - if I use
$('li').animate(SPEED, callback)
to wait for LIs finish its animation, my callback will be called n-times (n = count LI) - if I have 20 LIs, 20 A-HREFs will be added bellow U...
here my code-
---
<ul>
<li id="d1"><a href="images/soluinfo1.jpg"><img src="images/menu_hosp.jpg" border="0"></a></li>
<li id="d2"><a href="images/soluinfo2.jpg"><img src="images/menu_edu.jpg" border="0"></a></li>
<li id="d3"><a href="images/soluinfo3.jpg"><img src="images/menu_enter.jpg" ...
Hi, I want the simplest way to check if an underscore (_) is in a variable using jQuery and do something if is not..
if ( '_ is not in var') {
// Do
}
Thanks!
...
Hi All,
I have some html in a jQuery variable
var banner = $("<div class='banner-textarea'></div>");
hot can i search "banner" and find banner-textarea so i can amend the html.
var LIs=ul.find("div.banner-textarea");
Above is not working!
Many thanks
...
I have a complicated regEx inside a string replace and I want to use a variable called "tagname" instead of the word Category, but I don't know how to do this.
$("textarea").val().replace(/\<Category\>(.*)\<\/Category\>/gi, "<Category>TextVariable</Category>");
I have tried something like this, but it didn't work in the first paramet...
Hi,
Is there a way to trigger a event in jQuery when an elements classes are changed?
Examples:
<img class="selected" />
into
<img class="selected newclass" />
triggers an event
And
<img class="selected" />
into
<img class="" />
trigger an event
...
Many sites appear to only download images or generate parts of the document (eg for reviews) when the user scrolls far enough down the page to actually see them.
This obviously will give you faster loading pages and save on bandwidth for anyone that does not bother scrolling down.
How is this done, ideally with jquery? Or to ask it ano...
I have written a scroller function which will scroll one div inside another one. The idea is to use the setInterval method to change the margin of the inner element to simulate a scrolling div.
The problem I am facing is that the scrolling is not entirely smooth. Sometimes it stops for a split-second and then it resumes. What can I do t...
Hi,
My jquery is not working as expected:
I am trying to loop through each row then loop through each td and check if a td in a row contains the text 'test1' if so I need disable the link defined in a td with class "ms-vb-icon2" within the same row.
$("tr:has(td:contains('test1')) td.ms-vb-icon.a#click").click(function() { return fa...
I have a range of items that are selectable. I would like to add a button somewhere that activates a preset selection amongst those. Is there a way I can do that?
What I would like is to tell it to "Select these guys" and then have all the events and all fired as normal, so I don't have to call all of those selection events manually.
M...
Hi,
I have 2 buttons that fire the same form which appears over the page. I would like a dropdown option to change depending on which button is fired.
What am I doing wrong?
var settings = $(this).attr('rel');
$("select[@name='menu'] option[@value='"+settings+"']").attr("selected","selected");
Error
Error: uncaught exception: Sy...
I have a div container inside which there are several child divs with css float left. However I only make one of these child divs visible at a time. Most of the child divs contain some input fields, radio buttons, etc. The motive to display only one of the child divs at a time was to conserve space. Now I kind of want to display all the ...
Hello all,
I wrote a jQuery script that slides a large strip with images in it- horizontaly accross the screen.
Problem is, that in IE (currently using IE8) the movement isn't smooth unlike other browsers- where images slide smoothly.
I must notice that in IE Compability mode, the result is better- but still not perfect.
Hope that so...
Hi,
Html
<input type="file" name="picture" value="" />
<img id="preview_pic" src="/images/no-image.jpg" alt="" height="100" width="100" />
I can see the "file" input box gets populated with local file path. I want to replace the img src with this new local file path to just give a preview of the image they have selected. If the file...
In the header of my website I have 3 random previews.
<ul id="dm_list">
<li><div id="sinistra"><script>boxsinistro_ita();</script></div></li>
<li><div id="centro"><script>boxcentrale_ita();</script></div></li>
<li><div id="destra"><script>boxdestro_ita();</script></div></li>
</ul>
Clicking one of the previews, you go in a webpage wit...
Hi,
I have a tabbed nav and I am creating/removing elements based on tab clicks. I am using the live() (since elements are dynamically created) with remove(). tab1 adds elements and tab2 deletes few of them. adding works well but delete does not delete those dynamically created elements. Any thoughts around this? If I need to post t...
I'm having yet another wtf moment with jQuery.
I am importing the following files (among others)
<script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.ui.core.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.ui.tabs.min.js" type="text/javascript"></s...
I have a problem in creating a callback function. First, as far as I can understand, a callback acts like a parametr which triggers when all the action in its "parent" function has finished. For example:
$('p').hide('slow', function() {
$(this).show('slow');
});
At first <p> is hidden, and only afterwards it shows again.
How ca...
Hi all,
I have populated an asynchronous ajax function which grabs data from an xml:
$.ajax({
type: "GET",
url: "/content/en_GB/banner-data.xml",
dataType: "xml",
success: function(xml) {
$(xml).find('item').each(function(){
var section = $(this).attr('section');
var title = $(this).attr('title'...