Hi.
I have page where I have two frames
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><title>My Frames</title>
</head>
<frameset rows="40%,60%">
<frame src="myUp.html" name="upframe">
<frame...
Sorry. I should hesitate a little bit with my post.
I found the solution:
page.tpl
{literal}
<script language="JavaScript">
var my_js_variable = {/literal}{$somevalue}{literal}
</script>
{/literal}
Hi all.
I just started to study smarty and I find out problems right away.
I try to put smarty-value to the javascript variable like this:
page.php
$my_variable="foo";
smarty->assign("somevalue", $my_variable);
smarty->display("page.tpl);
page.tpl
{literal}
<script...
Sorry my bad english ;)
When I put images on web-site (by using php), after that I just want refresh images by using javascript.
Image change only if I replace old image with new image which have exactly same name that the previous image.
The problem is, that I have code which refresh just...
Thanks for your help tsuji !
But. I didn't meant what your code does.
All I want is to refresh images after the 3 sec.
It's like I would push F5 after the 3 sec ( browser refresh the page)
But I don't want to use that technique because user can see the refresh event. I want to use...
Hi.
I have tried to create javascript-code which would refresh images that are in my web-page.
I put images on site by using PHP. At the same time when I put images on my site, I put image-names on javascript-array.
Then I have tired to create code, which would refresh images.
// OK Here I...
tsuji:
[1] Yes I execute the query. Query works fine, because I get response stuff to the dropdown box.
[2]Fixed. Thanks.
[3] My mistake. I write that clause too fast. There is ()
I just wonder, could the problem be this:
When php-script is executed, I actually run two sql-queries. And I...
BillyRayPreachersSon.
Yes, the form name is form1
Now when I try to do like you said, I get this kind responses:
var frm = document.forms['form1'].elements;
alert(frm); // [object HTMLCollection]
var ind = frm['letter'].selectedIndex;
alert (ind); // undefined ??
var selected =...
Thanks for your replys.
First, I try to clarify what I meant.
In my index.php page, I have dropdownbox:
<div id="letterdiv"><select name="letter">
<option>Select profile First</option>
</select></div>
And dropdownbox gets values from this php-program:
<?php
$query="SELECT id...
Hi.
I have dropdown box on my page.
Now in function Stat I would like to read the selected dropdpwn box value. How can it be done?
I have tried to read the selected value like this:
var selected = document.getElementById('dropdiv').innerHTML;
But it gives me something like this:
<select...
Thanks for your valuable information!
I'm terrible sorry, that there is Function called Hae. It should be GetValues.
I will fix all these errors that you showed to me.
Thanks !
Hi.
I have multiselect listbox on my web-page.
Now I try to give selected listbox values to the javascript function (GetValues) when button is pushed.
I found two function on web, which print values to the alert-box when button is pushed (getSelected and outputSelected)
I changed...
Hi.
Is it possible to make replication like this:
I have one machine (master1) where I have one database called db1. And I have different machine (master2) where I have one database called db2.
I also have third machine (slave) where I have two databases:
db1 and db2. Now the slave database...
Hi.
I have program, which first removes all music files from folder /home/xxxx/folder.
Then there will be saved some new files:
Example
system("rm $music_dir/*.wav");
system("rm $music_dir/*.mp3");
Now when I look my error_log, there are multiple errors:
rm: cannot remove /path/*.wav No...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.