hello,
i am a bit new to flash, just need some tips regarding passing variables.
i have a script like this:
<?PHP $x=1; ?>
<a href="someurl.hmtl?var1=<?PHP echo $x ?>"> click here </a>
how can i do this in flash?
i tried on my flash button action script:
on (press)...
hi all,
new to html.
i have an image tag :
<img src="images/picture.jpg" alt="myimage"/ >
this go well in firefox.
in explorer, the alt value pops up whenever i point the mouse on the image.
is there a work around to get rid of the pop up in IE?
thanks!
JEBO
4saledavao
hi,
need a tip.
i wanted to put in a value for my input from an onclick event.
example:
<script type="text/javascript">
function change_value(frm){
frm.elements['file_up'].value="test.jpg"
}
</script>
<form action="trial.php" method="post" enctype="multipart/form-data"...
<a href="" onclick="Javascript: window.print()">Print this page</a>
the above prints the current page.
is there a way to save the current page to my local hard drive?
ex:
<a href="" onclick="Javascript: window.Save????()">Save this page</a>
thanks....
JEBO
4saledavao
i am new to javascript and
i have this manual titled "Javascript Programer's Reference" by Cliff Wooton.
i was just wandering if there really is an "onBack ,onForward and onRefresh" event handlers as written in this manual.
the manual says -"trigers when The user has clicked on the [FORWARD]...
WOW!!! that was a very good tutorial. :)
now i understand why.
Thank you very much for your patience in guiding me thru these.
i really appreciate it.
Thanks again "vacunita & jpadie" and to all the people here.
JEBO
4saledavao
first, i'd like to thank jpadie for the code, and vacunita for enlightening me about js and php.
please correct me if my assumptions are wrong....
i am still a bit lost here:), what i really wanted to understand for now from the code below is, when i echo $php_var, it will return the js...
AGREE with you guys,
i was assuming that i could use the $php_var for my query because if i echo $php_var, it returns the string i inputed from the js prompt.
but when i tested it in actual query, it didn't. :(
i dont really understand what happened.
echoing $php_var returns the value from js...
thanks for the comment tsuji,
i am making an admin page which will allow admin users to maintain the contents of our web site.
i used the javascript "prompt()" as the log in form.
now i have to pass the javascript variable to php variable so i can use it for my query.
<?php...
thanks for the tips jpadie,
with almost 2 hours of tinkering, i came up with these code and it worked for my needs.
<script>;
var js_var=prompt("enter usercode");
var js_var2=confirm("click ok to continue");
</script>
<?php
$php_var="<script>document.write(js_var)</script>"...
i don't know if this is the right forum for my question.
i have a simple prompt javascript like this;
<script>var js_var=prompt('enter your name')</script>
how do i transfer the variable "js_var" to PHP variable?
ex: $myphpvar = js_var
thanks!
JEBO
4saledavao
thanks jpadie!!!
i mislooked the protion of my manual saying this! :)
"bool imagejpeg ( resource image [, string filename [, int quality]] )"
thanks a lot!
i have followed this example from my manual and it worked well.
it displayed the imagejpeg($thumb) nicely.
now i wanted to save this new resized image to a file in my images directory, what command or procedure should i do?
<?php
$filename = 'test.jpg';
$percent = 0.5;
header('Content-type...
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.