Uncaught SyntaxError: Unexpected token :
I have a JSONP request like: $.ajax({ type: 'GET', url: 'https://iwebappdev/Services/CorporationsService/ForeignLLCPenalty' + '/' + year, dataType: 'jsonp', accepts: 'application/json', callback: 'callback', done: function (result) { console.log('Success'); console.log(result); }, error: function (status) { console.log('Error'); console.log(status); } }); The web service
SlickNav Plugin not Loading
For some reason, slicknav is not running on my site. All of the scripts seem to be loading correctly and the console doesn't show any errors that have anything to do with SlickNav. I don't see any duplicate jquery loads. The scripts in the head: <script src="/media/system/js/mootools-core.js" type="text/javascript"></script> <script src="/media/system/js/core.js" type="text/javascript"></script> <script src="/media/system/js/mootools-more.js" type="text/javascript"></script> <script src="/media/system/js/modal.js"
Changing Hidden Field Values in JQuery Not Getting Changed :(
I'm missing something, I'm afraid it's probably something very basic... I have a hidden field in my html: <asp:HiddenField ID="exportMedia" Value="html" runat="server" />I have two buttons that call a javascript and pass in which button was clicked: Print Button: <div class="btn-group hidden-xs col-md-1 col-md-offset-0"> <button id="prt" class="btn btn-danger btn-sm" type="button" onclick="isMultiPageExport('print');"> <span class="glyphicon glyphicon-print"
How to move the wordpress website header to the right
Hi, I want to move the header in my website https://www.viewtechtips.tk. Can anyone suggest on this. Thanks in Advance.
Problem disabling a fieldset of radio buttons.
Hi, I have run into a problem with using radio buttons - I have replicated a fiddle here to demonstrate what I mean - https://jsfiddle.net/jcb9ovvf/12/ On load the disableBluePlayer function is called and should disable all the radio buttons for that fieldset - this is what I can't seem to work. If I remove page1 and run it with just page2 only the code does exactly as I want it to, so I am not sure where I am going wrong. Can anyone point me in the right direction. Thanks in advance.
MAKE DIV STAY SHOW
hello guys jquery, thanks for support this forum i have been familiar with jquery, so to the point i have some problem now with jquery div here is my simple demo Users click href edit in second div and form in the third div show, form need action php ( Codeignter ) to insert database by using php. it success but all i want how can i make the form still stay when the form validations is false by php to make users know what the errors shown without change the my logic jquery cause when the validations
How to make a "div" or "a" or a container look like a button?
I need a banner or a header bar, which looks like a normal button which stretches to width of page leaving some margin. The div (or any other container) may have colors other than black / grey. The header may have an icon also. How can I create one like the sample below? Thanks in advance.
Disable with jQuery enable with Server
I am disabling a button with jQuery like this: $(document).ready(function(e){ $('#myButton').click(function (e) { $('#myButton').attr('disabled', 'disabled'); __doPostBack('myButton', ''); }); and on the server: myButton.Enabled = true; but the button is still disabled on post back. Very confused.
toggleClass not working
Hi guys, I am new to the forums here. I have the following site http://mywebdesigners.com.au/product/mywebdesigners-website/ if you select some options and click on join now, then click on Proceed to checkout on the next page, you will be on /checkout with a section that says "Yep, I'm good to go!" and two labels where people have to click to agree to - I've tried the page builder and love it! * - 'm happy with your terms of use. * I need it so that when they click on the label, it adds a new class
Why "null" in array of localStorage?
I'm using this code to add values to local storage: rowSettings[counter] = [value1, value2, value3]; localStorage.setItem("rowSettings", JSON.stringify(rowSettings)); The result in the localStorage is then: [null,[1,0,0],[1,0,0],[1,0,0],[1,0,0]]. So howe come "null" is being added? In Chome developer tool I get: "Uncaught TypeError: Cannot read property '0' of null". This happens when retrieving the objects back: var row =0; var retrievedObject = JSON.parse(localStorage.getItem('rowSettings')); //Start
Wierd IE 11 issue
I use jquery to read a file and populate a container DIV with a row of DIVS this seems to work in all browsers even IE11 sometimes . If I refresh it in IE sometime all the divs disappear except the container div. however if in IE I hit f12 all the divs reappear is there some issue with a race condition or something? how would I deal with this in IE? <script> $.urlParam = function(name){ var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); if (results==null){
jquery,each and ajax return Undefine
Hi. I am building a project with a arduino Due that is to be a multiroom thermostat. To control it, I want to use a web page with the Ethernet shield. to extract data from arduino to web page, I want to use JSON and Jquery. Note that I am a real newbe on both c+, HTML or jQuery. So I follow step by step this video tutorial and tried adapt it to my needs : jQuery json video turorial It spit in 2 file the index.htm and main.js. all the step by step was going good until it can to extrac data from the
jquery validation trigger
I have the problem that jquery validation is triggered when just emptying an input box after deleting its content... Is the above "natural" for the plugin? The problem is that I cannot identify under which conditions this happens. Am I correct to assume that the validation ought to trigger only on clicking the submit button? Something I 've noticed...validation is triggered when emptying the input box when the submit button has been clicked..... You can see that in this example here
autocomplete works only sometimes
First jquery project for me and first time doing anything with JS in a long time, so be gentle. :) So first let me tell you what I am trying to accomplish. I have a radio button, and depending on what value is selected I want to change the autocomplete source for a text box. So if the user selects option 1 on the radio button then get autocomplete list 1 and if they select option 2 on the radio button they should get autocomplete list 2. If I assign an autocomplete at the top level: $('#search-input').autocomplete({
A problem with jquery plugin for blogger
Hey. I've bee searching for a plugin/code for blogger, which would change anonymous or blogger avatars to custom avatars. All over internet the only code is this one: <script src='http://code.jquery.com/jquery-latest.js'/> <script> $("img[src='http://img1.blogblog.com/img/anon36.png']") .attr('src', 'https://lh3.googleusercontent.com/-DoSIO5IATWY/U6YjsCv3RCI/AAAAAAAAB7I/_ut2RhVpgu0/w346-h391/NewBloggerLabAnonymousAvatar.png') .ssyby('blank') </script> <script
Using Head First and I'm confused...
Furry Friend Campaigns Ok so I bought head first a couple of weeks ago and just got around to using it. and I think i typed something wrong because the code doesn't work. Here is the code to the Index.html <html> <head> <title>Furry Friend Campaigns</title> <link rel="stylesheet" type="text/css" href="styles/my_style.css"> </head> <body> <div id="#clickMe">Show me the furry friend of the day</div> <div id="#picframe"><img src="images/furry_friend.jpg"></div> <script src="scripts/jquery-1.11.3.min.js"></script>
leave the dialog opened and intact while url changes
I use dialog UI in Wordpress website I want to modify the URL to another page and leave the dialog opened and intact during that time. Is it possible and how? Thx
How to stop auto-scrolling after I move mouse?
Hi all, here is my code of auto-scroll to div function jumpToDiv() { $( document ).ready(function() { $('html, body').animate({ scrollTop: $("#contact_div").offset().top }, 2000); }); } So when I call this function, it scroll me to div "contact_div" ... this process takes 2second ..AND I can not stop this scrolling ... : it scrolling and when I move my mouse, I want to stop it Hope you ubderstand me and thanks for good answers :-)
How do I force a "click"?
How do I force a "click" on a particular radio button? Here's what I have........ if (document.getElementById("Combobox1").value=="1.1" || document.getElementById("Combobox1").value=="1.5") { $("#Mat1").show(); $("#Mat2").hide(); $("#Mat3").hide(); $("#Mat1-0").Event("click"); } Please help, ---Frank
Wizard plugin?
Hi all i want create a Wizard same as: http://www.jquery-steps.com/Examples#basic i try create here in my webpage: http://frigorificos.noip.me:8080/jinvmanz2/ejemplo1.jsp i checked and checked what happend and not found the error. The path of the files its ok Any avice, how to create a Wizard? Exist other plugin better? thanks
¿Qué hago mal con "text()" para cada "tr" de la tabla?
Buendía foreros. Tengo un problema con el método "text()". Necesito que muestre un texto por cada "tr" para cada "tr" de la tabla. Este funciona solo para el primer "tr". Código con problema: https://jsfiddle.net/j8g5zehn/1/
Store settings (selected index) in a text file
I have a web project in Visual Studio and I have had some problems with page postback when it comes to my drop down list, so using JQuery instead and the select change function is a smoother solution. Now I don't just want to play around with the drop down list, but I need to be able to store the selected index as well. So I have a save button and whatever option the user selects, I need to store in a text file. The point is that the next time the page is loaded I need to load the text file and retrieve the
How to restrict image size before upload using dropzone.js??
Hello, I am using dropzone.js for image upload in my application but I want to restrict user at certain image size, so how could I do that..??
html 5 native validation is not working in jquery ui dialog box
Hi , We are using Jquery Dialogs in asp.net 4.0 application with Ajax Call.Now we are trying to implement HTML5 attribute like required. html 5 native validation is not working in jquery ui dialog box please help me out.See the below image ,controls are not showing html5 native message like 'Please fill out this field" Thanks in advance.
How to display an input box, dropdown select, and a submit button in a single line?
Hi, When I try to implement something like displaying a search box, a dropdown select, and a submit button, all in a single line, what i am getting is them in different lines. I tried something like; <form> <fieldset data-role="controlgroup" data-type="horizontal"> <input type="search" placeholder="Enter keyword" name="search" id="search" value=""> <select name="select-native-13" id="select-native-13"> <option value="#">One</option> <option value="#">Two</option> <option
jQuery Multi-page not working when navigated from another page.
Hi, I have 3 PHP files. In index.php file, I have a search box, like; <div role="main" class="ui-content jqm-content"> <h1 style="text-align: center">Logo</h1> <form action="search.php" method="get"> <div data-demo-html="true"> <input type="search" placeholder="Enter keyword" name="search" id="search" value=""> </div> <div data-demo-html="true"> <fieldset data-role="controlgroup"> <button class="ui-shadow ui-btn ui-corner-all"
How to get an accordian to open up one at a time
I've got an accordion that I'm trying to create so far I've only got 1 accordion open and the rest closed but when I click on another title then the other 3 open up. $('.panel-title a').click(function(){ $('.panel-collapse').each(function(){ $( this ).toggleClass( "in" ); }); }); this is my html <div class="panel-heading"> <h4 class="panel-title"> Lorem ipsum </h4> <div class="panel-collapse collapse in "> Lorem ipsum dolor sit amet, consectetur
jquery effect issue
Hello All i am new in website development creating a website having sidebar navigation link. on click on link need to open link content new panel on right side having specific height and if i click second link that click content should open on right panel only but with scrolling effect since i kept mouse over effect also on right panel please help me code we i am using: <!DOCTYPE html> <html> <head> <link type="text/css" rel="stylesheet" href="css/style.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
Jquery alternates between working and not
I have a site that I am working on where all of the jquery plugins I am using (summernote, multiselect, validation and tons more) work perfectly the first time a modal is loaded. Then the second time a modal is loaded nothing works. Then the third time everything is perfect again. I have googled and searched and have no idea what is going on. Can someone please guide me or direct me to a resource so that I can finally fix this problem.
Not sure how to make use of cache?
if (!sessionStorage.getItem('GotTags')) { $.ajax({ url: "Search/GetTags", method: "GET", datatype: "json", success: function (data) { sessionStorage.setItem("tags", JSON.stringify(data.songTags.concat(data.albumTags, data.artistTags))); sessionStorage.setItem('GotTags', 'true'); } }); } $("#searchString").autocomplete({ source: function (request, response) { var
Creating a "Plugin System" for my application
Im creating an app that users can create plugins for in both PHP and jQuery. I had 2 questions about the jQuery plugin setup. Im using an observable design pattern I found online, somewhere on the jQuery site actually. Heres the code thus far: The Observer: /** * @see https://api.jquery.com/jQuery.Callbacks/ * @see http://addyosmani.com/resources/essentialjsdesignpatterns/book/#highlighter_506612 */ ;(function($) { var topics = []; function getTopic(id) { var callbacks; topic
fotorama resize issue
I've set up a responsive Fotorama page with several different Fotorama divs. Idealy i would like the Fotorama pane to display a different size for iPads portrait / landscape modes and for desktop I'd like it to scale according to the users browser window size. Using the responsive data-width, data-height styles as shown below works more or less perfectly: <div id="fotos1" class="fotorama" data-width="100%" data-ratio="1000/640"> <img src="img/sA1a.jpg"> <img src="img/sA1b.jpg"> <img src="img/sA1c.jpg">
Why jQuery blockUI uses iframe in case of MSIE
Hello, We are facing an issue where we are using jQuery.blockUI plugin and in case of MSIE we get a 404 whenever call to block() is made. We have narrowed it down to this line of code. var lyr1 = ($.browser.msie || opts.forceIframe) ? $('<iframe class="blockUI" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>') : $('<div class="blockUI" style="display:none"></div>') It seems
Error when using $.ajax() and Create an XMLHttpRequest object in the same page
Hi all, I fetch information from database using ajax , one time using $.ajax() and the other by create XMLHttpRequest object in the same page , my code looks like this : HTML code : <button class='orderBtn' >order</button> <!--here some html code-- > <ul id='item-nav'> <li ><a cate_id='1'>item_1 </a></li> <li ><a cate_id='2'>item_2 </a></li> </ul> <div id="items_container"></div> _javascript code : $(document).ready(function() { //here some code $("ul#item-nav li").click(function() {
preload
I've been experimenting with several preloads found in this forum and am not sure which is most effective. I've been testing with: $.fn.preload = function() { this.each(function(){ $('<img/>')[0].src = this; }); } then: $(["images/IMG_00000.jpg", "images/hip1_00001.png", "images/hip1_00002.png",...etc.... ']).preload(); You will notice my images are in folder called 'images'. Totally naive question, but does the preload function code above $('<img/>') refer to a folder called 'img' or does
No records displaying with JQuery & HTML output question
I am having issues with my code. Index.html < !DOCTYPE html > < html lang = "en" > < head > < script type = 'text/javascript' src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js' ></ script > </head> <body> <!-- Side Menu --!> < ul id = "sidemenu" class = "acc-menu" ></ ul > <!-- Show Categories --> < script type = 'text/javascript' > $ ( document ) .ready ( function (){ /* call the php that has the php array which is json_encoded */ $.getJSON
How to get page to scroll to a section when a button is clicked
I'm trying to get my page to scroll to a specific point on my page if there is errors after submitting a form. My page scrolls down but then jumps up to a different section. My code only works for chrome. I got this code in my jquery if (location.hash !=="") { $("html, body").animate({ scrollTop: $('#' + window.location.hash).offset().top }, 1000); } but then I get this error in my firebug Error: Syntax error, unrecognized expression: ##contact ....value:null},fb.error=function(a){throw
When is a .data content released (its lifespan)?
When is a .data content released (its lifespan)? Is it when the HTML disappears from the DOM?
Responsive Nav Quickly Closing once clicked
Hoping someone can help me out - had to code a responsive menu myself for the first time and the javascript seems to be glitchy or something. It works fine if I don't have the extra query within the slide toggle, but the regular nav menu won't show again once the browser is widened past the mediascreen of 960px. This is what the extra function was added for, but now the mobile menu just opens and quickly quits as soon as you click on it (probably because of that 400 limit - but whyyy?). Anybody have
Need the individual URLs
Hi guys, I am almost code-illiterate, but I need to do something for my university project (part of it, at least). One of my friends said that this particular code is ajax/jquery. So, I am here to ask for your help!!!! There is a website "www.geziko.com" which is a online flight booking site. For my project, I need to get the URLs of individual flights. I mean, after entering search parameters to required fields (origin, destination, departture date, etc.), there comes the list of available flights.
Next Page