719 Posted Topics
Re: You'll need a server-side language to make the file upload and read it's content. The rest is possible to do with JavaScript, and I think there's lots of code sinepts for code highlight over the web. | |
Re: Using IFrame the interaction between the apps will be very limited, sepecially if they're loaded from different domains. I'd certainly create it directly into the OS, the main reasons would be control, interaction and extensibility using prototype. | |
Re: Why don't host on your PC and share your IP with him (you may have to configure your firewall and router, if any) | |
Re: Post a file example so that we can see that kind a text you are reading. | |
Re: Something like this: var numRows = 10, numCols = 10, strHtml = ''; for(var i=0; i < numRows; i++) { strHtml += '<tr>'; for(var j=0; j < numRows; j++) { strHtml += '<td>1</td>'; } strHtml += '</tr>'; } document.getElementById('MyTable').innerHTML = strHtml; | |
Re: Do you have HTML 5 doctype at the top of your page? | |
Re: This should do the trick: "(class)([\s\t ]+)(\w*)([\s\t\r\n ]*?)({+)" $1 = class word $2 = space between 'class' and the class name $3 = class name $4 = space between the class name and the '{' $5 = the first '{' after the class name | |
Re: Hi, first thing, your script is loaded and executed at load time. This mean that when the script is run the DOM is not ready, so none of the objects that you are trying to add an handler to will exist. This means that the listeners are not attached. To … | |
Re: What do you mean by 'go out' of the ifram tag? Is it not restricted to the iframe size, is that it? | |
Re: JorgeM is right, you have to install both SQL Server Express and SQL Server Express Managment Studio. | |
![]() | Re: Due to browser security AJAX request can only be made to the same domain. That this if you domain is mydomain.com you won't be able to make an AJAX request to google.com. To do this kind of verification, you need to have a server-side script that will make the validation, … |
Re: This should work, if each row in the table has the two inputs: function validateTable(tableId) { $("#" + tableId).find("tr").each(function() { var $tr = $(this), $inputA = $tr.children("td").eq(0).children("input"), // Gets the first input $inputB = $tr.children("td").eq(2).children("input"); // Gets the second input if ( $.trim( $inputA.val() ) != '' && $.trim( $inputB.val() … | |
Re: Try this out: $('#B3').click(function(){ var hasError = false, jsonData = {}, $startex = $("#startex"), $error = $("#error"); // Verify value for all fields and create the json data for( var i=1; i < 14; i++) { var val = $('#t' + i).val(); if ( val == '' ) { hasError … | |
Re: I'd suggest to keep the ajax in background searching for new messages, when a new message is found it'll be shown to the user and then marked as 'readed' in the database. This way the user will only be notified until the message is readed. And to make sure that … | |
Re: Post the html structure for 'myvideo' | |
Re: I prefer plugins or components over scripts, because when I modify a plugin I do it in a way that the funcionality is only incresead. I make sure that nothing that was working stoped, even if not used in the case. But when I get a script or a code … | |
Re: I just commented the code so you know what each line does: $(document).ready(function() { // On DOM Loaded $('#wait_1').hide(); // Hides Wait_1 $('#drop_1').change(function(){ // Listener for changes on Drop_1 $('#wait_1').show(); // Shows Wait_1 $('#result_1').hide(); // Hides Result_1 $.get("func.php", { // Call func.php page in background func: "drop_1", drop_var: $('#drop_1').val() }, … | |
Re: I really didn't understand your doubt, please try to explain in another way. | |
Re: TIM, this error means that you are trying to use an object that has not been setted, or has been setted as null. You should see in which line the error occurs and then analyse it to see what may be happening to let that object as null. | |
Re: You could use something like this: var frame = document.getElementById("myIFrame"); // iFrame with the HTML var div = document.getElementById("myDiv"); // div to show the HTML div.innerText = frame.document.body.innerHTML; // Sets the Text of the div as the HTML of the frame. Using innerText will not parse the HTML. | |
Re: This will sum all values from all selects in the document that begins with 'category': window.onload = function() { var sum = sumSelects('category'); alert('Sum of Category: ' + sum); } function sumSelects(name) { var selects = document.getElementsByTagName('select'), sum = 0; for(var i=0, il=selects.length; i<il; i++) { var slc = selects[i], … | |
![]() | Re: I would use JQuery: <script> $(function() // on DOM loaded $("#btnSubmit").click(function(){ // Click handler var yMax = $("#txtYmax").val(); // Get YMax value $.ajax( 'MyPhpPage.php', // Page to handle the request { yMax : yMax }, // Parameters to send function(result) { // Function executed when the request is completed $("#forResult").html(result); … |
Re: Using JQuery: var text = $("#home").text(); Using pure JavaScript: var cell = document.getElementById('home'); var text = typeof cell.textContent === 'string' ? cell.textContent : cell.innerText; | |
Re: For what I see, you set an live click listener to the class 'modalDlg2' for loading the dialogs, but in nowhere you create a <a> with the class 'modalDlg2'. Besides that, I can't help you much because your code isn't testable. If you want help with your JS, I suggest … | |
Re: Just use the 'view source' button at this page: http://jqueryui.com/tabs/#vertical | |
Re: None of the links works. | |
Re: This should help you: <!DOCTYPE html> <html> <body> <script> var ProgressBar = function(max, objButton, objText) { this.max = max; this.text = objText; this.current = 0; this.button = objButton; this.text.value = this.current; this.started = false; var _self = this; this.button.onclick = function() { if ( _self.started === true ) { _self.stop(); … | |
Re: Assuming that the $(this).index() is the ListView index, you could do something like: $(this).find("li.selected-class") Probably the ListView uses some css class to indicate which item is selected or not. I don't know which class it is, but it shouldn't be hard to figure it out. | |
Re: ctrenks, I may be wrong, but as far as I understand, the Canvas object of HTML 5 is for 2d and 3d draw. You can't have an <div > inside a <canvas>. And I don't think that have doubts abouth the plataform, it's decided, it'll be Web with HTML/CSS/JS. The … | |
Re: I just tested and it seems to work fine in IE 9. With one detail: you must set the doctype to HTML 5 <!DOCTYPE html> | |
Re: hlamster, when the back button is pressed, the previous page will be reloaded, so the onload event will be dispatched. You need something like this: <script language='javascript' type='text/javascript'> window.onload = function() { initShowHideRows('pc_parade_float', 'vehreg'); }; </script> | |
Re: Where do you store the answers to each question? In the example shown the *citiesDB* has only the questions and not the answers. You could use something like: var citiesDB = [ { id: "1", question: "Capital city of America?", answer: "Einstein", options: [ 'Einstein', 'Option 2', 'Option 3...] }, … | |
Re: I did not understand your problem. Can you explain your self better? | |
Re: In Brazil, the development of a restaurant software could cost from $5k to $30k (R$10k to R$ 60k). But it depends on the functionalities. IE.: if it will register clients, products, staff, internet sales, delivery, if it will use printers, displays, scales, cards and so on. Depending on how far … | |
Re: Try: SELECT SUM(bet1) as bet1, SUM(bet2) as bet2, SUM(bet3) as bet3 FROM MyTabtle | |
Re: Hi, answer some questions please: 1. Which visual studio are you using? 2. Wich type of project are you working on? (ASP.NET WebSite, ASP.NET Web Application, etc) 3. How are you running the website? VS development server, IIS or other web server? | |
Re: See this post: http://www.daniweb.com/posts/jump/1846332 | |
![]() | Re: First of all, what do you mean by BLOCK BUTTON? ![]() |
Re: Try using padding on the outter box. | |
Re: Hi, that's a float problem, to resolve it: just insert `<div style="clear: both;"></div>` after the float elements. My test:  | |
Re: Check this out: http://stackoverflow.com/questions/6455963/jquery-mobile-do-something-on-page-load | |
Re: For each user on tblUser you want to create an record on tblApplicantScrutiny, is that it? | |
Re: You don't need to delete it, just mark at solved. It would be even better if you let the question and the anwser for future users. | |
![]() | Re: Do you have any experience with software developement and/or programming languages? |
Re: Is the type of Parameters!Path a string? | |
Re: Maybe this test can help you out: <script type='text/javascript'> window.onload = function() { var strScript = 'function dynamicLoadTest(text){ alert("dynamicLoadTest: " + text); }'; eval(strScript); dynamicLoadTest("Fuck! It's works!"); } </script> | |
Re: I can't explain the theory to you, but I can say somethings from practice. 1. When you use **float** on a element, you need to use **clear** in the next so it doesn't mess up: #left { background: #AAAAFF; margin-right: 10px; float: left; } #right { background: #FFAAAA; clear: left; … | |
Re: The code you posted isn't complete, I can't test it as it is. Please post something that can be tested. And by the way, where is 'w' and 'qr' defined? | |
Re: It would be something like this: $(function(){ // OnLoad $("#MyInputID").keyup(function(){ // Key Up Event var val = $(this).val(); // Get value from input $("#MyParagraphID").html(val); // Set p html }); }); |
The End.