719 Posted Topics
Re: When you say link the HTML cell with the excel cell, it's sounds to me that each change at the HTML will reflect in the excel, and vice-versa. But what I understood is that you just want to show your excel as an HTML table. Am I right? | |
Re: Try this: <input type="button" value="Add to Cart" /> | |
Re: In each page request to your site you need to make sure that the user is logged in. If the user is not logged in you must block the content and redirect the user to the log in page. One of the ways to do it, without going crazy, is … | |
Re: You gave no info that can be analysed. Please post the code with problem, and if possible a test page or upload to [jsfiddle.net](http://jsfiddle.net/). | |
Re: Hi, I didn't look for the problem in your code, but I made an example in my way: <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script type='text/javascript' src='http://code.jquery.com/jquery-1.4.4.min.js'></script> <style type='text/css'> </style> <script language="javascript"> $(document).ready(function() { $('#txtarea').change(function() { // Create options for origin var optionsOrigin = [ [0, 'Select'], [1, … | |
Re: I didn't understand what you are trying to do, please explain it more carefully. | |
Re: But what's your problem? What doesen't work? | |
Re: Hi, this feature could be use to discart some unwanted objects, after some filtering perhaps. But I think the point is that JS is a very dynamic language, we can change almost anything at anytime. In example, here's a strange thing to do, but it works: <div id="test"></div> <script type='text/javascript'> … | |
Re: Hi, I didn't understand anything about your problem. Please be more specific and try to explain what you want and what the problem is. | |
Re: I thin your problem is with the dashes(right and left) aligned with float. I don't like to use float, instead I use this class to align inline: .inline { position: relative; display: -moz-inline-stack; display: inline-block; zoom: 1; vertical-align: top; *display: inline; } Try it and let me know. | |
Re: It's sounds a little specific to me, I don't know if you'll find something ready out of the box. But there is not only JQuery, there's a lot of others JS frameworks that you might want to look into. Some examples: ExtJS YUI Library MooTools Prototype But if you don't … | |
Re: What do you mean by wrong filtering? It's returning something it shouldn't or not returning something that it should? Anyway, I would try `DateTimePicker.Value.ToString("yyyy-MM-dd")` | |
Re: Hi Laura, try this: function showImage(imageFileName) { // get image element var theImageElement = document.getElementById("cameraImage"); // get caption element var theCaptionElement = document.getElementById("imageCaption"); // change what image is displayed theImageElement.src=imageFileName; // Set the name to lower case to make an case insensitive comparison imageFileName = imageFileName.toLowerCase(); if(imageFileName == "canon_20d.jpg") { … | |
Re: Please post the complete code so we can run it, or, better yet, upload it to [jsfiddle](http://jsfiddle.net/). | |
Re: Hi. Here it's working: http://jsfiddle.net/3MwXd/17/ The problem: you add the 'change' listener each time the <td> is clicked. That means that the second time you click, the input will have 2 listeners. The third time, 3 listeners, and so on. The solution(not changing much of your code) is to unbind … | |
Re: try this: var markerId = $(this).children().eq(0).attr("rel"); | |
Re: I really didn't read all your code, but I think this is the idea you are looking for: var images = ['img1', 'img2', 'img3', 'img4']; // 4 images var timeMin = 5000; // 5s var timeMax = 10000; // 10s $(function(){ changeImage(); }); function changeImage() { var imgIndex = getRandom(0, … | |
Re: I think you're missunderstaing somethings... First, you are not using the array as an array, but as an simple object(var array = new Object() would be prettier). Second, pepsi is not a property of "array.drinks", it's the value. What I think you want: var array = new Object(); array.fruit= ["banana", … | |
Re: This may help you http://teck.in/javascript-to-preview-local-image.html | |
Re: You can use an iframe to open the directions page. | |
Re: Hi vizz, this should help you: http://www.zachstronaut.com/posts/2009/08/07/jquery-animate-css-rotate-scale.html Regards. | |
Re: Vizz, according to the sepecs of the jquery rotate plugin: it supports images. No where says it supposed to work with divs. Try using the rotate with an image in IE and see if it works. | |
Re: Hi rapidwein, your code has a lot of errors, in the javascript and also in the html. On the html: * There's a lot of <p> tags that has no closing tag. You shold remove all of those, because they are not used and might will cause problem because the … | |
Re: Hi, you need to discover the difference in milliseconds and then convert to the unit you want. Something like this: // Constants var minutes = 1000 * 60; var hours = minutes * 60; var days = hours * 24; var years = days * 365; // Dates var Date1= … | |
Re: Do you know JQuery? It's much more easier to work with AJAX, or manipulate DOM elements as you wish. This is a simple test page using JQuery post mehtod, but there are many more with much more flexibility, if you need. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … | |
Re: Hi nvap, please post an example with what you are trying to do. | |
Re: fheppell, those links might help you: - [URL="http://www.w3schools.com/js/js_browser.asp"]JS Navigator Object[/URL] - [URL="http://www.quirksmode.org/js/detect.html"]Browser detect script[/URL] Hope it helps. | |
Re: Try this: [CODE] for (var n = 1; n < 4; n++) { var zing = "#img" + n; $(zing) .fadeToggle(300).delay(500) .fadeToggle(2000).delay(2000); } [/CODE] | |
Re: You just spit some code, but what's your problem? What are you trying to accomplish? What work and what does not? | |
Re: Does it throws any errors? | |
Re: Hi Violet, I think it's a good way to do it, and it's quite fast. I did something similar myself. But you can always improve your code, I suggest something like this: [CODE] var $box, $overlay, $closeButton; $(function() { // Get re-used jquery objects only at page load // It … | |
Re: You have some options, two of them are: Option 1. Before removing one row you need to check if it will cause any rout problem. If there is a problem, you don't remove the row. Option 2. After you remove one row, you check if that lead to any rout … | |
Re: How are you loading the flashs? Post the code you are using, but keep it minimal to the problem. | |
Re: Your HTML structure don't let you do it. a#one is inside div.round, so every time you click a#one, you are mousing over div.round. The best way is to modify your HTML with that in mind. One way to do it, is this: [CODE] $(document).ready(function(){ $("#expand").hide(); $("#open").mouseover( function(){ $("#expand").slideDown(); } ); … | |
Re: Hi, you are setting 'width', 'height' and others attributes to the ajax options, but they doesn't exists. The ajax method has nothing to do with the layout, it just makes an assync call. | |
Re: Hi, for what I can see, you don't have the id value, you just have the string '$id'. This is all of your code? | |
Re: If I did understand correctly, you want only the rows of the first table to have the expand/collapse functionality. Is that right? If so, you need to tell JQuery only to get the direct children of the #report table. To do that, you use the '>' operator. But there is … | |
Re: The function htmlspecialchars() returns a string and you are testing it against a integer, that might be the problem. | |
Re: Hi knitex, your code has a number of issues, so I thought about what you were trying to do and made it happen. I hope this is what you need: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> <style … | |
Re: When the click occurs you have to set the cookie, and then on the page load function you have to check the cookie and apply the class again. | |
Re: Pravinrasal, if you want the length, you need to use an array. [CODE] //Create array var graphArray =new Array(); // Add item to array graphArray.push({ "concentration" : concentration,"answers" : ans }); // Alert array length alert(graphArray.length); [/CODE] But your code has some problems, for example: the options has no value, … | |
Re: Something like this, if you are closing from the parent window. [CODE] var childWindow = window.open(....); childWindow.close(); [/CODE] if you want to close from the child window, you can do this: [CODE] self.close(); [/CODE] Hope it helps. | |
Re: I think it's quite fast, good work. But the sub-menus aren't being displayed right. | |
Re: This should work fine: [CODE] <asp:Label ID="Label1" runat="server" Text="<%= Session["value"].ToString() %>" /> [/CODE] Doesn't it? | |
Re: You need to the set the target of the anchor: target="FRAME" Would be something like this: [CODE] <ul> <li><a href="first.html" target="myInlineFrame">First Page</a></li> <li><a href="second.html" target="myInlineFrame">Second Page</a></li> </ul> [/CODE] Good luck. | |
Re: Try this one: [CODE] $('ul#one > li:has(a.identified) > a').css('background-color', 'red'); [/CODE] | |
Re: I never tried with List, but i think it's best to use an defined array, like MyObject[]. This way when .NET receives the data request it will know how to parse it. Even using List, if it's a simple type(int, string, bool e etc) i think it would not be … | |
Re: This [CODE] if (data != "true") [/CODE] shoud be: [CODE] if (data == "true") [/CODE] |
The End.