719 Posted Topics
Re: What's your code to create the table cells? In that code you should add the css class to the cells. | |
Re: Check those out: http://www.lutanho.net/stroke/online.html http://www.webresourcesdepot.com/25-amazing-javascript-games-some-fun-and-inspiration/ http://www.javascriptkit.com/script/cutindex22.shtml http://ntt.cc/2011/01/31/66-open-source-javascript-game-engine-for-serious-developers.html | |
Re: To my knowlodge, when you don't specify the width to 100% (last case) the browser takes care to make the child 100% of it's parent, including border and padding. When you do specify width 100% (second case) you are saying that only the width must have 100%, without border and … | |
Re: I don't know nivoSlider to help you out. But you could take a look at others slider plugins: http://webdesignledger.com/resources/8-responsive-jquery-slider-plugins http://www.tripwiremagazine.com/2012/11/jquery-slider.html | |
Re: Check this example: <!DOCTYPE html> <html> <head> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script> $(function(){ $("#submit_btn").click(function(){ // Get checked inputs var $chks = $("input.chkHobby:checked"); // No one checked if ( $chks.length == 0 ) { alert("No Checked"); return; } // Store checked labels var checkedLabels = []; $chks.each(function() { checkedLabels.push( $(this).next("label").text() ); }); … | |
Re: I really didn't understand what you're trying to do. It's a html editor or tag highlight or something like it? | |
Re: By different fancy box you mean different styles? | |
Re: Try chaning `command.BeginExecuteNonQuery()` to `command.ExecuteNonQuery()` | |
Re: It's seems alright to me. Tested in IE, Opera and Firefox. Also, all links have the same styles applied. | |
Re: If I understood what you are trying to do, you'll have to do the following: 1. Uplod the selected file to the server (using <input type="file" />). 2. Read the file on the server and show in the text area. 3. User edit the file and click save 4. Send … ![]() | |
Re: You are missing the closing `>` for the option, ater the last `"` for the value. `<option value="<?php echo $row['whatever']; ?>"> <?php echo $row['whatever2'];?></option>` | |
Re: You are stuck in the iframe connection or in showing the location on the image? Or both? To link the actions between IFrames, you could use the parent as the main comunication center, this way, one frame will call a function on the parent that will call a function on … | |
Re: In this case you would have to loop throw the DataSource itens and test one by one, using simple complare(`==`), IndexOf(to match the begining) or regular expression(to do more sofisticated matches). Another way is to query the database for matches using the equals or like operators. | |
Re: Post your html structure for the menu. You can try one thing, instead of using slide to hide/show try using hide/show without effects. I suggest you try it, because the problem may be in the effects. | |
![]() | Re: You must use the `cancel` option: http://api.jqueryui.com/draggable/#option-cancel <div class="draggable"> <span class="text">SomeText</span> </div> $(".draggable").draggable({ cancel: '.text' }); |
Re: I think the best solution is to add an css class to images without border.: `img.no-border { border: none; }` Then, add the class 'no-border' to the images that you want. | |
Re: I just checked your link and it seems to be working ok. Do you have any problems with it? | |
Re: `retVal.Value` returns 0 or 1 to bit columns, so converting to bool works. However, `retVal.SqlValue` returns an SqlBoolean object, that can't be converted to a bool, but the SqlBoolean object has an Value property that is a bool. So, both should work: CBoll(retval.Value) 'And CType(retval.SqlValue, 'SqlBoolean').Value I don't know if … | |
Re: Did you check if the DataTable has the data? I think you have to create to datatables, on for each dropdown. `new SqlDataAdapter("SELECT ProgrammeCode FROM Programme")` `new SqlDataAdapter("SELECT StaffID FROM Staff")` And I would invert the order of the IF's, `if (ddlProgramme.Items.Count <= 0 && ddlStaff.Items.Count <= 0)` should be … | |
Re: Your code doesn't make any sense. When the user click any part of the #menu (incluing itens and sub menu) it will open the submenu, and when the user hover the mouse (hover is an alias for mouse over and mouse out events) it will close. I think that what … | |
Re: SPeed, it's seems to me that this is Java and not JavaScript. | |
Re: Assuming that `row` is actually an TR object, try this: $.ajax({ type: "POST", url: "delete_order.php", data: "id="+id, success: function(){ row.fadeOut(1000, function(){ row.remove(); }); } }); And please, ident your code before posting. It helps us to help you. | |
Re: Hello. `$($(this)).text()` works but it's redundant. `$(this)` work as well and it's better for performance and code understanding. About the white space, you can use the trim function: var text = `$.trim($(this).text());` It will remove any extra white spaces. And I'd also change `<button>day</button>` to `<button id="btnDay" type="button">day</button>`. And add … | |
Re: I didn't understand much of what you want... but to get the count it would be: DECLARE @rowsCount int SELECT @rowsCount = count(*) FROM [dbHIS].[dbo].[PATIENT_INFORMATION] WHERE (FIRSTNAME LIKE @FIRSTNAME OR @FIRSTNAME IS NULL) OR (LASTNAME LIKE @LASTNAME OR @LASTNAME IS NULL) OR (MIDDLENAME LIKE @MIDDLENAME OR @MIDDLENAME IS NULL) | |
Re: Even when you use aliases on your query, you don't use it to get the value from the reader. while (dtrStudent.Read()) { lblStudentID.Text = dtrStudent["LearnerID"].ToString(); lblStudentName.Text = dtrStudent["Name"].ToString(); lblEmail.Text = dtrStudent["Email"].ToString(); } The above should work fine. | |
Re: I think the correct use would be: `onsubmit="return validateForm(this);"` | |
Re: What value are you trying to decrement? Because as I far I undertand, you're not increment anything on your code, you are inserting a new record. Am I wrong? | |
Re: Try this, and make sure that the image path does exists. function vote(id) { var ajax_image = "<img src='_assets/images/tire-loader.gif' alt='Loading...' />"; $('#sub-cat').html(ajax_image); $.ajax({ type: "POST", url: "ajax.php", data: "id="+id, async: true, success: function(result) { result = result.responseText.split("^"); $('#sub-cat').html(result[0]); $('#sub-cat').html(result[1]); } }); } | |
Re: Hi, try jQuery scrollTo plugin. I used a couple of times and it works very nice. http://flesler.blogspot.com.br/2007/10/jqueryscrollto.html | |
Hi everybody. I'm building an site that will load a bunch of overlays into Google Maps. The overlays are static and already in JSON format to be loaded with AJAX. This all works fine, ajax request, json parse, adding overlay. But the json files are quite big, the largest has … | |
Re: The link is broken, can't see anything. In any case, take a look at jQUery UI Drag & Drop: http://jqueryui.com/droppable/ | |
Re: I wouldn't bother with that, it's not a bug, it's an IE performance problem. IE is pretty slow compared with other browsers, speacially Firefox and Google Chrome. What could be done is improve the plugin performance itself, then it would load faster in IE and even faster in the other … ![]() | |
Re: Line 35 seems to be wrong: `tmp+='<\/script>` | |
Re: Try using live: $(".replaced").live("click", function() { alert("Yeah!"); }); Using 'click' will only attach handlers to existing objects. Using 'live' it'll attach the handlers to any existing object and also for objects created latter. | |
Re: You post your code and what it should do, but you didn't say what the problem is. What dificulties are you having? | |
Re: Try this way: <div id = 'top_menu_wrapper'> <form id='search_bar' action='Config_FullStoreURLSearchResults.asp' method='get' name='SearchBoxForm'> <ul> <li><a href='#'>Log In</a></li> <li><a href='#'>Register</a></li> <li><a href='#'>About Us</a></li> <li><input type='text' name='Search' id='search_input' value='Search...'/></li> </ul> </form> </div> | |
Re: Hi. yes, it's possible to do it with JQuery. In fact, jQuery it's the easiest way to do it. You'll need the html strucutre for the window, the css to add style to the window and jQuery to open, close and manage the window. Google a little bit about JQuery … | |
Re: Did you test if the mouseUp Listener is being triggered? Just to make sure, mouseUp is triggered when then user click and let go. Is that what you want? Another thing, Hover expects two functions. Because Hover is a bind for mouseOver and mouseLeave. And, if you want mouseUp, you … | |
Re: Can you post a diagram with the used tables so we can analyse it? | |
Re: You could just split the values of the text box. Something like this: string[] lines = Regex.Split(textValue, @"\n\r"); foreach (string line in lines) { // Do what you want } | |
Re: I've been using [Assembla](assembla.com) for almost two years now, and I recommend. I didn't have any problem with it and it's pretty easy to understand and use. We started with a free account for a single project, today we have a payed plan and more than 20 projects in it. | |
Re: I use Notepad++ too, for more than 5 years now, and it never let me down. Notepad++ does not generate any garbage, because it's only a text editor. Editors that generate garbage are WYSIWYG (What You See Is What You Get), like dream weaver, front-page and others. I don't recomend … | |
Re: Try this instead: $("#button").popover({content:'<span id="test">Test</span>', html:true, placement:"bottom"}); | |
![]() | Re: Hi, the code `dlProducts.Controls[0].FindControl("txtProductQty")` will return an TextBox and not an value. Do it by steps, to see what is going wrong. Example: TextBox txtQty = dlProducts.Controls[0].FindControl("txtProductQty"); int qty = txtQty.Value; Debug the code and see if the textbox is found, if it is then you'll get the value. **I … |
Re: It would be ideal if the companies had an webservice that returned the prices, but I don't think they'll have it. Another way, if you have the site that shows the info, is to load the HTML from the site and then parse it to find the info you want. … | |
Re: What do you mean? I didn't understand your problem. A input adress is a text input: `<input type="text" name="adress" id="txtAdress" />` What are you looking for? | |
Re: I don't think that anyone will code that for you. The forum is for help and discussion, not for us to code for you. If you want help you'll get it, but if you want somebody to do the job for you, you won't. | |
Re: This should do the trick: var lastSelection = undefined; function handleSelection(choice) { document.getElementById('select').disabled=false; document.getElementById(choice).style.display="block"; if ( lastSelection != undefined ) { document.getElementById(lastSelection).style.display="none"; } lastSelection = choice; } | |
| |
Re: Let me see if I understand: Even if the page doesn't fill the body height, you want the footer to be at the bottom. And when the page fill the body height, or get bigger than it, you want the footer to stay at the bottom of the page (bottom … |
The End.