719 Posted Topics

Member Avatar for jfunchio

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.

Member Avatar for AleMonteiro
0
199
Member Avatar for priebd1

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.

Member Avatar for AleMonteiro
0
137
Member Avatar for jackbauer24-2

Why don't host on your PC and share your IP with him (you may have to configure your firewall and router, if any)

Member Avatar for AleMonteiro
0
89
Member Avatar for jlmeyer43
Member Avatar for jlmeyer43
0
239
Member Avatar for codechrysalis

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;

Member Avatar for AleMonteiro
0
145
Member Avatar for klemme
Member Avatar for apanimesh061

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

Member Avatar for AleMonteiro
0
112
Member Avatar for Violet_82

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 …

Member Avatar for AleMonteiro
0
92
Member Avatar for vizz

What do you mean by 'go out' of the ifram tag? Is it not restricted to the iframe size, is that it?

Member Avatar for AleMonteiro
0
199
Member Avatar for thewilf

JorgeM is right, you have to install both SQL Server Express and SQL Server Express Managment Studio.

Member Avatar for thewilf
0
212
Member Avatar for ziyaddinsadigov

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, …

Member Avatar for AleMonteiro
0
107
Member Avatar for vanderbergit

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() …

Member Avatar for AleMonteiro
0
170
Member Avatar for ita_info

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 …

Member Avatar for AleMonteiro
0
133
Member Avatar for anisha.silva

Try this out: SELECT e.EID FROM Employee AS e WHERE e.EmpStatus = 'Active' AND e.EID NOT IN (SELECT DISTINCT j.EID FROM Job AS j )

Member Avatar for AleMonteiro
0
205
Member Avatar for flynismo

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 …

Member Avatar for pritaeas
0
189
Member Avatar for ttkh2011
Member Avatar for angelali2013

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 …

Member Avatar for AleMonteiro
0
237
Member Avatar for fabzster

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() }, …

Member Avatar for AleMonteiro
0
217
Member Avatar for coder91
Member Avatar for AleMonteiro
0
102
Member Avatar for TIM_M_91

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.

Member Avatar for AleMonteiro
0
82
Member Avatar for angelali2013

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.

Member Avatar for angelali2013
0
249
Member Avatar for waynesargent

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], …

Member Avatar for AleMonteiro
0
140
Member Avatar for madsy

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); …

Member Avatar for Bachu
0
3K
Member Avatar for eburlea

Using JQuery: var text = $("#home").text(); Using pure JavaScript: var cell = document.getElementById('home'); var text = typeof cell.textContent === 'string' ? cell.textContent : cell.innerText;

Member Avatar for Jimnto
0
18K
Member Avatar for Delusional

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 …

Member Avatar for AleMonteiro
0
113
Member Avatar for rjony321
Member Avatar for AleMonteiro
0
154
Member Avatar for iblend
Member Avatar for cholleti.varaprasad

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(); …

Member Avatar for cholleti.varaprasad
0
160
Member Avatar for Skeldave

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.

Member Avatar for AleMonteiro
0
756
Member Avatar for ctrenks

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 …

Member Avatar for AleMonteiro
1
192
Member Avatar for karlcunanan

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>

Member Avatar for AleMonteiro
0
3K
Member Avatar for hlamster

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>

Member Avatar for AleMonteiro
0
449
Member Avatar for bettybarnes

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...] }, …

Member Avatar for AleMonteiro
0
145
Member Avatar for Vijaysurya
Member Avatar for AleMonteiro
0
123
Member Avatar for JameB

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 …

Member Avatar for juliagarner
0
182
Member Avatar for mikebals99

Try: SELECT SUM(bet1) as bet1, SUM(bet2) as bet2, SUM(bet3) as bet3 FROM MyTabtle

Member Avatar for AleMonteiro
0
113
Member Avatar for kamilacbe

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?

Member Avatar for JorgeM
0
273
Member Avatar for veranopage
Member Avatar for napninjanx
Member Avatar for PhilEaton
Member Avatar for Designer_101

Hi, that's a float problem, to resolve it: just insert `<div style="clear: both;"></div>` after the float elements. My test: ![Capture35](/attachments/large/3/Capture35.JPG "Capture35")

Member Avatar for AleMonteiro
0
112
Member Avatar for thak123
Member Avatar for Sogo7
0
159
Member Avatar for HunainHafeez
Member Avatar for HunainHafeez
0
128
Member Avatar for MrJewbagel

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.

Member Avatar for AleMonteiro
0
47
Member Avatar for napninjanx
Member Avatar for AleMonteiro
0
166
Member Avatar for mirzamujib
Member Avatar for petrakid_1

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>

Member Avatar for AleMonteiro
0
155
Member Avatar for NubTruck

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; …

Member Avatar for AleMonteiro
0
243
Member Avatar for persianprez

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?

Member Avatar for AleMonteiro
0
138
Member Avatar for godzab

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 }); });

Member Avatar for JorgeM
0
169

The End.