No puedo acceder a http://jquery.com/
No puedo acceder a http://jquery.com/. ¿A alguien le pasa lo mismo?
Pure Js Quiz - 2.0
Hey Guys a few days back i had posted a thread The Thread we build a Js quiz basically that . - would ask the user what level he wants to play - Once the user selects the Level , the questions are randomized and presented to the user . here is what we have so far : Js fiddle Well i have a small question , actually , somebody had told me that its possible to generate the questions automatically instead of hand typing it into an array ? Now i am using an array to store and display questions and
I need a specific jquery slider please
hi yesterday i saw a news slider and really like it, but it was in WordPress site. so if any one would provide me with that slider i'll be grateful. here is a link for the site. http://demo.designwall.com/#dw-focus Thank you
2 images . Width resize on both when hover.
Hello. Thanks for reading this. I am new to jQuery and Jscript in general. I wanted to create an effect similar to this : http://www.sony-asia.com/microsite/mdr-10/#homePage . On the first section you can see that when you hover over one of the 2 images the other fluidly responds and modifies it's width. So I have tried to do it myself...I thought it was a simple problem but it turned out to be more than that. It works...but not as it should, it has silent errors and it is only working on chrome
jQuery Undefined - $ ( document ).ready(function()
Hi Guys, I'm pretty new to jQuery, but am OK with HTML. Here's my problem that I cannot solve. my index.html works fine. Shows on browser exactly as I want it to. However, when I create a html .doc from a file ie /destinations/europe/algarve/hotel.html a message comes up as jQuery undefined and the whole page is all Blue text on the left hand side in a row with no images etc. I have searched Youtube, Google the lot but still cannot see what I have to put in or under or where the $ (document) .ready
accessing an associative array
Hi there, I have a div#month containing the current month ( march, april, june etc ) var arr[ "august" ] = "Augusti"; var str = $('#month').html(); // div#month contains the word "august" alert( arr[ str ] ); the result is an alert box with "undefined" inside. thanks for you help
Selected sub menu returning value
I'm new to jQuery and try to create a menu with some sub menus. The selected sub menu should return a value (id, name or ..) to be used as a variable in my javascript. My code; <html> <head> <title>Submenu Demo</title> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" > $(document).ready(function() { $(".dropdown").hover(function(){ $(".submenu").slideToggle(400); }); }); </script> <style> body { background-color:#e4e8ec; font-family:arial; } div.dropdown
select label text
I have 2 label <label> label 1 </label> <label> label 2 </label> how I can select the label that have label 1 text?
Pure JS Quiz Programme
Ok So here's the quiz programme i created . it works all fine . check the fiddle below. Jsfiddle basically the structure is 1. An array declared with all the questions and answers. 2. A function to ask all the questions and update the score. 3. Loop to loop through the array . all very clean and simple to understand . now heres the problem , now i want ask the user what level of difficulty he wants the questions to be . so say for example i have two levels of difficulty easy and hard . so
select elements
hi, I create a list from data in db, then I would get the text in the list by click on mouse for(var i in data){ reparto = data[i]; $('#list ul').append('<li class="list-group-item">'+reparto[1]+'</li>'); } } }); $('#list li').click(function() { alert( $(this).text() ); }); But when I click on a element of the list don't catch it, if I write in html code an element in the list I can catch why? thanks a lot
2 ajax query that exuces second after first.
how to create 2 ajax request that second one will wait until first finish execution. $.ajax({ ... }).done(function() { //here created new thread // "then" part start without waiting of "done" part uploadObj.startUpload(); }).then(function() { ... });
Change value in cell
Hi, my target (by button click) is check if in a table there is an Item: if yes I would like to add +1 in my quanty if no I add a new row. I'm able to check if there is the Item value in the table, and I'm able to add a new row if there is the ItemValue, but I'cant add a +1 in the quantity if the item is in the table. my code: $('.comanda-button').click(function(){ label_btn=$(this).attr("value"); id=$(this).attr("id"); $('#conto tr').find('td:first-child').each(function()
how to take the selected name from drop down list
<select id="test" > <option value="1">name1</option> <option value="2">name2</option> </select > //my script var name=$("#test").text(); alert(name); i want get the selected name only
JQuery wont work for me please help - what am i doing wrong?
I am trying to get my jquery code working I have copied examples off the internet and opened them using the latest firefox and chrome, the CSS works because the boxes are styled but the jquery does not work as the different color boxes don't change size when i mouse over them and click on them. I have spent days trying to figure this out as I really want to get started.. Please Help!!!!!!!!!!!!!! I have a parent folder called Master Website and this is how it is :- Master Website, Js app.js
Check if within a certain time and day
Hi - I'd like to be able to append a particular value to a field if the current day/time is out of business hours but I'm not sure where to start. Can anyone help please? Many thanks
[ASK] load jsp page into a <div> and pass json
Hi All, I have problems, I make a jquery ajax to retrieve data from database and take the data in json array. I want to load the jsp page into a $(#div) and set the json data to that jsp page. Anybody can help me.. Thanks
How to use jQuery to modify phone extension
Our phone extension has been changed from 3 digits to 4 digits. All 3 digits extension need to add number 5 For instance Ext. 234 should be Ext. 5234 I am not sure how to use the following RegEx in jQuery to replace extension (( |x|ext|ext.|extension|Ext|Ext.|Extension|#){1}[ ]?([0-9]){4}){0,1}$
detect mouse click
Hello, I want to detect mouse clicks on all .selectall:not(. desactivated ) elements. I have tried the 2 different solutions here : [code]$(document).on('click', ".selectall:not(.desactivated)", function(){ [/code] [code]$('.selectall:not(.desactivated)').unbind('click').click(function(){ [/code] The first solution works on some elements only : it does not apply to some elements in the page. The second solution works on all .selectall elements, even if they have the . desactivated class. Could someone
Beginner.
I am new comer :) . " www.jqueryui.com " how to utilize this site?? Suppose i go to a Effects. and click "view image source" and get the source. But where i will get the .css file, .js file? to activate this particular effect?? Thanks in advance :)
unary (+) or number() for text-to-number conversion?
Hello, I was reading a standards doc at an IT shop that recommended using the unary for number conversion like this: var myInt = +'1'; If the unary operation fails then it returns NaN so does the unary operation have any advantage over the Number() function? The Number() function seems more readable.
Fire event for new rows added to a table
I am new to jQuery, but can find my way around if someone can please help me. I have a table where user can add rows on button click. That button calls controller method, so I cannot implement onclick there. Each row would have input fields qty and price. Formula field total price (qty * price). I have a function which calculates the total price when user changes the fields. I would like to call that function when any new row is added to a table. Any idea?
filter data - filter json - display filtered data
Hello guys, Which plugins/methods/ways of doing this would you recommend? Some examples? 1) I want to have some information, a json obj. And I want to display it, and have the possibility of applying some filters to it, and display it. Different filters can be (what I have in mind now, without thinking a lot): a value, of a key:value pair in the json. Or some word into a description, i.e. in the json : "description": " Some text describing the red element". And then filter with red word. 2) what's
What does "e" refers to ?
Hi Here is the code : <div style="background: red; height: 40px; "></div> <div style="background: green; height: 70px;"></div> <div style="background: blue; height: 50px; "></div> <script> $.fn.equalizeHeights = function() { var maxHeight = this.map(function( i, e ) { return $( e ).height(); }).get(); return this.height( Math.max.apply( this, maxHeight ) ); }; $( "input" ).click(function() { $( "div" ).equalizeHeights(); }); </script> Waiting for your response!!! Thanks Varun
First Real jQuery Script - Need some help
Here is my pseudo code for the operation I need to perform: [code] Document Ready Set Variable href=0 Find first child element under first div with class “commerce “ Save href attribute from image to Variable href Step up element structure to first <Table> encountered Wrap Table element in <a> tag Add href from variable to the <a> tag Continue down document to next element with a class of “ commerce “ and repeat until no other elements with "commerce" class exist.[/code]
ajax and forms using post
I cant figure out how to use ajax with form data when its posted to the server. Here's my form that has been loaded into a div via ajax: <form action="startattempt.php" method="post"><div><input type="submit" value="Continue the last attempt"><input type="hidden" value="54" name="cmid"><input type="hidden" value="pSRX4ou49yE" name="sesskey"></div></form> This is what i have: jQuery("#moodleAjax form").submit(function(event) { event.preventDefault(); var uri = jQuery(this).attr("action");
Which event is fired when we drag the scrollbar or scroll the scrollbar?
Hi Can you please provide me code where some function will execute on dragging the scrollbar in jquery? Thanks Varun
How to follow relative links using ajax?
OK, so i've had a go at using ajax to completely replace my iframes and have hit my first stumbling block. Absolute links are successfully followed by preventing the default a tag event, then loading the contents of the href into a div, however some links are relative and look like this: Copy code <a href="view.php?id=68&chapterid=394" title="2 Aims and Outcomes">2 Aims and Outcomes</a> How will i manage to find out what the full href should be? I would need to find out where the original script
OnClicking the dropdown button ,it expands and when I scroll the whole web page , dropdown button moves with the scrollbar but the expanded part remains fixed?
Hi I have a form in which there are many entries. One entry is of type dropdown .When i Click on dropdown ,it expands(many options pop up).Now as I move the whole web page using scrollbar ,dropdown button moves but the expanded part remains fixed. Please suggest the solution so that expanded part also moves with the window scrollbar.I am attaching image for your easiness.
Displaying images horizantally
Hello, I have two images i want to put them next to each other. This is the part that i have on HTML &js What i try to do is put images next to each other i guess 160 <link type="text/javascript" href="homejs.js"> <div id="titleimages"> <img src="brain logo.jpg" alt="logo" id="logo" /> <img src="entranceimg.jpg" alt="entranceimg" id="quote1" /> </div> // this is the part on js $(document).ready(function(){ var $pic = $('#titleimages'); $pic.hide(); var imgs = $pic.length; var
JQuery video tag event
<video id="MyVideo" src=""><video> Event ----------------------------------------- $("#MyVideo").play(function() { }); ----------------------------------------- $("#MyVideo").pause(function() { }); ----------------------------------------- $("#MyVideo").stop(function() { }); ----------------------------------------- $("#MyVideo").filename("/test/test.mp4"); ----------------------------------------- $("#MyVideo").setvolume("50%"); ----------------------------------------- $("#MyVideo").seek(hour,min,sec);
Is it possible to use slide widget without showing the value ?
Hello, this may be a stupid question, but I cannot seem to find information on howto use the slide widget without showing the value (still have it available to save to a database though. Below is my code once I assign variables it shows a slider wit ha question and two sides of the scale. In essence I want to show the slide (with the labels for left and right of scale) but not have the box with the value showing on the page. $surQ8 = "How much do you trust this dealership ?" print" <label for='slider-0'>".$surQ8."
how to pass parameter from url to behind code
Hi.. I have a function behind code that generate xml from database query.. I use jqxgrid to display a table.. and the data displayed was chosen by user from a dropdownlist.. I have problem on passsing the parameter.. Appreciate if someone can advice me.. THanks.. $(document).ready(function () { var e = document.getElementById("MainContent_ddlType"); var selectedT = e.options[e.selectedIndex].text; ; source = { datatype: "xml",
freeze table header
Hi, I have done a lots of searching and found some example of how to freeze the column header but none of them work. Is anyone can you point me to the correct one or anyone has any example? thanks Langston
instant search trigger after multiple character entered?
Is there any simple way, to set up the search trigger in such a way so it starts searching after entering lets say 3rd or 4th character? http://jsfiddle.net/WD5jN/1/ thank you for your effort :)
what's wrong with my if .. else code?
Hi I'm trying to get the following code working: $(document).ready(function() { $('.red').hover(function() { $('.yellow, .green').fadeToggle('slow'); }); var bg_colour = $('.yellow').css('background-color') $('.blue').click(function(){ alert($('.yellow').css('background-color')) if(bg_colour=='rgb(255, 255, 0)') { $('.yellow').css('background-color', '#0F0'); $('.green').css('background-color', '#FF0'); } else { $('.yellow').css('background-color', '#FF0'); $('.green').css('background-color',
why animate ?
$('a').click(function(){ $('html, body').animate({ scrollTop: $( $(this).attr('href') ).offset().top }, 1000); return false; }); The script above works perfectly fine , but i have a question about the animate function() , why is it that we are selecting $('html,body') ?? i don't get it . what i understand is that if i write the code as $('a').click(function(){ scrollTop: $( $(this).attr('href') ).offset().top, 1000; return false; }); it will work just fine
how to eleminate the duplicate values and get the distinct values using jquery
iam developing web aplication, product no product no. x 1 x 1,4,5 y 2 y 2,6 z 3 --------------------------------------------------------->
offset question
var p = $( "p:last" ); var offset = p.offset(); p.html( "left: " + offset.left + ", top: " + offset.top ); the above code works just fine , but why is it that when i change the last line to p.html("left: " + offset.right + ", top: " + offset.top ); i get the following output left: undefined, top: 52 WHY UNDEFINED , can somebody explain ? Thank u :D
AJAX Question
Hi, newbie here. I have developed a website for my company. Each page has a scrolling image gallery at the top that automatically scrolls a series of images, no clicking arrows or buttons. The JavaScript for this gallery was originally developed by Dynamicdrive.com. I have created a similar script using jQuery in a stand alone HTML file and it works great. Now the fun stuff. As I mentioned, this scrolling gallery is at the top of every page for the website. Rather than write the working code to EVERY
Passing URL Parameter VIA popup
Hello. I have a page (test.php) with a jquery button which opens a dialogue popup box and submits to another page (tast2.php). For the life of me I cannot retrieve the data in test2.php. I siply want to view the sent data in a form. Can anyone please show me the error of my ways?! test.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
Next Page