User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 332,806 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,966 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.
Please support our advertiser:
Showing results 1 to 40 of 55
Search took 0.01 seconds; generated 1 minute(s) ago.
Posts Made By: hunkychop
Forum: JavaScript / DHTML / AJAX 30 Days Ago
Replies: 5
Views: 478
Posted By hunkychop
Re: setInterval inside function issue

i guess here is my new question. how can i transfer all of the properties of window.currentObj to 'this'?
Forum: JavaScript / DHTML / AJAX 30 Days Ago
Replies: 5
Views: 478
Posted By hunkychop
Re: setInterval inside function issue

thanks, i did alittle bit of googling on js globals and found i could attach the variable on to the window object. so.. my script ends up looking like this.... maybe?



function foo(param1,param2){
...
Forum: Geeks' Lounge 30 Days Ago
Replies: 55
Views: 1,268
Posted By hunkychop
Re: Horrifed... please sign petition!!

could this be the next 2 girls one cup!?!?!??!?!
dibs on first youtube live skinning reaction video!

jk, live skinning animals is horrible. do on to others as you would have them do on to you. i...
Forum: JavaScript / DHTML / AJAX 30 Days Ago
Replies: 5
Views: 478
Posted By hunkychop
setInterval inside function issue

what i want to do is this:


function foo(param1, param 2){
this.bar=function(){
this.intervalID=setInterval(this.fbar,5000);
}

this.fbar=function(){
//(do stuff with the properties of "this"
Forum: JavaScript / DHTML / AJAX 30 Days Ago
Replies: 6
Views: 425
Posted By hunkychop
Re: Any pointer on how the developer made this

it is a div with 100% width that drops down using a setInterval loop.

it is probably put in place by server side scripts
Forum: PHP Mar 31st, 2008
Replies: 2
Views: 407
Posted By hunkychop
Re: arrays checkboxes, Form submit array

first, no, you cant have any html inside of the php tags unless it is in an echo/print . i would put the form and submit buttom outside of the tags.

second, before you try to loop through databaase...
Forum: PHP Mar 29th, 2008
Replies: 1
Views: 132
Posted By hunkychop
Re: Session management

"Php and Mysql Web Development" third edition

by Luke Welling and Laura Thomson.
ISBN 0-672-32672-8

quite possible the best resource on everything php and mysql.

it covers this about session...
Forum: PHP Mar 29th, 2008
Replies: 1
Views: 171
Posted By hunkychop
Re: regex/preg_match_all help needed

edit> what i meant was that i need to get all strings that match this:

$ALL_LETTERS_AND_UNDERSCORE{}
as long as it is not already inside of a match of the same expression.

so.
i want to return all...
Forum: PHP Mar 29th, 2008
Replies: 1
Views: 171
Posted By hunkychop
regex/preg_match_all help needed

i have looked at many regex charts and tutorials but i still cant get preg_match_all do what i need it to do.
i need to return this example:
param1,$config{}

from this...
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 261
Posted By hunkychop
Re: using statements in user defined functions

thanks! that does work simpler than my method.
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 261
Posted By hunkychop
Re: using statements in user defined functions

i am sorry for the triple post, i truly am... but i solved this issue after a day's work of googling and thought i could save people the same trouble by posting my solution here. i guess a moderator...
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 261
Posted By hunkychop
Re: using statements in user defined functions

i dont need to "technicaly" or "directly" manipulate the html, i just need to grab the html and then echo it modified.

let me rephrase this...

when i run this....
<?php function test(){...
Forum: HTML and CSS Mar 28th, 2008
Replies: 3
Views: 243
Posted By hunkychop
Re: not sure about index file.

so when the user goes to that folder, they see a blank page instead of a directory of all of your files.
ex.
http://johndm.com/images/index.JPG
Forum: PHP Mar 28th, 2008
Replies: 1
Views: 159
Posted By hunkychop
Re: $_SESSION

//do you login script here

//after user is logged in
$username= $_SESSION['username'];

//after connecting to mysql
$query = "SELECT * FROM students WHERE username= '".$username."'";
$result =...
Forum: PHP Mar 28th, 2008
Replies: 1
Views: 210
Posted By hunkychop
Re: how to inverse 3x3 matrices using php

a quick google search finds this:

http://www.phpclasses.org/browse/package/2859.html
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 1,557
Posted By hunkychop
Re: Generate text document from Php

http://php.net

there is a search box that will search all of the functions available, documentation, and more in php.
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 261
Posted By hunkychop
Re: using statements in user defined functions

i wrote the below script but it is not done

note: what i will eventually write is not as basic as just bolding the text. i just put that there as an example.

example check function

<?php
function...
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 261
Posted By hunkychop
Re: using statements in user defined functions

the function i am writting needs to take the data contained in a statement>

<?php
checkConfig(){
?>
<input type="text" name="input" />
<?php
}
?>
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 261
Posted By hunkychop
using statements in user defined functions

is there a way to create a function that uses values from the statement inside of brackets.

ex.

myFunction(){
//data here
}


if not, what i am trying to do is get a html tag and check/modify...
Forum: JavaScript / DHTML / AJAX Mar 24th, 2008
Replies: 1
Views: 372
Posted By hunkychop
Re: Easy w Frames tough w CSS

here is how to do it in javascript:


<!-- your image -->
<img src="YOUR_THUM_IMAGE_PATH" onclick="javascript:fillDiv('YOUR_BIG_IMAGE_PATH','div1');" />
<div id="div1" style="width:100;...
Forum: JavaScript / DHTML / AJAX Mar 24th, 2008
Replies: 1
Views: 1,274
Posted By hunkychop
Re: Drop down list Selected Value - Current Page

here is the script:


<select id="jump">

<option value="http://localhost/page2.html" onclick="javascript:window.location = this.value;">page2</option>
<option value="http://localhost/page1.html"...
Forum: PHP Mar 20th, 2008
Replies: 8
Views: 667
Posted By hunkychop
Re: updating text

to inilize an action when a div is clicked, it needs to have the "onclick" parameter set.

ex.
<div class="longtext" id="div0">
<span class="chin L">
begin 九</span></div>
<div class="section"...
Forum: JavaScript / DHTML / AJAX Mar 20th, 2008
Replies: 2
Views: 1,079
Posted By hunkychop
Re: Preview an image before upload

are you using server side scripting for the upload?
Forum: JavaScript / DHTML / AJAX Mar 19th, 2008
Replies: 6
Views: 739
Posted By hunkychop
Re: Javascript Compiler/Checker?

firefox 2's error console works quite nicely. it will tell you a syntax error is on line 1 every now again, forcing you to search.

i would have to agree with ShawnCplus however on the whole deal....
Forum: JavaScript / DHTML / AJAX Mar 19th, 2008
Replies: 8
Views: 489
Posted By hunkychop
Re: Overide Textinput settings

replace the origional with this
<script type="text/javascript">
function changeMaxLength()
{ var names=new Array(),name;
names[0] = 'TopicTitle';
// make a new array entry for each...
Forum: JavaScript / DHTML / AJAX Mar 17th, 2008
Replies: 6
Views: 782
Posted By hunkychop
Re: Detect height / set height

yes. here is the full script:

<head>
<script type="text/javascript">
function matchHeight(id1,id2)
{
var el1=document.getElementById(id1);
var...
Forum: JavaScript / DHTML / AJAX Mar 17th, 2008
Replies: 1
Views: 384
Posted By hunkychop
Re: CSS Brwoserresize Problems (FF+IE)

if you menu is positioned absolutely or relatively positioned, i can see this happening

do you have a link, i am not completely sure what is happening
Forum: JavaScript / DHTML / AJAX Mar 17th, 2008
Replies: 6
Views: 782
Posted By hunkychop
Re: Detect height / set height

put the <script> in the head of your page and change your body tag to this:

<body onload="javascript:matchHeight(div1id,div2id);">
Forum: JavaScript / DHTML / AJAX Mar 17th, 2008
Replies: 8
Views: 489
Posted By hunkychop
Re: Overide Textinput settings

i don't understand what you mean. i can write it to change the maxlength by name instead of className.
Forum: JavaScript / DHTML / AJAX Mar 17th, 2008
Replies: 6
Views: 782
Posted By hunkychop
Re: Detect height / set height

try this:


<div id="div1" style="background:#003399; height:152px; width:175px; position:absolute; left: 595px; top: 181px;">div 1</div>

<div id='div2' style="background:#99FF00; height:500;...
Forum: JavaScript / DHTML / AJAX Mar 16th, 2008
Replies: 8
Views: 489
Posted By hunkychop
Re: Overide Textinput settings

it already does. check line 5. it should be changing all elements with the class 'forminput'
Forum: JavaScript / DHTML / AJAX Mar 14th, 2008
Replies: 8
Views: 489
Posted By hunkychop
Re: Overide Textinput settings

what kind of board are you using? can you use javascript in it?
if you can insert javascript on the page, do this...

<script type="text/javascript">
function changeMaxLength()
{
var maxlen =...
Forum: JavaScript / DHTML / AJAX Mar 13th, 2008
Replies: 4
Views: 563
Posted By hunkychop
Solution Re: convert php function to ajax?

using ajax to call a php fuction:
put this where you want resutls:
<div id="results" style="display:inline; width:100px; height:20px;"></div>
include this ajax library in the page you want the...
Forum: JavaScript / DHTML / AJAX Mar 13th, 2008
Replies: 4
Views: 1,093
Posted By hunkychop
Solution Re: textarea with formatting

thanks for the help. since i see that there is no cross-browser compatible function for this, i went to the keyboard and started writting a cross browser script. i have finished most of it and so far...
Forum: JavaScript / DHTML / AJAX Mar 12th, 2008
Replies: 2
Views: 321
Posted By hunkychop
Re: Help!

if you want to have the script email the results, it would probably be easier and safer to use a server side script like PHP . i could be wrong but, i dont even think javascript will send emails.
Forum: JavaScript / DHTML / AJAX Mar 12th, 2008
Replies: 2
Views: 849
Posted By hunkychop
Re: Select all the items in a listbox right before submit.

is this what you are looking for?

<script type="javascript" >
//replace formname with with the name of your form and inputname with the
//name of the input field you want to...
Forum: JavaScript / DHTML / AJAX Mar 12th, 2008
Replies: 4
Views: 1,093
Posted By hunkychop
Re: textarea with formatting

i am aware that i need to use wysiwyg techniques, but all of the sources i have found online come preset with font drop downs, change text size, insert hyperlink etc. i just want the script i wrote...
Forum: JavaScript / DHTML / AJAX Mar 11th, 2008
Replies: 4
Views: 1,093
Posted By hunkychop
textarea with formatting

i have searched the web for awhile on this...

i wrote a script that will format certain words as the user types
(ex. when the user types MTrak the text is replaced with <b>MTrak</b>)

i need to...
Forum: JavaScript / DHTML / AJAX Feb 11th, 2008
Replies: 1
Views: 712
Posted By hunkychop
Re: Run Script Dinamically

<input type="button" onclick="javascript: Test(mystring)" name="clickMe" value="Update Now!" />
Forum: JavaScript / DHTML / AJAX Feb 11th, 2008
Replies: 4
Views: 862
Posted By hunkychop
calling a function in url

how could i call a javascript function through an url like>
http://localhost/?functionname.params

i get how to do a link but i need to know if it is possible through an url.
if it is not posible...
Showing results 1 to 40 of 55

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