Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by MrMiyagi

  1. MrMiyagi

    Help with simple jQuery based virtual keyboard?

    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...
  2. MrMiyagi

    Simple PHP CMS for editing content ?

    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...
  3. MrMiyagi

    Simple PHP CMS for editing content ?

    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...
  4. MrMiyagi

    Image Fader ?

    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...
  5. MrMiyagi

    Image Preloader?

    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...
  6. MrMiyagi

    Fetch goldprice in realtime ?

    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...
  7. MrMiyagi

    Toggling body tag class names to get css menu higlights working.

    I have one more problem with this: <?php echo $_GET['n'] ?> If there is no n in the url I need it to return 1 by default?
  8. MrMiyagi

    Toggling body tag class names to get css menu higlights working.

    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 );
  9. MrMiyagi

    Toggling body tag class names to get css menu higlights working.

    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...
  10. MrMiyagi

    PHP check if Javascript is disabled ?

    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")...
  11. MrMiyagi

    PHP check if Javascript is disabled ?

    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?
  12. MrMiyagi

    PHP check if 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 =...
  13. MrMiyagi

    PHP check if Javascript is disabled ?

    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.
  14. MrMiyagi

    PHP check 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...
  15. MrMiyagi

    PHP check if Javascript is disabled ?

    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...

Part and Inventory Search

Back
Top