Forum: JavaScript / DHTML / AJAX Mar 29th, 2008 |
| Replies: 2 Views: 841 Re: Insert a script with javascript? In your inner if you have this:
a[i].document.getElementById('td').innerHTML='<div class="js-kit-comments" permalink=""></div>'; && ...
which is doing assignment(single equal sign), not testing(two... |
Forum: JavaScript / DHTML / AJAX Jan 27th, 2008 |
| Replies: 11 Views: 1,386 Re: Array Names If your fields have names such as "input[]", you do not need to provide any numbers inside the brackets. That naming convention (adding brackets at the end of the field name, is necessary for PHP... |
Forum: JavaScript / DHTML / AJAX Dec 26th, 2007 |
| Replies: 8 Views: 1,359 Re: Trouble with AJAX including PHP From your problem description it is not clear if you have a select list within a div ( or some other element) with id="ChtPlc". At any rate, the following code should do what you are aiming if your... |
Forum: JavaScript / DHTML / AJAX Dec 26th, 2007 |
| Replies: 1 Views: 981 Re: Javascript: Multiple Code Blocks You have the right syntax. Just save your program as eigenValues3.js and then if you want to write a program that needs that file you just "import" it as follows:
<html>
<head>
<script... |
Forum: JavaScript / DHTML / AJAX Dec 23rd, 2007 |
| Replies: 4 Views: 526 |
Forum: JavaScript / DHTML / AJAX Dec 23rd, 2007 |
| Replies: 7 Views: 949 Re: secure online form - javascript Typically the data is stored in a password protected medium. Most of the times it is onto a database and whether all the data is encrypted or not is entirely up to you. For example a nickname may not... |
Forum: PHP Dec 23rd, 2007 |
| Replies: 4 Views: 691 Re: Prevent duplicate entry Try this:
<?php
$c=OCILogon("scott", "tiger", "orcl");
if ( ! $c ) {
echo "Unable to connect: " . var_dump( OCIError() );
die();
}
$sqlString = "select * from personTable where... |
Forum: JavaScript / DHTML / AJAX Dec 23rd, 2007 |
| Replies: 7 Views: 949 Re: secure online form - javascript For the sake of clarity, let me start out with a couple of examples. If you were to navigate to:
http://www.somesite.com?name=John
the browser contacts that server and sends data without encrypting... |
Forum: PHP Dec 22nd, 2007 |
| Replies: 9 Views: 973 Re: PHP conditions Try this:
$sql="SELECT * FROM users WHERE username='" . $myusername . "' and password='" . $mypassword . "'";
$result=mysql_query($sql);
$info = mysql_fetch_array($result, MYSQL_ASSOC);
// If... |
Forum: PHP Dec 22nd, 2007 |
| Replies: 1 Views: 244 Re: hi PHP will not interfere with the HTML because PHP is interpreted by the server, while HTML is interpreted by the Browser. The browser does not see the PHP code.
That aside, you can use frames in ... |
Forum: JavaScript / DHTML / AJAX Dec 22nd, 2007 |
| Replies: 3 Views: 856 |
Forum: PHP Dec 20th, 2007 |
| Replies: 4 Views: 691 Re: Prevent duplicate entry The "hard" (and wrong) approach would be to first query the database to check for the existence of the record and insert it only if no record exists. But the right way to approach this is through... |
Forum: PHP Dec 20th, 2007 |
| Replies: 4 Views: 691 Re: Prevent duplicate entry The best approach is to have the DB enforce Referenctial Integrity. Basically you instruct the database at design time NOT to allow duplicates for certain records ever. IF such an attempt is made,... |
Forum: ASP Dec 20th, 2007 |
| Replies: 21 Views: 4,663 Re: installed IIS yet cannot run asp files IF all you see on the browser is:
Cool! My own server home page.
Then your server is running correctly. The browser will not display the HTML markup. As a matter of fact, if you really want to see... |
Forum: ASP Dec 20th, 2007 |
| Replies: 1 Views: 1,287 |
Forum: ASP Dec 20th, 2007 |
| Replies: 2 Views: 1,124 Re: ASP & VB and Unterminated String Constant You have the SQL statement in two
separate lines. VBScript is interpreting the end of line as the end of statement.
You can:
a. remove the new line character so that all in on a single line
SQL =... |
Forum: ASP Dec 20th, 2007 |
| Replies: 2 Views: 559 |
Forum: Site Layout and Usability Dec 19th, 2007 |
| Replies: 5 Views: 764 |
Forum: ASP Dec 19th, 2007 |
| Replies: 1 Views: 462 Re: please help syntax error Try this:
SQL = "SELECT tbl_Order.Status FROM tbl_Order WHERE Customer.CustomerID = " & Session('userid')
SQL = SQL & asp_CustomerID & " AND Customer.CustomerID = tbl_Order.CustomerID" |
Forum: JavaScript / DHTML / AJAX Dec 18th, 2007 |
| Replies: 15 Views: 4,358 |
Forum: JavaScript / DHTML / AJAX Dec 18th, 2007 |
| Replies: 2 Views: 720 Re: Unicode Handling <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html... |
Forum: JavaScript / DHTML / AJAX Dec 18th, 2007 |
| Replies: 2 Views: 1,851 Re: Help needed for onkeypress using java script Building on what you already have, you would just need to add the desired <span> or <div>, assign it an id, an update that <span> or <div> based on its id value. I have used txt3 on the code below on... |
Forum: ASP Dec 17th, 2007 |
| Replies: 1 Views: 1,129 Re: how to export results from form as txt file You can use the "Scripting.FilesystemObject" to create your file and write data to it.
<%
dim fs,fname,overwriteContents,unicode,ascii
overwriteContets=true;
unicode=true
ascii=Not Unicode
set... |
Forum: ASP Dec 17th, 2007 |
| Replies: 2 Views: 1,880 Re: import csv data line by line with ASP Here is shorter alternative:
<%@language="vbscript"%>
<table border="1">
<%
dim csv_to_read, fso, act
csv_to_read="states.csv"
set fso = createobject("scripting.filesystemobject")
set act =... |
Forum: ASP Dec 17th, 2007 |
| Replies: 2 Views: 1,880 Re: import csv data line by line with ASP What exactly are you trying to do. The email code does not make sense. The only bug on your code that imports the csv information is that it never writes the last line of the csv file to the browser.... |
Forum: JavaScript / DHTML / AJAX Dec 17th, 2007 |
| Replies: 4 Views: 1,500 Re: Page refresh when MySQL db changes >>I have heard that AJAX is a way to get a page to refresh when a MySQL db has changed.
Just so we are clear, most likely the statement about was referring to the case where the user submits some... |
Forum: JavaScript / DHTML / AJAX Dec 17th, 2007 |
| Replies: 4 Views: 1,500 Re: Page refresh when MySQL db changes When an AJAX request is complete, the connection between the script and the server is closed. The communication dynamics is just like that between the browser and the server.
Once the connection is... |
Forum: JavaScript / DHTML / AJAX Dec 17th, 2007 |
| Replies: 10 Views: 1,037 Re: Link on Image I think you are looking for the title attribute:
<a href="" title="Look at me"><img src=""/></a>
or:
<a href=""><img src="" title="Look at me"/></a>
It can be used on the <a> and/or the <img> tags. |
Forum: JavaScript / DHTML / AJAX Dec 17th, 2007 |
| Replies: 2 Views: 445 Re: hi A page that changes and/or creates its content on the browser, typically based on the users input/feedback/response.
The content is typically inserted with javascript but it is not the only option.... |
Forum: JavaScript / DHTML / AJAX Dec 16th, 2007 |
| Replies: 2 Views: 875 Re: how to know iframe id You need to add a name attribute to the iframe:
index.html
<iframe id="iframeid" name="iframeid" src="checkid.html"></iframe>
checkid.html
<script type="text/javascript">alert(window.name);</script> |
Forum: JavaScript / DHTML / AJAX Dec 16th, 2007 |
| Replies: 2 Views: 1,219 Re: Accessing next elements in dom Since you are using <a> as an anchor rather than as a link, you could instead change the <a name="PAGE2">
to a <div id="PAGE2"> AND wrap it around all the relevant <p> elements. Essentially you are... |
Forum: JavaScript / DHTML / AJAX Dec 16th, 2007 |
| Replies: 10 Views: 1,037 Re: Link on Image Can you post some code?
Not sure if a background image on the link will fix your problem OR one of a "title" or "alt" attributes on one of the elements you are doing. Hard to troubleshoot without... |
Forum: JavaScript / DHTML / AJAX Dec 16th, 2007 |
| Replies: 15 Views: 4,358 |
Forum: ASP Dec 14th, 2007 |
| Replies: 21 Views: 4,663 Re: installed IIS yet cannot run asp files Open the properties window for the website in question ( the fifth image from top to bottom on the step-by-step tutorial at http://www.razorx.com/tutorials/IISonXPPro/).
Then click on the "Home... |
Forum: JavaScript / DHTML / AJAX Dec 13th, 2007 |
| Replies: 21 Views: 2,263 Re: Javascript breaks IE - please help. Read post #18 here. That is the solution to these problems.
>>so it seems we need to revisit the following:
setInterval("alterText();", 110);
The problem is NOT how often you call alterText(). The... |
Forum: JavaScript / DHTML / AJAX Dec 13th, 2007 |
| Replies: 3 Views: 796 Re: Ajax selecting from MySQL My comments are in the code:
var frame=0;
var interval=null;
var http = createRequestObject();
function createRequestObject(){
var request_=null;
//not necessary
//var browser =... |
Forum: JavaScript / DHTML / AJAX Dec 13th, 2007 |
| Replies: 21 Views: 2,263 Re: Javascript breaks IE - please help. Once firebug is installed, you will see a little icon on the lower right-hand side of your browser. The icon will be a small check mark on a green background if there are no reported errors on the... |
Forum: JavaScript / DHTML / AJAX Dec 13th, 2007 |
| Replies: 6 Views: 912 Re: Action by pressing a key Try this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html... |
Forum: JavaScript / DHTML / AJAX Dec 13th, 2007 |
| Replies: 21 Views: 2,263 Re: Javascript breaks IE - please help. Wait a minute, I take that back. I left IE open long enough for the letter to reach the limit (3450), and then I got a pop-up error. The same with FF.
The reason for that is that when letter =... |
Forum: JavaScript / DHTML / AJAX Dec 13th, 2007 |
| Replies: 21 Views: 2,263 Re: Javascript breaks IE - please help. I looked at http://listenlight.net/13/iijima/ with FF and IE and they behave as shown on the video. Furthermore, my FF debugger is not triggerring any errors.
However, the... |