Forum: JavaScript / DHTML / AJAX 30 Days Ago |
| Replies: 5 Views: 478 |
Forum: JavaScript / DHTML / AJAX 30 Days Ago |
| Replies: 5 Views: 478 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 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 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 |
Forum: PHP Mar 31st, 2008 |
| Replies: 2 Views: 407 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 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 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 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 |
Forum: PHP Mar 28th, 2008 |
| Replies: 8 Views: 261 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 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 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 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 |
Forum: PHP Mar 28th, 2008 |
| Replies: 8 Views: 1,557 |
Forum: PHP Mar 28th, 2008 |
| Replies: 8 Views: 261 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 |
Forum: PHP Mar 28th, 2008 |
| Replies: 8 Views: 261 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 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 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 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 |
Forum: JavaScript / DHTML / AJAX Mar 19th, 2008 |
| Replies: 6 Views: 739 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 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 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 |
Forum: JavaScript / DHTML / AJAX Mar 17th, 2008 |
| Replies: 6 Views: 782 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 |
Forum: JavaScript / DHTML / AJAX Mar 17th, 2008 |
| Replies: 6 Views: 782 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 |
Forum: JavaScript / DHTML / AJAX Mar 14th, 2008 |
| Replies: 8 Views: 489 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 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 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 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 |
Forum: JavaScript / DHTML / AJAX Mar 12th, 2008 |
| Replies: 4 Views: 1,093 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 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 |
Forum: JavaScript / DHTML / AJAX Feb 11th, 2008 |
| Replies: 4 Views: 862 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... |