-
allow voting only when logged in
Hello. I have a voting system kind of like digg, and I was wondering how would I work this with sessions? If I'm using jquery and ajax for voting? Does the session have to be written in jquery and ajax? thank you
-
Need help with div tag moving along with scrolling
yeah exactly. I have a question. is it possible to stay say 50px off from the top and then stay there until you scroll down and then the browser would push it down? is that more coding or is it the same thing?
-
Need help with div tag moving along with scrolling
any suggestions?
-
Need help with div tag moving along with scrolling
Hello, I'm trying to get a div tag to move while scrolling. I know you can do position: fixed, but I was wondering how to do it so if the div tag is in the middle of the web browser, it will stay there until when you scroll down and it gets to the top of the browser the browser will drag it down. Also, I wanted my div tag to be on the right side of my browser. When I tried doing position: fixed, it stays on my left. I also tried float: right, but it doesn't work Any suggestion? Thank you
-
form gets disabled after clicking somewhere else
My whole form is no longer clickable. I can't go back into my form textbox and type. I can't even click on my button anymore either.
-
form gets disabled after clicking somewhere else
I did what you suggested, I made my return false into return true, and i changed my onSubmit, but its doing the same thing?
-
combining two different javascripts
Hello. I'm just starting, and I was wondering if anyone can help me on showing me how to combine these two separated scripts together function searchLocations() { $.post("testing.php",{search_term: form.search_term_box.value},function(data) { $("#search_results").html(data); }); return false; } $(document).ready(function() { $('s#more').hide(); $('div#moreAnchor').click(function() { $('div#moreAnchor').show(); }); }); Thank you
-
form gets disabled after clicking somewhere else
Hello, I have this live search engine for my mysql database. My form gets disabled after I click out of the search box. Why is this happening? This is my code function searchLocations() { $.post("testing.php",{search_term: form.search_term_box.value},function(data) { $("#search_results").html(data); }); return false; } <form name="form" style="float:left;width:650px;height:60px;margin-right:30px;" onSubmit="return searchLocations();" > <table style="float:right;"><tr> <td> <label for="search_term_box"><b>Search</b></label><br /> </td> </tr> <tr> <td> <input name="search_term_box" id="search_term" type="text" onkeyup="searchLocations()" style="height:23px; margin-right:20px;font-size: 16px" size="36" autocomplete="off"/></td> <td> <input type="button" name="search_button" style= "padding: 5px; font-family: Arial, Helvetica, sans-serif; font-size: 12px;" value="Search" onClick="searchLocations();" /> </td></tr></table> </form> Thank you
-
changing a certain text with if else statement
Yeah, sorry. I did change it a little. I changed it a little so when the user does not enter something, the error pops up. But when the user does enter something, I want the color to change back to the original color text (black). How do I make it convert back to error_tri === False after the error has been set. Currently, it stays red. Thank you
-
changing a certain text with if else statement
webdesigner93 showed me a way last night on aim. he was really helpful. He got it to work, by changing the color on submit, but I forgot to check another part to it. When I type something in the form, the error disappears. So when I tried to change the original text color, it disappears when the user correctly inputs the right data. How do I make it so it'll go back, Here's his snippet of code that he helped me out with. <?php if($error_tri === FALSE) { echo "Username: "; } else if($error_tri === TRUE) { echo $form->error("user"); } ?>
-
changing a certain text with if else statement
Hello, I have developed a form and if the user does not submit something an error occurs. I was wondering how to change the text color <li id="first_name"> <label for="first_name">First name: </label> <div class="fieldgroup"> <?php echo $form->error("first_name"); echo "<br>"; ?> <input name="first_name" type="text" value="<?php echo $form->value("first_name"); ?>" size="35" maxlength="30"></div></li> Right now this is how my code looks. It produces an error when its necessary. But I want to instead of producing that error, I want the First name text to change colors I might have to a if else statement? But not sure how it looks Thanks
-
Will teach php/mysql noobs for free!
teach me kind sir!
-
possible? making form sent to div tag
ohh yeah. hehe i deleted those two
-
possible? making form sent to div tag
no problem. thanks a lot for your time. hopefully i can figure this out
-
possible? making form sent to div tag
nope. Well I do have a google map api, but that works when I click submit. Just the search doesn't do anything. The search did work without the ajax code, but when I use the ajax script, it doesn't do anything.