Jump to content

lupld

Members
  • Posts

    99
  • Joined

  • Last visited

    Never

Everything posted by lupld

  1. No problem, glad I could help. I'm especially glad it worked off the bat for you, usually I make a lot of mistakes before I get it right. And don't be too intimidated by javascript, it really isn't hard once you get used to it. A good javascript editor like adobe dreamweave goes a long way too. If you look around I'm sure there are some free alternatives.
  2. I would use phpMyAdmin... It's free and easy to use and has the ability to download databases as .sql or .zip files. It's easy to set up (gets easier with each version, but you should still probably find a guide) and is a full featured database tool.
  3. same here, I'm usually on aim, if you need some specific help let me know. if you're storing the images in mysql that's the one thing I haven't really dabbled with, so I don't exactly know how it works, but I think you can pick out what I've said so far and make it work. Good luck
  4. just out of curiosity, what kind of experience do you have with this sort of thing? you seem like you've been doing work like this before, but you're really stepping it up this time. if the javascript isn't working, submit() might be reserved. The example I found used submitform() instead. and it showed the syntax for onclick like this: onclick="submit()". Just a couple of errors I might have made, I only code for fun, so I do a lot of trial and error to get things right.
  5. lol, you're getting tricky now. put an input in the form with the photo they're viewing (like a hyperlink if it's just stored on the server), so that when they submit the form, the page reloading knows what image they were just viewing. and then use php to place the $_POST['previouspic'] into the img tag where you want the previous pic to display.
  6. cause I have nothing better to do right now, try this. <script type="text/javascript"> function submit() { document.forms["myform"].submit(); } </script> <form id="myform" method="post" action="action.php"> and your radio buttons in the form will look like this <input type="radio" onclick="submit();" value="7" name="picrating" /> basically, add onclick="submit();" to your radio buttons, add id="myform" to the form tag (you can change myform, just make sure you change it EVERYWHERE it occurrs), and copy that javascript into your header. I don't think you need a submit button either, as the javascript seems to cover for it, if it doesn't work try putting in a submit button and adding style="display:none;" to it so it doesn't appear on the page. You may be shy about using javascript, but it posts the data the same way as if the user clicked a submit button, and it plays well in php. No, there isn't really a php thing you can do for this, as php is a server side language, and javascript is a client side language. I've narrowed the javascript down as easy as I think I can for you. Good luck.
  7. if you really need me to I can look up the specific javascript, let me know... noone ever helps me on here, so I should at least try and fill in the gaps.
  8. the only way I know is to use javascript to submit the form, which isn't too hard to do, search around in google. each radiobutton will have something like onclick="submit();" and then you will have a javascript function like function submit() { this line of code would submit your specified form with the data as entered } making it post the form, and then obviously you just put method="post" in the form tag to make it post instead of get.
  9. This is probably terribly coded, but it works. Use index.php?durl=yahoo.com or google.com or something to load the page the first time. Then after that the form works fine for both. Here is the final PHP <?php //if(isset($_POST['Submit'])) // { $dlin = $_POST['dlin']; // }else{ // $dlin = "http://www.google.com"; // } if(isset($_GET['durl'])){ $url2 = $_GET['durl']; if(stristr($url2,"http://")){ }else{ $url2 = "http://".$url2; } }else{ if(stristr($dlin,"http://")){ }else{ $dlin = "http://".$dlin; } } ?> And the places the link needs to be included now look like this... <?php PRINT "$dlin"; PRINT "$url2"; ?> and cause I'm a nice guy, and I like this little project, here, have the newly finished index.php [attachment deleted by admin]
  10. No luck, works like it should in Firefox, selects the url value for when submit is not set for IE8.
  11. I'm wondering if maybe the url for "name" is reserved in IE8, as part of a security feature. I'm gonna rename the input values.
  12. Ok, doing a satire project where I'm mocking an IE8 opening a url and it being blocked to do government zealotry. I have it all about done, but I want to make two versions, an internet emulator, and the redirect one I just mentioned. It works in firefox, but in IE8 it acts as if the submit button wasn't pressed when it loads the page. I think it's an error with how I handled the form, or the $_POST in php. Anyone know why this works in Firefox exactly how it should and not at all in IE8? I thought php handling was browser independant, it should grab the $_POST, put the links in how it should, and load the "fake browser". Here are all the files, this is just a school project, and I don't care who rips off the code, I think it's a neat little project. Here is the code just in case someone is curious and doesn't wanna download the source files.. <?php if(isset($_POST['Submit'])) { $url = $_POST['URL']; }else{ $url = "http://www.google.com"; } if(stristr($url,"http://")){ }else{ $url = "http://".$url; } ?> <html> <div id="IE-LOGIN"><form method="post" action="index.php"> <input id="IE-LOGIN-INPUT" type="text" name="URL" value="<?php PRINT "$url"; ?>" /> <input type="submit" value="Submit" name="Submit" style="display:none;" /> </form> </div> </html> On a side note, could this be IE8's anti-phishing software? I just need it to work for a school project, if I have to use Firefox in the end, I suppose I will, but it will be easier not to install a new browser just to turn in the project. [attachment deleted by admin]
  13. I have a FRESH install of apache 2.2.x installed on Ubuntu 9.04 using apt-get and I'm using webmin to administrate it. If I edit the ports.conf file to change the listening port and restart the server, it STILL refuses to use the new port. I have even tried to put "Listen 4048" in http.conf and comment out the lines in ports.conf and it still will not use the new port when restarted. Ports.conf looks like this NameVirtualHost *:4048 Listen 4048 and then I put ports.conf: #NameVirtualHost *:4048 #Listen 4048 and http.conf Listen 4048 and it wouldn't work, any ideas? the computer is set to IPPASSTHROUGH on the router, so it should get ALL traffic that's not forwarded to another computer, and 80 is ISP blocked. Thanks in advance. Nobody seems to have this issue, but this is my 3rd time trying to fix it.
  14. Thanks, I'll remember that, I tried installing openssl-devel. That's the only thing I could find doing a google search, guess it must be an outdated method.
  15. don't know which one, but installed a ton of libapache libraries, and finally got pure-ftpd to compile. Also found that pure-ftpd-mysql was conveniently in synaptics package manager. Thanks anyone who may have helped.
  16. Got it by running apt-get install libmysqlclient15-dev, thanks anyone who might have helped. Now I'm getting error: openssl headers not found. I'm sure I'll find the right fix for it sooner or later.
  17. Trying to get pure-ftpd to work with mysql support and the web manager installed for it. I couldn't find the config files to edit, and I believe it's because I apt-get installed pure-ftpd, so I'm installing it again with ./configure --with-everything --with-paranoidmsg --with-virtualchroot --with-tls --with-largefile --with-mysql compiling it from source code. I get libmysqlclient not found error, and I tried installing mysql 5.1 instead of 5.0, and as it was installing one of the 6 packages synaptics package manager included was libmysqlclient16. Is there some way I need to make it use this file? Searching on google for libmysqlclient not found usually gets .6 or .15 or .so.15 or some other variation appended to the end of libmysqlclient and the configuration script is only asking for libmysqlclient, nothing else. Thanks in advance for any help.
  18. Ok, it's submitting a form and it makes it this far, I'll post the entire application.js file to, it's pretty short. Error: $(form_message).removeClass().addClass(json.type).html(json.message).fadeIn is not a function Source File: http://127.0.0.1/application.js Line: 29 function setupAjaxForm(form_id, form_validations){ var form = '#' + form_id; var form_message = form + '-message'; // en/disable submit button var disableSubmit = function(val){ $(form + ' input[type=submit]').attr('disabled', val); }; // setup loading message $(form).ajaxSend(function(){ $(form_message).removeClass().addClass('loading').html('Loading...').fadeIn(); }); // setup jQuery Plugin 'ajaxForm' var options = { dataType: 'json', beforeSubmit: function(){ // run form validations if they exist if(typeof form_validations == "function" && !form_validations()) { // this will prevent the form from being subitted return false; } disableSubmit(true); }, success: function(json){ $(form_message).hide(); $(form_message).removeClass().addClass(json.type).html(json.message).fadeIn('slow'); disableSubmit(false); if(json.type == 'success') $(form).clearForm(); } }; $(form).ajaxForm(options); } It displays the "Loading..." and then as soon as there is an error in mozilla it sets the div to display:none;? I really have no idea what's going on, and "is not a function" really gives me no clue where to look.
  19. here's the code I'm using right now <div id="bgcontainer" align="center"> <div class="container" id="container"> <div class="subcontainer" id="subcontainer" align="center" style="min-height:100%;"> </div> </div> </div> The body is signed a gradient background with y-repeat and it puts it in the top left, bgcontainer does the same with a mirror image on the right, and then container takes the place of a scroll bar for the page, and subcontainer sets left and right margins for the page. Subcontainer also has a black background and is set transparent. At the desired resolution, the margin is enough to seperate the three different transparencies, and I like the effect, but even at smaller window sizes or screen resolutions it will still make a nice background where the user can pick the color. There's not a lot of work done yet, I'm going to add in php, but I work on parts of it here and there. The site isn't on a server yet, or I'd just give you a link to see what I've done.
  20. Thanks, I always make things harder than they are, I was using transparent backgrounds for divs to allow users to make a choice of bg color, and no matter what they picked the image would still look nice for the styling. I had it stuck in my head the divs holding the content had to be black backgrounds with 80% opacity, but reading your post made me realize I could do the same thing with the containing div to get the same effect. I've been playing with the CSS for an hour trying to get it to work, thanks for the help. Still, that is curious behavior, that isn't how it's supposed to work, is it? the padding-top?
  21. I have a div that's set to 100% height of the body, and 30 px; padding-top. The div is combining 100% height and the padding and making the page scroll, what am I doing wrong? I thought padding only effected the inside of the div tag, pushing anything in it down 30 pixels, not adding to its total height. Thanks in advance.
  22. Hey, if you still want help with this, IM me sometime, I get carried away and forget to check back here a lot. I'm guessing the sql query is making the browser stop the pause early? I love how sometimes the most simple code can have such varying results.
  23. It also sounds like twitter might be putting this div up while it's sending an ajax request (just guessing, I honestly have no idea what you want other than to show and hide a div), during the ajax request set the div to visible with javascript, and then set it to invisible after you get a reply. Also, I'm guessing cause you're asking, either you don't know javascript and want an exact code example to make fit on your page, or I don't get what you're asking and it's above me at the moment. I'm not good at writing javascript, but if you zip and post the source of a twitter page I'll look through the source see if I can find what you want.
  24. do you know anything about javascript? I think what you're looking for is a div that covers the whole page with the style set to invisible, and then when you click the submit button, an onclick="function();" sets the div to visible, "getElementByID("ID").style.visibility = true", pauses, and then sets the same thing to false. I haven't messed around with web design for about 6 months, so I know some of what I told you isn't right, but it might be enough to point you in the right direction... You could use firefox with the firebug add-on to find out what javascript twitter calls and look for the code I talked about. Then again, there might be a way easier way to do this and someone else would be a better help. I don't use twitter, but I'll go see if I can find what you mean.
  25. This can't be anything new, I'm sure there are tons of useful applications for this besides making the div tag the full height of the document, and not just the height of the visible window. I'm sure the code comes down to .height for this browser, .clientheight for this browser, and .innerheight for all the other browsers, and then getElementByID("BODY").style.height = var height, but none of the different codes I've tried work. I get errors like "activeresize() not defined", and not knowing much about javascript, this is like saying don't eat with your hands to a baby, you can preach it all you want, but until they learn what you're saying it's not gonna do anything.
×
×
  • 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.