how to disable File save dialog after file upload in Ajax call
Hi I have a requirement where I uploaded file in Ajax call to the controller using Iframe. now after file uploaded and saved in my database I am getting a File save dialog, how can i disbale it. Could you please suggest. Thank you. Best regards, Joseph
Datepicker not working!
Hello I am using jquery date picker. It used to work fine until I just noticed it isn't anymore! Can you please help me find out why this date picker is not working? Located here. Start date or expiry date fields are supposed to open date picker. Thank you Ben
Having trouble using two jquery widgets in a template based webpage
I hope I have posted this question in the correct topic. Ok, I have a template based web site im developing in Dreamweaver CS5. I have a few editable regions in my template. In a NON editable region near the bottom, I have inserted the jquery jsocial widget so that it shows up on every web page, and on one of the web pages, I recently inserted the accordion widget, which is also quite awesome. I love them both, but im finding that once I insert the accordion widget to the single web page, and the
help with appending html url passing variable doesnt work but setting text does please help
How can I get it to work with variable? top one works with double quotes i.e forced so to speak but doesnt work with variable sitepage in the browser before I click on it there is a space between technology and.com in variable one i.e website.com/ technology.html but not in the double quote one i.e. website.com/technology.html $("#home").append('<a href="http://www.website.com/' + "Technology" + '.html">' + $(this).find("category").text() + '</a>'); $("#home").append('<a href="http://www.website.com/'
Dialog differs when using Div or Span as a 'placeholder'
Hi All, I don't know if this is a bug or a feature by design hidden in some specification somewhere, I thought I would share (discuss?) In order to create a dialog, I need what I refer to as a place holder. All examples I have seen have used the div tag as a place holder - thus <div id="dialogPlaceHolder">this is my message text</div> and to display this in a basic dialog box that is 500px wide, 500px high one could do the following: var dialogOpts={ height: 500, width: 500, buttons:{ "Yes": DialogYes,
Datepicker won't close in Google Chrome
Hi. I'm using the latest jQuery UI, which I downloaded last week. The datepicker works great in IE 9 and Firefox 18. But it won't close in Google Chrome 24, either when a date is picked, or when the done button is clicked. There are four input textboxes that use the datepicker. The jQuery code I'm using: $(function() { $( "#fromCheck" ).datepicker({ maxDate: "+0", changeMonth: true, numberOfMonths: 1, // showButtonPanel: true,
Clock on my site not working correctly in Firefox
Here's my site url: http://www.officialwatches.com/ The clock in the header works well in Chrome and IE but goes crazy in Firefox. If need be I can post the JavaScript. Thanks in advance to anyone who might be able to help.
Continous forms with a while loop with Jquery
Hi All: I would like to use a while loop to list records that need updated with their own form. I would like to treat each record individually and have one submit button at the bottom, so all changes on all records would be updated. When I write a while loop and have it create multiple forms too for each record. I set the default value of each input field to the current value of each record. When I hit the submit button for each generated record and use jquery .onclick event. It only ***updates
How to post a file in an Ajax call to controller
Hi I have a Main.cshtml which renders another partial view as below. <div>@{Html.RenderPartial("FileUploadPopUp", Model.model1);}</div> In the FileUploadPopup.cshtml file as below I need to upload an Excel file. <form><input type="file"><input type="button" value="Save" id="btnSave"></form> In the Main.cshtml, I need to make an Ajax call to post the file as below. $("#btnSave").click(function () { //Here need to make Ajax call to post the Excel file, //Could you please give me code how can
Jcrop problem, please help
I came across this image crop script which is great and looks like it does exactly what I want it to do, but I'm having a lot of problems getting it to work. I've searched for a solution and although other people are having the same problem nobody seems to have a solution so I'd be grateful for any help please. I can select the area I want to 'crop' but when I click the Crop Image button I just get black thumbnail. I've checked I've got the most up-to-date version of jquery as well as the jcrop script.
Problems with animate() in on eventhandler
Hey jQ community, I've got a little problem with an animate() function. myItem.animate({top:'-=' + oldTop, left:'-=' + oldLeft}, 3000, function(){ alert("afterAnimate"); });This code is part of an on (click) function. But after clicking the animation starts after 3 seconds and don't run 3 seconds but 5 and the afterAnimate alert appears after 3 seconds with the start of the animation. Why? Whats wrong? (I use jQuery 1.8.3 not 1.9.0) Thanks, Pete
Retrieving partial Ajax response during long requests?
I've been tasked to create some web interfaces for perl scripts that we run. One issue that I can't seem to work out is how to show data from my perl script in real time. For example, I have one script that will perform the following actions on 20 remote PC's... - Log into an SSH session - Backup the current device configuration (5 seconds to 15 minutes) - Display specific values of several interfaces (30 seconds per interface) - Exit the SSH session While this script is executing, I want to display
Lights off on mouseenter
Hi there I´m trying to turn off the lights when someone enter into a <area> tag, and turn it on when it leaves the <area> tag. What i have done It is working, but not properly. YOu can see it at: http://kalearte.com/nuevas/es/vg/alava/visita-guiada-llanada-alavesa.html I have done this: I have put a div, which id="oculta" at the end of the document, that is going to be show when your mouse is over the <area id="uno" /> tag <area shape="poly" id="uno" coords="90,0,140,93,144,133,75,176,0,54,90,0"
Jquery back button behaviour
I've created a website for a high-end audio company. On the products page I use some jquery sliders. Now, when you've clicked some buttons on the products page, and then you use the browsers' back button it goes back to all the states (expanded, collapsed) of that page. What I really want is to go back to the previous page (e.g. index.php). Is there a way to force the backbutton to point a particular url? Even a fixed url (index.php) would do (if the history(-1) is impossible). Thank you all. Please
Client side checking for data before submission to server
Hi I have a cshtml where in I load partial view as follows. @{Html.RenderPartial("SavePopUp", Model.SavePopUp);} The partial view is loaded as popup which is as below.. <input id="myId" type="text" name="myId"> <input id="SaveId" type="submit" class="button" value="Save Id" onclick="return Func1(); /> function Func1() { var Value1 = document.frmUpload.myId.value; var Value1 = self.document.getElementById("myId").value; var Value1 = this.document.getElementById("myId").value;
bringing in a (XML data) URL into jquery
Hello I am somewhat new to jQuery ( and loving it!) but I need to get data from a URL I have the xml locally and it works.. I get the data displayed in html - but really needs to happen for me is to bring in the data with a URL like this one: http://184.173.18.228/api/profile/1000/0/A … ( no extension on it like ".xml" $.ajax({ url: "adam.xml", $.ajax({ url: "http://184.173.18.228/api/profile/1000/0/A", it doesnt work of course - hoe can I get a URL in there? thanks Rob
Changing XML DOM with JQuery not working
Hi, This is my first post in this forum, and I hope someone can answer me. I'm trying to edit (change attributes) an XML DOM I downloaded from server, with JQuery, but I was unable to do so. I could do it just using (pure) Javascript. So, this doesn't work: $(xmlDOM).find('Table [name="'+tabela+'"]').each(function(){ $(this).attr("confirmation","true"); }); console.log(XMLToString(xmlDOM)); When I check the console, the attribute confirmation is with it old value (false). This is working
Redirecionar ara determinada página após término do evento
Olá pessoal, eu tnho um botão submit que envia um formulário, então eu gostaria de perguntar: quando a página terminar de enviar o formulário, automaticamente ela ser redirecionada para um determinado link. Abraços.
what can i use instead of event.handle after upgrading to jquery 1.9?
as event.handle is removed in new release 1.9,what method can replace it
Using tablesorter jquery plugin on table with jquery ypagination
This is the table sorter i desire to implement, if that's possible. This is my scenario http://t0ze.dynip.sapo.pt/static/ With the following code <?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> <?php include_once("includes/form_functions.php");?> <?php include_once("includes/html.php");?> <?php include_once("includes/pagination.php");?> <?php echo @get_country();//members array to be used to populate table ?> <script type="text/javascript">
target selector does not work ? $("p:target")
I tried your example for the target selector, and it does not work with Chrome 23.0.1271.97 (under Xubuntu 12.10 64 bits) for a <p id="foo"></p> into my page, if I call my http://localhost/sample.html#foo page, the $("p:target").length has the value 0 Works Firefox, but not with Chrome. Test was made with Ubuntu - Chrome version 23.0.1271.97 The full sample : <!doctype html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jQuery target selector
Convert OR map the string value to the id of existing form element.
Hi All, I have a string value fetching from the query string.This string value is the id of one of the form elements. So, In clientside using JQuery I want to convert this string value to id of form element and then set the CSS style to it. Thanks & Regards, Gopi Krishna T
issue with wrap -- Bug or Feature
In a small script I am writing I do the following: find a div with id = 'xxx' add a button to that div then wrap that div in a container div. I can separately add the button with no problem -- results show in page. I can separately add the wrapper -- results show in the page. However, if I do the add button followed by the wrap, the button is missing. It looks like the wrap is accessing the div the way it was before I dynamically added the button. I can make this work by wrapping the div first, then
jquery menu problem.
I have written code for menu using jquery but it is not working .the code is- $(function(){ $('a#home').click(function(b){ b.preventDefault(); $.cookie('class','home'); }); $('a#write').click(function(c){ c.preventDefault(); $.cookie('class','write'); }); $('a#comments').click(function(d){ d.preventDefault(); $.cookie('class','comments'); }); $('a#medias').click(function(e){ e.preventDefault(); $.cookie('class','medias'); }); $('a#users').click(function(f){
unbind a fuction not working
i create a function in which onclick of button div append on active <li> but on click of other <li> the appended div should remove from active <li> $("#rotate").click(function () { // Your original element var ele = $("li.active"); // Create div dynamically $('<div></div>').appendTo(ele).attr('class','handle').css({ 'position': 'absolute', 'bottom': 0, 'right': 0, 'height': 10, 'width': 10, 'background-color': 'red' }); }); Thanks in advance
Google Map API not working
What is wrong with my code below? <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>Maps</title> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="jquery-1.9.0.min.js"></script> <script type="text/javascript"> var map; function initialize() { alert('Hi'); var myOptions={ zoom: 14, center:
problem
I work on jquery and i need help to resolve this problem. I added to wordpress 5 search bars and i used the same selectors and i put it to jquery and 1st searchbar does it what i want and anothers doesnt nothing. 1st one if does event ... the event is in the same time applicated to others. help
height(), innerHeight(), outerHeight(), css('height'), css('border-top-width') compared at different zoom levels
HTML5 page. Chrome 24.0, Maxthon 3.5, IE 8 and IE 9 I have created two div with a height of 100px to analize. The second one have a border of 2px. I saw documentation of .height() but the page do not contains the word "zoom" at all. Where is documentation about zoom level in jQuery? Documentation says "returns a unit-less pixel value" (can be a float point value?) and then "return the content height, regardless of the value of the CSS box-sizing property". First of all, according to the documentation,
content slider gallery move automatically
how to move content slider gallery move automatically, i m using content slider having side arrows when i click on arrow it works, i want it should work automatically jquery.ennui.contentslider.js <script> $(document).ready(function () { $('#contentslider').ContentSlider({ width: '944px', height: '409px', speed: 600 auto:true; }); I tired with auto: true..but its not working plz suggets.
jQuery errors in debug mode. (machine issue?)
I'm getting an error(s) in VS 2010. I'm not sure if it's jQuery or not, but it's definitely js. I'm using Telerik controls. I seem to be the only one getting the error(s). If I run my project, on certain pages (most) I'll get ID is undefined and it breaks with a dynamic window showing only this: cr_real_detachEvent("onload", window.CR_IE8_EVENTS[ ID ].handler); If I continue on and ignore the error, it seems to work fine...just annoying. On subsequent postbacks I'll sometimes get (and it could be
attr removed? Or just removed for properties?
I'm looking for some clarification. Has .attr been removed entirely in 1.9? Or is it still around but simply no longer able to set properties (as opposed to attributes) ? I'm finding the upgrade guide to be a bit ambigious. Full disclosure - Haven't had time to do my own testing. I would avoid asking this question on the grounds that it doesn't take much to answer it by trying it out, but I think it's a good idea to document it clearly anyway, so here it is.
Parsererror on valid json(p)
Hey people, For retreiving data from a remote server (for a local app) I use jsonp. The ajax function returns a statuscode 200, statusText success, and chromes developer tools show I received the correct data, but it also gives me a parsererror. I have confirmed it is valid json, and it is properly parsed in chromes console. Here's my code: $.ajax({ dataType: "json", url: url, success: function(rdata){ data.sampleData = rdata; console.log(rdata);
Memory leak or poor code?
Hello, I hope somebody can help. We are using jQuery 1.8.3 and have an application that is leaking memory badly in certain conditions. It is very difficult to track down, but I have a small snippet of html/script that seems to exhibit a leak (obviously this is not part of the app itself): <div id=”test1”></div> <script> gInterval=setInterval(function() { $('#test1').empty().append($('<div id="'+Math.random()+'"></div>')); }, 1); setTimeout("clearInterval(gInterval);
JQuery Conflict with Dropotron Menu and Lightbox
Hello, I am very new to coding in Dreamweaver and have spent the better part of 2 days trying to resolve this. I have seen many similar posts online, but can't get the code to work in my webpage. I've got a navigation menu that uses JQuery and when I attempt to insert Lightbox into the page, the menu does not function properly. I'm sure this is a JQuery conflict. I have tried the JQuery.noconflict()...not working. Can anyone provide me with exactly where I need to insert the JQuery.noconflict()
Slide effect enlarge border size problem
I am trying to use jQuery to produce a dropdown menu. When mouse over the box, the inner div will slide down using jQuery slide(). However, I found that, when the div is sliding down, the box will become bigger than the original size a little while, then will finally restore to the original size. This is not happened in fadeIn() and fadeOut(). Is there any way to solve it? This is the sample. (Please refer to the second one, the first one is using jQuery UI).
how to obtain file object from file input in JQuery or javascript
Hi how to obtain file object from file input in JQuery or javascript. <input type="file" id="files"> Thanks in advance, Joseph.
Sample code to upload excel file using Ajax to controller
Hi Could you please provide me sample code to upload excel file using Ajax to controller using Iframe Thanks in advance. Best regards, Usha.
Dynamic Tab Creation
Hi, I am in the process of creating a Google Maps Mashup. When I add a marker to the map, I am dynamically building up an HTML string with certain elements I am populating using JS. This string is then passed on to the info "popup" window. This needs to be done on the fly so that each marker has it's own unique pop window. Now, the HTML that I am passing to the popup window contains a jQuery tab. What I cannot seem to wrap my head around is how I would "initialise" (not sure if correct word) the
index() problem reseting when find other div.
Hello guys i have this problem: I have an image carousel but the structure of the html needs to be like this: <div class="example> <div> <!-- Image Elements --> </div> <div> <!-- Image Elements --> </div> </div> And now i need to know the index of the elements, but i know that when it finds the first div counts from 0 to 4 for example, and then resets the count because it founds the other div. What i want to do is to find the way tha my index are: 0
Getting masked panel to slide on clicks from inside
Hey there, So I have a jQuery script below that slides a containers on and off the screen with a 100% mask. What I have been having the hardest time figuring out is how to make the containers slide based on links within the containing div and not the div itself. <style> body {margin:0; overflow: hidden;} .container {overflow:hidden; } .f1_container {overflow:hidden; width:100%; float:right; margin-right:-70px; background-color:#999;} .f1_bar {width:70px; float:left; background-color:#333;} .external_container
Next Page