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...
Hello,
I was thinking if it is possible to check if javascript is disabled with php. I am not very experienced coder but was thinking that something like this might work:
<noscript>
<div id="script_disabled" type="hidden">
</noscript>
<?php
Check if id="script_disabled" exsists
if(exsists){...
Thanks Dan,
I think I need to do some studying with my jscript/dom skills to get thisone moving.
I know how to use the drag and drop feature of scriptaculous, but im stuck in the beginning. I have never before loaded an xml file into a html doc..What would be the easiest way to do...
Hello, This might be complex but lets see if someone has an idea for best practice how to do this. There are two steps but even solvin the first one would be a huge help. Perhaps some framework like prototype/scriptaculous or mootools would be helpful...
Step 1.
I need to build an browser...
Hi,
I have a function like this to focus on textfields:
function focusEffect(element){
document.getElementById(element).focus();
}
I am using it to an element like this:
onmouseover = "focusEffect('field1')" onMouseout="focusEffect('')
I need to change this so that onmouseover event: "if...
My problem is that this slideshow does not work. I only see the first picture, and it does not fade into another like it is supposed to. It should be able to show a picture for 2 second and transform into the nextone which it does not do..
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.