Jump to content

RichardRotterdam

Members
  • Posts

    1,509
  • Joined

  • Last visited

Everything posted by RichardRotterdam

  1. Try the code tags I'ts quite hard to read the pasted code as it is. Can you describe exactly what isn't working?
  2. I'd look into the mod_python[/url module specifically to make python run under apache. Also you might want to begin with command line py to see if it works and you
  3. I suggest you stick with one framework since Mootools and jQuery conflict with each other. Rewritting the jQuery dependant code to mootools shouldn't be too hard, what exactly does it do?
  4. The reason you're probably not having much luck is because you're looking for it as a whole package. Try looking for (or write it yourself) : 1. a php script that returns all images from a folder. 2. a js slide show Should be easy as hell
  5. I think there was a way to set up a template for all pages including the index. Try and look up how templates work in cake By changing the debug level you can change this. Look in your /app/config/core.php file for this
  6. You probably mean CSV instead of CVS. If so have a look at fgetcsv
  7. Works fine for me in ie 8 and ie 7. Did you mean ie 6? I do get a syntax error on line114 which is: function replaceDefault(el){ if (el.defaultValue==el.value)} el.value = "Search Airlines"
  8. What you are describing here sounds like different controllers. Do you have controllers named public, admincp, ownercp, and forum? Or are these separate folders with different applications. If it's different folders why not set up a virtual host for each?
  9. I suggest you readup on jsonp. That's pretty much how flickr and facebook does it.
  10. Could be wrong but maybe you can simply change the "0" with a "1" in the following line $rows = $tables->item(0)->getElementsByTagName('tr');
  11. this code is taken from the jQuery documentation http://api.jquery.com/slideToggle/ $('#clickme').click(function() { $('#book').slideToggle('slow', function() { // Animation complete. }); }); What you need to do is write out the event that changes the text. Read the comment on where to place this $('a#view1').click(function(){ $('#1').slideToggle(200, function(){ // your code that changes the text from 'view' to 'close' and back here }); }); Also it would be easer to use the css selector by class so you dont have to repeat the same code for each slide item.
  12. Why can't you create a random number with javascript?
  13. It's just a simple css issue. Your paragraph elements are too wide. add the following to your css and it should be fine #board p{ width:50px; }
  14. I think you don't know what ajax is (yet). You don't even need it you can do it with javascript alone. You might want to consider using flash instead since it's specifically made for animations. If you do want to go down the javascript road use a framework such as jQuery, mootools, prototype etc. It will make it a whole lot easier
  15. http://jqueryui.com/demos/dialog/#modal-form or search for something for stuff such as "modal", "dialog", "lightbox" etc
  16. The script that was posted previously was pretty much the whole thing written out for you except for a button/link that changes the status of a variable. Can you post what you have tried so far? Most likely no one is going to help much if you don't show have put in a bit of effort yourself
  17. what ini file are you using? And is the ini file youre writting in parsed?
  18. http://xdebug.org/docs/profiler
  19. Could you post the HTML output that is shown in the browser ? It's most likely that people don't want to run the php on a server just to see the output.
  20. I wouldn't do either of those two options. The css places the images next to each other so the slide option is actually possible. There might be a simple fix but most likely you'll run into the siutation where you completely have to re-write the css so the fade effect can be done. Other then that the js code isn't in the most common jQuery plugin syntax. Personally I'd simply search for another jQuery gallery plugin that has uses the fade effect. effect in the first result.
  21. My quess is that your not using the jquery click event try to change the following : $("a.lnav").onclick(function() { into $("a.lnav").click(function() {
  22. Don't use onclick with a select element. Use onchange then do something when your value is something. example: <script type="text/javascript"> window.onload = function() { document.getElementById('your_select').onchange = function() { alert(this.value); } } </script> <select id="your_select"> <option value='1' >Your comment on</option> <option value='3' >Your question on</option> <option value='2' >Your image about</option> <option value='0' >Comparison</option> </select>
  23. Try this: // create foo constructor var foo = function(a) { // set property this.a = a ; } // add bar function to foo foo.prototype.bar = function() { alert(this.a); } // instantiate foo object var instance = new foo('hello'); instance.bar();
  24. It's because the events on the elements are placed when the dom is ready. The events wont be placed on the elements you load with the ajax call. There is a workaround though, take a look at live()
  25. Sorta sounds like wankster use for your code. <html> <head> <title> the result for the requested records </title> </head> <body> <h3> hello, here are the currently registered students</h3> <?php $db = mysql_connect("****"); mysql_select_db("****",$db); $query = "select * from stdnt_record"; $result = mysql_query($query); while ($record = mysql_fetch_assoc($result)) { while(list($fieldname,$fieldvalue) = each($record)) { echo $fieldname.":".$fieldvalue.":<br>"; } echo "<br>"; } ?> </body> </html> What is the error you get?
×
×
  • 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.