Hi,
I need to make this work so would be thankful for some advice.
I am building a simple virtual keyboard for a touchscreen. It works with one field but I have poblems when the user needs to
select and fill many fields.
I have few input fields and one textarea. User needs to be able to...
If I choose Wordpress can I first write my xhtml/css with some javascript(prototype/scriptaculous) and flash elements and implement this page with wordpress? I would only need wordpress for updating these few paragraphs every now and then.
I think your code example could also be my solution...
Hello,
I am building a simple informative website for a client. My problem is that the client needs a tool for editing text content on the site. I would just edit these few paragraph tags inside the html file and upload with ftp, but for the client some browser based solution is needed.
So is...
Hi,
I need a script that would produce an image slideshow with a fade effect. I have this script and it almost works. Only some blinking every now and then. What do you think of the script? Any simplier suggestions or links? Thanks.
var gblPhotoShufflerDivId = "rotator";
var...
Hi,
I have this code for preloading some big images on my page. The idea is to show a loading animation until the pics in the array are loaded. Most of the time it works, but sometimes it quits the loading animation before all images are loaded.
Would be great if some jscript guru could check...
If I wanted to fetch the goldprice in real time(or between 10minutes) and publish it on my site. How could I do it?
For example from here: http://money.cnn.com/data/commodities/
Or some chart like this:
http://markets.ft.com/markets/commodities.asp
Prototype framework has an...
There isnt much code so I dont think the value is changed by another assignment..
What exactly does this do?
$n = ( isset( $_GET['n'] ) ? $_GET['n'] : 0 );
Hi,
Thanks for helping with this one. I have one more question about this. I tried:
<body class="page<?php echo $n;">
and
<body class="page<?php echo $n>=1 && $n<=5?$n:1; ?>">
But the browser returned only the class value "page1" for each page when it should return page2, page3, page4...
Thenks for help, but I need to do the exact opposite to noscript tags. I mean that i need to run the line of php only if javascript is enabled. Any hacks for that?
Perhaps something like:
<script>var jscriptenabled = 1 </script>
if(jscriptenabled = 1)
{
<?php include("jscriptcontent.php")...
Is there a way to call php with javascript...something like this?
<script>
document.write("<?php include("jscriptcontent.php"); ?>");
</script>
Or a way to get this line of php hidden when javascript is disabled?
Im not very experienced with php and this is most likely not the best practice but jscriptcontent adds this type of thing:
<?php
$n = ( isset( $_GET['n'] ) ? $_GET['n'] : 0 );
$htmlcontent = "";
switch ($n) {
case "1":
$htmlcontent = " content for case 1 ";
break;
case "2":
$htmlcontent =...
The file jscriptcontent.php adds elements to the site that i dont want to be added if javascript is disabled.
So if javascript is disabled this line of php should not be processed at all:
<?php include("jscriptcontent.php"); ?>
So I need to hide it if javascript is disabled.
What i need to do is add this line of php only if javascript is enabled:
<?php include("jscriptcontent.php"); ?>
I tried like this:
<script>
document.write("<?php include("jscriptcontent.php"); ?>");
</script>
Doesnt work...
So basically I need a way to tell PHP that javascript is enabled...
Thanks for all answers. Could someone show an example code how exactly is this done? I could not get it working.
"Set a meta refresh for 3 seconds. Specify a query string of nojs=true
Set some JavaScript to kill the meta refresh.
In php look for the presence of $_GET['nojs']. If it is present...
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.