Search:
Type: Posts; User: mielke
Search :
Search took 0.01 seconds.
How do I make a text input fire an event when it is automatticlly updated...
function first_sender()
{
document.getElementById('second_sender') = "done";
}
function alert_user()
{
...
Yeah i considered that, but there may be a LOT of these if statements that way. Is there any more simple/elegant way of doing this?
if I have the following html in which there is a series of submit buttons and a corresponding text field, which differ only in their names via a counter...
<form name="form_test" method="post"...
Thanks hyperionXS, that worked great!
If I have the bellow html form...
<form name="form_test" method="post" action="PHP_TEST.php">
<input type="submit" value="Save" name="send_post_save"></input>
<input type="submit"...
Thanks Hyperion that worked great.
so my questions is how to structure the implode statement for a 2-D array...
<?php
$php_array = array(array('a',0,1),array('b',0,1));
echo '
function print_array()
{
var js_array = new...
this works perfect for a 1-D array...
<?php
$php_array = array('a',0,1);
echo '
function print_array()
{
var js_array = new Array();
js_array = [' . ($php_array ? '"' . implode('", "',...
I've been using the following code to create a one dimensional javascript array from a php array, and it has been working great...
var js_array = new Array();
js_array = [' . ($php_array ? '"' ....
I've noticed when I use absolute position and try to stretch it across the entire screen I get an annoying border of about 10px on the right side. This is only with IE...
<body>
<table...
hamburglar! That worked perfectly thanks alot!
Can PHP be used the following way? PHP cod be referenced in the header of a main page.
<!--HOME PAGE-->
<html>
<head>
<script type="text/javascript" src="main.php"></script>
</head>
...
*correction last line is
";
Every things been working for me up till the last example. Im getting a syntax error any suggestions...
echo "
function html_event()
{
var items = [\" . ($php_array ? \""\" . implode(\"",...
Thanks bionode that works great...one more thing tho
What if I wanted to add them to a combo box instead of doing an alert...
echo "
function html_event()
{
for(var i = 0; i <=3; i++)...
Thats pretty much it, heres my reasoning (or lack thereof)...
The goal is to store stuff in a database and print out certain stuff whenever a html event is triggered.
so the website is loaded...
thanks for the quick reply bionoid
I'm actually echo-ing a function that is triggered by an html event (don't ask why)
so it's really...
echo "
function html_event()
{
for(var i = 0; i...
my syntaxt was wrong, the second code should read...
for(var i = 0; i <=3; i++)
{alert(\"".$php_array[i]"\");}
Ok I've got a strange one...
I have an external php file that is posting some javascript that includes a php array...
echo "
...
alert(\"".$php_array[0]"\");
...
";
so far so good. but if...
ok...any example, reference, or help? I've never used AJAX.
How do I set the source for a javascript based on an 'if' condition. For examlple if I have a variable "test", that is previously defined, which depending on it's value, points to the .js file the...
I just want the correct index to pass to the js function whenever the action is triggered
I am creating HTML elements in a javascript for loop. One HTML elemnet calls a function and passes the javascript variable...
for(var index = 1; index <= qty; index = index + 1.0)
{
...
Sorry again everyone I was looking over my code and I found a small syntax error the code in my initial post does work. This was just a quick guesse of what I think the code should be... and too my...
Sorry I wasn't too clear on my question... which is how do I the mentioned (ie how do I have an external js file that uses variables defined in the parent .html file). I posted my initial feeble...