RichardRotterdam
Members-
Posts
1,509 -
Joined
-
Last visited
Everything posted by RichardRotterdam
-
jquery on activating and deactivating checkboxes
RichardRotterdam replied to genzedu777's topic in Javascript Help
Try the code tags I'ts quite hard to read the pasted code as it is. Can you describe exactly what isn't working? -
[Python] getting started?
RichardRotterdam replied to fivestringsurf's topic in Other Programming Languages
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 -
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?
-
Slideshow Script that pulls all images from a FOlder?
RichardRotterdam replied to natasha_thomas's topic in Miscellaneous
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 -
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
-
You probably mean CSV instead of CVS. If so have a look at fgetcsv
-
Search as you Type - working in Firefox, but not IE
RichardRotterdam replied to tsoltysiak's topic in Javascript Help
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" -
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?
-
I suggest you readup on jsonp. That's pretty much how flickr and facebook does it.
-
Could be wrong but maybe you can simply change the "0" with a "1" in the following line $rows = $tables->item(0)->getElementsByTagName('tr');
-
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.
-
Why can't you create a random number with javascript?
-
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
-
http://jqueryui.com/demos/dialog/#modal-form or search for something for stuff such as "modal", "dialog", "lightbox" etc
-
Allow links to open in new window with on/off feature?
RichardRotterdam replied to Jason28's topic in Javascript Help
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 -
what ini file are you using? And is the ini file youre writting in parsed?
-
http://xdebug.org/docs/profiler
-
Help with converting a jquery slider effect to fade
RichardRotterdam replied to Presto-X's topic in Javascript Help
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. -
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() {
-
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>
-
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();
-
JQuery - document ready - ajax - link clicks not working
RichardRotterdam replied to Perad's topic in Javascript Help
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() -
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?