Jump to content

RichardRotterdam

Members
  • Posts

    1,509
  • Joined

  • Last visited

Everything posted by RichardRotterdam

  1. Ah I was going to mention sIFR but Daniel beat me to it. Additionally to that you could use PHP for creating an image out of a font. Think of how a lot of captcha scripts work, these often use a custom font for outputting an image.
  2. This is what wikipedia says : Seems like it's both a webserver (which would replace Apache, IIS or any other webserver) and a framework such as Django, ZF and CakePHP. As the example hello world I see python code so I don't think you can combine "Tornado" and Python. But apache can run Python fine as it is.
  3. I agree with that try Doctrine (or Propel) you might get addicted. I think I read one of 448191's blog articles that coverd this exact subject. Other then that I think your db design could use some work. For example why not have a foreign key in your image table instead of joining artist_id with image_id?
  4. Nah you don't need to put it before your </body> tag you just need to load a certain function when your DOM has loaded. Lookup stuff like domread or onload (less efficient) A simple example of waiting for the whole page to load (including images) would be to use onload like so: <script type="text/javascript"> // wait for the page to load window.onload = function(){ // call a function when your page has loaded your_function_to_call_after_the_page_has_loaded(); } </script> you could place that anywhere you want and you would not have to contamitate your template
  5. Just reading those two comments, wouldn't it be a whole lot easier to just not include it in the template but only include it on the homepage? You only want it to load on the homepages so therefor why not only place it on the homepage?
  6. the scriipt tag does not look right at all <scriipt> That could start an error. As for the document.getElementById() function do you wait for the dom to be loaded before you call that function? and what does the code look like where you are calling it?
  7. I think you need to do this serverside since you need to check wether or not a person is logged in. If a person is not logged in you could output some html/javascript which would give an alert on a button event.
  8. It means you're not closing the function Check2() with } function Check2(){ /* if (condition){ } */ } // you forgot to close the function with a curly bracket
  9. Maybe you could start by telling about what it is suppose to do and what errors you are getting. these are the errors I'm getting btw
  10. I think this link will provide you with the answer http://www.w3schools.com/Dom/dom_parser.asp
  11. Just one question does it work in IE I see has a different parser.
  12. Hmmm could be. But before you conclude that, what does the XML look like when you directly put the JPS path in your URL? Is it something you can only access locally since I can't request that URL. Another thing, do you have firebug for firefox? With that you can easily check what your request receives by checking the net tab.
  13. In your code I see the following: loadSpecXMLDoc(value+".xml"); //IF I LOAD IT THIS WAY EVEYTHING WORKS FINE //loadSpecXMLDoc("http://staging.abc.co.uk/abc/abc.jsp?func=styles&model=value"); //THIS DYNAMIC WAY DOESNT WORK The first line which according to you works fine has a varabiable named value. What is the value you pass in that function? In that second line which you clain that it doesn't work I see an absolute path? Is the website with the pulldown on the same domain as the jsp script that generates the xml file? If not then you're dealing with a crossdomain access.
  14. That's just a matter of changing type="radio" to type="checkbox" and removing the off radio button. edit Again your value should match the if condition you have your value set to "checkbox" not "on"
  15. For your php code to work your radio button should have a value "on" <input name="radiobutton" type="radio" value="on"> <input name="radiobutton" type="radio" value="off">
  16. Format your code between these you could just add a param to the getRequest() function function getRequest(url) { var oXmlHttp = zXmlHttp.createRequest(); oXmlHttp.open("get",url,true); // use the url var here // the rest of the function }
  17. Overlooked the str_parse post while posting
  18. There are many ways to solve this one here is one that gets all the params in the url <?php $url = 'http://jobsearch.monster.com/getjob.asp?JobID=83493606&AVSDM=2009-09-22%2003:03:00&WT.mc_n=RSS2005_JSR'; $params = getUrlValues($url); echo "Value of JobID = ",$params['JobID']; function getUrlValues($url){ $values = parse_url($url); $urlPieces = explode("&" , $values['query']); $urlVals = array(); foreach($urlPieces as $urlPiece){ $tmp = explode("=" , $urlPiece); $urlVals[$tmp[0]] = $tmp[1]; } return $urlVals; } You could prob also use a regular expression
  19. That you can not find that folder is irrelevant to your problem. Are you using a *nix based OS though and was your php.ini file that way to begin with? Or was that line perhaps commented? If that folder doesn't exist you can remove that from your include path As mentioned before you need to put lib/Zend somewhere. Change your include_path to the directory that contains ZF: include_path = ".:/path/to/zend_framework"
  20. Maybe you could check a couple of vacancies that you would like and which you concider to be Linux related. Then you could ask the corresponding companies of these vacancies what they would like to see or would demand as requirment for certification. Besides that you can simply get a Linux distro and install it on your pc and play around with it. See how far you can go by doing some trial and error. I myself learned a lot from various linux community sites.
  21. If it's from a db why do you cram the values in of an array into a string so you can explode it into an array again? Maybe you should try something like this instead <?php while($row = mysql_fetch_array( $result )) { echo ucwords(strtolower($row['name'])); }
  22. You could create a javascript function that you run periodically by using setTimeout Here is a simple example without the ajax part: <script> // function for reloading the viewport div (use this function for making an ajax request) function reloadContent(){ var randomnumber = Math.floor(Math.random()*100); document.getElementById('viewport').innerHTML = "random number = "+randomnumber; // execute this function for every second setTimeout('reloadContent()', 1000); } window.onload = function(){ reloadContent(); } </script> <div id="viewport">loading</div> You also might also want to look into "Comet ajax"
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.