Sorting an array
I can't figure out how to sort this by price, and I am not sure where to start. Any direction would be awesome! var products = [[“Hamburger”, “4.99”],[“Cheeseburger”, “5.49”], [“Fries”, “2.99”], [“Soda”, “1.69”]];
carousal jquery not working
can you guys tell me why carousel code is not working http://jsfiddle.net/UjJEJ/4/ providing my js code below
jquery $(document).ready problem with working
Hey. i using $(document).ready(function() to start roundabout. its like this: <script type="text/javascript"> $(document).ready(function() { $('ul').roundabout({ shape: 'figure8', duration: 1800, }); </script> Problem is, sometimes (and its rare) roundabout dont load and list set im classical html style, vertical with no roundabout moving, clicking etc. Reloading page make it workin again. Where is the problem, or it is another good method to start roundabout or other script?
Set Table Width Implicitly
Hi. I have a jQuery that works. It does what it's supposed to do. It takes a long menu bar on a SharePoint web page and splits it into two menu bars. However, the two tables that contain the two menu bars are not rendered with the same width and it looks funny. At the end of this jQuery, I'd like to set the two tables to the same width. I believe either pixels or a percentage would do the trick. I tried searching this forum for an example of setting table with and did not find one. Thanks
css file cant find the arrow images..Help Please
HI I am new to jquery and am using a scrollable script for my new website http://selsong.com/jenny/jcopyb.html it is all working fine EXCEPT the arrows do not appear on either side of the scrollable section.....even though if you place your mouse there is works perfectly. My question is: Where are those arrows? should the script source them from jqery's website , or should I have them on my computer for them to appear. If I need to have them on my computer, where do I get them from?? Any help would be
View Table
I have a table made up only of colors and just being with jQuery I cannot find away to display it's elements. <table width="160" align="center" id="my_table"> <tbody> <tr> <td><img src="assets/Color1.png" width="160" height="40" alt="One"></td> </tr> <tr> <td><img src="assets/Color2.png" width="160" height="40" alt="Two"></td> </tr> ... </table> I do have working
Why does Googles Chrome Browser trace into "jquery-1.7.2.min.js" file when I set no breakpoints inside?
I am using "jquery-1.7.2.min.js" in my web pages. I use a second <script> tag for all of my personal javascript/jquery code. I set breakpoints in my <script> tags but I never set any breakpoints in the jquery library source code. Yet, everytime I try to debug my custom javascript/jquery code which is always in a script tag in the actual html page, Google's Chrome browser insists on tracing into the jQuery library source code, even though I have not set any breakpoints inside that file. I have to
My slideshow is not working. can anyone help?
HTML: <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" type="text/css" href="myStylesheet.css"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> <script>$(function() { alert('hello') });</script> <title></title> </head> <body style = "background-color:black;"> <article> <h1></h1> <div id="slideshow-container"> <div id="slideshow"> <div id="slideshow-wrapper"> <img src="1.jpg" alt="" id="s1" /> <img src="2.jpg" alt="" id="s2"
ThemeRoller jQuery problem
Hi there, i have been trying to create a theme for use in Gallery3, using the module Gallery3 Themeroller http://codex.gallery2.org/Gallery3:Modules:themeroller the instructions say: Go to http://jqueryui.com/themeroller/ and generate the color scheme you want or pick from a list of existing themes. Click the "download theme". Choose the '1.7.3 (Legacy release, for jQuery 1.3.2) ' radio button. Click "download". Save the file to your desktop. Log in as admin; Admin -> Appearance -> Import themeroller
Tabs inside accordion issue
Hello! I am trying to create an accordion with tabs inside each section and I am running into an issue. In the Jquery css I added an image that was intended for the accordion only. The following is this css (added images in red) jquery-ui-1.9.1.custom.css: .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { height:150px; width:700px; border: 1px solid #dcd9de; background: #dcd9de url(images/SmiteBanner.jpg) 50% 50% repeat-x; font-weight: bold; color: #665874;
Hide text when div is visible
Hi all, I got this function: <script type="text/javascript"> $(document).ready(function(){ $(".slidingDiv").hide(); $("#testshow").show(); $('#testshow').click(function(){ $(".slidingDiv").slideToggle(); }); }); </script> and: <a href="#" class="show_hide" id="testshow">Show</a> <div class="slidingDiv"> Div is open <a href="#" id="testhide">hide</a></div> How can i hide the text "Show" from the a href when the slidingDiv is open? Thanks! Bart
About add content from php file response !
Hi, greetings to all. I'm sorry for my english. I have a problem I could not solve. The problem is the following: I build dynamic objects from a php page response and I cant capture the event from this dynamic object. In the index.php page: <script type="text/javascript"> $(document).ready(function () { #("#bt").click(function() { loadTable(1); }); $("a").click(function() { alert('yes');
Looking for a way to filter images
Hi all, This is my first post on this forum and it's good to be here. basically I want to to this : So basically if you click on logo , only logo is visible and the other photo's are lowered in opacity. I made a class to change the opacity of the images. And created this awfully wrong jquery: $(document).ready(function(){ $(".1").click(function(event){ $('img.2').addClass("white"); $('img.3').addClass("white"); $('img.4').addClass("white"); $('img.5').addClass("white");
How do I fade images in and out
Im new to jQuery. I want to make a small gallery with some small images. I want the small images to fade out when i click at them and at new bigger images fade in - show up. When a big image is visible the small image has to fade out. Maybe someone has a tutorial? /Janis
showing and hiding a text field based on radio selection - not quite working
Hi, I have the following jQuery, to show or hide a text field depending upon whether the user click on a yes or no radio button Its fine to start with, the field is hidden, clicking the "yes" radio shows it, however it doesnt hide again when clicking the "No" button. any help muxh appreciated Thanks Mark //Hide the field initially $("#hide1").hide(); //Show the text field only when the third option is chosen - this doesn't $('#NHScommssioned input[type=radio]').click(function()
php in js file
Java script should be in an external js file otherwise wont be valid html. I have lots of dynamic values in my javascript that I generate with php. What is the best way to use php in .js file? Thanks
making the site/app ui unscrollable
Hi I am experimenting with fluid grids in dw in order to make my app-to-be look good at different resolutions. THere is however one issue I have come across. the app consists of two pages, or actually one big with a bookmark to where the second part starts. I need them to be one page because the settings that are made on "page one" are used on "page two". <p><a href="#page2">Ready.</a></p> There is a problem however with minute resolutions, like 240*400, because either some part of "page one" stays
how to submit a document in Chinese?
hello,I am from China ,I Like jquery mobile ,so I translate the document into Chinese,but it is 1.0.1 ; I want to contribute it ,then how can i contribute it to the community?
$('<img src"/foo.jpeg" />'); // but how to not download the image?
Hi, is there a way to execute above mentioned jQuery code without the browser trying to download the image file named? I am trying to scrape content off of a html document not under my control. I am interested in the textual contents. I don't want it to download the images. cheers, matt
jQuery tabs with anchored links on the page
Hello. I have an FAQs page, dsp_FAQ.cfm, that has some list of hyperlinked questions and anchored answers. When I clicked one of the questions, the page shows the anchored answer to the top and the FAQs tab stays active. The problem was, when I refresh the page (hit F5 key), the active tab which was supposedly the FAQs did not stay active and then the Home tab became the active tab instead. Also, I have to click the tab twice before jQuery run the onClick event script. Single click doesn't work.
Ensuring Proper License usage
Hello, I'm developing an open source website CMS which I intend to include jQuery bundled with. As well, I want to ensure everything included is allowed for any website, private or commercial. http://jquery.org/license/ According to the above link " You are free to use a jQuery project in commercial projects as long as the copyright header is left intact." In the download of the min file (jquery-1.8.2.min.js), this is the only comment line, but it doesn't specifically state "copyright" or "©": /*!
html 5 form as profile
Hey all, I am trying to create a form who i can save as a profile. THe buttons that I want to use are save and reset. After that the form is saved I want to be able to edit the profile does anyone know how i can do this ? Tnx
JQuery ToolTip
Hey Folks, i trying to get a Tooltip function running. The Basicfunction is working but i need to pass a label value to the function. My site looks like this... <label name='hint' value='1'>Labeltext</label> <label name='hint' value='2'>Labeltext</label> <label name='hint' value='3'>Labeltext</label> Im binding the function to the label like this. $("label#hint").bind({ mousemove : changeTooltipPosition, mouseenter: showTooltip, mouseleave: hideTooltip }); and the show tooltip
want to add a rule
Hello jquery guys, I want to add limitation to number of entered rows in a textfield (that may consider every encountered "http://" as a new row ) through this jquery plugin. Please guide me where and how should I make changes. Although it is capable of identifying any URL , as it is a form of url or not. but i want to validate it in textfield and with no. of entered url also. any suggestion would be appreciable thanks
most iphone-like ui preset for jquery
Hi everyone! My 1st here. I have written a simple application which I would like to eventually place in apple store. Knowing their restrictiveness in terms of the visual side, I want to give the app a look possibly iphoneish. Are there ready presets likening the www to iphone/ipad? thanks
Using jQuery to add HTML element doesn't work
Hello everyone: I am trying to add a paragraph by using jQuery, but the paragraph won't display in the browser. Please review my code and give me some feedback on why the paragraph didn't show. Thanks! <html> <head> <title>hello world</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" ></script> <script language="JavaScript" type="text/javascript">
carousal bug jquery additional space and firefox bug
here is my carousal when i hove over each img tag i see add image button... but i see an additional space between each img tag how to remove the space when we hover... the divs look very small in firefox... even I am attaching a screenshot for firefox normal carousal works in chrome.... http://jsfiddle.net/9Dr7T/24/ http://jsfiddle.net/9Dr7T/24/embedded/result/ providing my js code below
Display content of text file dynamically?
I have a script that populates a text counter using the ID of the <A> link (code here). Is there a way I could display text counter content next to the <A> link, using variables, without specifying the actual text filename? <a href="docs/0_FAQs.docx" target="_new" id="tracklink_faq"><img src="assets/faq.png" alt="faq-icon" width="144" height="141" border="0" /></a> Maybe something that can look at the <a> ID to specify the text file name: <div id="report_faq"> <script>$("[id^=report]").load(......id
Some encoding problem when using AJAX
When sending a request like this: $.ajax({ url: "url", type: "GET", date: "param=中文" }).done(); "中文" will be urlencoded, the character-set is same as the page's. But, when sending like this: $.get("url", {param: "中文"}, function(){}); "中文" will be urlencoded, the character-set is "UTF-8", not using the page's character-set. Why?
Counting wins and losses isn't working… Why?
I am making the Rock-Paper-Scissors-Lizard-Spock game using jQuery. Most of the code works until I try to add the wins and losses at the end of the code. It counts every game as a win currently. I need it to count losses as well. What is going wrong? // JavaScript Document $(function(){ var numberPicked; $('#Rock1').click(function(){ numberPicked = 1; $('#displayOne').html('<img src="images/rock.gif" />') }); $('#Paper1').click(function(){ numberPicked
Link to Quick Start guide on support page is broken.
The quick start guide link on the http://jqueryui.com/support/ page is broken. Not a promising start...
replace any characters doesn't match with my regexp
i want to replace all of characters are not match with my string, for example i have: <script> var word = "my~wo@rd 12$3"; var regx = "/^[a-z0-9]+$/"; word = word.replace(eval(regx), ''); </script> without any other regular expressions, how i can get this result: "myword123"
display function result in page body instead of message box
I've got function WCFJSON function WCFJSON() { var userid = "2"; Type = "POST"; Url = "Service.svc/GetUser"; Data = '{"Id": "' + userid + '"}'; ContentType = "application/json; charset=utf-8"; DataType = "json"; varProcessData = true; CallService(); } This function is called when document is ready: $(document).ready( function () { WCFJSON(); } ); As a result I get dialog box with value corresponding to userid = "2". Now the question is how do I display
Wrapping containter divs around n number of divs
Hi, I am new to the forum and so hope I have posted this in the right place and that it makes sense. I am currently developing an site using a shopping cart software and so in some cases I have limited access to certain files and so am trying to use jQuery to make some amendments to the the appearance of some search refinement filters. The code provided for two separate filters currently looks like this: <div class="refinement_custom_category_section">Filter 1</div> <div class="refinement_filter">a</div>
Message is not working right…
I am trying to get this game I made to display if you won, lost, or tied. As of now it just displays that you won. What is wrong? Any Help would be great!!! Here is my Script: // JavaScript Document $(function(){ var numberPicked; $('#Rock1').click(function(){ var numberPicked = 1; $('#displayOne').html('<img src="images/rock.gif" />') }); $('#Paper1').click(function(){ var numberPicked = 2; $('#displayOne').html('<img src="images/paper.gif" />')
Error: 'jQuery' is undefined , when I used IE 10
I am using windows 8 . and using visutal studio 2012 practicing asp.net MVC 4. there is jquery 1.7 in MVC 4. When I run my program, it always pop up Error: 'jQuery' is undefined error in IE 10. but in Firefox ,google IE dont have this error. so I think it should be some issue just in IE 10?
load more images
how to get more images when i click the load more button in jquery pls help http://jsfiddle.net/XBNQC/7/
live textarea preview with css font choice
I need to be pointed in the right direction here. What's needed... A text input area with a live preview of that text. (Okay that seems simple to achieve.) The Problem... The preview box must have font style choice to view text in different styles. The output text and font style choice to be output to form or saved somehow. So the text and style are important. Have seen various plugins, textarea preview, cufon, live event etc and now not sure which plugin or code to use to build this.
Using HTML Tables In jQuery And Formatting Issue
I have an issue when pushing out data in a html table using jQuery. I want my data to look like: 000111 - (01/09/2012) S1 Order sent. 000222 - (28/08/2012) S2 Issue with packaging. 000333 - (31/08/2012) S2 Left with neighbour as customer was not at home. 000444 - (27/08/2012) S3 Signed. 000555 - (01/09/2012) S1 Out of stock Which, in a standard html should look like: <table class="style1"> <tr> <td> OrderNumber + OrderDate </td>
trying to highlight a select dropdown that changes when clicked on other element
Hi guys, My boss has asked me to set up a whole list of buttons beside a form that when clicked on change the value of a select dropdown list that resides in a seperate div. I have this working ok but I also want to have jquery detect when a values has changed in the dropdown and animate a highlighted background, I am using this effect here; http://docs.jquery.com/UI/Effects/Highlight And this is the page I am trying to use the jquery on; http://www.users.on.net/~nova/nova/index9form.html I guess
Next Page