User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 374,510 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,842 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 75
Search took 0.01 seconds.
Posts Made By: hielo
Forum: JavaScript / DHTML / AJAX Mar 29th, 2008
Replies: 2
Views: 841
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
Re: Help with code change if possible

Try this:

<script>
<!--
var counter=0;
//specify random links below. You can have as many as you want
var randomlinks=new...
Forum: JavaScript / DHTML / AJAX Dec 23rd, 2007
Replies: 7
Views: 949
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
hi
Views: 244
Posted By hielo
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
Posted By hielo
Re: Pls help javascript tree view menus problem

We cannot guess what you are looking at. Please revise your problem description and provide details.
Forum: PHP Dec 20th, 2007
Replies: 4
Views: 691
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
Re: Upload .PDF files into MySQL using plain ASP

You just need to worry about a server-side script to process the file you want to upload. Refer to the following page for such...
Forum: ASP Dec 20th, 2007
Replies: 2
Views: 1,124
Posted By hielo
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
Posted By hielo
Re: Is there a way to separate strings in Classic ASP

You just need to add spaces:

<%@ Language=VBScript %>

<%
Option Explicit
%>

<%
' -----------------------------------------------------
Forum: Site Layout and Usability Dec 19th, 2007
Replies: 5
Views: 764
Posted By hielo
Re: blocking direct image access

These might interest you:
http://gadgetopia.com/post/2685
http://www.alistapart.com/articles/hotlinking/
Forum: ASP Dec 19th, 2007
Replies: 1
Views: 462
Posted By hielo
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
Posted By hielo
Re: iframe Height adjustment to loaded content, help please?

If you insist with the iframes, you may want to look at the following...
Forum: JavaScript / DHTML / AJAX Dec 18th, 2007
Replies: 2
Views: 720
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
hi
Views: 445
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
Re: iframe Height adjustment to loaded content, help please?

>>Firefox = doesn't resize the iframe at all
This is not true, it does. At least it does in mine, but it changes only by a few pixels (10 or 15 maybe) that it is hardly noticeable.

The only way to...
Forum: ASP Dec 14th, 2007
Replies: 21
Views: 4,663
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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
Posted By hielo
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...
Showing results 1 to 40 of 75

 
All times are GMT -4. The time now is 2:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC