problem with html.raw in autocomplete
I am trying to return a list of values to the jquery autocomplete that contains markup. I would think that somewhere I need to be using @Html.raw but can't seem to figure out where to put it. Any suggestions? Example: Apo A-1 KO - <i>Apoa1<sup>tm1Unc</sup></i> Here is the razor code: <b>By Search Term</b><br /> <input type="search" name="searchTerm" style="width:560px" data-jax-autocomplete="@Url.Action("Autocomplete")"/> <input class="submitSearch" type="submit" value="Submit" style="width:100px"/>
Getting draggable layer to return to original position after reopen
All, This is my first post to this forum. I am very glad that this exists. Notwithstanding, I am pretty new to jQuery and am currently baffled as to how to get a draggable layer to return to its original position after it is closed. Currently, when I close my layer and then reopen it, it appears in its final resting place after the drag rather than appearing in its initial opening spot as set down by CSS class that I have applied to it. The current solution that I thought might work (see below) is
Changing textbox language to English
If a user switched his keyboard language and type in another language, I want to automatically change his keyboard language in a specific textbox. Let's say I have 3 textboxes. The user can type in the first two textboxes in whatever language, but when it comes to the third textbox, I want English characters only. Is there a way to do that? I tried this, but no luck. $("#thirdTextBox").on('keydown', function(e) { console.log(e.keyCode); if( e.keyCode ==
How to display data in a grid
I am using jQuery 1.2.0. How do I display records from a MySql database in a Grid? I have an Apache Php MYSQL server if that helps.
Hiding Element in iFrame
I have an iFrame with an id "recent_news_iframe". In that iFrame, I am calling up a page that is on the same domain. However, I want to hide two id's from that page: #header and #nav_bar. I've tried this with no luck: <script type ="text/javascript"> onload=function(){ document.getElementById("recent_news_iframe").removeChild(document.getElementById("nav_bar")); } </script>Any help would be greatly appreciated!
Difference between == and ===?
Hi, I’m new to both JavaScript and jQuery, does anyone know what the difference between == and === in an if statement is?
Preload navbar content
I am trying to create a tabbed structure and understand you can use a navbar: http://jquerymobile.com/demos/1.2.0/docs/toolbars/docs-navbar.html Here is my question. Let's assume the navbar consists of 3 items. When the page loads the System will load the content for the default tab item. But is there a way that after the default tab loads, the system can load the other 2 tabs? I was thinking that this would help the user experience since the content will be loaded behind the scenes. Should the user
.match statement
I'm try to add something to the standard Google calendar script: This is my variable: var full = !! entry.content.$t.match(/full/i); And this is the "console.log" console.log(booked) console.log(i) And this is the anwer in my console: false 0 false 1 true 2 This is a part of the Google calendar api json script: // loop through each event in the feed for (var i = 0; i < feed.entry.length; i++) { var entry = feed.entry[i]; var title = entry.title.$t; var start = entry['gd$when'][0].startTime;
Good Documentation
Hi there. I'm a newbie to the use of jQuery. Can anyone point me in the direction of a really good step by step user guide? I'm hoping to use the controls etc in VS 2008. Btw, the "Getting Started" page on the jQuery site is broken...
Two kwicks accordion one trigger
Here is the problem - I have two separate kwicks accordion on one page with event, eventClose:'click' and I want to achieve, that, for example, by clicking on element 1 of first kwicks accordion open in the same time element 1 on second kwicks accordion same thing for the rest of both kwicks elements (i'm using example with basic and example1 kwicks both with event:'click' and eventClose:'click' - http://mottie.github.com/Kwicks/). I achieve that with external link (trough demo.js conttroler click.function)
Not to sound stupid.
but... i downloaded the jquery install .js's, the compressed and uncompressed and when i doudble click to run either one I get a an error. line 14 char 1 error window is undefined code 800a1391 source microsoft jscript runtime error I'm sure i'm doing something absolutely wrong, not sure what it is.
Datepicker changing the date
Hi I am trying to use datepicker in my site to store appointments. It work superb on the creation of a new record but when i am trying to edit the date of a previously created record it keeps the old one on the database. I am using dreamweaver for the creation of the site. This is the code <label> </label> <label>Τελευταία Επίσκεψη <input type="text" size="30" value="<?php echo $row_Customer['lastdate']; ?>" id="jQueryUICalendar2" name="jQueryUICalendar2"/>
reading GET data
Does Jquery or regular javascript give you a simple function for reading GET data? in regular javascript you could use var pathname = window.location.pathname; followed by string manipulating functions to remove everything before the "?" and to split the remaining string into its key > value components by splitting it at each "=" and "&" character and building an array of keys and values each time. so it is theoretically possible but is there a quick way?
Horizontal Slider Job (Urgent pls)
Hi guys, I need to develop a small jQuery app for a company where they show their products. I'm a PHP developer but I don't know anything about jQuery. I taught I could do it myself (because it's not that much) but I had no luck achieving the result I want. Basically the app should be a full screen horizontal slider. There are 9 slides. One main slide where you see a map and 8 icons. And 8 other pages where you can view a set of product. On each of the pages you can find several product. By clicking
jQuery to remember my selection
Hi there, I have been looking for a solution to the following: My site has three buttons or hyperlinks as buttons. With each one I click it changes the display layout of the items in my cart. If I choose a different category from the list in the sidebar the display layout goes back to the default instead of remembering my previous selection. Is there anyway I can achieve this with JQuery or not? I am new to this so any help will be fantastic?
Anyone Had this Problem will HTML 5 Video using browers own players
Have a this problem with fire fox i am using 18.0.2 version am using this code to play video in all browers, and am using the brower's own players. All works well in IE, Chrome, Safari, the play duration scroll bar will away's return to the start of the video, but in FF the play indicator stops at the end of the video, leaving a empty Black/blank/ screen. the code is standard : I have muted & onDurationChange these items have no effect on player yet so can be removed. If i use my own player in
Id of swap div
With the help of code that I listed below, can successfully show ID drag div drag = $('.ui-draggable').attr('id'); alert(drag); But, how to show ID of target(swapped) div (div where drag div is dropped) This is not good solution i think: trget_div = $('.ui-state-hover').attr('id'); alert(target_div); becose if ID of target_div (div where dragged div is droped) is Item4, i have alert Item5 hiar is all code: Html code <div class="dragdrop" id="item<?php echo $id_player; ?>"> <?php echo $player; ?>
File JS and Apache log add ?_ with ramdom number
Hi I use Htaccess for optimise my website but my file jquery1.*.min.js creat in my log a random number after name. Its work good but why ? JS?_136********* exemple.. Thank You! Jquery 1.7 and 1.9.1 it same.
how to move the cursor 2 steps forward after inserting the first two digits of a date
The user enters the date in the following format: 22-2-2013 I don't know how to move the cursor forward automatically after the user enters 22
Little Problem
Hi I am using a sample code found on a website it works fine other than it duplicates entry rather than changing existing post how do i fix it to change rather than add another entry? : <html> <head> <title>Hello world</title> <script type="text/javascript" src="jquery-1.9.1.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#CategoryFrm").submit(function(event) { /* stop form from submitting normally
How to change SVG fill color with jQuery on hover?
Hello good people, I need help with changing SVG fill color on hover with jQuery. Thing is that in one SVG i can have path, circle or polygon elements and wish to change color on fill attribute on them when that particular SVG is hovered. Color should reverse back when pointer is not hovering element. I think that adding CSS class to do that is not right way because its simple color change on hover and can be done with jQuery attr() function(i found that on web). Also i found here on forum that
Pleaseee Help! Accordion Menu Remember State
I'm trying to get my menu to remember the state of the current page using a URL method and no cookies so that when the submenu item is clicked the acodian menu stays expanded while the user is viewing the subpages. Here is the code I'm trying to improve: <div id="primary-nav" data-selectname="Navigate to..."> <div class="menu-navigation-container"><ul id="main-nav" class="menu"><li id="menu-item-11784" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-11784"><a title="Interactive"
jQuery Isotope loading issue
I am actually trying to build a image gallery with jquery Isotope. I dont know why, but sometimes the gallery works perfectly and sometimes it has some kind of loading issue as you can see in my screenshot. Source: www.sarahraaber.com I already added a timer on pageload and the document ready function to the head of my .js file :-/ Any ideas how to workaround that?
Mobile App launches differently when "Saved on Screen" vs "on safari"
Hello All... I made some changes to index.html and Safari shows the most recent modifications with no problem, but when i save the app "add to home screen" and run it from the icon saved, the home page is corrupted... The problem only appears on iphone and not on ipad or web browsers. I tried to delete and re-save the icon or power off-on the iphone device but issue still exists. It looks like the app is reading another .css rules for the home page via the cashe? possible?
Mutliple forms
Hi, i'm struggling with some real basics. I have several html forms in my script with a different id set for each. How do I access the elements when the form is submitted $(".submit-button").click(function(){ // Setup variable to catch the HTML form data var notes_text=$('#form1 textarea#some_text').val(); } What am I doing wrong? Thanks, Johnny.
Avoiding repitition
Hi everyone. I'm pretty new to javascript and I can get the following example to work but repeating it over and over seems senseless. What am I missing? <img src=/images/map/1.png class="rm1" /> <img src=/images/map/2.png class="rm2" /> <ul> <li class='rm1'><a href="">Room 1</a></li> <li class='rm2'><a href="">Room 2</a></li> </ul> <script> jQuery(document).ready(function(jQuery){ jQuery('.rm1').hover( function(){ jQuery('.rm1').addClass('show') },
Alternate for Toggle
Hi, With the dropping on toggle (Multiple functions) I'm trying to figure out how to rewrite this: var $j = jQuery.noConflict(); $j(function(){ $j('#nav a[href*="stacks"]').toggle (function() { $j('#extraContainer3').slideDown('1600')}, function() { $j('#extraContainer3').slideUp('1000')}); }); I tried this: var $j = jQuery.noConflict(); $j(function(){ $j('#nav a[href*="stacks"]').click (function() { $j('#extraContainer3').slideToggle('1600')}); }); What am I doing wrong? Thanks,
Onmouseover and onmouseout in jQuery
I am trying to use onmouseover and onmouseout in jQuery and it is not working. Can anoyone help me out and let me know what I am doing wrong? Thanks much $.fn.MenuLinksCountry = function(options) { return this.each(function() { var defaults = {images: [ '<a href=""><img src="weather.png" width="80" onmouseover ="this.src='weather-link.jpg'" onmouseout="this.src='weather.png'"></a>']}; var settings = $.extend(defaults, options
Is it possible to remove code and replace with another
Hi, I am new to jQuery. I'm trying to make my website look like it is not loading by putting the content in a div, hiding it then fade in. When a link is clicked I use the hide(); function to clear the content out and load the new page in using load(); The problem is when you go to the source code you can still see the previous code. I assumed this is still loading so technically I have two pages loading at once when I only need the one? Surely this is very inefficient maybe I have misunderstood.
Javascript knowledge required for Jquery?
HI, Is it ok to learn jquery without knowing about Javascirpt or is it mandatory to learn java script to know Jquery. What do you advise ?
Noob having trouble with selectors on divs
I'm sure I've not formatted something properly, but I can't find it. I've been learning jQuery and experimenting with .text() and .html(). I'm particularly interested in changing the HTML content of a <div>. I tried working my way up through <p> and then into <div>. You can see my various attempts listed below and a comment showing whether or not they worked. Obviously I hit a snag with <div#id>. I thought I might have to .empty() the div first, but that did not work when I added #id. Can
how to do a show and focus on form
I have the following jquery code that hides a form, but if you click a link it shows the form. It works correctly but I can't seem to set the focus on the form after the show. After i click the "show_form" link the pages goes up to the top.. how can i make this work <script type="text/javascript"> $(document).ready( function () { $("#form").hide(); $("#show_form").click(function () { $("#form").show(); // the focus doesn't work $("#form").focus(); }); }); </ </script>
Show/hide table
Hi, I have a structure like this: <table> <tr> <td><img src="openclose.png"/></td> <td><table>.....</table></td> </tr> <tr> <td><img src="openclose.png"/></td> <td><table>.....</table></td> </tr> </table> All rows of the outer table is generated through a <c:foreach> I want to toggle the view/hide of the inner table when the corresponding openclose.png image is clicked. I did try a few examples available on the net
keep different checkbox checked jquery mobile
Hi, I'm using jquery mobile on phonegap and as the title says I want to keep checkboxes checked with the "refresh" method. I can achieve this with radiobox but not with checkboxes. How I do this with radiobox is for exp.: if(user.gender !==null) { $('#toughest_challenge_id_' + user.gender).attr('checked',true); genderBox.checkboxradio("refresh"); } where user.gender is the function containing the fields of my database. But how I can reach the same with checkboxes? p.s. the objective is to memorize
change background color of different header cells
change background color of different header cells. Must easy any ideas
jQuery code Not Working,When i am changing the file extension from .html to php ??
Hello help me out ... i wrote a simple ,show and hide login form in html with jQuery .. Now i want to use that login form as a php file when i save the file as .php file the jQuery code is not working any more.. any idea were exactly im going wrong or doing wrong ??? Thank you Regards
Javascript/IE ..... isssseee nooo woorrkkk ... heellp !!!
Hi .. as experienced .NET/WP7 developer, needing to get into mobile stuff. I thought I give JQM a shot. As an MS person (SM ?) , I chose VS2010 and IE9 to develop Javascript. It appears to be unworkable, for a number of reasons, of which the most important: 1. IE keeps caching my programs, so I am unable to work with my latest development. (whatever i tell IE, it still keeps caching) I was thinking of the combination Firefox/ Firebug. Does anybody have any experences/advice to give ???
how to change the z order of browser window
I am opening a new window to allow an 2 second recording to play. Once the window is open and audio is playing I use the setTimeout() to close the window. This is working, but when the new window is open it is in the middle of the screen. If i click the main window then the new window is forced behind the main window. Is there a way to use jquery and force the new window into the background? or is there a mechanism that would me a way to force a click on the main window?? Please comment
Combining Mouse Events into One.
When hovering on this pic on a pc, this image will see an overlay slide up and slide down when the mouse is moved away. gmjones.org/overlay/jCapSlide.html Obviously you can't hover on a tablet device or iPhone. How can I combine 'hover' and 'click' so any device can make use of this piece of jquery? HTML is available via right-clicking, view source. The jquery is below. (function($) { $.fn.capslide = function(options) { var opts = $.extend({}, $.fn.capslide.defaults, options); return this.each(function()
How do I install JQuery Cycle
Hello... I am using the Suffusion theme for Wordpress. It tells me to install JQuery Cycle in order to put featured content into a slider. The plugin is apparently not available for push-button install from Wordpress. The plugin download on the JQuery website returns a lot of code. I searched for install instructions on this forum and found nothing helpful, except that it appears I must insert this code into the HEAD potion of my index file with SCRIPT tags. It seems like a lot of code to go there.
Next Page