Is it possible to define a class with specific style attributes dynamically with jQuery, rather than setting the style of all elements with that class?
I could set the attributes of the class at the end of the script once all the elements have been created, but is that the best way to go about it? If I define the style of the class with...
I am trying to parse this array data that way generated from JQuery and JSON.
Array
(
[d] => Array
(
[0] => Array
(
[order] => 1
)
[1] => Array
(
[order] => 2
)
[2] => Array
(
[order] => 3
...
Hi Guys,
I have a gmap balloon.
var marker = createMarker(point, '<div style="width:240px" id="mapsball"><h2>Splash of London</h2><img src="_assets/images/themes/shop.jpg" id="mapThumb" width="100" align="right" /><p>110-112 Hoxton Street</p><p>London</p><p>N1 6SH</p></div>');
map.addOverlay(marker, icon);
and a facebox attached...
I have a trouble with selecting element attributes with jquery here is my HTML:
<a class="myselector" rel="I need this value"></a>
<div class="someClass" id="someID">
...bunch of elements/content
<input type="button" name="myInput" id="inputID" title="myInput Title" />
...bunch of elements/content
</div>
...bunch of elements/content
...
I want to archive something like this: http://www.jayhollywood.com.au/ but instead of small previous and next images, I would like them to remain the same size but with low opacity.
(Will this work in IE too?)
...
Hi! I'd like to use google drawVisualization API. Example:
var data = new google.visualization.DataTable();
data.addColumn('string');
data.addColumn('number');
data.addRows([
['a', 14],
['b', 47],
['c', 80],
['d', 55],
['e', 16],
['f', 90],
['g', 29],
['h', 23],
['i', 58],
['j', 48]
]);
...
For a markup like this:
<div id="set1">
<div id="100">a div</div>
<div id="101">another div</div>
<div id="102">another div 2</div>
<div id="120">same div</div>
</div>
<div id="set2">
<div id="105">a different div>
<div id="101">another div</div>
<div id="110">more divs</div>
<div id="120">same div</div>
</div>
As you can s...
edited:
This is what i need:
sendpost = function(a,b,c){
return jQuery.post('inc/operations.php', {a:b}, c, "json");
},
rotate = function(callback){
//....
alert(callback);
}
sendpost('operation', 'test', rotate)
old post:
i use this function to return the response of post:
$.sendpost = function(){
return jQuery.pos...
First off I am new to Javascripting and ColorBox and have been trying for 4 days now to get this to work. I am sure it is relatively simple, but I just can't seem to get things right.
I have a main page which has a link which open a ColorBox using an IFrame to load a PHP page to allow data input. I would like the ColorBox to close onc...
Even this isn't working....
$("table#mytable > tbody > tr").each(function(index) {
if($(this).attr('id','firstrow')) {
$("input[name^=f1]").focus(function() {
var newRow = '<tr><td></td><td></td></tr>';
$("tbody").append(newRow);
});
} else {
$("input[name^=f2]").focus(fu...
Hi, i'm using jQuery to show/hide different LI-elements based on their classes. Look at this example.
<li id="1" class="fp de1"></li>
<li id="2" class="fp de1"><button onclick="hide(2,2);"></li>
<li id="3" class="fp de2"><button onclick="hide(3,3);"></li>
<li id="4" class="fp de3"><button onclick="hide(4,4);"></li>
<li id="5" class=...
Hello,
I have a WCF service that accepts requests from JQuery. Currently, I can access this service. However, the parameter value is always null. Here is my WCF Service definition:
[OperationContract]
[WebInvoke(Method = "GET", BodyStyle = WebMessageBodyStyle.WrappedRequest, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMe...
when using the jquery ui autocomplete combobox, i would thought there would be an option to force only valid key entry based on the list. Is there anyway to not allow invalid keys so you can only enter valid items in the list? also, is there a way to set a default value of the combobox.
if my list has (csharp, java, python)
i can sta...
Hi ,
Am using this
jquery plugin
How to change the click mode to automatically run mode ,
Present scenario , When u click NEXt it show the next three image,
When u click BACK It shows the previous three images ,
I want to change this scenario to
Whe loads , the plugin should start running(image) , Also i need the NEXT and BCK b...
Hey, if anyone could please help me then it would be much appreciated. Basically, I want to navigate to a new page once this animation has complete. Using the code below, the animation works fine but hen the navigation doesn't happen.
Does anyone have any ideas or suggestions? Many thanks, Tim
$("a").click(function(event){
event.pr...
I am using a jQuery ticker which is pretty cool. It works well with predefined content, but I want to build my tags dynamically by getting the data from a feed via the $.ajax method.
http://progadv.uuuq.com/jStockTicker/
The problem is when I do this the ticker wont work, as it looks like the function might be loading before my page...
My jQuery code sets the height of an element to 0px as soon as the page loads, then animates it to 500px.
In my CSS, this element is already set to 500px (in case anyone has javascript turned off).
I tried 'DEFER' on the tag where I link to the stylesheet so that the CSS loads in last of all, but that causes a blank white page to show ...
I have created some jQuery and put it in an ascx include. It works fine on regular pages, however when I load a secured page on my site I get the following javascript error.
Permission Denied
jquery.min.js
Code: 0
Any ideas?
...
Hey,
after some tries to get this to work, i ask you, if you know where my mistake is.
This is my code until now:
$(".menu a").hover( function () {
$(this).data('timeout', setTimeout( function () {
$(this).hover(function() {
$(this).next("em").animate({opacity: "show", top: "-65"}, "slow");
}, function()...
i have the following jquery code to format a html table.
$(".jtable td").each(function() {
$(this).addClass("ui-widget-content");
});
i want (one on table) to change the text color to blue (its black in the ui-widget-content class. i tried doing this below but it didn't seem to do anything.
Any help on override some par...